/* AssetPilot / Prism — brokerage workspace, October 2026.
   Dark mineral surfaces, optical typography, restrained lime, data first. */
:root {
  color-scheme: dark;
  --bg:#111413; --panel:#191d1b; --panel-2:#202522; --panel-3:#282e2a;
  --text:#f1f4ef; --muted:#a0aaa3; --faint:#768078; --line:#303731; --line-2:#485349;
  --accent:#c5ee83; --accent-ink:#17220c; --accent-soft:#2c3822;
  --up:#ff8593; --down:#8aafff; --up-soft:#3b252a; --down-soft:#233048;
  --warn:#d8bb77; --warn-soft:#352e20; --surface:var(--panel);
  --plot-1:#c5ee83; --plot-2:#a3b7ff; --plot-3:#86d7d0;
  --fs-m:14px; --fs-s:12px; --fs-xs:11px;
}
body { background:var(--bg); color:var(--text); letter-spacing:-.2px; }
a { color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
button { transition:background .18s,color .18s,border-color .18s; }
.app { display:grid; grid-template-columns:216px minmax(0,1fr); grid-template-rows:72px minmax(0,1fr) 30px; height:100dvh; }
.sidebar { grid-column:1; grid-row:1 / -1; display:flex; flex-direction:column; padding:28px 16px 20px; background:#151916; border-right:1px solid var(--line); min-width:0; }
.brand { display:grid; grid-template-columns:29px auto; gap:0 9px; align-items:center; font-size:20px; letter-spacing:-.8px; text-decoration:none; padding:0 7px; }
.brand-mark { width:26px; height:29px; background:var(--accent); border-radius:4px; grid-row:span 2; clip-path:polygon(0 28%,48% 0,100% 28%,100% 73%,48% 100%,0 73%,0 55%,48% 82%,78% 65%,78% 40%,48% 22%,22% 38%,22% 53%,0 40%); }
.brand-caption { font-size:7px; font-weight:500; letter-spacing:2px; color:var(--muted); margin-top:5px; }
.nav-caption { color:var(--faint); font-size:9px; letter-spacing:1.7px; padding:42px 14px 14px; }
.menu { display:flex; flex-direction:column; align-items:stretch; gap:6px; height:auto; overflow:visible; }
.menu a { display:flex; align-items:center; gap:13px; min-height:44px; height:auto; border:0; padding:11px 14px; border-radius:7px; color:var(--muted); font-size:13px; font-weight:500; white-space:nowrap; }
.menu a svg { width:19px; height:19px; flex-shrink:0; }
.menu a:hover { background:var(--panel-2); color:var(--text); }
.menu a[aria-current=page] { background:var(--accent-soft); color:var(--accent); box-shadow:inset 2px 0 var(--accent); }
.menu .count { margin-left:auto; }
.sidebar-note { margin:auto 10px 24px; padding-top:32px; }
.sidebar-mode { font-size:8px; color:var(--accent); letter-spacing:1.4px; display:flex; align-items:center; gap:7px; }
.sidebar-mode i { width:5px; height:5px; border-radius:50%; background:var(--accent); }
.sidebar-note p { font-size:11px; color:var(--muted); line-height:1.8; margin:12px 0 17px; }
.sidebar-note a { color:var(--text); font-size:11px; text-decoration:none; display:flex; justify-content:space-between; }
.sidebar-profile { display:flex; align-items:center; gap:10px; padding:20px 8px 0; border-top:1px solid var(--line); }
.sidebar-profile>span { width:32px; height:32px; display:grid; place-items:center; border-radius:10px; background:#30392a; color:var(--accent); font-size:12px; }
.sidebar-profile b { font-size:11px; font-weight:500; }.sidebar-profile small { display:block; margin-top:4px; font-size:10px; color:var(--muted); }
.topbar { grid-column:2; background:var(--bg); padding:0 32px; gap:14px; height:auto; border-bottom:1px solid var(--line); }
.breadcrumb { display:flex; align-items:center; gap:11px; font-size:12px; color:var(--faint); white-space:nowrap; }.breadcrumb b { color:var(--text); font-weight:500; }
.global-search { display:flex; align-items:center; gap:9px; background:var(--panel); border:1px solid var(--line); border-radius:7px; min-height:34px; color:var(--muted); width:208px; padding:7px 10px; font-size:11px; }.global-search svg { width:15px; height:15px; }.global-search kbd { margin-left:auto; font:10px inherit; border:1px solid var(--line); padding:0 5px; border-radius:3px; }
.equity { display:none; }.pills { gap:4px; }.pill { border:0; background:none; padding:0 3px; font-size:10px; }.pill i { width:5px; height:5px; }
.icon-btn { width:34px; height:34px; border-radius:7px; background:var(--panel); border-color:var(--line); }.icon-btn:hover { background:var(--panel-3); color:var(--accent); }
.pages { grid-column:2; min-height:0; min-width:0; padding:30px 32px; overflow:auto; scroll-behavior:smooth; }
.workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:25px; }
.eyebrow,.workspace-heading small { font-size:9px; font-weight:500; letter-spacing:1.8px; color:var(--muted); }
.workspace-heading h1 { margin:8px 0; font-size:29px; font-weight:600; letter-spacing:-1.2px; line-height:1.3; }
.workspace-heading p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.workspace-action { display:flex; align-items:center; gap:20px; color:var(--accent); border:1px solid var(--line-2); border-radius:7px; padding:10px 13px; font-size:11px; text-decoration:none; white-space:nowrap; }.workspace-action:hover { background:var(--accent-soft); }
.page { padding:0; gap:20px; min-width:0; }.panel { background:var(--panel); border:1px solid var(--line); border-radius:12px; }.panel-body { padding:24px; }.page-panel { flex:0 0 auto; overflow:auto; min-width:0; }
.page-head { padding:0 0 20px; align-items:center; flex-wrap:wrap; gap:10px; }.page-head h2 { font-size:17px; font-weight:600; margin:0; letter-spacing:-.5px; }.page-head small { font-size:11px; }
.cards { padding:0; gap:12px; }.card { border:1px solid var(--line); border-radius:9px; padding:20px; background:var(--panel-2); }.card small { font-size:11px; }.card b { font-size:21px; margin-top:10px; letter-spacing:-.6px; }
.btn { min-height:35px; padding:8px 13px; border:1px solid var(--line-2); border-radius:7px; font-size:12px; text-decoration:none; }.btn:hover { background:var(--panel-3); }.btn.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:600; }.btn.primary:hover { background:#dcffac; }
input,select,textarea { background:#121714; border:1px solid var(--line-2); border-radius:7px; color:var(--text); min-height:36px; }.field label { font-size:12px; color:var(--muted); }.hint,.empty { color:var(--muted); line-height:1.8; }.empty { padding:32px 16px; }
/* Overview: one primary value, one allocation tool, three subordinate metrics. */
#accountCards { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr); gap:18px; }
.portfolio-value { position:relative; isolation:isolate; overflow:hidden; border:1px solid #414b3b; border-radius:13px; background:radial-gradient(ellipse at 95% 70%,#303b29 0,transparent 65%),#1b221a; padding:27px 28px 22px; min-height:265px; }
.value-head { display:flex; align-items:center; gap:10px; position:relative; z-index:2; font-size:12px; }.value-head small { font-size:10px; color:var(--muted); }.value-head .portfolio-seg { margin-left:auto; }
.privacy-button { border:0; color:var(--muted); background:transparent; padding:3px; display:grid; place-items:center; }.privacy-button svg { width:17px; height:17px; }
.portfolio-total { position:relative; z-index:1; font-size:clamp(30px,3vw,51px); font-weight:500; letter-spacing:-2px; line-height:1.2; margin:25px 0 14px; }
.portfolio-profit { position:relative; z-index:1; display:flex; align-items:center; gap:9px; font-size:12px; }.portfolio-profit>span:last-child { font-size:10px; color:var(--muted); }
.return-chip { font-size:11px; font-weight:500; border:1px solid currentColor; border-radius:5px; padding:4px 7px; }
.value-bottom { display:flex; gap:12px; align-items:center; position:relative; z-index:1; font-size:10px; color:var(--muted); margin-top:30px; }
.connection-dot { display:flex; gap:6px; align-items:center; }.connection-dot:before { content:''; width:5px; height:5px; background:var(--accent); border-radius:50%; }.connection-dot.delayed { color:var(--warn); }.connection-dot.delayed:before { background:var(--warn); }
.value-sculpture { position:absolute; width:245px; height:auto; right:-34px; bottom:-43px; z-index:0; opacity:.66; mask-image:linear-gradient(90deg,transparent,#000 38%); pointer-events:none; }
.portfolio-seg { display:inline-flex; padding:3px; gap:2px; background:#101511; border:1px solid var(--line); border-radius:6px; }
.portfolio-seg button { background:transparent; color:var(--muted); border:0; border-radius:4px; padding:5px 9px; font-size:10px; white-space:nowrap; }.portfolio-seg button[aria-pressed=true] { background:#343e2e; color:var(--accent); }.portfolio-seg button:hover { color:var(--text); }.portfolio-seg button:disabled { opacity:.4; }
.portfolio-allocation { border:1px solid var(--line); background:var(--panel); border-radius:13px; padding:22px 24px; min-width:0; }
.portfolio-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }.portfolio-section-head h2 { font-size:14px; margin:0; font-weight:550; }.portfolio-section-head>span { color:var(--faint); font-size:10px; }
.allocation-layout { display:flex; align-items:center; gap:20px; margin-top:9px; }.allocation-donut { width:185px; height:185px; flex-shrink:0; position:relative; }.allocation-donut svg { width:100%; height:100%; }.allocation-donut circle { transition:opacity .2s; }.allocation-donut .dimmed { opacity:.2; }
.donut-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; pointer-events:none; }.donut-center small { font-size:8px; letter-spacing:1px; color:var(--muted); }.donut-center b { font-size:28px; font-weight:450; margin:4px 0; letter-spacing:-1px; }.donut-center b span { font-size:15px; margin-left:2px; color:var(--muted); }.donut-center>span { font-size:10px; color:var(--muted); }
.allocation-items { flex:1; display:grid; gap:2px; min-width:0; }.allocation-items button { display:flex; gap:7px; align-items:center; width:100%; background:transparent; border:1px solid transparent; border-radius:5px; padding:6px; font-size:10px; color:var(--muted); text-align:left; }.allocation-items button i { width:6px; height:6px; border-radius:2px; background:var(--asset-color); flex-shrink:0; }.allocation-items button b { margin-left:auto; color:var(--text); font-weight:450; }.allocation-items button:hover,.allocation-items button[aria-pressed=true] { background:var(--panel-3); border-color:var(--line); color:var(--text); }
.portfolio-stats { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--line); background:var(--panel); border-radius:11px; padding:22px 0; }.portfolio-stats>div { padding:0 26px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:7px; }.portfolio-stats>div:last-child { border:0; }.portfolio-stats span { font-size:11px; color:var(--muted); }.portfolio-stats b { font-weight:500; font-size:24px; letter-spacing:-.6px; }.portfolio-stats small { font-size:10px; color:var(--faint); }
/* Data visualisation: the bars describe returns, never fabricated price history. */
#page-account { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; }
#accountCards { grid-column:1 / -1; }#accountInsight { grid-column:2; grid-row:2; }#page-account>.page-panel { grid-column:1; grid-row:2; }
#accountInsight:empty { display:none; }.portfolio-performance { border:1px solid var(--line); background:var(--panel); padding:23px 20px; border-radius:11px; }.portfolio-performance .portfolio-section-head { display:block; }.portfolio-performance .portfolio-section-head>span { display:block; margin-top:7px; font-size:9px; }.performance-bars { margin-top:22px; }
.performance-item { display:grid; grid-template-columns:43px minmax(0,1fr) 58px; gap:8px; align-items:center; min-height:44px; text-decoration:none; font-size:10px; }.performance-item:hover { color:var(--accent); }.performance-item>b { font-size:10px; text-align:right; font-weight:500; }.performance-track { position:relative; height:18px; background:repeating-linear-gradient(90deg,transparent,transparent calc(25% - 1px),#2d352d calc(25% - 1px),#2d352d 25%); }.performance-track:after { content:''; position:absolute; height:22px; width:1px; left:50%; top:-2px; background:#677564; }.performance-track i { position:absolute; height:8px; top:5px; min-width:1px; border-radius:2px; background:var(--up); }.performance-track i.down { background:var(--down); }.performance-axis { display:flex; justify-content:space-between; padding:12px 66px 0 51px; color:var(--faint); font-size:8px; }
/* Holdings: scanable rows, native currency context, explicit sorting. */
#accountHoldings { padding:0; }.holdings-toolbar { padding:18px 20px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; }.holdings-toolbar h2 { font-size:14px; margin:0; display:flex; gap:8px; align-items:center; }.holdings-toolbar h2>span { color:var(--muted); font-size:10px; border:1px solid var(--line); padding:2px 5px; border-radius:4px; }.holdings-toolbar .spacer { flex:1; }
.holdings-table-wrap { overflow:auto; }table.grid th { background:#171c18; color:var(--faint); font-size:10px; font-weight:450; height:39px; }table.grid td { font-size:12px; height:70px; border-bottom:1px solid #29302a; }table.grid tr:hover { background:#202720; }
.holdings-table { min-width:680px; width:100%; }.holdings-table th:not(:first-child),.holdings-table td:not(:first-child) { text-align:right; }.holdings-table th:first-child,.holdings-table td:first-child { padding-left:20px; }.holdings-table td small { display:block; font-size:10px; color:var(--faint); margin-top:4px; }.holdings-table td small.up { color:var(--up); }.holdings-table td small.down { color:var(--down); }
.holding-symbol { display:flex; align-items:center; gap:11px; text-decoration:none; min-width:120px; }.holding-symbol b { font-size:12px; font-weight:550; }.holding-symbol small { max-width:135px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.symbol-avatar { display:grid; place-items:center; width:33px; height:33px; flex-shrink:0; border-radius:11px; color:var(--asset-color); border:1px solid color-mix(in srgb,var(--asset-color) 28%,transparent); background:color-mix(in srgb,var(--asset-color) 8%,transparent); font-size:11px; font-weight:550; letter-spacing:-.5px; }.holding-open { display:block; text-align:center; text-decoration:none; font-size:17px; color:var(--faint); }.holding-open:hover { color:var(--accent); }.holding-weight { width:55px; margin-left:auto; font-size:10px; }.holding-weight i { display:block; background:#313a31; border-radius:2px; height:3px; margin-top:7px; overflow:hidden; }.holding-weight i b { display:block; height:100%; }.holdings-footnote { padding:14px 20px; display:flex; justify-content:space-between; gap:10px; color:var(--faint); font-size:9px; flex-wrap:wrap; }
/* Empty state: a designed entry rather than invented balances. */
.portfolio-welcome { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; position:relative; overflow:hidden; border-radius:13px; border:1px solid #404938; padding:48px; background:radial-gradient(ellipse at 85% 55%,#2e3925,transparent 60%),#1b211a; min-height:365px; }.portfolio-welcome>div { position:relative; z-index:1; }.portfolio-welcome h2 { font-weight:450; font-size:38px; letter-spacing:-1.8px; line-height:1.3; margin:22px 0 16px; }.portfolio-welcome h2 em { font-style:normal; color:var(--accent); }.portfolio-welcome p { color:var(--muted); font-size:13px; line-height:1.8; }.portfolio-welcome .btn { display:inline-flex; gap:32px; margin:12px 0 24px; }.portfolio-welcome small:last-child { display:block; color:var(--faint); font-size:10px; }.portfolio-welcome img { position:absolute; width:53%; height:auto; right:-2%; top:50%; transform:translateY(-50%); }
#page-account:has(#accountInsight:empty)>.page-panel { grid-column:1 / -1; }
.connect-steps ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:0; gap:20px; margin:12px 0 26px; }.connect-steps li { display:flex; gap:12px; }.connect-steps li>span { color:var(--accent); border:1px solid var(--line-2); width:30px; height:30px; display:grid; place-items:center; border-radius:8px; font-size:10px; flex-shrink:0; }.connect-steps b { font-size:12px; font-weight:500; }.connect-steps p { font-size:11px; color:var(--muted); line-height:1.7; }
.settings-intro { padding:24px; border:1px solid var(--line); border-radius:10px; background:linear-gradient(110deg,#273021,#1a201a); margin-bottom:26px; }.settings-intro h2 { font-size:21px; font-weight:500; margin:12px 0; letter-spacing:-.8px; }.settings-intro p { font-size:12px; color:var(--muted); line-height:1.8; max-width:650px; margin:0; }.local-connection { border-top:1px solid var(--line); padding-top:22px; margin-top:24px; }.local-connection summary { margin-bottom:18px; font-size:12px; color:var(--muted); cursor:pointer; }.settings-intro~.cards { margin-bottom:18px; }
.statusbar { grid-column:2; background:var(--bg); border-top:1px solid var(--line); padding:0 32px; color:var(--faint); font-size:9px; gap:20px; }.statusbar .live { color:var(--muted); }.statusbar .live:before { background:var(--accent); }
.page-chart { height:calc(100dvh - 235px); min-height:650px; gap:10px; grid-template-columns:minmax(0,1fr) 200px 238px; }.page-chart .panel { border-radius:8px; }.page-chart .side { background:#161d17; }.list-row:hover,.list-row.on { background:var(--accent-soft); }.seg button.on,.seg button[aria-pressed=true] { background:var(--accent-soft); color:var(--accent); }.strip { padding:14px 18px; }.chart-connection-note:empty { display:none; }.chart-connection-note { font-size:11px; line-height:1.7; padding:10px 16px; background:var(--warn-soft); color:var(--warn); }.page-chart .list { display:flex; }
.rb-stat,.rb-card { border:1px solid var(--line); }.rb-card { box-shadow:none; }.rb-split { gap:18px; }.rb-summary { padding-top:0; }.todo-row { padding:20px 5px; }.todo-row small { line-height:1.7; }.tag { border-radius:4px; }dialog.picker { background:var(--panel); border-color:var(--line-2); border-radius:12px; box-shadow:0 22px 100px #0009; }.toast { background:var(--accent); color:var(--accent-ink); }
/* The screen lock uses the same original prism as the entry screen. */
.screen-bootlocked .app,.screen-islocked .app { visibility:hidden; }.screen-islocked #toast { display:none; }.screen-lock:not([hidden]) { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; overflow:auto; padding:24px; background:radial-gradient(ellipse at 50% 35%,#25301f,#0f1410 70%); }
.lock-card { position:relative; width:min(460px,100%); padding:32px 44px; border:1px solid #3c4936; background:linear-gradient(160deg,#232c1e,#141c15); border-radius:18px; text-align:center; box-shadow:0 32px 100px #0004; }.lock-brand { font-size:21px; letter-spacing:-.7px; font-weight:600; }.lock-brand small { display:block; font-size:7px; color:var(--muted); letter-spacing:2.2px; margin-top:5px; }.lock-sculpture { display:block; width:250px; max-width:100%; height:auto; margin:12px auto 0; }.lock-card h1 { font-size:24px; font-weight:500; letter-spacing:-1px; margin:12px 0; }.lock-card p { font-size:12px; color:var(--muted); line-height:1.8; }.lock-card form { display:flex; flex-direction:column; gap:14px; margin-top:24px; }.lock-card input { width:100%; height:54px; text-align:center; letter-spacing:14px; font-size:26px; padding-left:22px; }.lock-card .btn { min-height:42px; display:flex; justify-content:space-between; align-items:center; }.lock-card #lockMessage { min-height:24px; margin-top:17px; color:var(--warn); font-size:11px; }.lock-footnote { font-size:10px; color:var(--faint); }.pin-settings { border-top:1px solid var(--line); margin-top:22px; padding-top:24px; }.pin-form { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:17px 0; }.pin-form .field { min-width:140px; flex:1; background:var(--panel-2); border-radius:7px; padding:9px 12px; }.pin-form input { max-width:90px; letter-spacing:6px; }.pin-settings>small { margin-left:10px; }
@media (min-width:1600px) { .pages { padding:34px 44px; }.topbar,.statusbar { padding-left:44px; padding-right:44px; }.portfolio-value { padding:32px 34px; }.portfolio-total { font-size:51px; }.portfolio-allocation { padding:26px 30px; }.allocation-donut { width:200px; height:200px; }.value-sculpture { width:300px; right:-20px; bottom:-52px; } }
@media (max-width:1300px) { .app { grid-template-columns:190px minmax(0,1fr); }.sidebar { padding-left:12px; padding-right:12px; }.topbar,.statusbar { padding-left:24px; padding-right:24px; }.pages { padding:26px 24px; }.pills .pill:not(.keep) { display:none; }#page-account { grid-template-columns:minmax(0,1fr); }#accountInsight { grid-column:1; grid-row:3; }#page-account>.page-panel { grid-row:2; }.performance-bars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:30px; }.performance-axis { display:none; }.portfolio-performance .portfolio-section-head { display:flex; }#accountCards { grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr); }.allocation-donut { width:148px; height:148px; }.allocation-layout { gap:10px; }.portfolio-allocation { padding:22px 18px; }.page-chart { grid-template-columns:minmax(0,1fr) 200px; grid-template-areas:'strip strip' 'chart list' 'side side'; height:auto; }.page-chart .side { min-height:230px; }.global-search { width:170px; } }
@media (max-width:1000px) { .global-search { width:125px; }.breadcrumb { font-size:11px; }#accountCards { grid-template-columns:1fr; }.portfolio-value { min-height:255px; }.portfolio-allocation { min-height:240px; }.allocation-donut { width:185px; height:185px; }.allocation-items { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.allocation-layout { gap:25px; }.portfolio-value .value-sculpture { width:290px; opacity:.5; }.portfolio-total { font-size:42px; }.portfolio-stats b { font-size:21px; }.portfolio-welcome { padding:32px; }.portfolio-welcome h2 { font-size:32px; }.portfolio-welcome img { width:60%; right:-9%; } }
@media (max-width:800px) {
  .app { grid-template-columns:minmax(0,1fr); grid-template-rows:112px minmax(0,1fr) 28px; }.sidebar { grid-column:1; grid-row:1; display:block; padding:16px 16px 0; border-right:0; border-bottom:1px solid var(--line); background:#151916; }.brand { display:inline-grid; font-size:18px; }.brand-mark { width:24px; height:27px; }.brand-caption { font-size:6px; }.nav-caption,.sidebar-note,.sidebar-profile { display:none; }.menu { flex-direction:row; overflow-x:auto; scrollbar-width:none; gap:4px; height:44px; margin-top:14px; }.menu a { padding:8px 10px; min-height:34px; gap:6px; font-size:11px; }.menu a svg { width:16px; height:16px; }.menu a[aria-current=page] { box-shadow:inset 0 -2px var(--accent); }.topbar { position:absolute; top:16px; right:16px; background:transparent; padding:0; border:0; gap:8px; }.breadcrumb,.pills,.topbar>.spacer,.global-search { display:none; }.pages { grid-column:1; grid-row:2; padding:24px 20px; }.statusbar { grid-column:1; padding:0 20px; gap:13px; }.workspace-heading h1 { font-size:26px; }.workspace-heading { padding-bottom:22px; }.workspace-heading p { font-size:11px; }.workspace-action { font-size:10px; gap:10px; }.portfolio-total { font-size:43px; }.portfolio-stats>div { padding:0 20px; }.page-chart { min-height:850px; }.portfolio-welcome { min-height:335px; }.portfolio-welcome img { width:60%; right:-4%; }.connect-steps ol { gap:15px; }
}
@media (max-width:600px) {
  .pages { padding:22px 16px; }.workspace-action { display:none; }.workspace-heading h1 { margin:7px 0; font-size:25px; }.workspace-heading small { font-size:8px; }.workspace-heading p { max-width:300px; }.page { gap:16px; }#accountCards { gap:14px; }.portfolio-value { padding:22px; min-height:250px; }.portfolio-total { font-size:36px; letter-spacing:-1.4px; margin-top:28px; }.portfolio-profit { font-size:11px; gap:7px; }.portfolio-profit>span:last-child { font-size:9px; }.value-head { gap:7px; font-size:11px; }.value-head small { font-size:9px; }.portfolio-seg button { padding:5px 7px; font-size:9px; }.value-sculpture,.portfolio-value .value-sculpture { width:225px; bottom:-30px; right:-35px; opacity:.4; }.value-bottom { margin-top:28px; font-size:9px; gap:10px; }.portfolio-stats { grid-template-columns:1fr; padding:0 20px; }.portfolio-stats>div { display:grid; grid-template-columns:1fr auto; align-items:center; gap:7px 10px; padding:16px 0; border-right:0; border-bottom:1px solid var(--line); }.portfolio-stats b { font-size:20px; }.portfolio-stats small { grid-column:1 / -1; font-size:9px; }.portfolio-allocation { padding:20px; }.allocation-layout { gap:10px; }.allocation-donut { width:155px; height:155px; }.allocation-items { grid-template-columns:1fr; gap:0; }.allocation-items button { font-size:9px; padding:5px; }.donut-center b { font-size:26px; }.donut-center>span { font-size:9px; }
  .holdings-toolbar { padding:16px; gap:10px; }.holdings-toolbar .spacer { display:none; }.holdings-toolbar>.portfolio-seg:last-child { margin-left:auto; }.holdings-toolbar h2 { font-size:13px; }.holdings-toolbar .portfolio-seg { gap:0; }.holdings-toolbar .portfolio-seg button { padding:5px 6px; }.holdings-table { min-width:0; table-layout:fixed; }.holdings-table th,.holdings-table td { padding:10px 12px; }.holdings-table th:first-child,.holdings-table td:first-child { padding-left:16px; width:48%; }.holdings-table th:nth-child(4),.holdings-table td:nth-child(4) { width:29%; padding-left:4px; padding-right:8px; }.holdings-table th:nth-child(5),.holdings-table td:nth-child(5) { width:23%; padding-left:4px; padding-right:16px; }.holdings-table th:nth-child(2),.holdings-table td:nth-child(2),.holdings-table th:nth-child(3),.holdings-table td:nth-child(3),.holdings-table th:nth-child(6),.holdings-table td:nth-child(6),.holdings-table th:nth-child(7),.holdings-table td:nth-child(7) { display:none; }.holdings-table td { font-size:10px; height:69px; }.holding-symbol { min-width:0; gap:8px; }.holding-symbol b { font-size:11px; }.holding-symbol small { max-width:95px; font-size:9px; }.symbol-avatar { width:29px; height:29px; border-radius:9px; font-size:10px; }.holdings-table td small { font-size:9px; }.holdings-footnote { padding:12px 16px; font-size:8px; }.holdings-footnote span:last-child { display:none; }.portfolio-performance { padding:20px; }.portfolio-performance .portfolio-section-head { display:block; }.performance-bars { grid-template-columns:1fr; margin-top:14px; }.performance-item { min-height:36px; }.performance-axis { display:flex; }.panel-body { padding:20px 16px; }
  .portfolio-welcome { display:block; padding:28px 25px 240px; min-height:520px; }.portfolio-welcome h2 { font-size:33px; }.portfolio-welcome p { font-size:12px; }.portfolio-welcome img { width:350px; max-width:110%; top:auto; bottom:-25px; right:-10px; transform:none; }.connect-steps ol { grid-template-columns:1fr; gap:15px; }.connect-steps p { margin-bottom:0; }.connect-steps .page-head small { display:block; }.page-chart { display:flex; min-height:1100px; height:auto; }.page-chart .chart { min-height:440px; }.page-chart .list { height:280px; }.page-chart .side { min-height:230px; }.statusbar span:nth-child(3) { display:none; }.settings-intro { padding:22px 18px; }.settings-intro h2 { font-size:19px; }.rb-summary { padding-left:0; padding-right:0; gap:8px; }.rb-stat { padding:13px; }.rb-stat b { font-size:17px; }.rb-split,.rb-toolbar { padding-left:0; padding-right:0; }.stairs li { gap:5px; }.lock-card { padding:26px 24px; }.lock-card h1 { font-size:22px; }.lock-sculpture { width:215px; }.pin-form { flex-direction:column; align-items:stretch; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
.menu a[aria-current=page]::after { display:none; }
.settings-intro ~ .cards { display:block; }.settings-intro ~ .cards .card { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:70px; }.settings-intro ~ .cards .card b { font-size:13px; letter-spacing:0; margin:0; font-weight:500; }.settings-intro ~ .cards .card small { white-space:nowrap; }

/* Column sorting keeps numeric values and keyboard focus readable. */
.table-sort { display:inline-flex; align-items:center; gap:4px; border:0; background:transparent; color:inherit; font:inherit; font-weight:600; padding:5px 0; min-height:32px; cursor:pointer; white-space:nowrap; }
.table-sort:hover { color:var(--accent,#c5ee83); }
.table-sort:focus-visible { outline:2px solid var(--accent,#c5ee83); outline-offset:3px; border-radius:3px; }
th[aria-sort="ascending"],th[aria-sort="descending"] { color:var(--accent,#c5ee83); }
.holdings-toolbar { flex-wrap:wrap; }
@media(max-width:640px) { .holdings-toolbar .spacer { display:none; } .holdings-toolbar .portfolio-seg { margin-left:0; flex-wrap:wrap; } .holdings-table .table-sort { font-size:10px; } }


#listTabs { flex-wrap:wrap; }
.list-sort { display:flex; justify-content:space-between; gap:8px; width:100%; padding:0 8px; }
.list-sort .table-sort { font-size:10px; }

/* Give the symbol list the former holdings card's space. */
.page-chart { grid-template-columns:minmax(0,1fr) 350px; grid-template-rows:auto minmax(440px,1fr) auto; grid-template-areas:'strip strip' 'chart list' 'side list'; height:auto; }
.page-chart #side { min-height:0; max-height:360px; }
.page-chart .list-head { display:none; }
.page-chart .list-row { grid-template-columns:22px minmax(80px,1fr) 95px 65px; gap:6px; min-height:52px; font-size:13px; }
.page-chart .list-row .nm { font-size:11px; }
.page-chart #listTabs { padding:8px 12px 0; }
.page-chart #listTabs .tab { white-space:nowrap; font-size:13px; }
.page-chart #listTabs .list-sort { display:grid; grid-template-columns:22px minmax(80px,1fr) 95px 65px; gap:6px; padding:4px 0; }
.page-chart .list-sort::before { content:''; }
.page-chart .list-sort .table-sort { font-size:12px; justify-content:flex-end; }
.page-chart .list-sort .table-sort:first-of-type { justify-content:flex-start; }
.watch-tools { display:flex; flex-wrap:wrap; gap:8px; padding:8px 12px; }
.watch-tools .btn { font-size:11px; }
.watch-sector-form { padding:10px 12px; display:flex; flex-wrap:wrap; gap:8px; background:var(--panel-2); }
.watch-sector-form label { width:100%; font-size:12px; }
.watch-sector-form input { width:100%; min-width:0; padding:8px; border:1px solid var(--line); border-radius:6px; background:var(--panel); color:var(--text); }
.watch-divider { display:flex; align-items:center; gap:8px; padding:16px 12px 8px; color:var(--accent); font-size:12px; font-weight:600; }
.watch-divider::before { content:''; width:12px; height:1px; background:#576650; }
.watch-divider::after { content:''; height:1px; flex:1; background:#3f4c40; }
.watch-divider small { color:var(--muted); font-size:11px; }
.watch-divider button { border:0; border-radius:4px; background:var(--panel-2); color:var(--muted); cursor:pointer; padding:3px 7px; }
.watch-sector-empty { margin:5px 12px 10px; font-size:11px; color:var(--muted); }
.list-row [data-watch-sector] { display:block; width:100%; margin:6px 0; padding:3px; font-size:11px; color:var(--text); background:var(--panel-2); border:1px solid var(--line); border-radius:4px; }
@media (max-width:1300px) { .page-chart { grid-template-columns:minmax(0,1fr) 320px; grid-template-areas:'strip strip' 'chart list' 'side list'; } }
@media (max-width:900px) { .page-chart { display:grid; height:auto; grid-template-columns:minmax(0,1fr); grid-template-rows:auto 440px auto auto; grid-template-areas:'strip' 'chart' 'list' 'side'; }.page-chart .list { height:430px; }.page-chart #side { min-height:0; } }
.alert-row { grid-template-columns:105px minmax(0,1fr) auto; gap:16px; min-height:76px; }
.alert-check { display:flex; align-items:center; gap:8px; font-size:12px; cursor:pointer; color:var(--accent); }
.alert-check input { width:18px; height:18px; accent-color:var(--accent); cursor:pointer; }
.alert-row p { font-size:14px; }.alert-row p small { font-size:12px; }
.alert-row.is-reviewed { background:#161c18; }
.alert-row.is-reviewed p { color:#849188; }.alert-row.is-reviewed p small { color:#768279; }
.alert-row.is-reviewed .alert-check { color:#a5b5a9; }
.alert-row button:disabled { opacity:.4; cursor:default; }
@media (max-width:640px) { .alert-row { grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:14px 0; }.alert-check { grid-column:1 / -1; }.alert-row p { margin:0; } }

/* Copy research: readable numbers, compact rows and separate data scopes. */
#page-copy > .panel { padding:0; background:transparent; border:0; }
#copyBody.panel-body { padding:0; }
.copy-workspace { width:100%; max-width:1440px; margin:0 auto; color:#e2e9e3; }
.copy-legend { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; font-size:13px; margin:0 0 18px; color:#b8c6bb; }
.copy-section { padding:20px; margin-bottom:20px; border:1px solid #303d34; border-radius:14px; background:#171e19; }
.copy-section .page-head { padding:0 0 14px; margin:0 0 14px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; justify-content:space-between; }
.copy-section .page-head h2 { font-size:18px; margin:0; }
.copy-section .page-head small { font-size:13px; color:#a6b7ac; }
.copy-workspace .cards { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); margin:14px 0; gap:10px; }
.copy-forward-section .cards { grid-template-columns:repeat(6,minmax(0,1fr)); }
.copy-workspace .card { padding:14px 16px; background:#1f2821; border-color:#344337; min-width:0; }
.copy-workspace .card small { font-size:12px; line-height:1.55; color:#afc0b3; }
.copy-workspace .card > small:first-child { display:flex; align-items:center; gap:8px; }
.copy-workspace .card > b { display:block; font-size:24px; margin:8px 0 5px; letter-spacing:-.5px; }
.copy-metric-icon { width:17px; height:17px; color:#c5ee83; flex-shrink:0; }
.copy-exposure { display:flex; flex-wrap:wrap; gap:12px 24px; align-items:center; padding:12px 14px; margin:16px 0; border:1px solid #344337; border-radius:9px; background:#1b241e; font-size:13px; }
.copy-table-title { font-size:15px; margin:18px 0 10px; display:flex; gap:10px; align-items:center; }
.copy-table-title > span { font-size:12px; color:#afc0b3; }
.copy-table-wrap { max-width:100%; overflow:auto; border:1px solid #303b33; border-radius:9px; }
.copy-workspace table.grid { width:100%; font-size:14px; }
.copy-workspace table.grid th { font-size:12px; height:42px; padding:4px 12px; color:#b6c6bb; background:#202b23; }
.copy-workspace table.grid td { font-size:14px; height:46px; padding:7px 12px; border-color:#2c3830; }
.copy-workspace table.grid tbody tr:nth-child(even) { background:#1b241e; }
.copy-workspace table.grid tbody tr:hover { background:#27362b; }
.copy-workspace .table-sort { font-size:12px; }
.copy-workspace .copy-coin { display:inline-flex; align-items:center; gap:9px; }
.copy-coin-icon { display:inline-grid; place-items:center; width:28px; height:28px; border:1px solid #587048; background:#30422a; color:#d3f5b0; border-radius:9px; font-size:10px; font-weight:700; }
.copy-direction { display:inline-flex; align-items:center; gap:4px; padding:5px 8px; border:1px solid; border-radius:6px; font-size:12px; font-weight:650; line-height:1; white-space:nowrap; }
.copy-direction.is-long { color:#9fe3bc; background:#203d2c; border-color:#416d50; }
.copy-direction.is-short { color:#d6b7ff; background:#352745; border-color:#71578e; }
.copy-leverage { display:inline-flex; align-items:center; gap:5px; padding:5px 8px; background:#2c3630; color:#dce8de; border:1px solid #4a5d50; border-radius:6px; font-size:13px; font-weight:650; }
.copy-leverage small { font-size:11px; color:inherit; }
.copy-workspace .lev-5 { color:#ffd58b; }.copy-workspace .lev-10 { color:#ffb2a3; }
.copy-leverage.lev-5 { background:#403520; border-color:#826735; }.copy-leverage.lev-10 { background:#442b25; border-color:#875248; }
.copy-pnl { display:inline-flex; gap:4px; align-items:center; font-weight:650; white-space:nowrap; font-variant-numeric:tabular-nums; }
.copy-pnl.profit,.copy-workspace .up { color:#9de5b8; }.copy-pnl.loss,.copy-workspace .down { color:#ff9ca8; }.copy-pnl.neutral { color:#b5c4ba; }
.copy-price-stack { display:inline-flex; flex-direction:column; gap:3px; }.copy-price-stack small { color:#b3c3b9; font-size:12px; }
.copy-workspace .copy-close-liq { color:#ffb2a3; font-weight:650; }
.copy-workspace .copy-wallet { color:#a9bbb0; font-size:12px; }
.copy-caption,.copy-workspace .hint { font-size:12px; color:#a9bbb0; line-height:1.7; margin:12px 0 0; }
.copy-workspace .empty { font-size:14px; }
@media (max-width:1400px) { .copy-forward-section .cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) {
  .copy-section { padding:14px; border-radius:10px; }
  .copy-workspace .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .copy-workspace .card { padding:12px; }.copy-workspace .card > b { font-size:21px; }
  .copy-legend { gap:10px; }.copy-exposure { gap:12px; }
  .copy-workspace table.grid td { padding:7px 10px; }
}

.watch-order-hint {font-size:12px;color:var(--muted);margin:4px 0 10px;line-height:1.5}
.watch-stock-tools {grid-column:2/-1;display:flex;gap:6px;align-items:center;margin:4px 0 2px;min-width:0}
.watch-stock-tools select {flex:1;min-width:0}
.watch-stock-tools button,.watch-divider button {min-width:28px;min-height:28px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--text);cursor:pointer}
.watch-stock-tools button:disabled,.watch-divider button:disabled,.list-sort button:disabled {opacity:.3;cursor:default}
.watch-tools [aria-pressed="true"] {border-color:var(--accent);color:var(--accent)}
