/* Palit Preview (2026-10-26-v1a): Palit Wallet v1.0A's side panel, one-bar header and pages, so the
   Preview (the customer version to test) looks like v1.0A. app.css still styles Talk, the sign-in and
   setup screens, dialogs and fields; this file only adds. The pages part is v1.0A's app/v1a.css
   (marked below); the side panel and header parts come from v1.0A's app.css (2026-10-25-redesign,
   2026-10-26-plantag, -pencil, -fullbleed and -onebar). No Simulator here: Palit's keys are set from
   v1.0A. Revert: delete this file and restore index.html, app.js and app.css from the 6:05 PM copy. */

/* ---------- full-bleed main area (v1.0A 2026-10-26-fullbleed) ---------- */
.main { flex-direction: column; padding: 0; }
.work { flex: 1; min-height: 0; min-width: 0; display: flex; }
.stage { border: 0; border-radius: 0; }

/* ---------- the left panel: logo, plan tag, hide button, foot (v1.0A) ---------- */
.brand { justify-content: space-between; }
.brand-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.plan-tag { height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255,122,246,.45); background: rgba(255,122,246,.10); color: var(--pink); font-size: 11px; font-weight: 600; letter-spacing: .04em; line-height: 1; display: inline-flex; align-items: center; cursor: pointer; flex: none; }
.plan-tag:hover { background: rgba(255,122,246,.20); }
.plan-tag[data-plan="free"] { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: var(--text-2); }
.plan-tag[data-plan="basic"] { border-color: rgba(255,194,122,.45); background: rgba(255,194,122,.10); color: var(--amber); }
.side-toggle { width: 34px; height: 34px; border-radius: 10px; border: none; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.side-toggle:hover { background: rgba(255,255,255,.07); color: var(--text); }
.side-toggle .icon { width: 18px; height: 18px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; }
.side-status-wrap { border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.03); display: flex; flex-direction: column; overflow: hidden; }
.side-status-wrap .side-status { margin-top: 0; border: none; border-radius: 0; background: transparent; width: 100%; }
.side-status-wrap:has(.side-status.warn) { border-color: rgba(255,194,122,.32); }
.side-foot .acct-pill { margin-top: 0; }
/* The foot of the left panel (Joshua, Oct 27, 12:16 AM), as in Palit Wallet v1.0A: the plan's status, or
   the cards waiting for your OK, and the account are a full-width section with a line above it instead
   of a floating card. It stays at the bottom of the panel and the list scrolls behind it. Narrow windows
   keep their top bar (the rules at the end). */
@media (min-width: 901px) {
  .side { padding-bottom: 0; } /* the section is the panel's bottom edge, so nothing shows under it */
  .side-foot { flex: none; position: sticky; bottom: 0; z-index: 4; margin: auto -16px 0; padding: 12px 16px 14px; gap: 10px; border-top: 1px solid rgba(255,255,255,.09); background: rgba(9,9,11,.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); max-height: 62vh; overflow-y: auto; scrollbar-width: none; } /* on a short window, two waiting cards scroll inside it */
  .side-foot:has(.side-status.warn) { border-top-color: rgba(255,194,122,.4); }
  .side-foot .side-status-wrap { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .side-foot .side-status { width: calc(100% + 16px); margin: 0 -8px; padding: 6px 8px; border-radius: 12px; }
  .side-foot .side-status:hover { background: rgba(255,255,255,.05); }
}
.nav-item .badge { margin-left: auto; }
/* A Pal's status line: magenta blinking = on a call, yellow blinking = working, green = ready. */
.pal-row .st { display: flex; align-items: center; gap: 6px; }
.pal-row .st-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-row .sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pal-row .sdot.ready { background: #3DDC84; }
.pal-row .sdot.work { background: #FFD43B; animation: sdotBlink 1.6s ease-in-out infinite; }
.pal-row .sdot.call { background: var(--magenta); animation: sdotBlink 1.6s ease-in-out infinite; }
@keyframes sdotBlink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pal-row .sdot { animation: none !important; } }

/* Compact approval cards (the left panel) */
.side-cards { display: flex; flex-direction: column; gap: 8px; }
.sc-hd { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 2px; }
.sc-all, .sc-more { border: none; background: none; padding: 0; font-size: 12.5px; color: var(--muted); }
.sc-all:hover, .sc-more:hover { color: var(--text); }
.sc-more { align-self: flex-start; padding: 0 4px; color: var(--pink); }
.okm { border: 1px solid rgba(255,107,245,.55); border-radius: 18px; background: linear-gradient(180deg, rgba(241,0,235,.13), rgba(241,0,235,.05)); padding: 12px 13px; display: flex; flex-direction: column; gap: 7px; animation: hzIn .3s ease both; text-align: left; }
.okm.done { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.okm-who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); min-width: 0; }
.okm-cat { color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.okm-ago { margin-left: auto; color: var(--muted-2); font-size: 11.5px; white-space: nowrap; }
.okm-title { font-size: 14.5px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; word-wrap: break-word; }
.okm-detail { font-size: 12px; line-height: 1.45; color: #CFC4D0; background: rgba(0,0,0,.35); border-radius: 10px; padding: 6px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.okm-out { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.okm-btns { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.okm-more { margin-left: auto; border: none; background: none; padding: 0; font-size: 12.5px; color: var(--pink); }
.pbtn { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); background: transparent; color: var(--text); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.pbtn:hover { background: rgba(255,255,255,.08); }
.pbtn.white { background: var(--white-btn); color: var(--ink); border: none; font-weight: 600; }
.pbtn.white:hover { background: #fff; }
.pbtn .icon { width: 15px; height: 15px; }

/* ---------- the slim bar while the left panel is hidden (v1.0A) ---------- */
.app.side-hidden .side { display: none; }
.tb-btn { height: 36px; min-width: 36px; padding: 0 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.tb-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.tb-btn .icon { width: 18px; height: 18px; }
.tb-btn .badge, .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tb-logo { height: 22px; width: auto; opacity: .9; }
.tb-spacer { flex: 1; }
.tb-okwrap { position: relative; }

/* ---------- one bar: the Pal header (v1.0A 2026-10-26-onebar and -pencil) ---------- */
.stage-head { container-type: inline-size; container-name: head; }
.head-who { flex: 1 1 auto; min-width: 48px; overflow: hidden; }
.head-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-actions { flex: 0 1 auto; min-width: 0; }
.stage-head .topbar { flex: none; display: flex; align-items: center; height: auto; margin: 0; padding: 0; border: 0; gap: 8px; }
.stage-head .topbar .plan-tag { margin-left: -2px; }
.stage-head .tb-div { width: 1px; height: 28px; margin: 0 4px 0 6px; background: rgba(255,255,255,.10); }
.app:not(.side-hidden) .stage-head .tb-okwrap { display: none; } /* the side panel has its own Approvals */
.app .stage-head .seg button { width: 40px; padding: 0; gap: 0; justify-content: center; }
.app .stage-head .seg button .icon { width: 17px; height: 17px; }
.app .stage-head .tb-ok { position: relative; width: 40px; height: 40px; min-width: 0; padding: 0; justify-content: center; border-radius: 999px; border-color: rgba(255,255,255,.14); background: transparent; }
.app .stage-head .tb-ok:hover { background: rgba(255,255,255,.07); }
.app .stage-head .tb-ok .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; box-shadow: 0 0 0 2px #050205; }
/* Stop (left of Voice/Chat, icon only), Today's brief and New chat (a pencil): round icon buttons. */
.app .stage-head .pill.stop, .app .stage-head #newBtn, .app .stage-head #briefBtn { width: 40px; height: 40px; padding: 0; gap: 0; margin: 0; justify-content: center; border-radius: 999px; }
.app .stage-head #newBtn, .app .stage-head #briefBtn { border-color: rgba(255,255,255,.14); }
.app .stage-head #newBtn .icon, .app .stage-head #briefBtn .icon { width: 17px; height: 17px; }
.app .stage-head .pill.stop .icon { width: 14px; height: 14px; color: var(--amber); fill: currentColor; stroke: none; }
.app .stage-head .pill.stop:hover { background: rgba(255,194,122,.10); }
/* "[orb] Pal ● Ready" on one line; the status ends in "…" when space runs out. */
.stage-head .head-who { display: flex; align-items: center; gap: 10px; }
.stage-head .head-name { flex: none; line-height: 1.2; }
.stage-head .head-status { flex: 0 100 auto; min-width: 0; line-height: 1.2; }
.stage-head .head-status .dot { flex: none; }
.stage-head #headStatusText { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-head .head-actions > * { flex: none; }
.stage-head .confirm { font-size: 13px; }
@media (max-width: 600px) { .stage-head { flex-wrap: nowrap; } .head-actions { width: auto; } }
@container head (max-width: 600px) { .app .stage-head .tb-logo { display: none; } .app .stage-head #briefBtn { display: none; } }
@container head (max-width: 500px) {
  .app .stage-head .seg button { width: 36px; }
  .app .stage-head .tb-ok, .app .stage-head .pill.stop, .app .stage-head #newBtn { width: 36px; height: 36px; }
}
@container head (max-width: 440px) {
  .app .stage-head .topbar .plan-tag, .app .stage-head .tb-div { display: none; }
  .app .stage-head .tb-btn#sideShow { height: 34px; min-width: 34px; padding: 0 7px; }
  .app .stage-head .seg button { width: 34px; }
  .app .stage-head .tb-ok, .app .stage-head .pill.stop, .app .stage-head #newBtn { width: 34px; height: 34px; }
}
/* The message box: [message ... send] [call]. Send sits inside the box at its right end. */
.input-wrap .cbtn.send { width: 40px; height: 40px; align-self: flex-end; margin: 0 7px 7px 0; }
.input-wrap .cbtn.send .icon { width: 18px; height: 18px; }
.input-wrap textarea { padding-right: 10px; }
/* 2026-10-29-leftscroll: the message box's scrollbar sits on the LEFT, slim and faint like the chat's.
   direction:rtl moves the bar left; unicode-bidi:plaintext + text-align:left keep text left-to-right.
   The margin keeps the bar off the rounded corners; padding shrinks by the same amount. */
.input-wrap textarea { direction: rtl; unicode-bidi: plaintext; text-align: left; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; margin: 8px 0 8px 8px; padding: 7px 10px 7px 14px; min-height: 38px; max-height: 184px; }
.input-wrap textarea::placeholder { text-align: left; }
.input-wrap textarea::-webkit-scrollbar { width: 6px; }
.input-wrap textarea::-webkit-scrollbar-track { background: transparent; }
.input-wrap textarea::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }
.input-wrap textarea::-webkit-scrollbar-button { display: none; }

/* ================================================================================================
   The pages: Palit Wallet v1.0A's app/v1a.css (2026-10-26-v1a), as it is there, except where marked.
   ================================================================================================ */
/* ---------- side panel ---------- */
.nav-thumb { width: 22px; height: 22px; margin: 0 -2px; flex: none; border-radius: 50%; overflow: hidden; display: inline-flex; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.nav-thumb img { width: 22px; height: 22px; display: block; object-fit: cover; }
.nav-item[aria-current="page"] .nav-thumb { box-shadow: 0 0 0 1px rgba(255,122,246,.8); }
.icon.icon-fill { fill: currentColor; stroke: none; }
.icon .icon-eyes { stroke-width: 2.6; }
.nav-soon { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.nav-div { display: block; height: 1px; background: rgba(255,255,255,.07); margin: 6px 6px; }
.pal-row.upsell { border: 1px dashed rgba(255,179,250,.28); }
.pal-row.upsell:hover { background: rgba(255,122,246,.06); }
.pal-row .up-ring { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1.5px dashed rgba(255,179,250,.6); color: var(--pink); display: inline-flex; align-items: center; justify-content: center; }
.pal-row .up-ring .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.pal-row.upsell .name { color: var(--pink-2); font-size: 14px; }

/* ---------- the page area ---------- */
.pages { position: relative; flex: 1; min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; background: var(--bg); scrollbar-width: thin; scrollbar-color: rgba(255,190,250,.2) transparent; }
.pages::-webkit-scrollbar { width: 12px; }
.pages::-webkit-scrollbar-thumb { background-color: rgba(255,190,250,.16); border: 4px solid transparent; border-radius: 999px; background-clip: padding-box; min-height: 48px; }
.pages::-webkit-scrollbar-thumb:hover { background-color: rgba(255,122,246,.45); }
.pg-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 52px; padding: 8px 16px; box-sizing: border-box; background: rgba(0,0,0,.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.07); }
.pg-topbar .tb-ok { position: relative; width: 40px; height: 40px; min-width: 0; padding: 0; justify-content: center; border-radius: 999px; border-color: rgba(255,255,255,.14); background: transparent; }
.pg-topbar .tb-ok:hover { background: rgba(255,255,255,.07); }
.pg-topbar .tb-ok .badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10.5px; box-shadow: 0 0 0 2px #000; }
.page { position: relative; min-height: 100%; }
.pg-body { display: flex; flex-direction: column; gap: 18px; }
.pg-body > .sect-title { margin: 8px 0 -8px; }
.pg-loading { padding: 40px 32px; color: var(--muted); }
.pg-wrap { max-width: 1280px; margin: 0 auto; padding: 32px 32px 56px; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; }
.pg-wrap.pg-narrow { max-width: 880px; }
.pg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.pg-h1 { margin: 6px 0 0; font-size: 36px; line-height: 1.08; font-weight: 500; letter-spacing: -0.03em; }
.pg-h1row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pg-h1row .pg-h1 { margin-top: 6px; }
.pg-sub { margin: 8px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); max-width: 680px; }
.pg-sh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pg-sh h2.kicker, h2.kicker { margin: 0; font-weight: 400; }
.kicker.light { color: #F1E6F2; }
:where(.page) .s { font-size: 13px; line-height: 1.45; color: var(--muted); }
:where(.page) .s.pad, .s.pad { padding: 14px 4px; }
:where(.page) .b { font-weight: 500; }
:where(.page) .mono { font-family: var(--mono); }
:where(.page) .up { color: #5CE6B8; }
:where(.page) .down { color: #FF8296; }
:where(.page) .flat { color: var(--muted); }
:where(.page) .lead { color: var(--text-2); }
.page .warn, .tw-card .warn { font-size: 13.5px; line-height: 1.45; color: var(--amber); }
.linkish.sm { font-size: 12.5px; }
.btn.hot { background: var(--magenta); color: var(--ink); border: none; font-weight: 600; border-radius: 14px; }
.btn.hot:hover { background: #FF33F7; }

/* Cards: the canvas's soft glass (.lg-soft) */
.card2 { position: relative; box-sizing: border-box; min-width: 0; border-radius: 22px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 12px; transition: border-color .2s ease; }
.card2.dashed { background: transparent; box-shadow: none; border: 1.5px dashed rgba(255,179,250,.35); justify-content: center; }
.card2.accent-pink::before, .card2.accent-violet::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px; }
.card2.accent-pink::before { background: linear-gradient(90deg, rgba(255,122,246,0), #FF7AF6, rgba(255,122,246,0)); }
.card2.accent-violet::before { background: linear-gradient(90deg, rgba(176,75,255,0), #B04BFF, rgba(176,75,255,0)); }
button.card2 { font: inherit; color: var(--text); text-align: left; cursor: pointer; }
button.card2:hover { border-color: rgba(255,255,255,.18); }
.card2 .b.big, .b.big { font-size: 20px; letter-spacing: -0.01em; }
.chip2 { height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); color: var(--text-2); white-space: nowrap; flex: none; }
.chip2 .cd { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip2.ok { background: rgba(92,230,184,.12); color: #5CE6B8; }
.chip2.warn { background: rgba(255,194,122,.12); color: var(--amber); }
.chip2.bad { background: rgba(255,110,133,.12); color: #FF8296; }
.chip2.live { height: 20px; padding: 0 8px; font-size: 11px; background: rgba(255,122,246,.12); color: var(--pink-2); }
.tag-mono { height: 24px; flex: none; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); font-size: 11px; color: var(--text-2); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; white-space: nowrap; }
.plus-ring { width: 40px; height: 40px; flex: none; box-sizing: border-box; border-radius: 50%; border: 1.5px dashed rgba(255,179,250,.6); color: var(--pink); display: flex; align-items: center; justify-content: center; }
.plus-ring .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.plus-ring.big { width: 56px; height: 56px; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: #E4DAE4; transition: background .2s ease; }
.icon-btn:hover { background: rgba(255,255,255,.07); }
.icon-btn .icon { width: 15px; height: 15px; }
.icon-btn.play { border-color: rgba(255,190,250,.35); color: var(--pink); }
.icon-btn.play .icon { fill: currentColor; stroke: none; }
.seg2 { box-sizing: border-box; padding: 4px; border-radius: 16px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); max-width: 100%; }
.seg2 button { min-height: 40px; border: none; border-radius: 12px; padding: 0 14px; color: #9D929D; background: transparent; font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.seg2 button:hover { color: var(--text); }
.seg2 button[aria-pressed="true"] { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.08) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 12px rgba(0,0,0,.3); }
.seg2.glass { border-color: rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.035) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 28px rgba(0,0,0,.32); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
.page .credit { font-size: 11px; color: var(--muted-2); padding: 6px 8px 0; } /* Preview: only on the pages (the brief dialog has its own) */
.coin { flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -3px 6px rgba(0,0,0,.18); }
.coin-stack { display: flex; flex: none; }
.coin-stack .coin { box-shadow: 0 0 0 2px #0b060b, inset 0 1px 0 rgba(255,255,255,.45); }
.coin-stack .coin + .coin { margin-left: -10px; }
.spark { display: block; flex: none; overflow: visible; }
.spark-line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spark.up .spark-line { stroke: #5CE6B8; }
.spark.down .spark-line { stroke: #FF8296; }
.spark.flat .spark-line { stroke: #B4A9B4; }
.spark-fill { stroke: none; }
.spark.up .spark-fill { fill: rgba(92,230,184,.12); }
.spark.down .spark-fill { fill: rgba(255,130,150,.12); }
.spark.flat .spark-fill { fill: rgba(180,169,180,.08); }
.meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.meter-row b { color: var(--text); font-weight: 500; }
.meter2 { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter2 i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #FF7AF6, #E01FD9); }
.meter2.amber i { background: var(--amber); }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.ticks .icon { width: 16px; height: 16px; margin-top: 1px; color: #5CE6B8; stroke-width: 2.2; }

/* ---------- the photo (Wallet and Portfolio) ---------- */
@keyframes n5Drift { from { transform: translate3d(-18px,0,0) scale(1.06); } to { transform: translate3d(18px,-5px,0) scale(1.06); } }
.ph { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ph-img, .ph-clouds { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-clouds { transform: scale(1.06); animation: n5Drift 13s ease-in-out infinite alternate; will-change: transform; }
.ph-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.2) 14%, rgba(0,0,0,.06) 26%, rgba(0,0,0,.1) 58%, rgba(0,0,0,.62) 76%, #000 95%); }
@media (prefers-reduced-motion: reduce) { .ph-clouds { animation: none; } }

/* ---------- Wallet ---------- */
.w-hero { position: relative; min-height: 470px; box-sizing: border-box; padding-bottom: 72px; overflow: hidden; }
.w-top { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 22px 32px 0; }
.w-hi { display: flex; align-items: center; gap: 12px; }
.w-me { width: 44px; height: 44px; flex: none; box-sizing: border-box; border-radius: 50%; padding: 2px; border: none; background: linear-gradient(135deg, rgba(255,255,255,.75), rgba(255,122,246,.65)); display: flex; }
.w-me img { width: 40px; height: 40px; display: block; border-radius: 50%; object-fit: cover; }
.w-hi-t { display: flex; flex-direction: column; gap: 1px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.w-hi-s { font-size: 12px; color: #E2D6E3; }
.w-hi-n { font-size: 17px; font-weight: 500; }
.w-tools { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ask-box, .w-bell { box-sizing: border-box; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.035) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.32); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
.ask-box { flex: 0 1 360px; min-width: 0; width: 360px; height: 44px; border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 16px; color: #E6DCE7; }
.ask-box:focus-within { border-color: rgba(255,122,246,.6); }
.ask-box .ask-ic { width: 17px; height: 17px; color: var(--pink-2); }
.ask-box input { flex: 1; min-width: 0; height: 40px; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.ask-box input::placeholder { color: #A69BA7; }
.ask-box input:focus-visible { outline: none; }
.ask-go { width: 36px; height: 36px; flex: none; border-radius: 50%; border: none; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.ask-go:hover { background: rgba(255,255,255,.24); }
.ask-go .icon { width: 16px; height: 16px; }
.w-bell { position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--text); }
.w-bell .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--magenta); color: #fff; font-size: 10.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #000; }
.w-bal { position: relative; z-index: 2; margin-top: 24px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.w-bal-l { height: 44px; display: inline-flex; align-items: center; margin-right: -14px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #F1E6F2; }
.w-bal-l.dark { margin-right: 0; color: var(--muted); }
.w-eye { width: 44px; height: 44px; flex: none; border: none; border-radius: 50%; background: transparent; color: #FFE6FD; display: flex; align-items: center; justify-content: center; padding: 0; }
.w-eye:hover { background: rgba(255,255,255,.08); }
.w-eye.dark { color: var(--muted); }
.w-eye .icon { width: 16px; height: 16px; }
.w-num { display: flex; align-items: baseline; font-size: 64px; line-height: 1.04; font-weight: 500; letter-spacing: -0.035em; text-shadow: 0 2px 20px rgba(40,0,44,.45); }
.w-cents { font-size: 40px; letter-spacing: -0.03em; color: rgba(255,240,253,.62); }
.w-soon { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #F1E6F2; text-shadow: 0 1px 10px rgba(30,0,34,.6); }
.w-soon i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.w-acts { margin-top: 28px; align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px clamp(14px, 3vw, 40px); }
.w-act { min-width: 80px; border: none; background: transparent; padding: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .18s ease; }
.w-act:active { transform: scale(.96); }
.w-orb { width: 64px; height: 64px; box-sizing: border-box; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 10px 26px rgba(40,0,50,.28); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); transition: background .2s ease; }
.w-act:hover .w-orb { background: rgba(255,255,255,.25); }
.w-orb .icon { width: 22px; height: 22px; stroke-width: 1.9; }
.w-act-l { font-size: 13px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.w-body { position: relative; z-index: 3; margin-top: -36px; padding: 0 32px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.w-main { flex: 1.75 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.w-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.w-sec { display: flex; flex-direction: column; gap: 14px; }
.w-explore { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; } /* one row of 8; 2 rows of 4 on a narrow window */
.w-ex { min-height: 72px; border: none; border-radius: 16px; background: transparent; padding: 8px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #CFC4D0; font-size: 12px; transition: color .2s ease, background .2s ease; }
.w-ex:hover { color: #fff; background: rgba(255,255,255,.05); }
.w-ex .icon { width: 24px; height: 24px; color: #F8F3F8; stroke-width: 1.6; }
.w-ex .icon.thick { stroke-width: 3; }
.w-tabs { display: flex; gap: 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.w-tab { position: relative; min-width: 44px; height: 44px; border: none; background: transparent; padding: 0 2px; color: #9D929D; font-size: 14px; font-weight: 500; transition: color .2s ease; }
.w-tab:hover, .w-tab[aria-pressed="true"] { color: var(--text); }
.w-tab[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #FF7AF6, #E01FD9); }
.w-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.news-card { min-width: 0; box-sizing: border-box; border-radius: 24px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.075) 0%, rgba(255,255,255,.025) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 14px 30px rgba(0,0,0,.35); padding: 6px; text-align: left; color: var(--text); display: flex; flex-direction: column; transition: border-color .2s ease, transform .18s ease; }
.news-card:hover { border-color: rgba(255,255,255,.18); }
.news-card:active { transform: scale(.97); }
.nc-media { position: relative; display: block; height: 132px; border-radius: 18px; overflow: hidden; background: radial-gradient(70% 90% at 80% 20%, rgba(176,75,255,.32) 0%, rgba(0,0,0,0) 70%), linear-gradient(160deg, #2A0F33 0%, #12061A 100%); }
.nc-media::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 26px 26px; }
.nc-media .coin { position: absolute; right: 22px; top: 50%; margin-top: -34px; box-shadow: 0 16px 36px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,255,255,.5), inset 0 -6px 12px rgba(0,0,0,.22); }
.nc-src { position: absolute; right: 22px; top: 50%; margin-top: -34px; width: 64px; height: 64px; box-sizing: border-box; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; color: var(--pink-2); background: rgba(255,122,246,.12); border: 1px solid rgba(255,122,246,.3); }
.nc-chip { position: absolute; left: 10px; top: 10px; height: 26px; box-sizing: border-box; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(14,5,16,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.nc-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.nc-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 10px 8px; }
.nc-t { min-height: 40px; font-size: 15px; font-weight: 500; line-height: 1.32; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nc-s { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-tag { flex: none; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: #CFC4D0; font-family: var(--mono); font-size: 11px; display: inline-flex; align-items: center; }
.w-empty { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 22px 24px; }
.w-empty-t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.w-empty-h { font-size: 17px; font-weight: 500; }
.fy-k { display: flex; align-items: center; gap: 8px; }
.fy-k i { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); }
.fy-row { display: flex; gap: 12px; align-items: flex-start; }
.fy-t { font-size: 15px; line-height: 1.4; font-weight: 500; }
.fy-go { align-self: flex-start; min-height: 36px; padding: 0; font-weight: 500; }
.w-markets { padding: 18px 12px 12px; gap: 4px; }
.w-markets > .pg-sh { padding: 0 8px 6px; }
.mk-rows { display: flex; flex-direction: column; }
.mk-row { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 14px; }
.mk-row + .mk-row { border-top: 1px solid rgba(255,255,255,.06); }
.mk-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-n .b { font-size: 14px; }
.mk-n .s { font-size: 12px; }
.mk-p { min-width: 92px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mk-p .b { font-size: 14px; }
.mk-p .mono { font-size: 11px; }
.w-guard-h { display: flex; align-items: center; gap: 10px; }
.w-guard-h .b { font-size: 15px; }
.w-guard-row { display: flex; flex-wrap: wrap; gap: 8px; }
.w-guard-row input { flex: 1 1 150px; min-width: 0; height: 44px; box-sizing: border-box; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.3); padding: 0 14px; font-size: 14px; color: var(--text); }
.w-guard .s[for] { font-size: 12px; }
.w-verdicts { display: flex; gap: 6px; flex-wrap: wrap; }
.an-row { display: flex; align-items: flex-end; gap: 18px; }
.an-bars { height: 66px; display: flex; align-items: flex-end; gap: 6px; }
.an-bars i { width: 22px; height: 4px; border-radius: 4px; }
.an-bars .in { background: #FF8FF4; }
.an-bars .out { background: #9B5CFF; }
.an-nums { display: flex; flex-direction: column; gap: 8px; }
.an-nums > div { display: flex; flex-direction: column; gap: 1px; }
.an-nums .s { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.an-nums b { font-size: 15px; font-weight: 500; }
.dot-in, .dot-out { width: 7px; height: 7px; border-radius: 50%; }
.dot-in { background: var(--pink); }
.dot-out { background: #B04BFF; }

/* ---------- Portfolio ---------- */
.pf-hero { position: relative; min-height: 270px; box-sizing: border-box; padding: 22px 32px 24px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.pf-hero .ph-shade { background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.22) 30%, rgba(0,0,0,.5) 70%, #000 100%); }
.pf-top { position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: center; } /* Preview: app.css had a .pf-top for the old rail */
.pf-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.pf-titles { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.pf-titles .pg-h1 { margin: 0; font-size: 40px; line-height: 1.05; }
.pf-sub { margin: 0; font-size: 15px; line-height: 1.45; color: #ECE2ED; }
.pf-head .seg2 { width: 340px; }
.pf-body { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 22px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.pf-row2 { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
.pf-row2 > :first-child { flex: 2 1 520px; min-width: 0; }
.pf-row2 > :last-child { flex: 1 1 280px; min-width: 0; }
.pf-row2.top > :first-child { flex: 1.25 1 460px; }
.pf-row2.top > :last-child { flex: 1 1 360px; }
.pf-card { padding: 20px; gap: 14px; }
.pf-card:hover, .tw2-card:hover { border-color: rgba(255,255,255,.18); }
.pf-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pf-card-h > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-name { font-size: 18px; font-weight: 500; }
.mixbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }
.mixbar i { display: block; height: 100%; border-radius: 0; min-width: 0; } /* Preview: undo the old rail's pill segments */
.pf-coins { display: flex; flex-direction: column; }
.pf-coin { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.pf-cn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-coin .mono { font-size: 12px; min-width: 48px; text-align: right; }
.pf-coin .mono.s { color: var(--text-2); min-width: 36px; }
.pf-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.pf-ch { display: flex; gap: 18px; }
.pf-ch > div { display: flex; flex-direction: column; gap: 2px; }
.pf-ch .s { font-size: 12px; }
.pf-v { font-size: 15px; font-weight: 500; }
.pf-build, .tw2-new { padding: 20px; gap: 12px; }
.pf-build .b, .tw2-new .b { font-size: 16px; }
.pf-build .linkish { align-self: flex-start; padding: 0; min-height: 36px; font-weight: 500; }
.pf-chart { padding: 20px; gap: 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.lg-i { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.lg-i i { width: 14px; height: 3px; border-radius: 2px; }
.wk { display: flex; flex-direction: column; gap: 8px; }
.wk-chart { display: block; width: 100%; }
.wk-zero { stroke: rgba(255,255,255,.14); stroke-dasharray: 4 4; }
.wk-days { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); font-family: var(--mono); }
.pf-goal { padding: 20px; gap: 10px; }
.pf-goal .linkish, .pf-fy .linkish { align-self: flex-start; padding: 0; min-height: 36px; font-weight: 500; }
.pf-locked { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 24px; }
.pf-locked-t { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
/* Pal Portfolio: the Trader's wallets */
.lg-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Discover ---------- */
.dc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.dc-card { align-items: flex-start; padding: 20px; }
.dc-ic { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: rgba(255,122,246,.1); color: var(--pink-2); }
.dc-ic .icon { width: 22px; height: 22px; }
.dc-card .b { font-size: 16px; }

/* ---------- Pals ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pl-card { padding: 20px; gap: 12px; }
.pl-card.current { border-color: rgba(255,122,246,.4); }
.pl-card.locked { opacity: .8; }
.pl-card.add { align-items: center; text-align: center; min-height: 240px; }
.pl-top { display: flex; align-items: center; gap: 14px; }
.pl-who { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-name { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.pl-st { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; }
.pl-st span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-st .sdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pl-st .sdot.ready { background: #3DDC84; }
.pl-st .sdot.work { background: #FFD43B; animation: sdotBlink 1.6s ease-in-out infinite; }
.pl-st .sdot.call { background: var(--magenta); animation: sdotBlink 1.6s ease-in-out infinite; }
:where(.page) .pl-role { font-size: 14px; color: var(--text-2); }
.pl-cant { display: flex; gap: 8px; align-items: flex-start; }
.pl-cant .icon { width: 15px; height: 15px; color: #5CE6B8; margin-top: 2px; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.pl-card .row { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .pl-st .sdot { animation: none !important; } }

/* ---------- Threads ---------- */
.th-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: var(--muted); font-size: 13.5px; transition: background .2s ease, color .2s ease; }
.fchip:hover { color: var(--text); background: rgba(255,255,255,.05); }
.fchip[aria-pressed="true"] { background: rgba(255,122,246,.14); border-color: rgba(255,122,246,.45); color: var(--pink-2); }
.th-list { display: flex; flex-direction: column; gap: 6px; }
.th-list > .pg-sh { margin-top: 14px; }
.th-list > .pg-sh:first-child { margin-top: 0; }
.th-row { display: flex; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; text-align: left; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: var(--text); transition: background .2s ease, border-color .2s ease; }
.th-row:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.th-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.th-top { display: flex; align-items: center; gap: 8px; }
.th-top b { font-weight: 500; font-size: 14.5px; }
.th-vo { display: inline-flex; color: var(--pink); }
.th-vo .icon { width: 14px; height: 14px; }
.th-title { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.th-r .s { font-size: 12px; }
.th-rh { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.th-rh > div { flex: 1 1 200px; min-width: 0; }
.th-read { display: flex; flex-direction: column; gap: 16px; }
.th-read .msg { animation: none; }

/* ---------- Settings and the Simulator ---------- */
.cfg { display: flex; gap: 24px; align-items: flex-start; }
.cfg-nav { position: sticky; top: 16px; flex: 0 0 236px; box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 22px; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.app.side-hidden .cfg-nav { top: 68px; }
.cfg-link { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; font-size: 14px; color: var(--muted); text-decoration: none; transition: background .2s ease, color .2s ease; }
.cfg-link:hover { background: rgba(255,255,255,.06); color: var(--text); }
.cfg-link .icon { width: 17px; height: 17px; }
#pageSettings .cfg-link:hover .icon { color: var(--pink); }
.cfg-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cfg-card { gap: 16px; padding: 22px 24px; scroll-margin-top: 16px; }
.app.side-hidden .cfg-card { scroll-margin-top: 68px; }
.cfg-h h2 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.cfg-h p { margin: 4px 0 0; }
.cfg-card .sect-title { margin: 8px 0 -6px; }
#voicePick, #sttField { display: flex; flex-direction: column; gap: 14px; }
.plan-now { display: flex; align-items: flex-start; gap: 12px; }
.plan-now .plan-tag { margin-top: 3px; cursor: default; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } /* five plans: 2026-10-27-betaplans */
.plan-opt { border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.plan-opt.on { border-color: rgba(255,122,246,.45); background: rgba(241,0,235,.08); }
.apps { display: flex; flex-direction: column; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.app-row + .app-row { border-top: 1px solid rgba(255,255,255,.06); }
.vp-list { display: flex; flex-direction: column; gap: 6px; }
.vp-row { display: flex; align-items: center; gap: 10px; }
.vp-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; box-sizing: border-box; padding: 8px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.02); text-align: left; color: var(--text); transition: border-color .2s ease, background .2s ease; }
.vp-pick:hover { border-color: rgba(255,255,255,.2); }
.vp-pick > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.vp-row.on .vp-pick { border-color: rgba(255,122,246,.5); background: rgba(241,0,235,.08); }
.vp-dot { width: 18px; height: 18px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); }
.vp-row.on .vp-dot { border-color: var(--pink); background: radial-gradient(circle, var(--pink) 0 4px, transparent 5px); }

/* ---------- smaller windows ---------- */
@media (max-width: 1100px) {
  .cfg { flex-direction: column; }
  .cfg-nav { position: static; flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; border-radius: 18px; }
  .cfg-link { min-height: 40px; }
}
@media (max-width: 900px) {
  .nav { overflow-x: auto; width: 100%; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { flex: none; }
  .nav-div, .nav-soon { display: none; }
  .w-top, .w-body, .pf-body { padding-left: 16px; padding-right: 16px; }
  .pf-hero { padding-left: 16px; padding-right: 16px; }
  .pg-wrap { padding: 22px 16px 40px; }
  .w-num { font-size: 52px; }
  .w-cents { font-size: 32px; }
  .pf-titles .pg-h1, .pg-h1 { font-size: 30px; }
  .ask-box { width: auto; flex: 1 1 220px; }
  .w-tools { flex: 1 1 100%; }
}
@media (max-width: 700px) { .w-explore { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-days span:nth-child(even) { visibility: hidden; }
  .w-hero { min-height: 420px; }
  .cfg-card { padding: 18px 16px; }
}

/* ================================================================================================
   Preview only (2026-10-26-v1a)
   ================================================================================================ */
/* Settings › Usage reuses app.css's usage hero and day bars inside a card. */
.cfg-card .hero { margin: 0; }
.cfg-card .box { margin: 0; }
.cfg-card .line .lt2 .t { font-size: 14.5px; }
.cfg-card .plan-opt .row { margin-top: 6px; }
.cfg-card.reset-card { border-color: rgba(255,120,120,.22); }
.cfg-card .btn.danger { align-self: flex-start; }
.sign-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sign-row > div { flex: 1 1 220px; min-width: 0; }
/* Links drawn as cards and buttons (the news cards, Download) aren't underlined. */
a.news-card, a.pbtn { text-decoration: none; }
a.news-card:hover { color: var(--text); }
.cfg-card .box .kicker.grp { margin: 12px 0 0; }
.page .chip2.warn { font-size: 12px; } /* not the bigger .page .warn text (v1.0A has the same small slip) */
/* Sign-up's plan step: Free, and Basic and Pro coming soon. */
.choice.later { opacity: .72; }
.choice .soon { margin-left: auto; align-self: center; }
/* The Pals page: teammates that come with Basic or Pro. */
.pl-card.locked .pl-cant .icon { color: var(--muted-2); }

/* Pal Portfolio › the Trader, a test feature (2026-10-27-mainport). */
.pf-body .tr-card { margin-bottom: 14px; }
.tr-warn { flex-direction: row; align-items: center; gap: 16px; border-color: rgba(255,194,122,.28); }
.tr-col { flex-direction: column; }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tr-wallet { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); }
.tr-wh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tr-name { flex: 0 1 220px; }
.tr-name input { height: 36px; }
.tr-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.tr-addr .s { min-width: 120px; }
.tr-bal { display: flex; flex-direction: column; gap: 2px; }
.tr-actions { flex-wrap: wrap; align-items: center; gap: 10px; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.tr-set summary { cursor: pointer; }
.tr-set[open] summary { margin-bottom: 4px; }
.tr-check { display: inline-flex; align-items: center; gap: 8px; margin-right: 16px; font-size: 14px; }
.tr-words { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 16px; margin: 0; padding: 14px 14px 14px 40px; border-radius: 14px; background: rgba(0,0,0,.4); }
.tr-words li { font-size: 15px; }
.tr-phrase { border-color: rgba(255,107,245,.5); }
.tr-recent { display: flex; flex-direction: column; gap: 6px; }
.tr-rrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
/* A Trader OK card: which wallet pays, and the unlock field when the wallets are locked. */
.okc .tr-cardnote { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.okc .tr-unlock input { height: 40px; }

/* ---------- narrow windows ---------- */
@media (max-width: 900px) {
  .main { padding: 0; }
  .side-label, .side-status-wrap, .side-toggle { display: none; }
  .side-foot { width: 100%; margin-top: 0; padding-top: 0; }
  .side-foot .side-cards { display: none; }
}

/* ===== 2026-10-29-videopanel (Tech): the video call in the right-side panel =====
   Only the call frame (/video-call?embed=1): no bar, no buttons around it. The file panel (.pv) is
   hidden behind it while the call is on and comes back afterwards. */
.dock.vc-on .vc-frame { flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; border: 0; border-radius: 28px; background: #000; transition: opacity .25s ease; }
.dock.vc-on .vc-frame.loading { opacity: 0; }
.app.resizing .vc-frame { pointer-events: none; }
/* ===== end 2026-10-29-videopanel ===== */

/* ===== 2026-10-29-kernelpanel (Tech): Pal's Kernel cloud browser, watched in the right-side panel =====
   Read-only: the frame never gets clicks or keys (pointer-events none, plus a cover over it). */
.dock.kb-on .kb-live { position: relative; flex: 1; min-width: 0; min-height: 0; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #0b0d12; }
.dock.kb-on .kb-live-f { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.dock.kb-on .kb-live-c { position: absolute; inset: 0; cursor: default; }
/* 2026-10-30-photoalwaysopen: a photo clicked during the call: the call on top, Pal's browser under it. */
.dock.vc-on.vc-split { flex-direction: column; gap: 10px; }
.dock.vc-on.vc-split .vc-frame { order: -1; flex: 0 0 38%; height: auto; min-height: 220px; }
.dock.kb-on .kb-live-x { position: absolute; top: 10px; right: 10px; z-index: 2; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12.5px; cursor: pointer; }
.dock.kb-on .kb-live-x:hover { background: rgba(0, 0, 0, .8); }
.dock.kb-on .kb-live-tag { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); pointer-events: none; }
/* ===== end 2026-10-29-kernelpanel ===== */
