* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { background:var(--bg); scroll-padding-top:calc(var(--space-9) + env(safe-area-inset-top)); }
body { margin:0; font:400 var(--text-sm)/1.5 var(--font); font-variant-numeric:tabular-nums; color:var(--ink); background:radial-gradient(ellipse at 10% 0,var(--glow),transparent 50%),radial-gradient(ellipse at 95% 40%,var(--glow-amber),transparent 50%),var(--bg); min-height:100vh; min-height:100dvh; -webkit-tap-highlight-color:transparent; }
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:10; opacity:.025; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23n)' opacity='.5' d='M0 0h120v120H0z'/%3E%3C/svg%3E"); }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a,input,select,summary { touch-action:manipulation; }
button { cursor:pointer; }
button,a.button { transition:transform var(--dur-tap) var(--ease-out),opacity var(--dur-tap) var(--ease-out); }
button:active,a.button:active,.row:active { transform:scale(.985); }
button:disabled { opacity:.55; cursor:default; }
:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3,strong,b { font-weight:600; }
code,pre,kbd { font-family:var(--font); }
h1 { font-size:var(--text-lg); letter-spacing:-.025em; line-height:1.3; }
h2 { font-size:var(--text-md); line-height:1.4; letter-spacing:-.01em; }
h3 { font-size:var(--text-sm); }
p { max-width:70ch; }
small,.small { font-size:var(--text-xs); }
.num,.money,.gain,.loss { font-variant-numeric:tabular-nums; }
.gain,.up { color:var(--up); }
.loss,.down,.dn { color:var(--down); }
.muted,.mut,.row-meta { color:var(--muted); }
.icon { width:24px; height:24px; flex:none; display:inline-block; vertical-align:middle; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip-link { position:fixed; top:calc(var(--space-2) + env(safe-area-inset-top)); left:var(--space-4); z-index:99; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; background:var(--surface); }
.skip-link.skip-link-ready:focus-visible { width:auto; height:auto; overflow:visible; clip-path:none; padding:var(--space-3); }
.topbar { position:sticky; top:0; z-index:20; min-height:calc(64px + env(safe-area-inset-top)); padding:calc(var(--space-2) + env(safe-area-inset-top)) max(var(--space-5),env(safe-area-inset-right)) var(--space-2) max(var(--space-5),env(safe-area-inset-left)); display:flex; align-items:center; justify-content:space-between; gap:var(--space-4); background:var(--frost); backdrop-filter:blur(16px) saturate(150%); border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:var(--space-3); min-height:44px; font-size:var(--text-md); font-weight:600; letter-spacing:-.025em; }
.topbar-actions { display:flex; align-items:center; gap:var(--space-2); }
.paper-label { flex:none; white-space:nowrap; padding:2px 7px; border:1px solid var(--border); border-radius:var(--radius-pill); background:var(--hs-accent-soft); color:var(--accent); font-size:var(--text-xs); line-height:1.4; font-weight:600; }
.icon-button { display:grid; place-items:center; min-height:44px; min-width:44px; border:0; border-radius:50%; background:transparent; }
.icon-button:hover { background:var(--surface-2); }
#app { width:100%; max-width:1100px; margin:auto; padding:var(--space-6) max(var(--space-4),env(safe-area-inset-right)) calc(var(--space-9) + var(--space-9) + env(safe-area-inset-bottom)) max(var(--space-4),env(safe-area-inset-left)); display:flex; flex-direction:column; gap:var(--space-5); }
.auth-card { width:min(100%,460px); margin:clamp(12px,5vh,64px) auto 0; padding:var(--space-6); }
.auth-heading { display:flex; align-items:center; gap:var(--space-3); margin-bottom:var(--space-5); font-size:var(--text-md); font-weight:600; }
.auth-fields { display:flex; flex-direction:column; gap:var(--space-3); }
.auth-fields h1 { font-size:var(--text-xl); }
.auth-fields p { line-height:1.5; }
.auth-fields label { margin-bottom:calc(-1 * var(--space-2)); font-weight:600; }
.auth-fields input { min-height:48px; width:100%; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--ink); padding:0 var(--space-3); font-size:16px; }
.auth-fields .ia-button { min-height:48px; width:100%; }
.auth-text-link { display:flex; align-items:center; justify-content:center; min-height:44px; border:0; background:transparent; color:var(--accent); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.auth-legal { display:flex; flex-wrap:wrap; justify-content:center; gap:0 var(--space-2); margin-top:var(--space-4); border-top:1px solid var(--border); padding-top:var(--space-3); }
.auth-legal a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 var(--space-2); color:var(--accent); }
.auth-consent { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:var(--space-2); }
.auth-fields .auth-consent input { width:44px; min-height:44px; height:44px; margin:0; padding:10px; accent-color:var(--accent); }
.auth-consent span { min-width:0; line-height:1.5; }
.auth-consent a { display:inline-flex; align-items:center; min-width:44px; min-height:44px; color:var(--accent); }
.auth-fields .auth-consent-note { margin:calc(-1 * var(--space-2)) 0 0; color:var(--muted); font-size:var(--text-sm); }
.auth-error { color:var(--down); }
.auth-status { color:var(--up); }
.ia-reset-message { display:flex; flex-direction:column; gap:var(--space-2); margin-top:var(--space-3); }
.ia-reset-message textarea { width:100%; min-height:132px; padding:var(--space-3); border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--ink); font-size:16px; }
.navigation { position:fixed; bottom:0; left:0; right:0; z-index:30; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); padding:var(--space-2) max(var(--space-2),env(safe-area-inset-right)) max(var(--space-2),env(safe-area-inset-bottom)) max(var(--space-2),env(safe-area-inset-left)); background:var(--frost); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border-top:1px solid var(--border); transform:translateZ(0); }
.navigation a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--space-1); min-height:56px; padding:var(--space-1); font-size:var(--text-xs); color:var(--muted); border-radius:var(--radius-sm); }
.navigation a.active { color:var(--accent); background:var(--hs-accent-soft); font-weight:600; }
.stack { display:flex; flex-direction:column; gap:var(--space-4); }
.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:var(--space-4); box-shadow:var(--shadow); min-width:0; }
.card > .stack { gap:var(--space-3); }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); }
.section-head h2 { font-size:var(--text-lg); line-height:1.3; }
.section-head a { min-height:44px; display:inline-flex; align-items:center; gap:var(--space-2); color:var(--accent); font-weight:600; flex:none; }
.section-head a .icon { width:16px; height:16px; }
.rows { display:flex; flex-direction:column; }
.row { display:flex; align-items:center; gap:var(--space-3); padding:var(--space-3) 0; min-height:64px; border-bottom:1px solid var(--border); min-width:0; }
.row:last-child { border-bottom:0; }
a.row:hover,button.row:hover { background:var(--surface-2); border-radius:var(--radius-sm); }
/* A row can be a <button> (Open positions): drop the browser's gray button fill, border and centred text. */
button.row { width:100%; margin:0; padding:var(--space-3) 0; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; color:var(--ink); text-align:left; -webkit-appearance:none; appearance:none; }
button.row:last-child { border-bottom:0; }
.row-line { display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-3); min-width:0; }
.row-line .row-value { max-width:none; white-space:nowrap; }
.rows-more { width:100%; min-height:44px; margin-top:var(--space-2); border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); color:var(--accent); font-weight:600; }
.row-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:var(--space-1); }
.row-title { font-weight:600; overflow-wrap:anywhere; }
.row-meta { font-size:var(--text-xs); }
.row-value { text-align:right; max-width:35%; font-size:var(--text-sm); flex-shrink:0; }
.style-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:var(--radius-sm); background:var(--soft-green); color:var(--up); flex:none; }
.style-icon.day { background:var(--amber-soft); color:var(--amber); }
.chip,.button,.segment button { display:inline-flex; align-items:center; justify-content:center; gap:var(--space-2); min-height:44px; padding:var(--space-2) var(--space-4); border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); font-weight:600; text-align:center; }
.chip { border-radius:var(--radius-pill); }
.chip[aria-pressed="true"],.chip.active,.segment button[aria-selected="true"],.segment button[aria-pressed="true"],.segment button.on { background:var(--hs-accent-soft); color:var(--accent); border-color:var(--accent); }
.primary { background:var(--accent); color:var(--accent-ink); border-color:transparent; box-shadow:0 4px 12px var(--glow); }
.segment { display:flex; flex-wrap:wrap; gap:var(--space-1); padding:var(--space-1); border:1px solid var(--border); background:var(--surface-2); border-radius:var(--radius-sm); }
.segment button { flex:1; padding:var(--space-2); border-color:transparent; background:transparent; }
.positions-side-filter { margin-bottom:var(--space-2); }
.switch { display:inline-flex; align-items:center; justify-content:space-between; gap:var(--space-3); min-height:44px; border:0; background:transparent; padding:var(--space-2) 0; text-align:left; }
.switch::after { content:""; flex:none; width:40px; height:24px; border:1px solid var(--muted); border-radius:var(--radius-pill); background:radial-gradient(circle at 11px 50%,var(--muted) 7px,transparent 8px),var(--surface-2); }
.switch[aria-checked="true"]::after { border-color:var(--up); background:radial-gradient(circle at 28px 50%,var(--surface) 7px,transparent 8px),var(--up); }
.sheet { position:fixed; z-index:50; inset:auto 0 0; max-height:90dvh; overflow:auto; padding:var(--space-6); border:1px solid var(--border); border-radius:var(--radius-lg) var(--radius-lg) 0 0; background:var(--surface); box-shadow:var(--shadow); }
.empty { display:flex; flex-direction:column; align-items:center; gap:var(--space-3); padding:var(--space-6) var(--space-4); text-align:center; }
.empty p { max-width:38ch; }
.empty-art { display:flex; align-items:center; justify-content:center; gap:var(--space-4); background:radial-gradient(ellipse,var(--glow),transparent 70%); }
.empty-art .icon { width:64px; height:64px; color:var(--up); }

.empty .button { margin-top:var(--space-1); }
.skeleton-card { display:flex; flex-direction:column; gap:var(--space-4); }
.skeleton { border-radius:var(--radius-sm); background:var(--surface-2); overflow:hidden; position:relative; }
.skeleton::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,var(--glow),transparent); animation:shimmer 1.6s infinite; transform:translateX(-100%); }
.skeleton-title { height:16px; width:40%; }
.skeleton-number { height:40px; width:60%; }
.skeleton-row { height:48px; width:100%; }
.skeleton-chart { height:160px; width:100%; }
.page-enter { animation:page-enter var(--dur-2) var(--ease-out) both; }
@keyframes page-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmer { to { transform:translateX(100%); } }
.home-grid { display:grid; gap:var(--space-5); }
.home-account { background:radial-gradient(ellipse at 90% 0,var(--glow),transparent 65%),var(--surface); display:flex; flex-direction:column; gap:var(--space-4); }
.home-setup-summary{display:block;min-height:56px;padding-top:var(--space-3);border-top:1px solid var(--border);color:var(--ink);font-size:var(--text-xs);line-height:1.5;text-decoration:none}
.account-heading { display:flex; flex-direction:column; gap:var(--space-1); }
.account-value { font-size:var(--text-xl); font-weight:600; letter-spacing:-.045em; line-height:1.2; overflow-wrap:anywhere; }
.account-label { display:flex; align-items:center; gap:var(--space-2); color:var(--muted); font-size:var(--text-xs); }
.account-label .icon { width:16px; height:16px; }
.account-change { font-size:var(--text-sm); }
.account-since { font-size:var(--text-xs); color:var(--muted); }
.account-asof { font-size:var(--text-xs); color:var(--muted); }
.chart-wrap { display:flex; flex-direction:column; gap:var(--space-2); }
.account-chart { width:100%; height:160px; overflow:visible; }
.chart-axis { display:flex; justify-content:space-between; gap:var(--space-3); color:var(--muted); font-size:var(--text-xs); }
.chart-axis span:last-child { text-align:right; }
.chart-legend { display:flex; align-items:center; gap:var(--space-2); min-height:1.25em; white-space:nowrap; font-size:var(--text-xs); color:var(--muted); }
.chart-legend::before { content:""; width:24px; border-top:2px dashed var(--muted); }
.account-controls { display:flex; flex-direction:column; gap:var(--space-2); }
.account-controls .switch { font-size:var(--text-xs); color:var(--muted); }
.market-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--space-2); }
.market-cell { background:var(--surface-2); padding:var(--space-3); border-radius:var(--radius-sm); display:flex; flex-direction:column; gap:var(--space-1); }
.market-cell dt { font-size:var(--text-xs); color:var(--muted); }
.market-cell dd { margin:0; font-size:var(--text-md); font-weight:600; }
dl { margin:0; }
.home-market,.home-events,.home-setups { display:flex; flex-direction:column; gap:var(--space-3); }
.home-events .row { align-items:flex-start; }
.home-events .row > .icon { color:var(--muted); margin-top:var(--space-1); }
.home-market > .button { align-self:flex-start; }
.notice { padding:var(--space-3); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--muted); font-size:var(--text-xs); }
@media (min-width:700px) { .home-grid { grid-template-columns:1.25fr 1fr; align-items:start; }.home-account { grid-row:span 2; }.home-market { grid-column:1/-1; }.market-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }.account-chart { height:200px; } }
@media (min-width:1024px) { .topbar { padding:calc(var(--space-3) + env(safe-area-inset-top)) var(--space-7) var(--space-3); }.navigation { top:calc(72px + env(safe-area-inset-top)); bottom:0; right:auto; width:200px; display:flex; flex-direction:column; gap:var(--space-2); padding:var(--space-6) var(--space-4); border-top:0; border-right:1px solid var(--border); }.navigation a { flex-direction:row; justify-content:flex-start; gap:var(--space-3); padding:var(--space-3) var(--space-4); font-size:var(--text-sm); min-height:48px; }#app { width:calc(100% - 200px); max-width:1100px; margin-left:200px; padding:var(--space-7); gap:var(--space-6); }.card { padding:var(--space-5); }.home-grid { gap:var(--space-6); }.sheet { left:auto; width:480px; top:0; border-radius:var(--radius-lg) 0 0 var(--radius-lg); max-height:100dvh; }.account-value { font-size:var(--text-xl); } }
@media (min-width:1500px) { #app { margin-left:calc(200px + (100vw - 1300px)/2); } }
.navigation a span { max-width:100%; min-width:0; overflow-wrap:anywhere; }
h1:focus { outline:none; }
summary { cursor:pointer; min-height:44px; display:flex; align-items:center; gap:var(--space-2); }
summary::before { content:"+"; color:var(--muted); }
details[open] > summary::before { content:"−"; }
details > p { padding-top:var(--space-2); }

/* Andy 109011: alerts sit on the right of the Today heading row; the row's height is fixed so the async load shifts nothing. */
.today-head { height:44px; display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); min-width:0; }
.today-head h1 { min-width:0; }
.v3-today-alert { flex:none; height:44px; min-width:0; }
.v3-alert-link { height:44px; min-width:44px; display:flex; align-items:center; gap:var(--space-2); padding:0 var(--space-3); border:1px solid var(--border); border-radius:var(--radius-pill); background:var(--surface); font-size:var(--text-sm); white-space:nowrap; }
.v3-alert-link > .icon:first-child { width:18px; height:18px; color:var(--accent); }
.v3-alert-link > .icon:last-child { width:16px; height:16px; color:var(--muted); }
.v3-alert-summary { color:var(--muted); white-space:nowrap; }
.v3-alert-link.is-unread { border-color:var(--amber); background:var(--amber-soft); }
.v3-alert-link.is-unread > .icon:first-child,.v3-alert-link.is-unread .v3-alert-summary { color:var(--amber); font-weight:600; }
.v3-alerts-card { display:flex; flex-direction:column; gap:var(--space-4); }
.v3-alerts-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); }
.v3-alerts-head .button { min-height:44px; padding:var(--space-2); font-size:var(--text-xs); }
.v3-alerts-head .button { flex:none; white-space:nowrap; }  /* v3_alerts_factfirst_1021: "Mark all read" stays on one line at 320 */
.v3-alert-list { display:flex; flex-direction:column; gap:var(--space-3); }
.v3-alert { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:start; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); min-width:0; }
.v3-alert.caution { border-left:3px solid var(--amber); }
.v3-alert.info { border-left:3px solid var(--up); }
/* v3_alerts_useful_1020 (Andy 110188): the whole row opens the screen it is about; dismiss and Change limits sit beside it. */
.v3-alert-main, .v3-alert-past { display:flex; gap:var(--space-2); align-items:center; min-width:0; min-height:44px; padding:var(--space-3); color:inherit; text-decoration:none; border-radius:var(--radius-sm); }
.v3-alert-main:hover, .v3-alert-past:hover { background:var(--surface); }
.v3-alert-main:focus-visible, .v3-alert-past:focus-visible, .v3-alert-limits:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.v3-alert-copy { flex:1; min-width:0; overflow-wrap:anywhere; display:flex; flex-direction:column; }
.v3-alert-copy p { margin:var(--space-1) 0; }
.v3-alert-chev { flex:none; display:grid; place-items:center; color:var(--muted); }
.v3-alert-chev .icon { width:16px; height:16px; }
.v3-alert-dismiss { width:44px; min-height:44px; display:grid; place-items:center; border:0; background:transparent; border-radius:var(--radius-sm); color:var(--muted); }
.v3-alert-dismiss:hover { background:var(--surface); color:var(--text); }
.v3-alert-dismiss .icon { width:18px; height:18px; }
.v3-alert-limits { grid-column:1 / -1; display:flex; align-items:center; min-height:44px; padding:0 var(--space-3); border-top:1px solid var(--border); color:var(--accent); font-weight:650; text-decoration:none; }
.v3-alert-history-list > .v3-alert-past { padding:var(--space-3) 0; border-top:1px solid var(--border); border-radius:0; }
.v3-alert-history-list > p { padding:var(--space-3) 0; }
.v3-alert-history-list p { margin:var(--space-1) 0; }
.v3-alert-error { color:var(--danger); }
.v3-alert-error button { border:0; background:transparent; text-decoration:underline; min-height:44px; }
/* v3_alerts_factfirst_1021: the title is the fact; under it one muted line (the setup's name) and the time. The dismiss
   sits in the top-right corner so the lines under the title use the row's full width (at most 2 lines at 390 px). */
.v3-alert { position:relative; grid-template-columns:minmax(0,1fr); }
.v3-alert-main, .v3-alert-past { position:relative; }
.v3-alert-main > .v3-alert-copy > strong::before { content:""; float:right; width:32px; height:calc(44px - var(--space-3)); }
.v3-alert-dismiss { position:absolute; top:0; right:0; }
.v3-alert-main > .v3-alert-chev, .v3-alert-past > .v3-alert-chev { position:absolute; right:var(--space-3); bottom:var(--space-3); }
.v3-alert-copy { gap:2px; }
.v3-alert-copy > :last-child { padding-right:24px; }
.v3-alert-copy > strong { font-weight:600; font-size:var(--text-sm); line-height:1.35; }
.v3-alert-meta { display:block; font-size:var(--text-xs); line-height:1.4; }
.ia-broker .ia-funding-link { flex-basis:100%; }

/* 2026-10-16 Andy 108539: the S&P legend's line is always reserved, so the compare switch never moves the screen */
.chart-legend.is-reserved { visibility:hidden; }

/* 2026-10-16 Andy 108546 'Seems our logo has randomly changed': the real Hurdle tile (same as the classic app and app icon) */
.brand .brand-tile { flex:none; display:block; width:32px; height:32px; border-radius:var(--radius-sm); box-shadow:0 4px 12px var(--glow); }

/* 2026-10-16 Andy 108579: the exact rule under every plain-word setup name, so nothing is hidden. 108584 'Don't like the font choice': the app's own font, not monospace */
.row-rule { display:block; margin-top:2px; font-family:inherit; font-size:var(--text-xs); font-weight:400; letter-spacing:0; line-height:1.35; color:var(--muted); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }

/* Three text sizes, native system face, tabular figures throughout every tab. */
.market-card { display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.market-tabs { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; min-height:44px; }
.market-tabs button { flex:none; min-height:44px; padding:8px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); font-size:var(--text-xs); font-weight:600; white-space:nowrap; }
.market-tabs button[aria-pressed=true] { color:var(--accent); background:var(--hs-accent-soft); border-color:var(--accent); }
.market-moves { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
@media (min-width:400px) { .market-moves { grid-template-columns:repeat(4,minmax(0,1fr)); } }
.market-tile { display:flex; flex-direction:column; justify-content:space-between; gap:4px; min-width:0; min-height:64px; padding:8px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text); font:inherit; text-align:left; cursor:pointer; }
.market-tile[aria-pressed=true] { background:var(--hs-accent-soft); border-color:var(--accent); }
.market-tile[aria-pressed=true] .market-tile-name { color:var(--accent); }
.market-tile-name { font-size:var(--text-xs); font-weight:600; line-height:1.25; overflow-wrap:break-word; }
.market-tile-row { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:2px 6px; }
.market-tile-sym { font-size:var(--text-2xs); color:var(--muted); }
.market-tile strong { font-size:var(--text-xs); white-space:nowrap; font-variant-numeric:tabular-nums; }
.market-sector-toggle { align-self:flex-start; min-height:44px; padding:8px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text); font:inherit; font-size:var(--text-xs); font-weight:600; }
.market-sector-toggle[aria-pressed=true] { color:var(--accent); background:var(--hs-accent-soft); border-color:var(--accent); }
.market-sector { display:flex; align-items:center; gap:8px; height:44px; font-size:var(--text-xs); }
.market-sector select { min-width:0; flex:1; width:100%; min-height:44px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); padding:4px 8px; }
.market-sector.is-reserved { visibility:hidden; }
.market-quote { display:flex; align-items:center; justify-content:space-between; gap:8px; height:48px; }
.market-quote h3 { font-size:var(--text-sm); line-height:1.4; max-width:70%; }
.market-quote strong { font-size:var(--text-sm); white-space:nowrap; }
.market-chart { position:relative; height:176px; flex:none; overflow:hidden; }
.market-chart svg { display:block; width:100%; height:176px; }
.market-chart-note { position:absolute; inset:0; display:grid; place-items:center; text-align:center; font-size:var(--text-xs); }
.market-chart-axis { display:flex; justify-content:space-between; height:20px; font-size:var(--text-xs); color:var(--muted); }
.market-ranges { flex-wrap:nowrap; }
.market-state { height:40px; overflow:auto; }
.news-block { display:flex; flex-direction:column; gap:8px; min-width:0; }
.news-items { height:288px; }
.news-row { display:flex; flex-direction:column; justify-content:center; gap:4px; height:96px; padding:10px 0; border-bottom:1px solid var(--border); min-width:0; }
.news-row:last-child { border-bottom:0; }
.news-title { display:block; font-weight:600; font-size:var(--text-sm); line-height:1.4; }
.news-row:hover .news-title { text-decoration:underline; }
.news-empty { font-size:var(--text-xs); }
.home-market,.home-news { grid-column:1/-1; }
.separate-app { font-size:var(--text-xs); color:var(--muted); }
.home-account { overflow-anchor:none; }
.home-account .chart-wrap { height:252px; flex:none; }
.home-account .chart-legend { height:40px; overflow:auto; }
.home-account .chart-axis { height:40px; }
.home-account .account-controls { flex:none; }

.home-account .account-heading { height:112px; flex:none; }
.home-account .account-change { height:48px; overflow:auto; }
.home-account .chart-wrap { height:256px; }
.home-account .account-chart { height:160px; flex:none; }
.home-account .account-asof { flex:none; }

.home-grid { grid-template-columns:minmax(0,1fr); }
.home-grid > * { min-width:0; }
.market-card { min-width:0; }
.market-tabs { min-width:0; }
.market-quote { position:relative; }
.market-quote h3 { width:calc(100% - 96px); max-width:none; height:48px; display:flex; align-items:center; }
.market-quote strong { width:88px; text-align:right; flex:none; }
.market-quote .market-sector { position:absolute; left:0; top:0; width:calc(100% - 96px); height:48px; }
.market-sector .sr-only { position:absolute; }
.market-quote.is-sector h3 { visibility:hidden; }
@media (min-width:700px) { .home-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); } }

.market-chart-axis span,.home-account .chart-axis span { width:50%; min-width:0; display:block; }
.market-chart-axis span:last-child { text-align:right; }
.num,.money,.gain,.loss,.row-value,.su-row-end,.ia-numbers dd { font-weight:600; }
/* The shared read sits immediately under the account value, above its chart. */
.home-account { height:auto; overflow:visible; }
.home-account .account-heading { height:auto; min-height:76px; }
.home-account .account-change { height:auto; min-height:24px; overflow:visible; }
.home-account .chart-wrap { height:auto; min-height:218px; }
.home-account .chart-legend { height:auto; min-height:24px; overflow:visible; white-space:normal; }
.home-account .chart-legend::before { flex:none; }
.home-account .account-asof { height:auto; }
.market-now-card { display:flex; flex-direction:column; align-items:stretch; width:100%; min-height:210px; padding:12px; gap:7px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text); text-align:left; cursor:pointer; }
.market-now-card:focus-visible { outline:3px solid var(--up); outline-offset:2px; }
.market-now-head { display:flex; justify-content:space-between; align-items:baseline; gap:8px; }
.market-now-head strong { font-size:var(--text-lg); }
.market-now-head span { color:var(--muted); font-size:var(--text-2xs); text-align:right; }
.market-now-copy { display:block; min-height:76px; font-size:var(--text-xs); line-height:1.42; }
.market-now-copy .skeleton { display:block; height:14px; margin:6px 0; }
.market-now-copy span { display:block; }
.market-now-copy span + span { margin-top:4px; }
.market-now-setup { display:block; min-height:35px; padding-top:7px; border-top:1px solid var(--border); font-size:var(--text-2xs); line-height:1.4; }
.market-now-setup b { margin-right:4px; }
.market-now-more { align-self:flex-end; color:var(--accent); font-size:var(--text-2xs); font-weight:700; }
.market-now-dialog { width:min(92vw,720px); max-height:90dvh; overflow:auto; border:1px solid var(--border); border-radius:var(--radius); padding:20px; background:var(--surface); color:var(--text); }
.market-now-dialog::backdrop { background:var(--hs-scrim); }
.market-now-dialog-head { display:flex; justify-content:flex-end; }
.market-now-dialog h2,.market-now-dialog h3 { margin:10px 0; }
.market-now-dialog p { line-height:1.55; margin:10px 0; }
.market-now-rows { display:grid; gap:0; margin-bottom:16px; }
.market-now-rows > div { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--border); }
.market-now-rows small { color:var(--muted); }
.market-now-article-chart { margin:16px 0; min-height:176px; }
.market-now-article-chart svg { width:100%; height:176px; }
.market-now-article-chart img { display:block; width:100%; max-height:300px; object-fit:contain; }
/* Chart axes and interaction stay legible at 390 px in either theme. */
.v3-chart { width:100%; min-width:0; height:218px; }
.v3-chart-plot { position:relative; height:188px; margin-right:72px; touch-action:none; }
.v3-chart-plot svg { position:absolute; inset:0; width:100%; height:180px; z-index:2; overflow:visible; }
.v3-chart-grid,.v3-chart-baseline { position:absolute; left:0; right:0; height:0; border-top:1px solid var(--border); z-index:0; }
.v3-chart-grid span,.v3-chart-baseline span { position:absolute; left:calc(100% + 4px); top:-7px; width:68px; text-align:left; white-space:nowrap; color:var(--muted); font-size:var(--text-2xs); line-height:14px; }
.v3-chart-baseline { border-top:1.5px dashed var(--muted); z-index:1; }
.v3-chart-baseline span { top:4px; font-size:var(--text-2xs); }
.v3-chart-cross { position:absolute; top:0; bottom:8px; width:1px; border-left:1px dashed var(--text); z-index:3; pointer-events:none; }
.v3-chart-cross[hidden] { display:none; }
.v3-chart-cross i { display:block; width:7px; height:7px; margin-left:-4px; border-radius:50%; background:var(--text); }
.v3-chart-cross span { position:absolute; left:7px; top:4px; max-width:200px; padding:3px 5px; border-radius:var(--radius-sm); background:var(--surface); border:1px solid var(--border); color:var(--text); font-size:var(--text-2xs); white-space:nowrap; }
.v3-chart-times { width:calc(100% - 72px); display:flex; justify-content:space-between; color:var(--muted); font-size:var(--text-2xs); line-height:22px; }
.v3-chart-times span:last-child { text-align:right; }
.v3-chart-empty { height:218px; display:grid; place-items:center; color:var(--muted); font-size:var(--text-2xs); }
.market-chart { height:218px; overflow:visible; }
.market-chart-axis { display:none; }
.market-quote-number { min-width:98px; text-align:right; display:flex; flex-direction:column; }
.market-quote-number span { font-size:var(--text-2xs); color:var(--muted); }
.market-quote .market-quote-number strong { width:auto; }
.v3-chart-baseline span { left:auto; right:2px; top:-18px; width:auto; padding:0 3px; background:var(--surface); text-align:right; color:var(--muted); font-size:var(--text-2xs); }
.v3-chart-cross i { position:absolute; left:0; margin-left:-4px; z-index:2; }
.v3-chart-cross b { position:absolute; display:block; height:0; border-top:1px dashed var(--muted); opacity:.7; }
.market-now-article-quote { display:flex; align-items:baseline; gap:8px; margin-top:16px; }
.market-now-article-quote h3 { flex:1; font-size:var(--text-sm); }
.market-now-article-quote strong { font-variant-numeric:tabular-nums; white-space:nowrap; }
.market-now-article-quote small { color:var(--muted); white-space:nowrap; }
.market-now-line { display:flex; flex-wrap:wrap; align-items:center; gap:6px; width:100%; min-height:44px; margin:0 0 12px; padding:10px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-2); color:var(--text); font:inherit; font-size:var(--text-xs); text-align:left; cursor:pointer; }
.market-now-line b { color:var(--accent, var(--text)); font-weight:600; margin-left:auto; }
.v3-chart-times { position:relative; display:block; height:22px; }
.v3-chart-times span { position:absolute; top:0; transform:translateX(-50%); white-space:nowrap; }
.v3-chart-times span:first-child { transform:translateX(-6%); }
.v3-chart-times span:last-child:not(:first-child) { transform:translateX(-94%); }
/* The SVG fills the plot so the scale, dashed baseline and drawn line share one vertical geometry everywhere. */
.v3-chart .v3-chart-plot svg { height:100%; max-height:none; background:none; border-radius:0; }

.home-account .account-since { min-height:24px; }
.home-account .account-since.is-reserved { visibility:hidden; }
/* Keep the market card anchored while the account skeleton fills (two-column layout only; single column below stacks freely). */
.home-account { min-height:642px; }
@media (max-width:699px) { .home-account { min-height:0; } }
.home-account .account-after:not(.is-reserved) { min-height:63px; }
.home-account .account-after.is-reserved { display:none; }
/* The Kill Digest card, list and article page (Andy 00:00 10-17): same card system as Markets. */
.kd-card { display:flex; flex-direction:column; gap:12px; overflow:hidden; }
.kd-lead { display:flex; flex-direction:column; gap:6px; min-height:44px; color:inherit; }
.kd-lead-img { display:block; width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); margin-bottom:4px; }
.kd-title { display:block; font-weight:600; line-height:1.35; }
.kd-lead-title { font-size:var(--text-md); }
.kd-dek { display:block; line-height:1.45; }
.kd-lead:hover .kd-title,.kd-row:hover .kd-title { text-decoration:underline; }
.kd-rows { display:flex; flex-direction:column; }
.kd-lead + .kd-rows { border-top:1px solid var(--border); }
.kd-row { display:flex; align-items:center; gap:12px; min-height:64px; padding:10px 0; border-bottom:1px solid var(--border); color:inherit; }
.kd-row:last-child { border-bottom:0; }
.kd-row-text { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.kd-thumb { width:88px; height:50px; object-fit:cover; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); flex:none; }
.kd-all { display:flex; align-items:center; min-height:44px; color:var(--accent); font-weight:600; border-top:1px solid var(--border); }
.kd-empty { margin:0; padding:8px 0; }
#article-body { display:flex; flex-direction:column; gap:var(--space-3); max-width:680px; }
.article { display:flex; flex-direction:column; gap:10px; }
.article-back { display:inline-flex; align-items:center; min-height:44px; color:var(--accent); font-weight:600; }
.article h2 { font-size:var(--text-lg); line-height:1.3; letter-spacing:-.015em; }
.article-dek { font-size:var(--text-sm); line-height:1.45; color:var(--muted); margin:0; }
.article-chart-link { display:block; margin-top:6px; }
.article-chart { display:block; width:100%; height:auto; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--surface); }
.article-chart-hint { margin:0; }
.article-body { font-size:var(--text-sm); line-height:1.65; margin-top:6px; }
.article-body p { margin:0 0 14px; }
.article-body h3 { font-size:var(--text-md); line-height:1.35; margin:24px 0 8px; }
.article-body ul { margin:0 0 14px; padding-left:22px; }
.article-body li { margin-bottom:6px; }
.article a:not(.button):not(.article-back),.article-sources a { color:var(--accent); text-decoration:underline; text-underline-offset:2px; }
.article-sources { border-top:1px solid var(--border); padding-top:12px; font-size:var(--text-xs); color:var(--muted); line-height:1.5; }
.article-sources h3 { font-size:var(--text-xs); text-transform:uppercase; letter-spacing:.06em; margin:0 0 6px; color:var(--muted); }
.article-sources p { margin:0 0 6px; overflow-wrap:anywhere; }
.article-x { display:flex; flex-direction:column; gap:8px; }
.article-x-head { display:flex; align-items:center; gap:10px; }
.article-x-mark { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--ink); color:var(--surface); font-size:var(--text-md); font-weight:700; flex:none; }
.article-x h3 { font-size:var(--text-md); margin:0; }
.article-x p { margin:0; }
.article-x-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:6px !important; }
.article-disclaimer { margin:0; padding:0 4px; }
.article-tickers,.market-headline-chips { display:flex; flex-wrap:wrap; gap:6px; }
.article-tickers { padding-top:4px; }
.market-ticker-chip { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:32px; padding:4px 9px; border:1px solid var(--border); border-radius:999px; color:var(--accent); background:var(--surface-2); font-size:var(--text-xs); font-weight:600; }
.market-headlines { display:flex; flex-direction:column; gap:8px; min-height:510px; border-top:1px solid var(--border); padding-top:14px; }
.market-headlines[hidden] { display:none; }
.market-headlines h3 { margin:0; font-size:var(--text-sm); }
.market-headline-list { display:flex; flex-direction:column; }
.market-headline { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:3px; min-height:136px; padding:8px 0; border-bottom:1px solid var(--border); min-width:0; width:100%; }
.market-headline-title { display:block; max-width:100%; color:var(--text); font-size:var(--text-sm); font-weight:600; line-height:1.35; overflow-wrap:anywhere; }
.market-headline-meta { display:block; max-width:100%; overflow-wrap:anywhere; }
.market-headline-chips { max-width:100%; }
.market-headlines-more { align-self:flex-start; min-height:44px; }
.market-headline-skeleton .skeleton-line { display:block; width:90%; height:14px; }
.market-headline-skeleton .skeleton-line + .skeleton-line { width:55%; }
/* Motion shared by the static v3 surfaces. Native details remains the fallback. */
body { font-variant-numeric:tabular-nums; }
.skeleton { opacity:0; animation:skeleton-show 0s 150ms forwards; }
.skeleton::after { animation-delay:150ms; }
@keyframes skeleton-show { to { opacity:1; } }
.skeleton-lines { display:grid; gap:8px; min-height:42px; align-content:center; width:100%; }
.skeleton-lines-one { min-height:1em; }
.skeleton-line { display:block; width:100%; height:13px; }
.skeleton-line.short { width:58%; }
.skeleton-inline { display:inline-block; width:7ch; height:1em; vertical-align:middle; }
:is(a.row,button.row,.su-row,.iv-row,.stock-more>summary,.su-day>summary,.iv-rule>summary) { transition:background var(--dur-tap) var(--ease-out); }
:is(a.row,button.row,.su-row,.iv-row,.stock-more>summary,.su-day>summary,.iv-rule>summary):active { background:var(--surface-2); }
:is(.btn,.button,.chip,.iv-chip,.su-chip,.icon-button):active { background:var(--surface-2); transform:scale(.98); transition:background var(--dur-tap) var(--ease-out),transform var(--dur-tap) var(--ease-out); }
:is(.btn,.button,.chip,.iv-chip,.su-chip,.icon-button) { transition:background var(--dur-tap) var(--ease-out),transform var(--dur-tap) var(--ease-out); }
.v3-tap-busy{position:relative!important;box-shadow:inset 0 0 0 2px var(--accent)!important;filter:brightness(1.06)}
.v3-tap-status{position:fixed;z-index:9998;left:50%;bottom:calc(82px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:min(80vw,18rem);padding:6px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font-size:13px;font-weight:650;line-height:1.3;box-shadow:0 2px 8px var(--hs-shadow);pointer-events:none}
.motion-ready .motion-body { display:grid; grid-template-rows:0fr; transition:grid-template-rows var(--dur-1) var(--ease-io); }
.motion-ready .motion-inner { min-height:0; overflow:hidden; }
.motion-ready.motion-open .motion-body { grid-template-rows:1fr; }
details:is(.iv-nrow,.iv-rule,.stock-more,.su-day,.su-reasons,.su-card) > summary { list-style:none; }
details:is(.iv-nrow,.iv-rule,.stock-more,.su-day,.su-reasons,.su-card) > summary::-webkit-details-marker { display:none; }
details:is(.iv-nrow,.iv-rule,.stock-more,.su-day,.su-reasons,.su-card) > summary::before { display:none; }
details:is(.iv-rule,.stock-more,.su-day,.su-reasons,.su-card) > summary > .ico[data-icon="chevron-right"] { transition:transform var(--dur-1) var(--ease-io); }
details[open]:is(.iv-rule,.stock-more,.su-day,.su-reasons,.su-card) > summary > .ico[data-icon="chevron-right"] { transform:rotate(90deg); }
.flash-up,.flash-down { border-radius:4px; }
.flash-up { background-color:var(--soft-green); animation:flash-up var(--dur-chart) var(--ease-out) forwards; }
.flash-down { background-color:var(--soft-red); animation:flash-down var(--dur-chart) var(--ease-out) forwards; }
@keyframes flash-up { to { background-color:transparent; } }
@keyframes flash-down { to { background-color:transparent; } }
.num,.money,.gain,.loss,.row-value,.su-row-end,.ia-numbers dd,.account-value,.market-quote-number,.market-moves strong,.stock-quote { font-variant-numeric:tabular-nums; }
.v3-chart[data-chart-draw] .v3-chart-plot svg > path:first-child { stroke-dasharray:1; stroke-dashoffset:1; animation:chart-draw var(--dur-chart) var(--ease-out) forwards; }
@keyframes chart-draw { to { stroke-dashoffset:0; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } button:active,a:active { transform:none !important; } .skeleton { opacity:1; } .skeleton::after { display:none; } .v3-chart[data-chart-draw] .v3-chart-plot svg > path:first-child { stroke-dashoffset:0; } }
/* Keep setup rows anchored while the Money plan summary loads. */
.su-page > .mp-mount { min-height:255px; }

/* iOS Safari zooms on focus below 16px; keep all v3 inputs readable at every viewport width. */
input, select, textarea { font-size: max(16px, 1em) !important; }

/* Article ticker/source links need their own hit area, including short symbols. */
.article-sources a{display:inline-flex;align-items:center;min-width:44px;min-height:44px}.article-body a,a.article-ticker{display:inline;min-width:0;min-height:0;line-height:inherit;padding-block:.15em;text-underline-offset:.15em}a.article-ticker{font-weight:600;white-space:nowrap}

/* First-open intro: the same v3 tokens, logo and touch targets. */
.onboarding-intro { box-sizing:border-box; width:calc(100% - 32px); max-width:440px; max-height:calc(100dvh - 32px); margin:auto; padding:var(--space-5); overflow:auto; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--surface); color:var(--ink); box-shadow:var(--shadow); font:inherit; }
.onboarding-intro::backdrop { background:var(--frost); }
.onboarding-brand { display:flex; align-items:center; gap:var(--space-3); font-weight:600; }
.onboarding-brand .btn { margin-left:auto; }
.onboarding-intro h1 { font-size:var(--text-xl); line-height:1.2; margin:var(--space-4) 0; }
.onboarding-intro p,.onboarding-hint p { line-height:1.55; overflow-wrap:anywhere; }
.onboarding-actions { display:grid; gap:var(--space-3); margin-top:var(--space-6); }
.onboarding-intro .btn,.onboarding-check .btn { min-height:44px; white-space:normal; font-size:16px; }
.onboarding-intro video { display:block; width:100%; max-height:50dvh; margin-bottom:var(--space-4); }
.onboarding-check,.onboarding-hint { padding:var(--space-4); margin-bottom:var(--space-4); }
.onboarding-check-head { display:flex; justify-content:space-between; align-items:center; gap:var(--space-2); }
.onboarding-check h2 { font-size:var(--text-lg); margin:0; }
.onboarding-check ol { list-style:none; padding:0; margin:var(--space-3) 0 0; }
.onboarding-check li a { display:flex; align-items:center; gap:var(--space-3); min-height:48px; padding:var(--space-2) 0; color:var(--ink); text-decoration:none; }
.onboarding-check li a>span:nth-child(2) { flex:1; min-width:0; }
.onboarding-tick { flex:none; font-size:var(--text-lg); }
.onboarding-check [data-done=true] .onboarding-tick { color:var(--up); }

.onboarding-intro .onboarding-brand { position:sticky; top:0; background:var(--surface); z-index:1; padding-bottom:var(--space-2); }
/* Journey sheets: the only scroll container is below the persistent title/X. */
dialog.v3-sheet[open]{display:flex!important;flex-direction:column;overflow:hidden!important;max-height:min(90dvh,calc(100dvh - 2 * env(safe-area-inset-top)));box-sizing:border-box;padding:0!important}
dialog.v3-sheet>.v3-sheet-head{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px;padding:16px;background:var(--surface);position:relative;z-index:2;touch-action:pan-x}
dialog.v3-sheet>.v3-sheet-head h2{margin:0;font-size:20px;min-width:0}
dialog.v3-sheet>.v3-sheet-head button{min-width:44px;min-height:44px;flex:none}
dialog.v3-sheet>.v3-sheet-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;padding-bottom:max(20px,env(safe-area-inset-bottom));width:100%;box-sizing:border-box}
dialog.v3-sheet input,dialog.v3-sheet select,dialog.v3-sheet textarea{font-size:16px!important}
.journey-banner{padding:16px;margin:12px 0;border:2px solid var(--accent);border-radius:12px;scroll-margin-top:72px}
.journey-banner p{margin:8px 0}.journey-banner a{display:inline-block;min-height:44px;padding:10px 0}
.nowrap{white-space:nowrap}   /* filters_fix_1030_r7_polish: V.names.keep + Filters settings */
.su-scope{display:inline-block;font-weight:700;margin-right:8px}.su-exact-terms{overflow-wrap:anywhere}.su-exact-terms dt{font-weight:600;margin-top:12px}.su-exact-terms dd{margin:4px 0}

dialog.v3-sheet>.ia-paper-action{flex:none;padding:12px 16px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface)}
/* Notifications: readable on 320px phones and no focus zoom on iOS. */
.notification-settings { margin-block: 16px; padding: 16px; }
.notification-settings fieldset { min-width: 0; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
.notification-settings legend { font-weight: 600; }
.notification-channels { display: flex; gap: 16px; flex-wrap: wrap; }
.notification-settings label { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.notification-settings input { font-size: 16px; max-width: 100%; min-width: 0; }
.notification-settings input:not([type=checkbox]) { display: block; width: 100%; padding: 10px; box-sizing: border-box; }
.notification-settings input[type=checkbox] { width: 20px; height: 20px; }
.v3-alert-copy p, .v3-alert-history-list p { white-space: pre-line; overflow-wrap: anywhere; }


.ia-row>span{min-width:0}.ia-row b,.ia-row small{overflow-wrap:anywhere}
/* Results clarity — Andy 108702 / 109808. Scoped to the Results list. */
.results-page .results-phone-word{display:none}
.results-page .results-period-line{font-size:var(--text-lg);line-height:1.5;overflow-wrap:break-word}
.results-page .results-status:empty{min-height:0}
.results-page .results-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
.results-page .results-history-row .su-row-main{min-width:0}
.results-page .results-history-row .su-row-end{display:flex;flex-direction:column;align-items:flex-end;gap:3px;max-width:none;overflow-wrap:normal}
.results-page .results-history-row .su-row-end strong,.results-page .results-history-row .su-row-end small{white-space:nowrap}
.results-page .results-history-row small{font-size:var(--text-xs);color:var(--muted)}
.results-page .results-history-filter{flex-wrap:wrap}
@media(max-width:600px){
  .results-page .results-phone-word{display:inline}
  .results-page .results-history-row{grid-template-columns:minmax(0,1fr)}
  .results-page .results-history-row .su-row-end{align-items:flex-start;flex-direction:row;flex-wrap:wrap}
  .results-page .results-range{flex-wrap:wrap}
}

/* Live data stays still: only verified fresh number changes use V.flash. */
/* Andy 109908 (10-19): the top bar is ONE row on phones (logo, search, Paper, theme). The market status lives in
   Today > Markets on phones and shows inline in the bar only from 700 px up. */
.topbar { flex-wrap:nowrap; column-gap:var(--space-2); }
.market-pill { display:none; font-size:var(--text-xs); color:var(--muted); align-items:center; gap:6px; white-space:nowrap; }
.market-pill::before,.live-label::before { content:""; display:inline-block; width:6px; height:6px; border-radius:999px; background:var(--muted); margin-right:4px; flex-shrink:0; }
.market-pill.market-open::before,.live-label.live-current::before { background:var(--up); }
.live-label { font-size:var(--text-xs); color:var(--muted); }
@media (min-width:700px) { .market-pill { display:flex; order:0; margin-left:auto; }.topbar-actions { order:1; } }

/* Results by setup: stacked rows below 1024 px, a real table from 1024 px (v3_fix_results_b_1019). */
.rbs-list{list-style:none;margin:0;padding:0}
.rbs-row{display:flex;flex-direction:column;gap:4px;padding:12px 0;border-bottom:1px solid var(--border)}
.rbs-name{font-weight:600;line-height:1.4;overflow-wrap:break-word;min-width:0}
.rbs-name a{color:var(--ink);text-decoration:none}
.rbs-line2{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.rbs-trades{color:var(--muted);font-size:var(--text-sm)}
.rbs-total{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:auto;text-align:right}
.rbs-line3{display:flex;flex-wrap:wrap;gap:2px 14px;color:var(--muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums}
.rbs-part{white-space:nowrap}
.rbs-sum{border-bottom:0;border-top:2px solid var(--border);margin-top:-1px}
.rbs-sum .rbs-trades:empty{display:none}
.results-table-card .results-table-scroll{display:none}
@media(min-width:1024px){
  .results-table-card .rbs-list{display:none}
  .results-table-card .results-table-scroll{display:block;overflow:visible}
  .results-table-card .results-table{min-width:0;table-layout:fixed}
  .results-table-card .results-table th:first-child{width:40%;min-width:0;max-width:none}
  .results-table-card .results-table th,.results-table-card .results-table td{text-align:right;font-variant-numeric:tabular-nums}
  .results-table-card .results-table th:first-child,.results-table-card .results-table td:first-child{text-align:left}
  .results-table-card .results-table tbody th a{min-height:0;display:inline}
}
.auth-what { margin:4px 0 8px; font-size:16px; line-height:1.45; color:var(--text, inherit); overflow-wrap:anywhere; }
.auth-invite { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:0 6px; margin:8px 0 0; text-align:center; }
.auth-invite .auth-text-link { display:inline-flex; }

/* hide the tab bar while typing on touch devices (core.js toggles body.kb-open) */
body.kb-open .navigation{display:none}

/* ---- Visual system (v3_visual_system_1019, Andy 110072 21:04 "The damn spacing!"). One rhythm for every page, from
   tokens.css: --gap-page-top 20 under the header, --gap-section 24 between sections and cards, --gap-card 12 between
   elements inside a card, --gap-tight 8 inside a tight group, --pad-card 16 (20 from 1024 px). Rows: bold name, one
   secondary line, value right. Times once per card. One bordered button per card at most; the rest are text links. */
#app { padding-top:var(--gap-page-top); gap:var(--gap-section); }
@media (min-width:1024px) { #app { padding-top:var(--gap-page-top); gap:var(--gap-section); } }
.card,.su-card { padding:var(--pad-card); }
.su-page { gap:var(--gap-section); }
.su-card { gap:var(--gap-card); }
.home-grid,.home-market { gap:var(--gap-section); }
@media (min-width:1024px) { .home-grid { gap:var(--gap-section); } }
.su-heading { gap:var(--gap-tight); }
.su-heading p { font-size:var(--type-body); }
/* Text-link actions: secondary actions are never bordered buttons. */
.v3-text-action,.rows-more,.market-headlines-more,.market-sector-toggle { display:inline-flex; align-items:center; gap:var(--space-1); min-height:44px; width:auto; margin:0; padding:0; border:0 !important; background:transparent; color:var(--accent); font-weight:600; font-size:var(--type-body); align-self:flex-start; box-shadow:none; }
.market-sector-toggle[aria-pressed=true] { background:transparent; text-decoration:underline; text-underline-offset:4px; }
/* Today */
.home-account { gap:var(--gap-card); }
/* An empty clock notice must not reserve a row and two gaps between the chart and controls. */
.home-account .account-market-open[aria-hidden="true"] { display:none; }
.home-setup-summary { display:flex; align-items:center; gap:var(--gap-tight); min-height:44px; padding-top:var(--gap-card); font-size:var(--type-meta); }
.home-setup-summary .hss-text { flex:1; min-width:0; }
.home-setup-summary .hss-value { flex:none; font-size:var(--type-body); white-space:nowrap; }
.home-setup-summary > svg { flex:none; }
#v3-positions { display:flex; flex-direction:column; gap:var(--gap-card); }
#v3-positions-body { display:flex; flex-direction:column; gap:var(--gap-card); }
#v3-positions-body > * { margin:0; }
/* v3_batch_1020: "N shares at $X · now $Y" wraps instead of cutting; the "·" is glued to the word before it. */
#v3-positions .row-meta { display:block; min-width:0; white-space:normal; }
#v3-positions [data-positions-stamp]:not(:empty) { display:block; } /* the live price label gets its own line, no "·" to strand */
.positions-side-filter { margin-bottom:0; }
.market-moves { gap:var(--gap-tight); }
.market-headlines { padding-top:var(--gap-card); gap:var(--gap-tight); }
/* Chart reference label: a chip at the right edge, above the dashed line (or below it when the drawn line runs there). */
.v3-chart-baseline { z-index:3; pointer-events:none; }
.v3-chart-baseline span { right:0; top:-22px; padding:1px var(--space-2); border:1px solid var(--border); border-radius:var(--radius-pill); background:var(--surface); line-height:16px; }
.v3-chart-baseline.is-below span { top:4px; }
/* Desktop Today (>=1200 px, two columns): row 1 is the account card's own height, so Open positions sits 24 px under it
   instead of below the tall Markets column's share of row 1. */
@media (min-width:1200px) { .home-grid { grid-template-rows:auto 1fr; } .home-grid > #v3-positions { align-self:start; } }
/* Header at the narrowest phones (main 22:1x, WebKit 320 showed "Sear…"): the search pill gets the room back from the
   gaps and the Paper pill's padding, and WebKit's search-field decoration stops eating the placeholder. */
.topbar-search input[type=search]::-webkit-search-decoration,.topbar-search input[type=search]::-webkit-search-results-button { -webkit-appearance:none; display:none; }
.topbar-search input[type=search] { -webkit-appearance:none; appearance:none; padding-inline:0; }
@media (max-width:360px) { .topbar.topbar { gap:var(--space-1); } .topbar .topbar-search { gap:2px; padding:0 var(--space-1) 0 6px; } .topbar .topbar-actions { gap:2px; } .topbar .paper-label { padding:2px 5px; } }
/* ==== Alerts end-state + single history entry (hurdle_v3_phase2_visual_1020, audit VIS-06). Alert styles only. ==== */
.v3-alerts-end { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:var(--gap-tight); padding:var(--pad-card) 0 0; text-align:center; color:var(--muted); }
.v3-alerts-end > .icon { width:24px; height:24px; padding:var(--gap-tight); box-sizing:content-box; border-radius:var(--radius-pill); background:var(--hs-accent-soft); color:var(--accent); }
.v3-alerts-end p { margin:0; display:flex; flex-direction:column; gap:var(--space-1); }
.v3-alerts-end strong { color:var(--text); font-size:var(--type-title); }
.v3-alert-list + .v3-alerts-end { border-top:1px solid var(--border); }
/* v3_batch_1020 (main 09:3x): "You're all caught up" is a compact card (~120 px), no fill; History and Notification settings are Account-style list rows with a chevron; no "Back to Today". */
.v3-alerts-card.is-empty { gap:0; }
.v3-alerts-card.is-empty .v3-alerts-end { padding:0; }
/* 1020b: on desktop the caught-up card sits on one line (icon beside the words) so it stays a compact ~100 px card. */
@media (min-width:1024px) { .v3-alerts-card.is-empty .v3-alerts-end { flex-direction:row; justify-content:flex-start; gap:var(--gap-card); text-align:left; } }
.v3-alert-rows > details > summary { list-style:none; }
.v3-alert-rows > details > summary::-webkit-details-marker { display:none; }
.v3-alert-rows > details > summary::before { content:none; }
.v3-alert-rows > details[open] > summary .acc-chev { transform:rotate(90deg); }
.v3-alert-rows > details + .acc-row::before { content:""; position:absolute; top:0; right:0; left:var(--space-4); border-top:1px solid var(--border); opacity:.7; }
.v3-alert-rows .v3-alert-history-list { padding:0 var(--space-4) var(--space-2); }
.v3-alert-older { display:block; width:100%; min-height:44px; margin-top:var(--gap-tight); border:0; background:transparent; color:var(--accent); font:inherit; font-weight:650; cursor:pointer; }
/* ==== end VIS-06 block ==== */
/* v3_ai_off_sheet_1021: the Ask sheet's "Hurdle's AI is off" answer and its one control */
.ai-off{display:grid;gap:var(--space-3);justify-items:start}.ai-off p{margin:0;overflow-wrap:anywhere}
/* main 10-25 (Andy TG111273): the baseline (dotted) and the S&P line (dashed) must not look alike; one legend item each */
.v3-chart-baseline{border-top:1.5px dotted var(--ink);opacity:.55}
.chart-legends{display:flex;flex-wrap:wrap;gap:4px 16px}
.chart-legend.lg-base::before{border-top:2px dotted var(--ink);opacity:.55}
/* ops 10-27 (Andy TG112107): "Forgot..." + its code line read as ONE stacked link. Here, not signin.css: signin.css is not public (401 signed out) until the server allowlist change. */
.auth-text-link.auth-forgot{flex-direction:column;gap:2px;text-align:center}
.auth-text-link.auth-forgot small{display:block;font-size:13px;font-weight:400;color:var(--muted);text-decoration:none}
/* ops 10-27 (main 12:55): signed-out sign-in rules copied from signin.css, which answers 401 to signed-out visitors until the server allowlist fix (16:05 batch). Keep in sync; remove once signin.css is public. */
/* Signed-out front door. Other auth modes retain the established app layout. */
:root.auth-login{}
:root.auth-login body{background:radial-gradient(420px 280px at 50% 0%,var(--hs-up-soft),transparent 70%),var(--auth-bg);color:var(--auth-ink);min-height:100dvh}
:root.auth-login body::before,:root.auth-login .topbar{display:none}
:root.auth-login #app,:root.auth-login:has(.ia-comp) #app{width:100%;max-width:none;min-height:100dvh;margin:0;padding:0 22px;display:flex;flex-direction:column;gap:0}
:root.auth-login .auth-card{width:min(100%,420px);max-width:420px;min-height:100dvh;margin:auto;padding:calc(28px + env(safe-area-inset-top)) 0 calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;background:transparent;border:0;border-radius:0;box-shadow:none}
:root.auth-login .auth-heading{gap:10px;margin:0 0 26px;font-size:20px;font-weight:700;letter-spacing:-.01em;color:var(--auth-ink)}
:root.auth-login .auth-heading svg{width:34px;height:34px;border-radius:9px}
:root.auth-login .auth-fields{gap:14px}
:root.auth-login .auth-fields h1{font-size:32px;line-height:1.1;font-weight:750;letter-spacing:-.03em;color:var(--auth-ink)}
:root.auth-login .auth-fields .auth-what{margin:-8px 0 10px;font-size:17px;line-height:1.5;color:var(--auth-muted)}
:root.auth-login .auth-fields label{margin:0 0 -8px;font-size:14px;font-weight:500;color:var(--auth-muted)}
:root.auth-login .auth-fields input{height:52px;min-height:52px;padding:0 14px;border-radius:14px;border:1px solid var(--auth-line);background:var(--auth-field);color:var(--auth-ink);font-size:17px}
:root.auth-login .auth-fields input:focus{border-color:var(--auth-brand);outline:0;box-shadow:0 0 0 4px var(--hs-up-soft)}
:root.auth-login .auth-fields .ia-button{min-height:52px;border-radius:999px;font-size:16px;font-weight:600}
:root.auth-login .auth-fields .ia-button[data-auth="login"]{margin-top:4px;background:var(--auth-brand);border-color:var(--auth-brand);color:var(--hs-text)}
:root.auth-login .auth-fields .ia-button[data-auth="passkey-login"]{background:var(--hs-rule);border:1px solid var(--auth-line);color:var(--auth-ink)}
:root.auth-login .auth-stay{font-size:14px;text-align:center;color:var(--auth-faint)}
:root.auth-login .auth-forgot{display:block;min-height:0;margin:0;padding:0;color:var(--auth-muted);font-size:15px;font-weight:400;line-height:1.5;text-align:center;text-decoration:underline;text-underline-offset:3px}
:root.auth-login .auth-forgot small{display:block;color:var(--auth-faint);font-size:13px;text-decoration:underline}
:root.auth-login .auth-new{margin:12px 0 0;padding:18px 0 0;border-top:1px solid var(--auth-line);color:var(--auth-muted);text-align:center;font-size:15px}
:root.auth-login .auth-new a{color:var(--auth-brand);font-weight:600}
:root.auth-login .auth-invite{margin:0;text-align:center;font-size:13px;color:var(--auth-faint)}
:root.auth-login .auth-invite a{color:inherit;text-decoration:underline;text-underline-offset:3px}
:root.auth-login .auth-error:empty,:root.auth-login .auth-status:empty{display:none}
:root.auth-login .auth-legal{margin:auto 0 0;padding:24px 0 0;border:0;gap:6px 18px}
:root.auth-login .auth-legal a{min-height:32px;padding:0;color:var(--auth-faint);font-size:13px}
@media(min-width:700px){:root.auth-login .auth-card{padding-top:clamp(60px,14vh,132px)}}
@media(max-width:699px){:root.auth-login .auth-card{justify-content:center;padding-top:calc(64px + env(safe-area-inset-top))}:root.auth-login .auth-legal{margin-top:auto}}

/* chart_scrub_fix_1027 (Andy TG112280): scrubbing never moves the page, selects or magnifies. */
.v3-chart,.v3-chart *,.chart-wrap{ -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; -webkit-tap-highlight-color:transparent; }
.v3-chart-plot{ touch-action:pan-y; }
.home-account .account-change{ height:24px; min-height:24px; line-height:24px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-variant-numeric:tabular-nums; }
.account-value,.v3-chart-cross span{ font-variant-numeric:tabular-nums; }

/* Home-only accessible labels; the shell owns its visible screen title. */
.hr-page.hr-home .hr-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* logo_live_1111 (framework 22): the approved lockup wherever the brand shows; never stretched, filtered or rounded. */
html.rd-shell .topbar .brand.rd-wordmark>svg.hl-lockup,.topbar .brand>svg.hl-lockup{display:block;height:22px;width:auto;flex:none;filter:none;opacity:1;box-shadow:none}   /* logo_live_1111 (framework 22): the approved lockup, crisp inline svg */
.auth-heading svg.hl-lockup,:root.auth-login .auth-heading svg.hl-lockup{display:block;width:auto;height:28px;border-radius:0}
.onboarding-brand svg.hl-lockup{display:block;width:auto;height:22px}
/* the top bar already carries the lockup on every sign-in screen except the full-screen one (auth-login hides the bar): show it once */
:root:not(.auth-login) .auth-heading:has(svg.hl-lockup),:root.pt-public .auth-heading:has(svg.hl-lockup){display:none}
