/* Auxiliary pages reuse the approved warm-black / champagne visual language.
   All rules stay inside this host; existing pages and navigation are untouched. */
#secondary-host {
  --secondary-max-width: 430px;
  --secondary-space: 16px;
  --secondary-gold: #efc986;
  --secondary-copy: #f7f3ec;
  --secondary-dim: #b9b0a4;
  --secondary-line: rgba(177, 149, 107, .2);
  --secondary-safe-top: env(safe-area-inset-top, 0px);
  --secondary-safe-bottom: var(--app-safe-bottom, env(safe-area-inset-bottom, 0px));
  position: fixed;
  z-index: 80;
  inset: 0;
  width: 100%;
  max-width: var(--secondary-max-width);
  margin-inline: auto;
  pointer-events: none;
  color: var(--secondary-copy);
  font-family: 'Inter Theater Light', Inter, 'Microsoft JhengHei', Arial, sans-serif;
  font-size: 14px;
  font-weight: 450;
  font-optical-sizing: none;
  line-height: 1.6;
  text-align: start;
  -webkit-tap-highlight-color: transparent;
}

#secondary-host[hidden] { display: none; }
#secondary-host *, #secondary-host *::before, #secondary-host *::after { box-sizing: border-box; }
#secondary-host :is(h1, h2, h3, p) { margin: 0; }
#secondary-host :is(button, input) { font: inherit; }
#secondary-host :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid #f8be64;
  outline-offset: 3px;
}
#secondary-host button {
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
#secondary-host button:disabled { cursor: not-allowed; opacity: .5; }
#secondary-host bdi { unicode-bidi: isolate; overflow-wrap: anywhere; }
#secondary-host [dir='rtl'] { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; }

#secondary-host .secondary-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
  background: radial-gradient(ellipse 90% 34% at 50% -12%, rgba(177, 135, 71, .1), transparent 100%),
    linear-gradient(180deg, #141312 0%, #0b0a0a 100%);
  color: var(--secondary-copy);
}

#secondary-host .secondary-header {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-height: calc(64px + var(--secondary-safe-top));
  padding: calc(6px + var(--secondary-safe-top)) var(--secondary-space) 10px;
  border-bottom: 1px solid rgba(177, 149, 107, .1);
  background: rgba(20, 19, 18, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#secondary-host .secondary-header h1 {
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#secondary-host .secondary-kicker { color: var(--secondary-dim); font-size: 11px; font-weight: 450; line-height: 1.5; }
#secondary-host .secondary-header .secondary-kicker {
  grid-column: 2;
  margin-top: -2px;
  padding-bottom: 3px;
  color: var(--secondary-dim);
  font-size: 11px;
  line-height: 1.5;
}
#secondary-host .secondary-icon-button {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(177, 149, 107, .18);
  border-radius: 10px;
  background: rgba(0, 0, 0, .2);
  color: var(--secondary-copy);
  transition: background-color 140ms, border-color 140ms;
}
#secondary-host .secondary-icon-button img { display: block; width: 22px; height: 22px; object-fit: contain; }
#secondary-host [dir='rtl'] .secondary-header .secondary-icon-button img { transform: scaleX(-1); }
#secondary-host .secondary-icon-button:active { border-color: #d5b36f; background: rgba(177, 149, 107, .12); }

#secondary-host .secondary-body {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 24px;
  grid-auto-rows: max-content;
  min-width: 0;
  min-height: 0;
  padding: 24px var(--secondary-space) calc(28px + var(--secondary-safe-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #66523a transparent;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: 20px;
}
#secondary-host .secondary-body > *,
#secondary-host .secondary-sheet-body > * { min-width: 0; }
#secondary-host .secondary-section { display: grid; gap: 12px; min-width: 0; }
#secondary-host .secondary-section > h2,
#secondary-host .secondary-section > header h2 { font-size: 16px; font-weight: 600; line-height: 1.45; }
#secondary-host .secondary-section > header { display: grid; gap: 4px; }
#secondary-host .secondary-section > header p { color: var(--secondary-dim); font-size: 12px; line-height: 1.6; }

#secondary-host .secondary-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32, 29, 25, .98), rgba(18, 18, 17, .98)) padding-box,
    var(--poster-border-default, linear-gradient(180deg, rgba(177, 149, 107, .44), rgba(125, 109, 83, .32) 60%, rgba(68, 64, 57, .48))) border-box;
  box-shadow: inset 0 1px rgba(255, 235, 198, .025);
  overflow-wrap: anywhere;
}
#secondary-host .secondary-summary {
  position: relative;
  gap: 14px;
  background: radial-gradient(ellipse at 100% 0, rgba(177, 135, 71, .075), transparent 75%) padding-box,
    linear-gradient(145deg, #211e19, #121211) padding-box,
    var(--poster-border-default, linear-gradient(180deg, rgba(177, 149, 107, .44), rgba(68, 64, 57, .48))) border-box;
}
#secondary-host .secondary-balance { display: grid; align-content: start; gap: 7px; min-width: 0; }
#secondary-host .secondary-value {
  display: block;
  min-width: 0;
  color: #f3d39a;
  font-size: 28px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}
#secondary-host .secondary-currency { color: var(--secondary-dim); font-size: 12px; font-weight: 450; line-height: 1.5; letter-spacing: 0; }
#secondary-host .secondary-label { color: var(--secondary-dim); font-size: 12px; line-height: 1.5; }
#secondary-host .secondary-muted,
#secondary-host .secondary-note { color: var(--secondary-dim); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
#secondary-host .secondary-eyebrow {
  display: block;
  color: #d7bd90;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .65px;
}
#secondary-host [dir='rtl'] :is(.secondary-value, .secondary-eyebrow) { letter-spacing: 0; }
#secondary-host .secondary-status { gap: 8px; }
#secondary-host .secondary-status > strong { font-size: 16px; font-weight: 600; line-height: 1.45; }
#secondary-host .secondary-warning {
  color: #e5cfaa;
  background: linear-gradient(145deg, #292219, #191713) padding-box,
    linear-gradient(180deg, rgba(195, 157, 97, .4), rgba(142, 111, 68, .2)) border-box;
  font-size: 13px;
  line-height: 1.65;
}

#secondary-host .secondary-rows {
  display: grid;
  min-width: 0;
  border: 1px solid var(--secondary-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(31, 28, 24, .7), rgba(14, 14, 14, .8));
  overflow: hidden;
}
#secondary-host .secondary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 15px 16px;
  border: 0;
  background: transparent;
  color: var(--secondary-copy);
  font-size: 14px;
  line-height: 1.55;
  text-align: start;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#secondary-host .secondary-rows > .secondary-row + .secondary-row { border-top: 1px solid rgba(177, 149, 107, .1); }
#secondary-host .secondary-row > span { min-width: 0; }
#secondary-host .secondary-row > span:first-child { flex: 1 1 120px; }
#secondary-host .secondary-row > :is(strong, bdi) { min-width: 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
#secondary-host .secondary-row small { display: block; margin-top: 3px; color: var(--secondary-dim); font-size: 12px; font-weight: 450; line-height: 1.55; }
#secondary-host button.secondary-row { transition: background-color 140ms; }
#secondary-host button.secondary-row:active { background: rgba(213, 169, 91, .1); }
#secondary-host .secondary-row:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
#secondary-host .secondary-card .secondary-rows { border: 0; border-radius: 0; background: transparent; }
#secondary-host .secondary-card .secondary-row { padding-inline: 0; }
#secondary-host .secondary-card.secondary-rows { gap: 0; padding: 0; }
#secondary-host .secondary-card.secondary-rows .secondary-row { padding-inline: 16px; }
#secondary-host .secondary-card.secondary-language .secondary-row {
  min-height: 64px;
  /* Keep a 13px clear gap after the 3px selection line in both directions. */
  padding-inline: 16px;
}
#secondary-host .secondary-language .secondary-row[aria-checked='true'] {
  color: #f2d28d;
  background: linear-gradient(90deg, rgba(177, 135, 71, .11), rgba(177, 135, 71, .025));
  box-shadow: inset 3px 0 rgba(239, 201, 134, .6);
}
#secondary-host [dir='rtl'] .secondary-language .secondary-row[aria-checked='true'] { box-shadow: inset -3px 0 rgba(239, 201, 134, .6); }

#secondary-host .secondary-options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#secondary-host .secondary-option {
  position: relative;
  display: grid;
  align-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(177, 149, 107, .25);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(32, 29, 25, .75), rgba(17, 17, 16, .92));
  color: var(--secondary-copy);
  text-align: start;
  overflow-wrap: anywhere;
  transition: border-color 140ms, background-color 140ms;
}
#secondary-host .secondary-option[aria-checked='true'] {
  border-color: rgba(231, 189, 117, .72);
  background: radial-gradient(ellipse at 100% 0, rgba(213, 169, 91, .11), transparent 85%),
    linear-gradient(145deg, #2d251b, #1c1914);
  box-shadow: inset 0 1px rgba(255, 235, 198, .055);
}
#secondary-host .secondary-option:active { border-color: #f8be64; }
#secondary-host .secondary-option-main { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; min-width: 0; }
#secondary-host .secondary-option-main > strong { min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.5; }
#secondary-host .secondary-option-sub { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--secondary-dim); font-size: 12px; line-height: 1.6; }
#secondary-host .secondary-money { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; min-width: 0; color: #f3d39a; font-variant-numeric: tabular-nums; line-height: 1.4; overflow-wrap: anywhere; }
#secondary-host .secondary-money bdi { min-width: 0; font-size: 20px; font-weight: 600; }
#secondary-host .secondary-money small { color: #cfbfaa; font-size: 11px; font-weight: 450; }
#secondary-host .secondary-card > .secondary-money bdi { font-size: 28px; }
#secondary-host .secondary-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(177, 149, 107, .19);
  border-radius: 5px;
  background: rgba(177, 149, 107, .08);
  color: #d4c6b0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#secondary-host .secondary-tag[data-tone='selected'],
#secondary-host .secondary-tag[data-tone='pending'] { color: #f0d19b; border-color: rgba(213, 179, 111, .28); background: rgba(213, 179, 111, .09); }
#secondary-host .secondary-tag[data-tone='success'] { color: #c4d4bd; border-color: rgba(151, 175, 132, .3); background: rgba(151, 175, 132, .07); }
#secondary-host .secondary-tag[data-tone='danger'],
#secondary-host .secondary-tag[data-tone='error'] { color: #e0b3a9; border-color: rgba(190, 126, 110, .3); background: rgba(190, 126, 110, .07); }

#secondary-host .secondary-list { display: grid; gap: 0; min-width: 0; }
#secondary-host .secondary-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 5px 14px;
  min-width: 0;
  padding: 16px 0;
  color: var(--secondary-copy);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#secondary-host .secondary-record:first-child { padding-top: 0; }
#secondary-host .secondary-record:last-child { padding-bottom: 0; }
#secondary-host .secondary-record + .secondary-record { border-top: 1px solid rgba(177, 149, 107, .12); }
#secondary-host .secondary-record > :is(strong, h3) { font-size: 14px; font-weight: 500; }
#secondary-host .secondary-record :is(small, .secondary-record-meta) { color: var(--secondary-dim); font-size: 12px; line-height: 1.6; }
#secondary-host .secondary-record .secondary-record-delta { color: #e3c58e; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
#secondary-host .secondary-record > .secondary-button { grid-column: 1 / -1; margin-top: 7px; }
#secondary-host .secondary-record button { min-width: 0; }
#secondary-host .secondary-record > .secondary-value { font-size: 16px; line-height: 1.5; letter-spacing: 0; }
#secondary-host .secondary-list:has(> .secondary-card) { gap: 12px; }
#secondary-host .secondary-card.secondary-record { padding: 16px; border-top-color: transparent; }

#secondary-host .secondary-state {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 11px;
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid rgba(177, 149, 107, .2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(31, 28, 24, .65), rgba(15, 15, 14, .8));
  overflow-wrap: anywhere;
}
#secondary-host .secondary-state h2 { font-size: 16px; font-weight: 600; line-height: 1.5; }
#secondary-host .secondary-state p { color: var(--secondary-dim); font-size: 14px; line-height: 1.65; }
#secondary-host .secondary-state .secondary-button { width: auto; min-width: 120px; margin-top: 3px; }
#secondary-host .secondary-card .secondary-state { padding: 0; border: 0; border-radius: 0; background: none; }
#secondary-host .secondary-skeleton {
  display: block;
  min-height: 16px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: rgba(184, 162, 128, .09);
  animation: secondary-loading 1.8s ease-in-out infinite;
}
#secondary-host .secondary-skeleton + .secondary-skeleton { margin-top: 10px; width: 68%; }
#secondary-host .secondary-skeleton.is-value { width: 54%; height: 34px; margin-top: 2px; }
#secondary-host .secondary-address { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(177, 149, 107, .16); border-radius: 10px; background: rgba(0, 0, 0, .2); }
#secondary-host .secondary-address :is(code, bdi) {
  display: block;
  min-width: 0;
  max-width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  color: #eee6d7;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: start;
  -webkit-user-select: text;
  user-select: text;
}
#secondary-host .secondary-copy { justify-self: start; min-height: 44px; }
#secondary-host .secondary-session-id { min-width: 0; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; word-break: break-word; user-select: text; }
#secondary-host .secondary-account-entry {
  justify-self: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: #d9bf91;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
#secondary-host .secondary-account-entry:active { color: #f5d8a6; }
#secondary-host .secondary-account-entry:focus-visible { outline: 2px solid #e8c996; outline-offset: 2px; border-radius: 4px; }
#secondary-host .secondary-divider { width: 100%; height: 1px; border: 0; margin: 3px 0; background: rgba(177, 149, 107, .14); }

#secondary-host .secondary-footer {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  gap: 10px;
  padding: 14px var(--secondary-space) calc(14px + var(--secondary-safe-bottom));
  border-top: 1px solid rgba(177, 149, 107, .14);
  background: rgba(22, 20, 18, .94);
  box-shadow: 0 -5px 18px rgba(0, 0, 0, .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
#secondary-host .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 16px;
  border: 1px solid rgba(177, 149, 107, .5);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(33, 29, 23, .85), rgba(14, 14, 13, .94));
  color: #e6c792;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  white-space: normal;
  transition: background-color 140ms, border-color 140ms, color 140ms;
}
#secondary-host .secondary-button.is-primary {
  border-color: #d3a452;
  background: linear-gradient(115deg, #f8be64 0%, #e4b163 37%, #efad46 70%, #ac7520 100%);
  box-shadow: inset 0 1px rgba(255, 244, 218, .32);
  color: #261c0f;
  font-weight: 600;
}
#secondary-host .secondary-button.is-quiet { border-color: rgba(177, 149, 107, .28); background: rgba(0, 0, 0, .12); color: #d9c9ae; }
#secondary-host .secondary-button.is-text { width: auto; min-height: 44px; padding: 9px 0; border-color: transparent; border-radius: 5px; background: transparent; box-shadow: none; color: #e8c996; text-decoration: underline; text-underline-offset: 3px; }
#secondary-host .secondary-button.is-danger { border-color: rgba(190, 126, 110, .44); background: rgba(116, 60, 44, .12); color: #e8b9ac; }
#secondary-host .secondary-button:active:not(:disabled) { border-color: #f8be64; background: #30271a; color: #f5d8a6; }
#secondary-host .secondary-button.is-primary:active:not(:disabled) { background: linear-gradient(115deg, #e4ad54, #b7812e); color: #261c0f; }
#secondary-host .secondary-button.is-text:active:not(:disabled) { background: transparent; }

#secondary-host .secondary-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: flex-end;
  min-height: 0;
  padding-top: calc(16px + var(--secondary-safe-top));
  background: rgba(0, 0, 0, .66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: auto;
}
#secondary-host .secondary-overlay.is-entering { animation: secondary-overlay-in 140ms ease-out both; }
#secondary-host .secondary-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 84dvh;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(177, 149, 107, .32);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(145deg, #211e19, #121211 70%);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 235, 198, .035);
  color: var(--secondary-copy);
}
#secondary-host .secondary-sheet.is-entering { animation: secondary-sheet-in 180ms ease-out both; }
#secondary-host .secondary-sheet-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(177, 149, 107, .1);
}
#secondary-host .secondary-sheet-header h2 { min-width: 0; font-size: 18px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
#secondary-host .secondary-sheet-header .secondary-icon-button { width: 44px; height: 44px; margin-inline-end: -8px; border-color: transparent; background: transparent; }
#secondary-host .secondary-sheet-body { display: grid; align-content: start; grid-auto-rows: max-content; gap: 16px; min-height: 0; padding: 20px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#secondary-host .secondary-sheet-body > p { color: #d0c5b6; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
#secondary-host .secondary-sheet-actions { flex: none; display: grid; gap: 10px; padding: 12px 20px calc(20px + var(--secondary-safe-bottom)); border-top: 1px solid rgba(177, 149, 107, .1); }
#secondary-host .secondary-message {
  position: absolute;
  z-index: 5;
  inset-inline: var(--secondary-space);
  bottom: var(--secondary-message-bottom, calc(var(--nav-clearance, 88px) + 10px));
  width: auto;
  padding: 12px 14px;
  border: 1px solid rgba(177, 149, 107, .4);
  border-radius: 10px;
  background: rgba(31, 27, 22, .97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  color: #f3e4cc;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  pointer-events: auto;
  animation: secondary-overlay-in 140ms ease-out both;
}
#secondary-host:has(.secondary-page) .secondary-message { --secondary-message-bottom: calc(104px + var(--secondary-safe-bottom)); }

/* The persistent live region sits beside the host, so page redraws cannot
   remove it. A content-page toast uses the space below the header instead of
   guessing the height of a footer whose actions may wrap in another language. */
#secondary-message.secondary-message {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(var(--nav-clearance, calc(88px + env(safe-area-inset-bottom, 0px))) + 10px);
  width: calc(100% - 32px);
  max-width: 398px;
  margin: 0;
  padding: 12px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(177, 149, 107, .4);
  border-radius: 10px;
  background: rgba(31, 27, 22, .97);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  color: #f3e4cc;
  font-family: 'Inter Theater Light', Inter, 'Microsoft JhengHei', Arial, sans-serif;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.6;
  text-align: start;
  overflow-wrap: anywhere;
  pointer-events: none;
  animation: secondary-overlay-in 140ms ease-out both;
}
#secondary-message.secondary-message[hidden] { display: none; }
#secondary-message.secondary-message:lang(ar) { font-family: Tahoma, Arial, sans-serif; letter-spacing: 0; }
body:has(#secondary-host:not([hidden]) .secondary-page) #secondary-message.secondary-message {
  top: calc(78px + env(safe-area-inset-top, 0px));
  bottom: auto;
}
@media (prefers-reduced-motion: reduce) {
  #secondary-message.secondary-message { animation: none; transition: none; }
}

@media (hover: hover) {
  #secondary-host .secondary-icon-button:hover:not(:disabled):not(:focus-visible) { background: rgba(177, 149, 107, .1); border-color: rgba(177, 149, 107, .4); }
  #secondary-host button.secondary-row:hover:not(:disabled):not(:focus-visible) { background-color: rgba(177, 149, 107, .055); }
  #secondary-host .secondary-option:hover:not(:disabled):not(:focus-visible):not([aria-checked='true']) { border-color: rgba(177, 149, 107, .5); }
  #secondary-host .secondary-button:hover:not(:disabled):not(:focus-visible) { border-color: rgba(231, 189, 117, .75); }
}

@media (max-width: 350px) {
  #secondary-host { --secondary-space: 12px; }
  #secondary-host .secondary-body { gap: 20px; padding-top: 20px; }
  #secondary-host .secondary-card,
  #secondary-host .secondary-option { padding: 14px; }
  #secondary-host .secondary-row { gap: 6px 12px; padding-inline: 14px; }
  #secondary-host .secondary-state { padding: 18px 14px; }
  #secondary-host .secondary-sheet-header { padding-inline: 16px; }
  #secondary-host .secondary-sheet-body { padding: 16px; }
  #secondary-host .secondary-sheet-actions { padding-inline: 16px; }
  #secondary-host .secondary-record { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 5px 10px; }
}

@media (max-height: 640px) {
  #secondary-host .secondary-body { gap: 20px; padding-top: 18px; padding-bottom: calc(20px + var(--secondary-safe-bottom)); }
  #secondary-host .secondary-header { min-height: calc(58px + var(--secondary-safe-top)); padding-bottom: 6px; }
  #secondary-host .secondary-footer { padding-top: 10px; padding-bottom: calc(10px + var(--secondary-safe-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  #secondary-host *, #secondary-host *::before, #secondary-host *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes secondary-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes secondary-sheet-in { from { transform: translateY(12px); } to { transform: translateY(0); } }
@keyframes secondary-loading { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
.mine-cash-wallet-entry { display: flex; justify-content: flex-end; padding: 8px 18px; }
.secondary-receipt-hash { display: block; overflow-wrap: anywhere; font-size: 11px; color: #929292; }
.secondary-funding .secondary-row strong { color: #f4c96b; }
