/* ═══════════════════════════════════════════════════════════════════════
   SKYRISS AI — accounts · free trial · credits (AI Trading Signal × Riyadex)
   Same tokens as styles.css: near-black ink, rose accent, Space Grotesk / Inter / JetBrains Mono.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── landing bar: sign in / account ───────────────────────────────────── */
.gate-acct { padding: 10px 14px 10px 10px; gap: 9px; font-size: 11px; }
.gate-acct__av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--disp); background: var(--green); color: var(--ink); }

/* ── rail: account avatar ─────────────────────────────────────────────── */
.rail__av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--disp); background: var(--green); color: var(--ink); }
.rail__acct.guest .rail__av { background: var(--ink-3); color: var(--txt-3); border: 1px solid var(--line-2); }

/* ── HUD: add funds · credits pill · sign out · answer depth — big, bright, labelled ── */
.hud__right { gap: 10px; }
.depth { display: flex; align-items: center; gap: 8px; }
.depth__lbl { font-size: 10px; letter-spacing: .22em; color: var(--txt-2); }
.hud .seg { border-color: rgba(233,199,191,.35); }
.hud .seg button { font-size: 11.5px; letter-spacing: .16em; padding: 9px 14px; color: var(--txt); font-weight: 600; }
.hud .seg button:not(.on):hover { background: var(--ink-3); }
.hud__link { color: var(--txt-2); font-size: 11px; }
.hud__btn { color: var(--txt-2); }
.funds-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px 0 12px; border-radius: 3px;
  background: linear-gradient(100deg, #874233, #d8948b 30%, #9b5848 52%, #e8a2a0 78%, #874233); color: #fff;
  font-family: var(--disp); font-weight: 700; letter-spacing: .14em; font-size: 12px; text-shadow: 0 1px 2px rgba(60,15,8,.55);
  box-shadow: 0 0 0 rgba(232,162,160,0); animation: fundsGlow 2.6s ease-in-out infinite; transition: transform .2s var(--ease);
}
.funds-btn:hover { transform: translateY(-1px); }
.funds-btn:disabled { opacity: .6; cursor: wait; animation: none; }
.funds-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.funds-btn__txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; white-space: nowrap; }
.funds-btn__txt i { font-style: normal; font-size: 8.5px; letter-spacing: .22em; opacity: .95; }
@keyframes fundsGlow { 0%,100% { box-shadow: 0 0 0 rgba(232,162,160,.0); } 50% { box-shadow: 0 0 22px var(--green-glow); } }

.access-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 3px;
  border: 1px solid rgba(233,199,191,.45); background: var(--ink-2); color: var(--txt); font-size: 12px; font-weight: 700; letter-spacing: .14em; transition: .25s; white-space: nowrap;
}
.access-pill__short { display: none; }
.access-pill svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; }
.access-pill:hover { border-color: var(--green); }
.access-pill.low { border-color: rgba(255,77,94,.55); color: #ffb3bb; }
.access-pill.low svg { stroke: var(--red); }
.hud-signup { height: 38px; padding: 0 18px; font-size: 12px; letter-spacing: .16em; }
.signout-top { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--txt-2); font-size: 11px; font-weight: 600; letter-spacing: .16em; transition: .25s; }
.signout-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.signout-top:hover { color: #ff8a93; border-color: rgba(255,77,94,.6); background: rgba(255,77,94,.08); }

/* ── sessions panel: search + account row ────────────────────────────── */
.panel__search { display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; padding: 0 10px; height: 38px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--ink-2); }
.panel__search svg { width: 14px; height: 14px; fill: none; stroke: var(--txt-3); stroke-width: 1.7; stroke-linecap: round; flex: 0 0 auto; }
.panel__search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--txt); font: 13px var(--body); outline: none; }
.panel__search input::placeholder { color: var(--txt-3); }
.chat-item__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-item__time { font: 10px var(--mono); letter-spacing: .06em; color: var(--txt-3); }
.chat-item__more { color: var(--txt-3); opacity: 0; transition: .2s; padding: 4px; border-radius: 4px; }
.chat-item__more svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.chat-item:hover .chat-item__more, .chat-item.active .chat-item__more { opacity: 1; }
.chat-item__more:hover { color: var(--green); background: var(--green-soft); }
@media (hover: none) { .chat-item__more { opacity: 1; } }
.chat-menu { position: fixed; z-index: 200; min-width: 160px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.chat-menu button { text-align: left; padding: 9px 12px; border-radius: 4px; font-size: 13px; color: var(--txt-2); }
.chat-menu button:hover { background: var(--ink-3); color: var(--txt); }
.chat-menu button.danger { color: #ff8a93; }

.panel__acct { border-top: 1px solid var(--line); padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.signout-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--txt-2); font: 600 11px var(--disp); letter-spacing: .18em; transition: .25s; }
.signout-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.signout-btn:hover { border-color: rgba(255,77,94,.6); color: #ff8a93; background: rgba(255,77,94,.06); }
.acct-chip { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; text-align: left; transition: .25s; }
.acct-chip:hover { border-color: var(--green); }
.acct-chip__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--ink); font: 700 13px var(--disp); flex: 0 0 32px; }
.acct-chip__meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.acct-chip__meta b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt); }
.acct-chip__meta i { font-style: normal; font-size: 11px; color: var(--txt-3); }
.acct-chip__badge { font-size: 10px; color: var(--green); border: 1px solid rgba(232,162,160,.4); background: var(--green-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.acct-chip__badge:empty { display: none; }

/* ── modals ───────────────────────────────────────────────────────────── */
.amodal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(11,7,6,.78); backdrop-filter: blur(6px); }
.amodal__card { position: relative; width: min(520px, 100%); max-height: 92vh; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 90px rgba(0,0,0,.7); overflow: hidden; }
.amodal__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: var(--txt-3); border-radius: 4px; z-index: 2; }
.amodal__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.amodal__x:hover { color: var(--txt); background: var(--ink-3); }
.amodal__x--inline { position: static; }
.amodal__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line); }
.amodal__head > b { flex: 1; font-size: 11px; letter-spacing: .3em; }
.amodal__body { padding: 18px 20px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }

/* auth card */
.auth__card { padding: 26px 26px 22px; overflow-y: auto; }
.cobrand { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; letter-spacing: .3em; color: var(--txt-2); margin-bottom: 20px; }
.cobrand__a b { color: var(--green); font-weight: 700; }
.cobrand__b { color: var(--green); font-weight: 700; }
.cobrand__x { color: var(--txt-3); font-family: var(--disp); font-size: 14px; letter-spacing: 0; }
.auth__title { font-family: var(--disp); font-size: 20px; letter-spacing: .06em; margin: 0 0 8px; color: var(--txt); text-align: center; }
.auth__msg { font-size: 13.5px; line-height: 1.6; color: var(--txt-2); text-align: center; margin: 0 0 18px; }
.auth__form { display: flex; flex-direction: column; gap: 12px; }
.auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.afield { display: flex; flex-direction: column; gap: 6px; }
.afield > span { font: 600 10px var(--mono); letter-spacing: .18em; color: var(--txt-3); }
.afield input, .afield select { height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--ink); color: var(--txt); font: 14px var(--body); outline: none; transition: border-color .2s; width: 100%; }
.afield input:focus, .afield select:focus { border-color: var(--green); }
.afield select { appearance: auto; }
.acheck { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--txt-2); }
.acheck input { margin-top: 3px; accent-color: var(--green); }
.acheck a, .auth__fine a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.auth__err { margin: 0; padding: 10px 12px; border: 1px solid rgba(255,77,94,.4); background: rgba(255,77,94,.08); color: #ffb3bb; border-radius: 4px; font-size: 13px; }
.auth__notice { margin: 0 0 16px; padding: 12px 14px; border: 1px solid rgba(232,162,160,.4); background: var(--green-soft); color: var(--txt); border-radius: 4px; font-size: 13px; line-height: 1.5; }
.auth__form .btn { width: 100%; justify-content: center; height: 46px; }
.auth__stack { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 16px; }
.auth__stack .btn { width: 100%; justify-content: center; height: 48px; }
.auth__fine { font-size: 12px; color: var(--txt-3); text-align: center; margin: 16px 0 0; line-height: 1.6; }
.otp-input { height: 60px; text-align: center; font-size: 28px; letter-spacing: .5em; border: 1px solid var(--line-2); border-radius: 6px; background: var(--ink); color: var(--txt); outline: none; width: 100%; }
.otp-input:focus { border-color: var(--green); }
.auth__busy { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0 16px; color: var(--txt-2); font-size: 11px; letter-spacing: .2em; }
.auth__busy .thinking__ring { width: 36px; height: 36px; border: 2px solid var(--line-2); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.amodal.locked .amodal__x { display: none; }

/* account panel */
.acct__card { width: min(600px, 100%); }
.acct__hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 8px; background: var(--ink); border: 1px solid var(--line-2); }
.acct__big { font: 700 40px/1 var(--disp); color: var(--green); }
.acct__big small { font: 600 12px var(--body); color: var(--txt-2); margin-left: 8px; }
.acct__mini { font-size: 12px; color: var(--txt-3); line-height: 1.6; }
.acct__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.acct__actions .btn { height: 40px; padding: 0 16px; font-size: 11px; }
.acct__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.acct__stat { padding: 12px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line); }
.acct__stat b { display: block; font: 700 18px var(--disp); color: var(--txt); }
.acct__stat i { font-style: normal; font-size: 11px; color: var(--txt-3); }
.acct__stat.debt b { color: #ff8a93; }
.acct__prog { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 6px; background: var(--ink); border: 1px solid var(--line); font-size: 12.5px; color: var(--txt-2); }
.acct__prog b { color: var(--txt); }
.acct__prog .bar { height: 6px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.acct__prog .bar i { display: block; height: 100%; background: linear-gradient(90deg, #9b5848, #e8a2a0); }
.acct__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--ink); }
.acct__link .logo { font: 700 11px var(--mono); letter-spacing: .3em; color: var(--green); flex: 0 0 auto; }
.acct__link .m { flex: 1; min-width: 0; font-size: 12.5px; color: var(--txt-2); line-height: 1.5; word-break: break-word; }
.acct__link .m b { color: var(--txt); display: block; }
.acct__link .ok { color: #7fe0a8; font-weight: 600; font-size: 12px; }
.acct__link .warn { color: #ffb86b; font-weight: 600; font-size: 12px; }
.acct__linkform { display: none; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 6px; border: 1px dashed var(--line-2); }
.acct__linkform.on { display: flex; }
.acct__linkform .btn { height: 42px; }
.acct__h { font: 600 10px var(--mono); letter-spacing: .3em; color: var(--txt-3); margin-top: 4px; }
.acct__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.acct__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; font-size: 13px; color: var(--txt-2); background: var(--ink); border-bottom: 1px solid var(--line); }
.acct__row:last-child { border-bottom: 0; }
.acct__row .r small { display: block; font-size: 11px; color: var(--txt-3); }
.acct__row .n { font: 700 13px var(--mono); }
.acct__row .n.plus { color: #7fe0a8; } .acct__row .n.use { color: var(--txt); } .acct__row .n.minus { color: #ff8a93; }
.acct__explain { font-size: 12px; line-height: 1.65; color: var(--txt-3); padding: 12px 14px; border: 1px dashed var(--line); border-radius: 6px; }
.acct__explain b { color: var(--txt-2); }
.acct__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── phones ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .gate-acct span:last-child { display: none; }
  .gate-acct { padding: 8px; }
  .hud__right { gap: 6px; }
  .funds-btn { height: 34px; padding: 0 10px 0 8px; }
  .funds-btn__txt i { display: none; }
  .access-pill { padding: 0 9px; }
  .access-pill span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .signout-top { display: none; }
  .hud-signup { height: 36px; padding: 0 12px; font-size: 11px; }
  .depth__lbl { display: none; }
  .hud .seg button { padding: 8px 10px; font-size: 10.5px; }
  .funds-btn { height: 36px; font-size: 11px; }
  .access-pill { height: 36px; font-size: 11px; }
  .amodal { place-items: stretch; padding: 0; }
  .amodal__card, .auth__card { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; padding-top: max(14px, env(safe-area-inset-top)); }
  .auth__card { padding: 18px 16px 24px; }
  .auth__row, .auth__row--phone { grid-template-columns: 1fr; }
  .afield input, .afield select { height: 46px; font-size: 16px; }
  .amodal__body { flex: 1 1 auto; padding: 16px 16px 40px; }
  .acct__hero { flex-direction: column; align-items: flex-start; }
  .acct__actions { margin-left: 0; width: 100%; }
  .acct__actions .btn { flex: 1; height: 44px; justify-content: center; }
  .acct__grid { grid-template-columns: repeat(2, 1fr); }
  .acct__link { flex-direction: column; align-items: stretch; }
  .acct__link .btn { width: 100%; justify-content: center; }
  .acct__linkform .btn { width: 100%; justify-content: center; }
  .acct__foot { flex-direction: column; align-items: flex-start; }
}

/* ── password eye ─────────────────────────────────────────────────────── */
.pwwrap { position: relative; display: block; }
.pwwrap input { padding-right: 46px; }
.pweye { position: absolute; top: 0; right: 0; width: 44px; height: 100%; display: grid; place-items: center; color: var(--txt-3); border-radius: 0 4px 4px 0; }
.pweye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pweye:hover { color: var(--txt); }
.pweye .pweye__hide { display: none; }
.pweye.on .pweye__show { display: none; }
.pweye.on .pweye__hide { display: block; }

/* ── country picker ───────────────────────────────────────────────────── */
.cpick { position: relative; }
.cpick__btn { width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--ink); color: var(--txt); font: 14px var(--body); text-align: left; transition: border-color .2s; }
.cpick__btn:hover, .cpick__btn[aria-expanded="true"] { border-color: var(--green); }
.cpick__btn > svg { width: 14px; height: 14px; fill: none; stroke: var(--txt-3); stroke-width: 1.8; stroke-linecap: round; margin-left: auto; flex: 0 0 auto; }
.cpick__flag { display: inline-flex; flex: 0 0 auto; }
.cpick__flag .flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); display: block; }
.cpick__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpick__dial { font-size: 12px; color: var(--txt-3); flex: 0 0 auto; }
.cpick__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.65); overflow: hidden; }
.cpick__searchwrap { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-bottom: 1px solid var(--line); }
.cpick__searchwrap svg { width: 14px; height: 14px; fill: none; stroke: var(--txt-3); stroke-width: 1.8; stroke-linecap: round; }
.cpick__search { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--txt); font: 14px var(--body); }
.cpick__search::placeholder { color: var(--txt-3); }
.cpick__list { max-height: 260px; overflow-y: auto; padding: 6px; }
.cpick__list [role=option] { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px; color: var(--txt-2); font: 13.5px var(--body); text-align: left; }
.cpick__list [role=option]:hover { background: var(--ink-3); color: var(--txt); }
.cpick__list [role=option][aria-selected="true"] { background: var(--green-soft); color: var(--green); }
.cpick__list [role=option] .cpick__name { color: inherit; }
.cpick__empty { padding: 14px 12px; font-size: 13px; color: var(--txt-3); }
@media (max-width: 720px) {
  .cpick__btn { height: 46px; font-size: 16px; }
  .cpick__search { font-size: 16px; }
  .cpick__list { max-height: 44vh; }
}

/* ═══════════════════════════ PHONES: terminal layout ═══════════════════════════
   The side rail becomes a bottom tab bar, the header keeps only what matters
   (title · SIGN UP / ADD FUNDS · credits), the composer sits above the bar.      */
@media (max-width: 720px) {
  :root { --rail-w: 0px; --tabbar-h: calc(58px + env(safe-area-inset-bottom)); }
  #terminal { flex-direction: column; }
  .term { margin-left: 0; padding-bottom: var(--tabbar-h); }

  /* bottom tab bar */
  .rail {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: var(--tabbar-h);
    flex-direction: row; align-items: center; justify-content: space-around; gap: 0;
    padding: 0 6px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line-2);
    background: rgba(18,12,10,.96); backdrop-filter: blur(10px); z-index: 60;
  }
  .rail__logo { display: none; }
  .rail__spacer { display: none; }
  .rail__group { flex-direction: row; gap: 0; display: contents; }
  .rail__btn { width: 48px; height: 48px; border-radius: 10px; color: var(--txt-2); }
  .rail__btn svg { width: 22px; height: 22px; }
  .rail__btn.active { box-shadow: inset 0 -2px 0 var(--green); }
  .rail__av { width: 28px; height: 28px; font-size: 13px; }

  /* header: one clean row */
  .hud { height: 54px; padding: 0 10px 0 14px; gap: 8px; }
  .hud__left { flex: 1 1 auto; min-width: 0; }
  .hud__title { font-size: 12px; letter-spacing: .06em; }
  .hud__right { gap: 6px; flex: 0 0 auto; }
  #exportBtn, .hud__link, .depth, .signout-top { display: none; }
  .hud-signup { height: 36px; padding: 0 12px; font-size: 11px; letter-spacing: .12em; white-space: nowrap; }
  .funds-btn { height: 36px; padding: 0 10px 0 8px; font-size: 11px; gap: 6px; }
  .funds-btn__txt i { display: none; }
  .access-pill { height: 36px; padding: 0 10px; font-size: 11px; gap: 6px; }
  .access-pill svg { width: 14px; height: 14px; }
  .access-pill__long { display: none; }
  .access-pill__short { display: inline; }

  /* panels slide over the whole screen, above the tab bar */
  .panel { left: 0; width: 100%; max-width: 100vw; z-index: 70; }
  .panel--left { left: 0; }
  .panel__body { padding-bottom: 12px; }
  .panel__acct { padding-bottom: calc(12px + var(--tabbar-h)); }
  #panelScrim { z-index: 65; }

  /* composer: breathing room, send always reachable */
  .deck { padding: 6px 10px 10px; }
  .composer { padding: 6px 6px 6px 8px; gap: 4px; }
  .tool { width: 36px; height: 36px; }
  #screenBtn { display: none; }                 /* screen share is desktop-only — free the space for typing */
  #input { font-size: 16px; padding: 8px 4px; }
  .send { width: 42px; height: 42px; }
  .deck__hint { display: none; }

  /* welcome screen */
  .welcome { padding: 6vh 18px 20px; }
  .welcome__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .welcome__chips .chip { justify-content: center; padding: 11px 10px; font-size: 9.5px; line-height: 1.3; white-space: normal; text-align: center; min-width: 0; }
  .welcome__chips .chip svg { flex: 0 0 auto; }

  /* floating bits stay above the tab bar */
  .dock { bottom: calc(var(--tabbar-h) + 86px); }
  #toasts { bottom: calc(var(--tabbar-h) + 12px); left: 12px; right: 12px; transform: none; align-items: stretch; }
  .callbar, #callBar { bottom: calc(var(--tabbar-h) + 8px); }
  .amodal { z-index: 120; }
}
@media (max-width: 360px) {
  .hud { padding: 0 8px 0 10px; }
  .hud-signup { padding: 0 10px; font-size: 10px; }
  .funds-btn { font-size: 10px; padding: 0 8px; }
  .access-pill { padding: 0 8px; font-size: 10px; }
}
