/* InstaTrack — Silver studio. Light by default; graphite after dark. */
:root {
  color-scheme: light;
  --bg-0: #f5f5f7;
  --bg-1: #eceef1;
  --panel: #ffffff;
  --panel-2: #f1f3f6;
  --line: #e1e3e8;
  --line-2: #c4c9d2;
  --ink: #1d1d1f;
  --ink-soft: #353840;
  --muted: #646872;
  --faint: #626772;
  --plum: #0066cc;
  --pink: #0066cc;
  --coral: #b54336;
  --mint: #16774c;
  --gold: #8c6216;
  --warm: #9f562d;
  --blue: #0066cc;
  --selection: #e5effb;
  --action: #0071e3;
  --action-ink: #ffffff;
  --grad: linear-gradient(145deg, #68baff, #0071e3);
  --grad-soft: linear-gradient(135deg, #d3e6fb, #ecf5ff);
  --grad-mint: linear-gradient(90deg, #16774c, #4bab7e);
  --grad-plum: linear-gradient(135deg, #0071e3, #63a9ee);
  --glass: var(--panel);
  --shadow-card: 0 12px 32px #1e30451a;
  --radius: 24px;
  --radius-sm: 999px;
  --font-display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: var(--font-display);
  --shell: min(1200px, calc(100% - 80px));
  --card-padding: 28px;
  --text-caption: 13px;
  --text-meta: 12px;
  --chrome: #f5f5f7d9;
  --chrome-edge: #ffffffcc;
  --display-soft: #767b84;
  --action-hover: #0066cc;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --motion-feedback: 140ms;
  --motion-state: 240ms;
  --graphite-ink: #ffffff;
  --graphite-soft: #c6cfdc;
  --graphite-mint: #9ee5c1;
  --surface-edge: #ffffffcc;
}
body.dark-mode {
  color-scheme: dark;
  --bg-0: #101113;
  --bg-1: #191b1e;
  --panel: #202226;
  --panel-2: #2a2d32;
  --line: #363a41;
  --line-2: #555c67;
  --ink: #f5f5f7;
  --ink-soft: #e2e5eb;
  --muted: #acb2be;
  --faint: #acb2be;
  --plum: #79baff;
  --pink: #79baff;
  --coral: #ff9a8d;
  --mint: #7cddb0;
  --gold: #dfbb76;
  --warm: #e9af87;
  --blue: #79baff;
  --selection: #263e58;
  --action: #0071e3;
  --action-ink: #ffffff;
  --shadow-card: 0 16px 40px #00000040;
  --chrome: #191b1edb;
  --chrome-edge: #ffffff19;
  --display-soft: #aeb8c8;
  --surface-edge: #ffffff12;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg-0); color: var(--ink); font: 400 14px/1.5 var(--font-body); min-height: 100vh; }
body::before { content: none; }
.aurora { position: fixed; z-index: -1; pointer-events: none; width: 650px; height: 650px; border-radius: 50%; opacity: .5; }
.aurora-one { top: -460px; left: -260px; background: radial-gradient(circle, #ac73ed50, transparent 67%); }
.aurora-two { top: -420px; right: -300px; background: radial-gradient(circle, #ed88b338, transparent 68%); }
button, input, select, textarea { font: inherit; }
button, a, label, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
input, textarea { caret-color: var(--pink); }
input::placeholder { color: var(--faint); opacity: 1; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden], .hidden, .tab-panel:not(.active) { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.skip-link { position: fixed; left: 20px; top: -70px; z-index: 6000; padding: 12px 18px; border-radius: 10px; background: var(--panel); color: var(--ink); }
.skip-link:focus { top: 12px; }
.ui-icon { display: block; flex: 0 0 auto; }
.app-shell { width: var(--shell); margin: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font: 800 23px var(--font-display); letter-spacing: -.035em; white-space: nowrap; }
.brand > span > span { color: var(--pink); }
.brand-ver { margin-left: 7px; padding: 3px 5px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--muted); font: 600 10px var(--font-body); vertical-align: top; letter-spacing: 0; }
.brand-mark { display: flex; align-items: end; gap: 3px; height: 25px; width: 27px; }
.brand-mark i { width: 6px; border-radius: 2px; background: var(--pink); }
.brand-mark i:nth-child(1) { height: 10px; background: var(--mint); }
.brand-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3) { height: 24px; background: var(--plum); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.privacy-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; margin-right: 14px; white-space: nowrap; }
.privacy-badge .lock { color: var(--mint); }
.privacy-badge .ui-icon { width: 17px; height: 17px; }
.icon-button, .dialog-close { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); transition: background .16s, color .16s, border-color .16s; }
.icon-button:hover, .dialog-close:hover { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); }
.account-chip { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 7px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.account-chip:hover { border-color: var(--plum); }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #fff; background: var(--grad); flex: none; }
.account-id { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.account-id small { color: var(--muted); font-size: 9px; letter-spacing: .06em; }
.account-id b { font-size: 12px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-edge { display: flex; align-items: center; gap: 8px; }
.account-serial { color: var(--faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.account-live { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* Actions: pink is reserved for the primary next step. */
.secondary-button, .export-button, .signal-button, .skip-button, .restore-button, .back-to-overview { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; color: var(--ink-soft); font-size: 12px; font-weight: 600; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-sm); text-decoration: none; transition: background .16s, border-color .16s; }
.secondary-button:hover, .export-button:hover, .skip-button:hover, .restore-button:hover { background: var(--panel-2); border-color: var(--plum); }
.secondary-button .ui-icon { width: 16px; height: 16px; }
.primary-button, .signal-button, .review-next { background: var(--action); color: var(--action-ink); border-color: transparent; }
.primary-button:hover, .signal-button:hover, .review-next:hover { background: var(--action); filter: brightness(1.08); border-color: transparent; }
.text-button, .link-button, .footer-link { padding: 8px 0; border: 0; background: none; color: var(--plum); font-size: 12px; font-weight: 600; text-decoration: none; }
.text-button:hover, .link-button:hover, .footer-link:hover { color: var(--pink); text-decoration: underline; }

/* Arrival: an export action next to an explicitly illustrative snapshot. */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(36px, 6vw, 100px); padding: 64px 0 52px; }
.hero h1 { font: 800 clamp(40px, 4.6vw, 64px)/1.08 var(--font-display); letter-spacing: -.04em; margin: 0 0 24px; }
.hero h1 > span { color: var(--pink); }
.hero-subtitle { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 49ch; margin: 0 0 30px; }
.upload-panel { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 22px; background: var(--panel); border: 1px dashed var(--line-2); border-radius: var(--radius); cursor: pointer; transition: border-color .18s, background .18s; }
.upload-panel:hover, .upload-panel.dragging, .upload-panel:focus-within { border-color: var(--pink); background: var(--panel-2); }
.upload-panel.loading { pointer-events: none; }
#zipInput { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.upload-icon { color: var(--pink); display: grid; place-items: center; width: 30px; flex: none; }
.upload-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.upload-copy strong { font-size: 14px; font-weight: 600; }
.upload-copy small { color: var(--muted); font-size: 11px; }
.browse-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; margin-top: 3px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--action); color: var(--action-ink); font-size: 13px; font-weight: 700; }
.browse-label span { font-size: 19px; line-height: 1; }
.microcopy { font-size: 11px; color: var(--faint); margin: 12px 0 0; }
.microcopy .link-button { font-size: 11px; margin-left: 4px; }
.hero-visual { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 24px 28px; box-shadow: var(--shadow-card); position: relative; }
.preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.example-label { font-size: 10px; font-weight: 400; color: var(--muted); padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.preview-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
.preview-counts > div { display: flex; flex-direction: column; gap: 4px; }
.preview-counts span { color: var(--muted); font-size: 12px; }
.preview-counts strong { font: 700 32px/1.2 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.relationship-map { position: relative; height: 210px; margin: 4px 0; overflow: hidden; }
#constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.constellation-core { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; }
.core-ring { position: absolute; width: 146px; height: 146px; top: 50%; left: 50%; translate: -50% -50%; border: 1px solid var(--line-2); border-radius: 50%; }
.core-ring.ring-b { width: 202px; height: 202px; border-style: dashed; border-color: var(--line); }
.core-badge { display: flex; align-items: end; justify-content: center; gap: 5px; width: 64px; height: 64px; border-radius: 50%; background: var(--selection); padding-bottom: 17px; z-index: 1; }
.core-badge i { display: block; width: 5px; border-radius: 2px; background: var(--pink); }
.core-badge i:nth-child(1) { height: 11px; background: var(--mint); }
.core-badge i:nth-child(2) { height: 20px; }
.core-badge i:nth-child(3) { height: 30px; background: var(--plum); }
.constellation-core small { font-size: 8px; letter-spacing: .08em; color: var(--muted); margin-top: 8px; z-index: 1; }
.preview-relations { display: flex; flex-direction: column; }
.preview-relations > div { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 12px; color: var(--muted); }
.preview-relations strong { color: var(--ink); margin-left: auto; font-variant-numeric: tabular-nums; }
.mint-dot, .coral-dot, .plum-dot, .who-dot { display: block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mint-dot, .gained-dot { background: var(--mint); }
.coral-dot, .lost-dot { background: var(--coral); }
.plum-dot { background: var(--plum); }
.preview-note { color: var(--faint); font-size: 11px; margin: 5px 0 0; }

/* Workspace: stable rail, focused destinations, and accessible local tabs. */
.dashboard { padding: 32px 0 0; min-height: calc(100vh - 200px); }
.dashboard-inner { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 36px; align-items: start; }
.dashboard-main { min-width: 0; }
.side-nav { display: flex; flex-direction: column; gap: 5px; position: sticky; top: 28px; padding: 7px 0; }
.side-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; min-height: 44px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font: 500 13px var(--font-body); text-align: left; transition: background .16s, color .16s; }
.side-link:hover { color: var(--ink); background: var(--panel); }
.side-link.active { background: var(--selection); color: var(--plum); border-color: var(--line); font-weight: 600; }
.tab-icon .ui-icon { width: 18px; height: 18px; }
.side-link[data-target="panel-profile"] { margin-top: 16px; }
.rail-note { display: flex; gap: 9px; border-top: 1px solid var(--line); padding: 20px 12px 0; margin-top: 24px; color: var(--faint); }
.rail-note .ui-icon { width: 15px; height: 15px; margin-top: 2px; color: var(--mint); }
.rail-note p { margin: 0; font-size: 11px; }
.rail-note small { display: block; font-size: 10px; margin-top: 3px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.section-heading h2 { font: 700 clamp(23px, 2vw, 29px)/1.25 var(--font-display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.export-name { color: var(--faint); font-size: 11px; margin: 7px 0 0; overflow-wrap: anywhere; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; flex: none; }
.mobile-section-select { display: none; }
.tab-panel { min-width: 0; }
.subview-nav { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.subview-tab { border: 0; border-bottom: 2px solid transparent; padding: 8px 2px 14px; background: none; color: var(--muted); font: 500 13px var(--font-body); white-space: nowrap; }
.subview-tab:hover { color: var(--ink); }
.subview-tab[aria-selected="true"] { border-color: var(--pink); color: var(--ink); font-weight: 600; }
.subview-panel { min-width: 0; }
.subview-panel:focus-visible { outline-offset: 6px; border-radius: 6px; }
.export-warning, .unfollow-alert { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.export-warning strong, .unfollow-alert strong { font-size: 12px; color: var(--coral); }
.export-warning p, .unfollow-alert p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }
.warning-symbol, .alert-symbol { color: var(--coral); font-weight: 700; font-size: 18px; flex: none; }
.alert-dismiss { border: 0; background: none; color: var(--muted); width: 36px; height: 36px; flex: none; margin-left: auto; }

/* Solid, restrained data surfaces. */
.list-card, .ratio-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-padding); min-width: 0; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-heading h3 { font: 600 17px/1.4 var(--font-display); letter-spacing: -.02em; margin: 0; }
.card-heading > div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.label, .eyebrow { font-size: 10px; font-weight: 500; color: var(--faint); letter-spacing: .05em; margin: 0 0 9px; }
/* Redundant section kickers do not compete with their headings. */
.card-heading .label, .panel-heading .eyebrow, .radar-heading .eyebrow, .signals-card > .eyebrow, .compare-head .eyebrow, .momentum-head .eyebrow, .history-head .eyebrow, .how-it-works .eyebrow, .review-dialog .eyebrow { display: none; }
.list-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card { position: relative; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.stat-card.navy { --stat-color: var(--blue); }
.stat-card.plum { --stat-color: var(--plum); }
.stat-card.warm { --stat-color: var(--coral); }
.stat-card.mint { --stat-color: var(--mint); }
.stat-icon { color: var(--stat-color); position: absolute; top: 18px; right: 17px; }
.stat-icon .ui-icon { width: 17px; height: 17px; }
.stat-card p { margin: 0 25px 18px 0; font-size: 12px; color: var(--ink-soft); }
.stat-card > strong { display: block; font: 700 clamp(26px, 2.7vw, 37px)/1.15 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-card > span { display: block; color: var(--muted); font-size: 11px; margin-top: 9px; }
.stat-card .stat-chip { color: var(--stat-color); font-size: 10px; font-weight: 600; margin-top: 10px; }
.stat-spark { width: 90px; height: 15px; margin-top: 8px; display: none; }
.stat-spark rect { fill: var(--mint); }
.motion-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 24px 0; padding: 18px 0; }
.motion-stat { display: flex; align-items: start; gap: 10px; padding: 0 16px; border-right: 1px solid var(--line); min-width: 0; }
.motion-stat:first-child { padding-left: 0; }
.motion-stat:last-child { border-right: 0; padding-right: 0; }
.motion-icon { color: var(--plum); font-size: 13px; margin-top: 3px; flex: none; }
.motion-up .motion-icon, .positive strong { color: var(--mint); }
.motion-down .motion-icon, .negative strong { color: var(--coral); }
.motion-latest .motion-icon { color: var(--gold); }
.motion-stat strong { display: block; font: 600 22px/1.3 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.motion-stat small { display: block; color: var(--ink-soft); font-size: 11px; margin-top: 4px; }
.motion-basis { display: block; color: var(--faint); font-size: 10px; font-style: normal; margin-top: 4px; }
.overview-detail { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.5fr); gap: 16px; }
.ratio-card { display: flex; align-items: center; flex-direction: row; justify-content: space-between; gap: 16px; align-self: start; }
.ratio-card .label { color: var(--muted); }
.ratio-card h3 { font: 700 46px/1.2 var(--font-display); letter-spacing: -.035em; color: var(--mint); margin: 12px 0 4px; }
.ratio-card > div:first-child > span { font-size: 12px; color: var(--muted); }
.tier-pill { display: block; width: fit-content; margin-top: 16px; border: 1px solid var(--line); padding: 5px 9px; border-radius: 6px; font-size: 10px !important; }
.ring { width: 64px; height: 64px; flex: none; position: relative; border-radius: 50%; background: conic-gradient(var(--mint) var(--rate, 0deg), var(--panel-2) 0deg); display: grid; place-items: center; }
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: var(--panel); }
.ring span { position: relative; color: var(--mint); font-size: 22px; }
.who-card { margin: 0; }
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 24px 0 12px; }
.who-col-head { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.who-col-head strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.who-col-head small { color: var(--muted); font-size: 11px; }
.who-list { padding: 0; margin: 12px 0 0; list-style: none; max-height: 300px; overflow-y: auto; }
.who-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 11px; }
.who-list .row-hide, .who-list .open-arrow { display: none; }
.who-list .avatar { width: 24px; height: 24px; font-size: 9px; }
.who-empty { padding: 22px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Relationship lists and controls. */
.insights-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 16px; }
.side-stack { min-width: 0; }
.account-list, .review-list { padding: 0; margin: 0; list-style: none; max-height: 380px; overflow: auto; }
.account-list.compact-list { max-height: 336px; }
.account-list li, .review-list li { display: flex; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 12px; min-width: 0; }
.account-list li:last-child, .review-list li:last-child { border-bottom: 0; }
.account-list li:hover, .review-list li:hover { background: var(--panel-2); }
.account-list li > a:not(.profile-link), .who-list a { flex: 1; min-width: 0; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.account-list li > a:hover, .who-list a:hover { color: var(--plum); text-decoration: underline; }
.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--plum); background: var(--selection); }
.hue-1 { color: var(--pink); }.hue-2 { color: var(--mint); }.hue-3 { color: var(--gold); }.hue-4 { color: var(--blue); }.hue-5 { color: var(--warm); }
.row-hide, .exclude-button { width: 32px; height: 32px; flex: none; border: 1px solid transparent; background: transparent; color: var(--faint); border-radius: 8px; font-size: 12px; }
.row-hide:hover, .exclude-button:hover { background: var(--selection); color: var(--coral); }
.open-arrow { color: var(--faint); font-size: 15px; }
.profile-link { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--plum); font-size: 10px; font-weight: 500; text-decoration: none; white-space: nowrap; margin-left: auto; }
.profile-link:hover { border-color: var(--plum); }
.follow-age, .ghost-count { color: var(--faint); font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.suggest-name, .engage-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.suggest-badge, .engage-badge { display: inline-block; font-size: 9px; font-style: normal; color: var(--coral); padding: 2px 5px; background: var(--selection); border-radius: 4px; margin: 4px 4px 0 0; }
.engage-badges { display: block; }
.engage-score { font-weight: 600; color: var(--gold); min-width: 28px; text-align: right; }
.list-toolbar, .review-list-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.search-wrap { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 150px; padding: 10px 12px; background: var(--bg-1); border: 1px solid var(--line); border-radius: 9px; color: var(--faint); }
.search-wrap:focus-within { border-color: var(--plum); }
.search-wrap .ui-icon { width: 16px; height: 16px; }
.search-wrap input { width: 100%; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 12px; }
.sort-select { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; }
select { max-width: 100%; padding: 9px 10px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); color: var(--ink-soft); font-size: 12px; cursor: pointer; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip, .forecast-tbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: none; color: var(--muted); font-size: 11px; }
.chip.active, .forecast-tbtn.active { color: var(--plum); background: var(--selection); border-color: var(--line-2); }
.chip small { font-size: 10px; color: var(--faint); }
.list-count { color: var(--faint); font-size: 11px; margin: 0 0 6px; }
.empty-state, .radar-empty { color: var(--muted); font-size: 13px; line-height: 1.7; padding: 32px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; }
.mutual-foot { margin-top: 20px; padding-top: 4px; }
.mutual-bar { height: 4px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.mutual-bar span { display: block; width: var(--fill, 0%); height: 100%; background: var(--mint); }
.mutual-foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 10px; margin-top: 10px; }
.mutual-foot-row > strong { color: var(--mint); font-size: 13px; }
.mutual-heart { margin-left: auto; color: var(--pink); }

/* Insights are export-derived, never live account monitoring. */
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 24px; }
.panel-heading p { color: var(--muted); font-size: 13px; margin: 0; max-width: 65ch; }
.panel-badge, .radar-pulse { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); font-size: 9px; letter-spacing: .04em; white-space: nowrap; }
.panel-badge i, .radar-pulse i { width: 5px; height: 5px; background: var(--mint); border-radius: 50%; }
.discovery-section { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr); gap: 16px; }
.radar-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.radar-heading h3, .signals-card h3 { font: 600 19px/1.4 var(--font-display); letter-spacing: -.02em; margin: 0; }
.radar-heading p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.radar-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.metric-chip { display: flex; align-items: start; gap: 8px; }
.metric-icon { color: var(--plum); flex: none; margin-top: 2px; }
.metric-icon .ui-icon { width: 17px; height: 17px; }
.icon-creators { color: var(--mint); }.icon-posts { color: var(--pink); }
.metric-text strong { display: block; font: 600 24px/1.3 var(--font-display); }
.metric-text span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.radar-list { max-height: 340px; overflow-y: auto; }
.radar-row-wrap { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.radar-row { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--ink-soft); text-decoration: none; }
.radar-rank { font-size: 10px; color: var(--faint); width: 18px; flex: none; }
.radar-name { font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.radar-name i { display: block; margin-top: 6px; width: 80%; height: 3px; background: var(--panel-2); border-radius: 3px; }
.radar-name i b { display: block; width: var(--fill); height: 3px; border-radius: 3px; background: var(--plum); }
.radar-row > strong { font-size: 13px; font-weight: 500; text-align: right; }
.radar-row > strong small { display: block; color: var(--muted); font-size: 9px; }
.radar-row-wrap em { font-style: normal; color: var(--faint); }
.radar-note { font-size: 10px; color: var(--faint); margin: 18px 0 0; }
.signals-card { display: flex; flex-direction: column; }
.signal-number { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; }
.signal-badge { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.signal-count strong { font: 600 38px/1.2 var(--font-display); }
.signal-count span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.signal-copy { color: var(--muted); font-size: 12px; margin: 0 0 24px; }
.signal-button { align-self: start; margin-top: auto; }
.signal-footer { display: flex; flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.signal-footer strong { color: var(--ink-soft); font-weight: 500; }

/* Reports and forecast graphics share theme-aware text and grid lines. */
.compare-head, .momentum-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.compare-head h3, .momentum-head h3, .history-head h3 { font: 600 20px/1.4 var(--font-display); letter-spacing: -.025em; margin: 0; }
.compare-head p, .momentum-head p, .history-head p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 7px 0 0; max-width: 65ch; }
.compare-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; margin-top: 4px; }
.range-pill { color: var(--faint); font-size: 11px; overflow-wrap: anywhere; }
.compare-empty { display: flex; align-items: center; gap: 24px; margin-top: 28px; padding: 32px 0 12px; border-top: 1px solid var(--line); }
.compare-empty-mark { font-size: 36px; color: var(--plum); flex: none; }
.compare-empty strong { font-size: 15px; font-weight: 500; }
.compare-empty p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 8px 0 0; max-width: 64ch; }
.compare-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; padding-block: 20px; border-block: 1px solid var(--line); }
.compare-stat { display: flex; align-items: center; gap: 10px; }
.compare-stat-icon { font-size: 18px; color: var(--plum); }
.compare-stat.gained .compare-stat-icon { color: var(--mint); }.compare-stat.lost .compare-stat-icon { color: var(--coral); }
.compare-stat strong { font: 600 25px var(--font-display); }
.compare-stat small { display: block; font-size: 10px; color: var(--muted); }
.compare-results .list-card { border: 0; border-radius: 0; padding: 4px 0; background: none; }
.momentum-section { padding: 0; }
.momentum-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.range-label { font-size: 10px; color: var(--faint); }
.range-buttons { display: flex; gap: 2px; border: 1px solid var(--line); padding: 3px; border-radius: 9px; background: var(--panel); }
.range-btn { min-width: 36px; min-height: 32px; border: 0; border-radius: 6px; padding: 7px; background: none; color: var(--muted); font-size: 11px; }
.range-btn.active { background: var(--selection); color: var(--plum); }
.chart-tabs { display: flex; gap: 8px; margin: 24px 0 16px; }
.chart-tab { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 12px; }
.chart-tab.active { border-color: var(--line-2); background: var(--selection); color: var(--ink); }
.chart-grid { display: block; }
.chart-card:not(.active-chart) { display: none; }
.chart-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-title > div { display: flex; align-items: center; gap: 8px; }
.chart-title p { margin: 0; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.chart-title strong { font: 600 22px var(--font-display); font-variant-numeric: tabular-nums; }
.chart-subtitle { font-size: 11px; color: var(--muted); margin: 5px 0 16px; }
.chart-wrap { position: relative; min-height: 160px; }
.chart-wrap > svg { width: 100%; height: auto; display: block; overflow: hidden; }
.chart-line, .chart-line-dashed, .chart-line-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart-line { stroke-width: 2.2; }.chart-line-dashed { stroke-width: 2; stroke-dasharray: 5 6; }.chart-line-glow { display: none; }
.chart-grid-lines line { stroke: var(--line); stroke-width: 1; }
.chart-axis text, .chart-unit, .chart-grid-lines text, .pred-axis, .pred-axis text { fill: var(--muted); font: 400 10px var(--font-body); }
.chart-points .point { fill: var(--chart-color, var(--plum)); }.chart-points .point-halo { fill: var(--chart-color, var(--plum)); opacity: .15; }
.chart-area { pointer-events: none; }
.chart-tooltip { position: absolute; z-index: 5; pointer-events: none; opacity: 0; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 11px; box-shadow: var(--shadow-card); transform: translateY(-100%); white-space: nowrap; }
.weekday-card { padding: 20px 0 0; margin-top: 22px; border-top: 1px solid var(--line); }
.weekday-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.weekday-label { font-size: 10px; color: var(--muted); margin: 0 0 4px; }.weekday-head span { font-size: 10px; color: var(--faint); }.weekday-head strong { font-size: 16px; font-weight: 500; }
.weekday-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.weekday-grid .day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.day-bar { display: flex; align-items: end; width: 100%; height: 64px; background: var(--panel-2); border-radius: 5px; overflow: hidden; }
.day-bar i { display: block; width: 100%; background: var(--mint); border-radius: 5px 5px 0 0; }.day.peak .day-bar i { background: var(--plum); }
.weekday-grid b, .weekday-grid small { color: var(--muted); font-size: 10px; font-weight: 400; }.weekday-empty { color: var(--muted); font-size: 12px; }
.history-head { margin-bottom: 20px; }.history-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 16px; }
.prediction-section { display: grid; gap: 20px; }
.prediction-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.prediction-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); position: relative; min-width: 0; }
.prediction-icon { display: block; color: var(--plum); position: absolute; right: 16px; top: 18px; }.prediction-icon .ui-icon { width: 16px; height: 16px; }
.prediction-card .label { margin: 0 20px 24px 0; color: var(--muted); font-size: 10px; }
.prediction-hero strong { display: block; font: 600 30px/1.2 var(--font-display); letter-spacing: -.03em; }.prediction-hero span { display: block; color: var(--faint); font-size: 10px; margin-top: 5px; }
.prediction-sub { display: block; margin-top: 12px; color: var(--muted); font-size: 11px; }
.pred-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }.pred-target-label { color: var(--gold); font-size: 10px; fill: var(--gold); }
.forecast-target-buttons { display: flex; flex-wrap: wrap; gap: 6px; }.pred-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.pred-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }.legend-dot { display: block; width: 8px; height: 8px; border-radius: 50%; }
.legend-solid { background: var(--plum); }.legend-dash { height: 0; width: 12px; border-top: 2px dashed var(--plum); border-radius: 0; }.legend-today { background: var(--gold); }.legend-bandwidth { background: var(--selection); border: 1px dashed var(--plum); }
.pred-band { fill: var(--selection); opacity: .6; }.pred-today { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 4; }.pred-today-label { fill: var(--gold); font: 500 10px var(--font-body); }
.milestone-list { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.milestone-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.milestone-mark { color: var(--plum); font-size: 18px; font-weight: 600; width: 50px; flex: none; }.milestone-body { flex: 1; }.milestone-name { font-size: 13px; font-weight: 600; }.milestone-meta { color: var(--muted); font-size: 11px; margin-top: 3px; }.milestone-eta { color: var(--mint); font-size: 12px; text-align: right; }
.goal-section { margin-top: 32px; }.goal-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }.goal-field { display: flex; flex-direction: column; gap: 8px; }.goal-field span { font-size: 12px; color: var(--muted); }.goal-field input { padding: 11px 12px; width: 200px; max-width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; color: var(--ink); font-size: 13px; }.goal-status { color: var(--muted); font-size: 12px; }

/* Preferences are rows, not cards nested in cards. */
.profile-page-sub { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.profile-section + .profile-section { margin-top: 28px; }
.profile-section h3 { font: 600 16px var(--font-display); margin: 0 0 10px; }
.appearance-toggle { border-top: 1px solid var(--line); }
.toggle-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toggle-label { font-size: 13px; font-weight: 500; margin: 0; }.toggle-description { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.switch { position: relative; display: inline-block; width: 44px; height: 32px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.slider { position: absolute; inset: 4px 0; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 24px; transition: background .18s; }
.slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: var(--muted); border-radius: 50%; transition: transform .18s; }
.switch input:checked + .slider { background: var(--plum); border-color: var(--plum); }.switch input:checked + .slider::before { transform: translateX(19px); background: var(--bg-0); }.switch input:focus-visible + .slider { outline: 2px solid var(--pink); outline-offset: 4px; }
.usage-stats .stat-card { max-width: 340px; }
body.compact-mode { --card-padding: 18px; }.compact-mode .stat-card, .compact-mode .prediction-card { padding: 16px; }.compact-mode .account-list li { padding-block: 7px; }.compact-mode .toggle-item { padding-block: 12px; }
.privacy-blur :is(.stat-card > strong, .account-list li > a:not(.profile-link), .suggest-name, .engage-name, .radar-name, .who-list a, .review-list li > span:not(.avatar), .account-id b) { filter: blur(6px); transition: filter .16s; }
.privacy-blur :is(.stat-card, .account-list li, .radar-row, .who-list li, .review-list li, .account-chip):is(:hover, :focus-within) :is(strong, a, .suggest-name, .engage-name, .radar-name, span, b) { filter: none; }

/* Getting started remains visible before an analysis. */
.how-it-works { border-top: 1px solid var(--line); padding: 36px 0 0; }.how-it-works h2 { font: 600 24px var(--font-display); letter-spacing: -.035em; margin: 0 0 24px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }.steps article { position: relative; padding: 18px 0 18px 38px; border-top: 1px solid var(--line); cursor: pointer; }.steps article.active { border-top-color: var(--pink); }.step-num { position: absolute; left: 0; top: 18px; color: var(--pink); font-size: 12px; font-weight: 600; }.steps h3 { font: 600 14px var(--font-display); margin: 0 0 7px; }.steps p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }.step-tag { display: block; color: var(--plum); font-size: 10px; margin-top: 10px; }
.step-demo { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--panel); }.demo-scene { display: none; align-items: center; justify-content: center; gap: 12px; min-height: 32px; }.demo-scene.active { display: flex; }.demo-chip { padding: 6px 10px; border-radius: 6px; background: var(--panel-2); color: var(--ink-soft); font-size: 11px; }.demo-ok { color: var(--mint); }.demo-arrow { color: var(--faint); }.demo-zone { display: flex; align-items: center; gap: 14px; width: min(400px, 100%); }.demo-zip { font-size: 10px; color: var(--pink); }.demo-zone-label { font-size: 11px; color: var(--muted); }.demo-fill { height: 4px; flex: 1; background: var(--mint); border-radius: 3px; }.demo-pct { font-size: 11px; color: var(--mint); }.demo-bars { display: flex; width: 100%; gap: 24px; }.demo-bar { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 11px; }.demo-bar-label { color: var(--muted); }.demo-bar-track { display: block; height: 4px; flex: 1; background: var(--panel-2); }.demo-bar-track em { display: block; height: 100%; width: var(--p); background: var(--mint); }.demo-count { font-weight: 500; }
body.has-analysis .how-it-works { display: none; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--line); padding: 24px 0 28px; margin-top: 36px; }.footer-brand > span { font: 700 12px var(--font-display); letter-spacing: .04em; }.footer-brand span > span { color: var(--pink); }.footer-brand em { font-size: 9px; font-style: normal; padding-left: 4px; color: var(--faint); }.footer-brand p { color: var(--faint); font-size: 10px; margin: 4px 0 0; }.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }.footer-link { font-size: 11px; }.footer-copyright { color: var(--faint); font-size: 10px; margin: 0; }

/* Modal tasks and quick access use the browser's native focus management. */
dialog { padding: 0; width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); color: var(--ink); box-shadow: 0 24px 80px #08051166; }
dialog::backdrop { background: #080511b3; backdrop-filter: blur(4px); }.dialog-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: var(--panel); width: 32px; height: 32px; }
#dialogContent, #devContent { padding: 32px; max-height: calc(100dvh - 50px); overflow-y: auto; }#dialogContent h2, #devContent h2 { font: 600 23px/1.35 var(--font-display); letter-spacing: -.03em; margin: 0 34px 20px 0; }#dialogContent p, #dialogContent ol { color: var(--muted); font-size: 13px; line-height: 1.8; }#dialogContent strong { color: var(--ink-soft); }#dialogContent ol { padding-left: 22px; }#dialogContent li { padding-bottom: 8px; }
.queue-bookmark { display: flex; gap: 12px; background: var(--panel-2); padding: 14px; border-radius: 10px; }.queue-bookmark strong { font-size: 13px; display: block; }.queue-bookmark small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }.review-toolbar { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin: 18px 0; }.review-next { border: 0; border-radius: 10px; padding: 12px 16px; font-size: 12px; font-weight: 600; flex: 1; text-align: left; overflow-wrap: anywhere; }.review-next small { display: block; margin-top: 6px; font-size: 10px; font-weight: 400; }.review-list-label { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--faint); font-size: 10px; }.review-list li > span:not(.avatar):not(.follow-age) { min-width: 0; overflow-wrap: anywhere; }.change-block { margin-top: 24px; }.change-list-head { display: flex; align-items: center; justify-content: space-between; }.change-list-head b { font-size: 12px; }.change-list-head .lost { color: var(--coral); }.change-list-head .gained { color: var(--mint); }.change-empty { color: var(--muted); }.change-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.change-stat { display: flex; gap: 12px; padding: 16px; background: var(--panel-2); border-radius: 10px; }.change-stat strong { display: block; font-size: 22px; }.change-stat small { color: var(--muted); font-size: 11px; }
.spotlight { width: min(560px, calc(100% - 32px)); margin-top: min(16vh, 120px); }.spotlight-panel { overflow: hidden; }.spotlight-search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 16px; color: var(--plum); }.spotlight-search input { min-width: 0; width: 100%; background: transparent; color: var(--ink); border: 0; outline: none; font-size: 14px; }.spotlight-list { padding: 8px; margin: 0; list-style: none; max-height: 360px; overflow-y: auto; }.spotlight-item { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 9px; width: 100%; padding: 13px; background: none; color: var(--muted); font-size: 13px; text-align: left; }.spotlight-item.active, .spotlight-item:hover { color: var(--ink); background: var(--selection); }.spotlight-item .ui-icon { color: var(--plum); width: 18px; height: 18px; }.spotlight-footer { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; }.spotlight-footer kbd { font: inherit; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; margin-right: 4px; }.spotlight-empty { padding: 16px 24px; font-size: 13px; color: var(--muted); }

/* Developer tools keep their original controls, with the same visual grammar. */
.dev-shell { display: flex; flex-direction: column; gap: 16px; }.dev-shell-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.dev-muted { color: var(--muted); font-size: 12px; }.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.dev-wide { grid-column: 1 / -1; }.dev-section { background: var(--panel-2); padding: 16px; border-radius: 12px; min-width: 0; }.dev-head { display: flex; align-items: center; gap: 8px; }.dev-head h4 { margin: 0; font-size: 14px; }.dev-tag { color: var(--gold); font-size: 10px; }.dev-section h5 { font-size: 12px; margin: 16px 0 8px; color: var(--muted); }.dev-actions, .dev-export-menu, .dev-select-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }.dev-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 10px; }.dev-row input { width: 100px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); padding: 8px; }#devCode, #devOutput { width: 100%; background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--mint); font: 12px/1.7 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }#devCode { min-height: 120px; }

/* Feedback is short-lived; content never depends on scroll-reveal timing. */
#instatrackToast { position: fixed; z-index: 3000; left: 50%; bottom: 24px; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 18px; background: var(--panel-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-card); font-size: 12px; transition: opacity .18s, transform .18s; }#instatrackToast.show { opacity: 1; transform: translate(-50%, 0); }
.to-top { position: fixed; bottom: 24px; right: 24px; z-index: 100; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--plum); opacity: 0; pointer-events: none; }.to-top.show { opacity: 1; pointer-events: auto; }
.drop-overlay { position: fixed; inset: 0; z-index: 4000; background: #100b1dea; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .18s; }.drop-overlay.show { opacity: 1; }.drop-overlay-inner { text-align: center; color: #f6f0fc; }.drop-overlay-ring { display: grid; place-items: center; width: 100px; height: 100px; margin: 0 auto 24px; border: 1px dashed #83dec3; border-radius: 24px; color: #83dec3; font-size: 40px; }.drop-overlay-ring i { font-style: normal; }.drop-overlay strong { display: block; font: 600 24px var(--font-display); }.drop-overlay small { display: block; color: #b4a6c8; margin-top: 10px; }
.progress-toast { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; position: fixed; bottom: 24px; right: 24px; z-index: 2500; padding: 16px 20px; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-card); max-width: calc(100% - 32px); }.progress-toast-copy strong { display: block; font-size: 12px; font-weight: 500; }.progress-pct { font-size: 11px; color: var(--plum); }.upload-progress { width: 160px; height: 4px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }.upload-progress i { display: block; width: 0; height: 100%; background: var(--pink); transition: width .18s; }.spinner { display: block; width: 24px; height: 24px; border: 2px solid var(--line-2); border-top-color: var(--pink); border-radius: 50%; flex: none; animation: spin .8s linear infinite; }
.confetti { position: fixed; top: -16px; width: 8px; height: 12px; border-radius: 2px; z-index: 5000; pointer-events: none; animation: confettiFall linear forwards; }
@keyframes spin { to { transform: rotate(360deg); } }@keyframes confettiFall { to { transform: translateY(105vh) rotate(760deg); opacity: 0; } }
body.reduce-motion { --motion-state: 100ms; }
body.reduce-motion :is(.hero-copy, .preview-window, .focus-card, .preview-person, .dashboard-in, .spinner, .confetti) { animation: none; }
body.reduce-motion :is(.selection-indicator, .slider::before) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { --motion-state: 100ms; }
  :is(.hero-copy, .preview-window, .focus-card, .preview-person, .dashboard-in, .spinner, .confetti) { animation: none !important; }
  :is(.selection-indicator, .slider::before) { transition: none !important; }
}

/* Tablet preserves the rail; phones receive a labeled destination selector. */
@media (max-width: 1200px) {
  :root { --shell: calc(100% - 48px); }
  .dashboard-inner { grid-template-columns: 172px minmax(0, 1fr); gap: 24px; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .heading-actions { justify-content: start; }
  .insights-grid, .discovery-section, .history-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr); }
  .radar-pulse { display: none; }
  .stat-card { padding: 16px; }.stat-icon { top: 15px; right: 12px; }
}
@media (max-width: 960px) {
  .hero { gap: 32px; grid-template-columns: 1.1fr 1fr; padding-top: 48px; }.hero-visual { padding: 20px; }.hero h1 { font-size: 45px; }
  .stat-grid, .prediction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-detail, .insights-grid, .discovery-section, .history-grid { grid-template-columns: 1fr; }
  .ratio-card { flex-direction: row; align-items: center; }.ratio-card h3 { font-size: 36px; }.ratio-card .tier-pill { margin-top: 10px; }.ring { flex: none; }
  .motion-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }.motion-stat:nth-child(2) { border-right: 0; }.motion-stat:nth-child(3) { padding-left: 0; }
  .account-edge { display: none; }.privacy-badge { display: none; }.topbar { gap: 16px; }
  .panel-heading { align-items: start; }.panel-badge { display: none; }
}
@media (max-width: 700px) {
  :root { --shell: calc(100% - 36px); --card-padding: 20px; }
  .topbar { min-height: 80px; gap: 12px; flex-wrap: wrap; padding: 18px 0; }.brand { font-size: 21px; }.header-actions { margin-left: auto; gap: 6px; }.icon-button { width: 36px; height: 36px; }.account-chip { order: 3; width: 100%; padding: 6px; background: none; border: 0; }.account-id b { max-width: 260px; }.account-id { flex-direction: row; align-items: center; gap: 10px; }.account-avatar { width: 24px; height: 24px; font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding: 38px 0 32px; gap: 32px; }.hero h1 { font-size: clamp(38px, 8.5vw, 54px); margin-bottom: 20px; }.hero-subtitle { font-size: 14px; line-height: 1.8; max-width: 52ch; margin-bottom: 24px; }.upload-panel { padding: 18px; gap: 12px; }.upload-copy strong { font-size: 13px; }.upload-copy small { font-size: 10px; }.microcopy { font-size: 10px; }.microcopy .link-button { font-size: 10px; }
  .hero-visual { padding: 20px; border-radius: 18px; }.preview-counts { margin-top: 20px; }.relationship-map { height: 170px; }.core-ring.ring-b { width: 162px; height: 162px; }.core-ring.ring-a { width: 120px; height: 120px; }.preview-note { font-size: 10px; }
  .dashboard { padding-top: 24px; }.dashboard-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }.side-nav { display: none; }.section-heading { gap: 18px; margin-bottom: 20px; }.section-heading h2 { font-size: 25px; }.heading-actions { width: 100%; gap: 8px; }.heading-actions .secondary-button { flex: 1; font-size: 11px; padding: 9px 8px; }.heading-actions .ui-icon { width: 14px; height: 14px; }
  .mobile-section-select { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; margin-bottom: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }.mobile-section-select select { flex: 1; border: 0; min-height: 32px; padding: 5px; background: var(--panel); font-size: 13px; font-weight: 500; }
  .stat-grid { gap: 10px; }.stat-card { padding: 16px; min-height: 146px; }.stat-card p { font-size: 11px; margin-bottom: 20px; }.stat-card > strong { font-size: 30px; }.stat-card > span { font-size: 10px; }.stat-icon .ui-icon { width: 15px; height: 15px; }
  .subview-nav { gap: 20px; margin-bottom: 20px; }.subview-tab { font-size: 12px; }.motion-stat strong { font-size: 20px; }.motion-stat small { font-size: 11px; }.motion-basis { font-size: 9px; }
  .card-heading { flex-wrap: wrap; gap: 12px; }.card-heading h3 { font-size: 16px; }.card-heading > div > span { font-size: 11px; }.list-actions { width: 100%; }.list-actions .secondary-button, .list-actions .export-button { flex: 1; }.who-card .list-actions { width: auto; }.who-grid { gap: 16px; }.who-col-head { flex-wrap: wrap; }.who-col-head small { font-size: 10px; }.who-list li { font-size: 10px; }.who-list .avatar { width: 20px; height: 20px; }
  .account-list li { gap: 8px; font-size: 11px; }.list-toolbar { gap: 10px; }.search-wrap { flex-basis: 100%; }.sort-select { justify-content: space-between; width: 100%; }.sort-select select { flex: 1; }.avatar { width: 28px; height: 28px; }.profile-link { font-size: 9px; padding: 7px; }.suggest-card .follow-age { display: none; }.engagement-card .row-hide { display: none; }.review-list li { font-size: 11px; gap: 6px; }.review-list .follow-age { display: none; }
  .compare-actions { width: 100%; }.compare-select { width: 100%; }.compare-empty { gap: 16px; }.compare-empty-mark { font-size: 28px; }.compare-stats { grid-template-columns: repeat(2, 1fr); }.compare-results .insights-grid { gap: 24px; }.chart-tabs { gap: 6px; }.chart-tab { font-size: 10px; padding: 8px; }.momentum-actions { width: 100%; }.range-buttons { flex: 1; justify-content: space-between; }.range-label { display: none; }.weekday-grid { gap: 7px; }.history-head h3, .compare-head h3, .momentum-head h3 { font-size: 18px; }.prediction-card { padding: 16px; }.prediction-hero strong { font-size: 26px; }.prediction-sub { font-size: 10px; }.prediction-card .label { font-size: 9px; }.goal-field { flex: 1; min-width: 130px; }.goal-field input { width: 100%; }.milestone-eta { font-size: 10px; }.milestone-name { font-size: 12px; }.milestone-item { gap: 10px; }
  .radar-metrics { gap: 8px; }.metric-chip { display: block; }.metric-icon { display: none; }.metric-text strong { font-size: 24px; }.metric-text span { font-size: 9px; }.radar-name { font-size: 11px; }.radar-row-wrap { gap: 6px; }.radar-rank { display: none; }.radar-note { font-size: 10px; }
  .toggle-item { gap: 16px; }.toggle-description { font-size: 11px; }.toggle-label { font-size: 12px; }.toggle-item .secondary-button { white-space: nowrap; font-size: 11px; }.profile-page-sub { font-size: 12px; }
  .steps { grid-template-columns: 1fr; gap: 0; }.steps article { padding-block: 16px; }.steps p { font-size: 12px; }.step-tag { display: none; }.how-it-works h2 { font-size: 22px; }.step-demo { padding: 14px 12px; }.demo-scene { gap: 8px; }.demo-chip { font-size: 9px; padding: 6px; }.demo-bars { display: block; }.demo-bar { margin: 8px 0; }
  footer { margin-top: 28px; gap: 16px; padding-bottom: 24px; }.footer-brand { width: 100%; }.footer-links { gap: 14px; }.footer-link { font-size: 10px; }.footer-copyright { width: 100%; }
  #dialogContent, #devContent { padding: 24px 20px; }#dialogContent h2, #devContent h2 { font-size: 20px; }.review-toolbar .review-next { flex-basis: 100%; }.review-toolbar .secondary-button, .review-toolbar .skip-button { flex: 1; }.dev-grid { grid-template-columns: 1fr; }.dev-shell-head { flex-wrap: wrap; }.progress-toast { right: 16px; bottom: 16px; }.progress-toast .upload-progress { width: 100%; }#instatrackToast { bottom: 16px; }.to-top { right: 16px; bottom: 16px; width: 36px; height: 36px; }
}
@media (max-width: 360px) { .brand { font-size: 19px; }.header-actions .icon-button { width: 32px; height: 32px; }.brand-mark { width: 22px; }.brand-ver { margin-left: 4px; }.topbar { gap: 8px; }.upload-copy small { max-width: 200px; }.stat-card { padding: 14px; }.stat-card p { margin-right: 0; }.stat-icon { display: none; }.subview-nav { gap: 16px; }.heading-actions .ui-icon { display: none; }.review-list .avatar { display: none; } }

/* A consistent caption ramp also holds on narrow screens. */
:is(.upload-copy small, .preview-note, .stat-card > span, .card-heading > div > span, .motion-stat small, .who-empty, .who-list li, .account-list li, .review-list li, .toggle-description, .prediction-sub, .radar-note, .signal-copy, .compare-empty p, .chart-subtitle, .history-head p, .momentum-head p, .compare-head p, .profile-page-sub) { font-size: var(--text-caption); }
:is(.microcopy, .microcopy .link-button, .example-label, .account-id small, .account-serial, .rail-note small, .stat-card .stat-chip, .stat-micro, .motion-basis, .label, .eyebrow, .tier-pill, .who-col-head small, .who-list li.who-more, .profile-link, .follow-age, .ghost-count, .suggest-badge, .engage-badge, .chip small, .mutual-foot-row, .radar-row > strong small, .metric-text span, .panel-badge, .radar-pulse, .range-label, .range-pill, .compare-stat small, .weekday-label, .weekday-head span, .weekday-grid b, .weekday-grid small, .prediction-card .label, .prediction-hero span, .pred-legend span, .pred-target-label, .milestone-eta, .milestone-meta, .step-tag, .demo-chip, .demo-zip, .demo-zone-label, .demo-pct, .demo-bar, .footer-link, .footer-brand p, .review-list-label, .queue-bookmark small, .review-next small, .spotlight-footer, .constellation-core small) { font-size: var(--text-meta); letter-spacing: 0; }
.chart-tabs .chart-tab { font-size: 12px; }
.tier-pill { font-size: var(--text-meta) !important; }
.who-list .avatar { width: 24px; height: 24px; }
.who-list li { padding-block: 6px; }
.subview-nav { max-width: 100%; }
.chart-wrap > svg { min-height: 200px; }
.chart-axis text, .chart-unit, .chart-grid-lines text, .pred-axis, .pred-axis text { font-size: 11px; }
.chart-tooltip b { display: block; margin-bottom: 3px; }
.chart-point { cursor: pointer; }
.chart-point:focus { outline: none; }.chart-point:focus .point { stroke: var(--ink); stroke-width: 2px; }
.chart-data { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 12px; }
.chart-data summary { color: var(--plum); cursor: pointer; min-height: 32px; padding: 6px 0; }
.chart-data table { width: 100%; border-collapse: collapse; margin: 8px 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.chart-data caption { text-align: left; color: var(--muted); padding: 8px 0; }
.chart-data th, .chart-data td { text-align: left; padding: 9px 5px; border-bottom: 1px solid var(--line); font-weight: 400; }
.chart-data thead th { color: var(--muted); font-weight: 500; }.chart-data th:last-child, .chart-data td:last-child { text-align: right; }
.forecast-card .chart-title strong { font-size: 16px; }
.chart-line { stroke: var(--plum); }
.follows-chart .chart-line { stroke: var(--mint); }.unfollows-chart .chart-line { stroke: var(--coral); }
body.dark-mode .chart-points .point { fill: var(--plum); }
body.dark-mode .follows-chart .chart-points .point { fill: var(--mint); }
body.dark-mode .unfollows-chart .chart-points .point { fill: var(--coral); }
.upload-progress i { transition: none; }
.hero-visual { box-shadow: none; }
.queue-bookmark > span { display: none; }
@media (max-width: 700px) {
  .demo-scene { flex-wrap: wrap; }
  .export-warning, .unfollow-alert { flex-wrap: wrap; }
  .export-warning > div, .unfollow-alert > div { flex: 1; min-width: 160px; }
  .unfollow-alert .text-button { margin-left: 24px; }
  .unfollow-alert .alert-dismiss { margin-left: auto; }
}

/* Silver studio composition. The product stage and the working surface are
   intentionally different densities inside one typography/material system. */
html { scroll-padding-top: 88px; }
body { font-size: 15px; }
.app-shell { display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 100; min-height: 68px; padding: 10px 0; border: 0; gap: 24px; }
.topbar::before { content: ''; position: absolute; inset: 0 calc((100vw - 100%) / -2); z-index: -1; background: var(--chrome); border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px); }
.brand { font-size: 21px; font-weight: 650; gap: 9px; letter-spacing: -.035em; }
.brand > span > span { color: inherit; }
.brand-mark { width: 26px; height: 28px; gap: 3px; }
.brand-mark i, .brand-mark i:nth-child(1), .brand-mark i:nth-child(3) { background: var(--ink); width: 5px; border-radius: 3px; }
.brand-mark i:nth-child(1) { height: 11px; }.brand-mark i:nth-child(2) { height: 18px; }.brand-mark i:nth-child(3) { height: 25px; }
.arrival-nav { display: flex; gap: 32px; margin-left: 40px; }
.arrival-nav a { font-size: 13px; color: var(--ink-soft); text-decoration: none; padding: 12px 0; }
.arrival-nav a:hover { color: var(--plum); }
.header-actions { gap: 2px; margin-left: auto; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 50%; }
.icon-button .ui-icon { width: 19px; height: 19px; }
.account-chip { border-radius: 999px; padding: 5px 14px 5px 5px; background: var(--panel); }
.account-avatar { border-radius: 50%; }
.account-id small, .account-edge { display: none; }
.account-id b { font-size: 13px; }
.has-analysis .arrival-nav { display: none; }
.secondary-button, .export-button, .signal-button, .skip-button, .restore-button, .back-to-overview { min-height: 44px; padding: 10px 18px; font-size: 13px; font-weight: 500; border-color: var(--line); }
.primary-button { background: var(--action); border-color: transparent; }
.text-button, .link-button { font-size: 13px; font-weight: 400; }
.hero { display: block; padding: 70px 0 44px; }
.hero-copy { text-align: center; }
.hero h1 { font-size: clamp(60px, 6.2vw, 88px); font-weight: 650; line-height: .99; letter-spacing: -.04em; margin: 0 0 26px; }
.hero h1 > span { color: var(--display-soft); }
.hero-subtitle { font-size: 20px; line-height: 1.55; max-width: 58ch; margin: 0 auto 26px; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 26px; }
.upload-panel { display: inline-flex; flex-wrap: nowrap; width: auto; min-height: 50px; border: 1px solid transparent; border-radius: 999px; padding: 12px 24px; gap: 10px; color: #fff; background: var(--action); box-shadow: 0 4px 10px #0066cc18; }
.upload-panel:hover, .upload-panel.dragging, .upload-panel:focus-within { background: var(--action-hover); border-color: var(--action-hover); }
.upload-icon { width: 19px; color: inherit; }
.upload-icon .ui-icon { width: 19px; height: 19px; }
.browse-label { display: inline; margin: 0; padding: 0; width: auto; background: none; color: inherit; font-size: 16px; font-weight: 500; }
.upload-panel.loading { border-radius: 20px; text-align: left; }
.upload-panel.loading .upload-copy small { color: #fff; }
.upload-panel .spinner { border-color: #ffffff50; border-top-color: #fff; }
.hero-help { font-size: 16px; color: var(--plum); text-decoration: none; padding: 12px 0; }
.hero-help:hover { text-decoration: underline; }
.microcopy { margin-top: 17px; font-size: 12px; }
.microcopy .link-button { font-size: 12px; margin-left: 4px; }
.product-stage { position: relative; isolation: isolate; max-width: 1040px; margin: 50px auto 0; padding: 0 100px 54px 0; }
.product-stage::before { content: ''; position: absolute; inset: 14% -3% -8%; z-index: -1; background: radial-gradient(ellipse at 25% 60%, #accef56b, transparent 65%), radial-gradient(ellipse at 80% 55%, #b4e4d37a, transparent 65%); filter: blur(25px); pointer-events: none; }
.dark-mode .product-stage::before { opacity: .25; }
.preview-window { overflow: hidden; border-radius: 22px; background: var(--panel); border: 1px solid var(--chrome-edge); box-shadow: 0 28px 65px #34485d1f, 0 2px 6px #34485d0a; }
.preview-chrome { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 10px 22px; font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--panel-2); }
.window-lights { display: flex; gap: 7px; width: 86px; }
.window-lights i { width: 9px; height: 9px; border-radius: 50%; background: #c1c6ce; }
.window-lights i:first-child { background: #ee9c96; }.window-lights i:nth-child(2) { background: #e2c180; }.window-lights i:nth-child(3) { background: #97c8aa; }
.example-label { padding: 0; border: 0; color: var(--muted); font-size: 12px; }
.preview-body { padding: 30px 38px; }
.preview-title { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.preview-title h2 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.035em; margin: 0; }
.preview-title h2 span { color: var(--muted); }
.preview-tabs { display: flex; align-items: center; gap: 2px; background: var(--bg-1); padding: 4px; border-radius: 999px; }
.preview-tabs button { min-height: 36px; border-radius: 999px; border: 0; padding: 8px 14px; background: none; color: var(--muted); font-size: 12px; }
.preview-tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 2px 5px #1e304514; }
.preview-tabs button:hover { color: var(--ink); }
.preview-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 22px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.preview-counts > div { gap: 4px; }
.preview-counts strong { font-size: 44px; font-weight: 550; letter-spacing: -.035em; line-height: 1.1; }
.preview-counts span { color: var(--muted); font-size: 12px; }
.preview-counts > div:last-child strong { color: var(--mint); }
.preview-data { padding-right: 150px; }
.preview-list-title { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.preview-person { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.preview-person:last-child { border: 0; }
.preview-person > div { min-width: 0; flex: 1; }.preview-person strong { display: block; font-size: 13px; font-weight: 550; }.preview-person small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.portrait { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; font-size: 13px; font-weight: 600; flex: none; }
.portrait-blue { color: #225b8f; background: #d9e9f9; }.portrait-green { color: #2b6a51; background: #dceee3; }.portrait-peach { color: #8a4e36; background: #f8e4d7; }
.relationship-status { display: flex; align-items: center; gap: 6px; color: var(--mint); font-size: 12px; white-space: nowrap; }
.relationship-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.relationship-status .ui-icon { width: 14px; height: 14px; }.relationship-status.not-mutual { color: var(--muted); }
.focus-card { position: absolute; right: 0; bottom: 12px; width: 248px; padding: 28px; border-radius: 28px; background: linear-gradient(145deg, #373d45ed, #161b23f5); border: 1px solid #ffffff40; color: #fff; box-shadow: 0 25px 50px #00000030, inset 0 1px 0 #ffffff20; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.focus-symbol { color: #a2e4c6; }.focus-symbol .ui-icon { width: 25px; height: 25px; }
.focus-card p { font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; margin: 18px 0 22px; }
.focus-total strong { font-size: 62px; line-height: 1; font-weight: 550; letter-spacing: -.04em; }.focus-total strong span { font-size: 32px; margin-left: 3px; }.focus-total > span { display: block; font-size: 12px; color: #c6cfdc; margin-top: 8px; }
.focus-track, .ratio-gauge { height: 5px; border-radius: 5px; background: #ffffff25; overflow: hidden; margin: 18px 0 14px; }.focus-track i { display: block; height: 100%; width: 75%; background: #9ee5c1; border-radius: inherit; }
.focus-card small { color: #c6cfdc; font-size: 12px; line-height: 1.55; }
.stage-caption { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 12px; color: var(--muted); }.stage-caption .ui-icon { width: 15px; height: 15px; color: var(--mint); flex: none; }
.how-it-works { padding-top: 64px; border: 0; }.how-it-works h2 { font-size: 36px; font-weight: 600; margin-bottom: 30px; letter-spacing: -.035em; }
.steps { gap: 34px; }.steps article { padding: 22px 0 22px 38px; border-color: var(--line-2); }.steps h3 { font-size: 17px; font-weight: 600; }.steps p { font-size: 14px; line-height: 1.65; }.step-num { top: 24px; font-size: 13px; }.step-tag { font-size: 12px; }.step-demo { border: 0; border-radius: 20px; padding: 22px; }.demo-scene { min-height: 42px; }.demo-chip { padding: 9px 14px; font-size: 13px; }
footer { margin-top: 56px; padding-block: 26px; }.footer-brand > span { letter-spacing: -.02em; font-size: 15px; }.footer-brand span > span { color: inherit; }.footer-brand p, .footer-link, .footer-copyright { font-size: 12px; }.footer-link { font-weight: 400; }

/* A full-width workspace: floating horizontal navigation, then the data. */
.has-analysis .dashboard { order: -2; }.has-analysis .topbar { order: -3; }
.dashboard { padding-top: 28px; min-height: calc(100vh - 150px); }
.dashboard-inner { display: flex; flex-direction: column; gap: 36px; }
.side-nav { position: static; display: flex; flex-direction: row; width: fit-content; max-width: 100%; margin: 0 auto; align-items: center; gap: 4px; padding: 6px; border: 1px solid var(--chrome-edge); border-radius: 999px; background: var(--chrome); box-shadow: 0 6px 20px #1e30450c; }
.side-link { width: auto; padding: 11px 19px; gap: 8px; border-radius: 999px; min-height: 44px; font-size: 13px; white-space: nowrap; }
.side-link.active { background: var(--panel); border-color: transparent; box-shadow: 0 3px 10px #1e304510; color: var(--ink); }.side-link[data-target="panel-profile"] { margin: 0; }.rail-note { display: none; }.tab-icon .ui-icon { width: 17px; height: 17px; }
.dashboard-main { width: 100%; }
.section-heading { margin-bottom: 28px; align-items: center; }.section-heading h2 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.13; font-weight: 600; letter-spacing: -.035em; max-width: 24ch; }.export-name { font-size: 12px; margin-top: 12px; }.heading-actions { gap: 10px; }.heading-actions .secondary-button { min-height: 44px; }
.stat-grid { gap: 0; padding: 30px 12px; border-radius: 24px; background: var(--panel); margin-bottom: 24px; }
.stat-grid .stat-card { padding: 0 24px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; }.stat-grid .stat-card:last-child { border-right: 0; }
.stat-card p { font-size: 14px; margin-bottom: 12px; }.stat-card > strong { font-size: clamp(36px, 4vw, 52px); font-weight: 550; letter-spacing: -.035em; }.stat-card > span { font-size: 12px; margin-top: 6px; }.stat-icon { top: 0; right: 22px; }.stat-card.mint > strong { color: var(--mint); }.stat-card.warm > strong { color: var(--coral); }
.stat-card .stat-chip { font-weight: 500; font-size: 12px; }.stat-micro { font-size: 12px; }
.overview-detail { grid-template-columns: minmax(280px, .65fr) minmax(0, 1.35fr); gap: 24px; align-items: stretch; }
.ratio-card { background: linear-gradient(145deg, #343a44, #1a2029); color: #fff; border: 1px solid #ffffff25; border-radius: 24px; padding: 32px; align-self: stretch; }
.ratio-card > div { width: 100%; }.ratio-card h3 { font-size: 23px; line-height: 1.15; font-weight: 500; color: #fff; margin: 0 0 25px; max-width: 15ch; }.ratio-card #ratioPercent { display: block; font-size: 64px; line-height: 1; font-weight: 550; letter-spacing: -.04em; margin-bottom: 12px; }.ratio-card > div:first-child > span { color: #c6cfdc; font-size: 13px; }.ratio-card .tier-pill { border: 0; background: #ffffff12; color: #a2e4c6; border-radius: 999px; padding: 7px 12px; margin-top: 24px; font-size: 12px !important; }.ratio-gauge { margin-top: 25px; height: 6px; }.ratio-gauge i { display: block; width: var(--rate-percent, 0%); height: 100%; background: #9ee5c1; border-radius: inherit; }
.who-card { border: 0; border-radius: 24px; }.who-card .card-heading h3 { font-size: 23px; font-weight: 600; }.who-grid { margin: 24px 0 8px; }.who-col-head strong { font-size: 22px; }.who-list li { padding-block: 10px; font-size: 13px; }.who-col-head small { font-size: 12px; }
.motion-strip { margin: 26px 0 0; padding: 22px 4px; border-bottom: 0; }.motion-stat { gap: 12px; padding-inline: 26px; }.motion-stat strong { font-size: 25px; font-weight: 550; }.motion-stat small { font-size: 13px; }.motion-basis { font-size: 12px; }
.list-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card { border: 0; border-radius: 24px; }
.card-heading h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }.card-heading > div > span { font-size: 13px; line-height: 1.6; margin-top: 7px; }
.insights-grid, .discovery-section, .history-grid { gap: 24px; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
.subview-nav { width: fit-content; gap: 4px; border: 0; padding: 4px; background: var(--bg-1); border-radius: 999px; margin-bottom: 26px; }.subview-tab { padding: 10px 18px; min-height: 44px; border: 0; border-radius: 999px; font-size: 13px; }.subview-tab[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 2px 6px #1e304510; font-weight: 500; }
.account-list li { min-height: 56px; padding: 12px 4px; font-size: 14px; }.avatar { width: 36px; height: 36px; font-size: 12px; }.search-wrap { padding: 12px 16px; border: 1px solid transparent; border-radius: 13px; }.search-wrap input { font-size: 14px; }.sort-select, .list-count { font-size: 12px; }.chip, .forecast-tbtn { min-height: 40px; border-radius: 999px; padding: 8px 13px; font-size: 12px; }.chip:hover, .forecast-tbtn:hover { background: var(--panel-2); }.chip.active, .forecast-tbtn.active { border-color: transparent; background: var(--selection); }.filter-chips { gap: 7px; margin-bottom: 18px; }.profile-link { border-radius: 999px; }.row-hide, .exclude-button { width: 40px; height: 40px; }
.radar-heading h3, .signals-card h3, .compare-head h3, .momentum-head h3, .history-head h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }.radar-heading p, .panel-heading p { font-size: 14px; }.radar-name { font-size: 14px; }.radar-row-wrap { min-height: 58px; }.metric-text strong { font-size: 30px; }.signal-count strong { font-size: 54px; }
.prediction-card { border: 0; border-radius: 22px; padding: 24px; }.prediction-hero strong { font-size: 38px; font-weight: 550; }.prediction-grid { gap: 16px; }.prediction-card .label { font-size: 12px; letter-spacing: 0; }.prediction-sub { font-size: 13px; line-height: 1.55; }.prediction-icon { right: 22px; top: 24px; }.chart-title p { font-size: 15px; }.chart-subtitle { font-size: 13px; }.chart-tabs { width: fit-content; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-1); }.chart-tab { border: 0; border-radius: 999px; min-height: 44px; }.chart-tab.active { background: var(--panel); }.range-btn { min-height: 40px; }.range-buttons { border: 0; border-radius: 999px; }.range-btn { border-radius: 999px; }
.profile-page-sub { font-size: 14px; }.profile-section { max-width: 820px; }.profile-section h3 { font-size: 21px; font-weight: 600; margin-bottom: 18px; }.toggle-item { padding-block: 20px; }.toggle-label { font-size: 15px; }.toggle-description { font-size: 13px; }.switch { width: 48px; height: 44px; }.slider { inset: 9px 0; }.slider::before { width: 18px; height: 18px; }.switch input:checked + .slider::before { transform: translateX(22px); background: #fff; }.usage-stats .stat-card { padding: 24px; border: 0; }.compact-mode .stat-grid { padding-block: 22px; }.compact-mode .stat-grid .stat-card { padding: 0 18px; }
.empty-state, .radar-empty { border: 0; background: var(--panel-2); font-size: 14px; border-radius: 16px; padding: 28px; }
dialog { border-radius: 24px; border-color: var(--line); box-shadow: 0 30px 100px #17253640; }dialog::backdrop { background: #17253670; backdrop-filter: blur(8px); }.dialog-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--panel-2); }.spotlight-search input { font-size: 16px; }.spotlight-item { padding: 15px; border-radius: 12px; font-size: 14px; }.spotlight-search { padding: 20px; }#dialogContent p, #dialogContent ol { font-size: 14px; }#dialogContent h2 { font-size: 28px; }
.drop-overlay { background: #101820ed; backdrop-filter: blur(12px); }.drop-overlay-ring { border-color: #9ee5c1; color: #9ee5c1; }.drop-overlay-inner { color: #fff; }.drop-overlay small { color: #c6cfdc; }
.dashboard-in { animation: workspaceArrive .45s var(--ease-out); }@keyframes workspaceArrive { from { transform: translateY(10px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 1100px) {
  .arrival-nav { margin-left: 0; }.product-stage { padding-right: 100px; }.preview-body { padding: 28px; }.preview-title h2 { font-size: 25px; }.focus-card { width: 220px; padding: 24px; }
  .side-link { padding-inline: 15px; }.section-heading { flex-wrap: wrap; align-items: start; }.insights-grid, .discovery-section, .history-grid { grid-template-columns: minmax(0, 1.4fr) minmax(270px, 1fr); }
}
@media (max-width: 850px) {
  :root { --shell: calc(100% - 48px); }.hero { padding-top: 56px; }.hero h1 { font-size: 72px; }.hero-subtitle { font-size: 18px; }.preview-title { align-items: start; flex-direction: column; gap: 18px; }.preview-counts strong { font-size: 38px; }.preview-person small { display: none; }.focus-card { bottom: 0; }.product-stage { margin-top: 42px; padding-bottom: 60px; padding-right: 70px; }.preview-body { padding-right: 100px; }
  .side-link { padding: 11px 13px; }.side-link .tab-icon { display: none; }.overview-detail, .insights-grid, .discovery-section, .history-grid { grid-template-columns: 1fr; }.ratio-card { padding: 28px; }.ratio-card > div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 24px; }.ratio-card h3 { grid-column: 1; grid-row: 1 / span 2; margin: 0; max-width: 18ch; }.ratio-card #ratioPercent { grid-column: 2; margin: 0 0 10px; font-size: 54px; }.ratio-card #ratioDescription { grid-column: 2; }.ratio-gauge { grid-column: 1; margin: 20px 0 0; }.ratio-card .tier-pill { grid-column: 2; margin: 20px 0 0; }.motion-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }.motion-stat { padding-inline: 14px; }.motion-stat:nth-child(2) { border-right: 1px solid var(--line); }.motion-stat:nth-child(3) { padding-left: 14px; }.stat-grid .stat-card { padding-inline: 18px; }.stat-card p { margin-right: 0; }.stat-grid .stat-icon { display: none; }
}
@media (max-width: 700px) {
  :root { --shell: calc(100% - 36px); --card-padding: 22px; }.topbar { min-height: 64px; padding-block: 8px; gap: 8px; }.brand { font-size: 19px; }.brand-mark { width: 23px; }.arrival-nav { display: none; }.header-actions { gap: 0; }.header-actions .icon-button { width: 40px; height: 44px; }#aboutButton { display: none; }.account-chip { padding: 0 0 5px; background: none; }.account-avatar { width: 25px; height: 25px; }.account-id { gap: 6px; }.account-id b { max-width: 270px; }
  .hero { padding: 48px 0 24px; }.hero h1 { font-size: clamp(52px, 12.5vw, 72px); margin-bottom: 24px; }.hero-subtitle { font-size: 16px; line-height: 1.6; margin-bottom: 24px; }.hero-subtitle br { display: none; }.hero-actions { gap: 16px; flex-wrap: wrap; }.upload-panel { padding: 12px 18px; min-height: 48px; }.browse-label, .hero-help { font-size: 14px; }.microcopy { max-width: 32ch; margin: 12px auto 0; line-height: 1.6; }.microcopy .link-button { display: block; margin: 0 auto; padding: 3px 0; }
  .product-stage { margin-top: 34px; padding: 0 0 32px; }.preview-window { border-radius: 18px; }.preview-chrome { padding-inline: 16px; height: 42px; }.window-lights { width: 60px; gap: 5px; }.window-lights i { width: 7px; height: 7px; }.preview-chrome, .example-label { font-size: 11px; }.preview-body { padding: 24px 18px 72px; }.preview-title { gap: 18px; }.preview-title h2 { font-size: 25px; line-height: 1.15; }.preview-tabs { align-self: stretch; }.preview-tabs button { flex: 1; min-height: 40px; padding: 8px 10px; font-size: 12px; }.preview-counts { gap: 12px; margin-top: 22px; padding-bottom: 20px; }.preview-counts strong { font-size: 34px; }.preview-counts span { font-size: 11px; }.preview-list-title { font-size: 11px; }.preview-person { gap: 9px; min-height: 55px; }.preview-person strong { font-size: 12px; }.portrait { width: 29px; height: 29px; font-size: 12px; }.relationship-status { font-size: 11px; }.relationship-status .ui-icon { display: none; }
  .focus-card { position: relative; margin: -48px 14px 0 auto; width: calc(100% - 28px); right: auto; bottom: auto; padding: 20px 22px; border-radius: 21px; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; box-shadow: 0 16px 28px #1b30462b; }.focus-symbol { display: none; }.focus-card p { margin: 0; font-size: 20px; }.focus-total { grid-column: 2; grid-row: 1 / span 2; }.focus-total strong { font-size: 47px; }.focus-total strong span { font-size: 25px; }.focus-total > span { font-size: 11px; margin-top: 6px; }.focus-track { grid-column: 1; width: 90%; margin: 12px 0 0; }.focus-card small { grid-column: 1 / -1; margin-top: 14px; font-size: 11px; }.focus-card small br { display: none; }.stage-caption { text-align: center; align-items: start; margin: 0 auto; max-width: 36ch; line-height: 1.65; }.stage-caption .ui-icon { margin-top: 3px; }
  .how-it-works { padding-top: 42px; }.how-it-works h2 { font-size: 30px; max-width: 12ch; margin-bottom: 26px; }.steps { gap: 0; }.steps article { padding: 20px 0 20px 34px; }.step-num { top: 22px; }.steps h3 { font-size: 17px; }.steps p { font-size: 13px; }.step-demo { padding: 18px 10px; }.demo-chip { font-size: 11px; padding: 8px; }.demo-scene { gap: 7px; }.demo-bars { padding-inline: 8px; }
  .dashboard { padding-top: 26px; }.dashboard-inner { gap: 0; }.side-nav { display: none; }.section-heading { gap: 20px; margin-bottom: 22px; }.section-heading h2 { font-size: 32px; max-width: 16ch; }.heading-actions .secondary-button { padding: 10px 12px; font-size: 12px; }.mobile-section-select { border: 0; border-radius: 14px; padding: 10px 14px; margin-bottom: 22px; min-height: 48px; }.mobile-section-select select { min-height: 36px; }.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 6px 18px; gap: 0; margin-bottom: 20px; border-radius: 22px; }.stat-grid .stat-card { min-height: 0; padding: 20px 12px; border-right: 1px solid var(--line); }.stat-grid .stat-card:nth-child(2) { border-right: 0; }.stat-grid .stat-card:nth-child(3), .stat-grid .stat-card:nth-child(4) { border-top: 1px solid var(--line); }.stat-card > strong { font-size: 38px; }.stat-card p { font-size: 12px; margin-bottom: 10px; }.stat-card > span { font-size: 12px; }.stat-card .stat-chip, .stat-micro { font-size: 11px; }.overview-detail { gap: 20px; }.ratio-card { padding: 24px; border-radius: 22px; }.ratio-card > div { gap: 0 18px; }.ratio-card h3 { font-size: 21px; }.ratio-card #ratioPercent { font-size: 45px; }.ratio-card > div:first-child > span { font-size: 12px; }.ratio-card .tier-pill { font-size: 11px !important; padding: 6px 10px; }.who-card .card-heading h3 { font-size: 22px; }.who-grid { gap: 18px; }.who-col-head strong { font-size: 22px; }.who-col-head small { font-size: 12px; }.who-list li { font-size: 12px; }.motion-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; margin-top: 22px; }.motion-stat { padding-inline: 16px; }.motion-stat:nth-child(2) { border-right: 0; }.motion-stat:nth-child(3) { padding-left: 0; }.motion-stat small { font-size: 12px; }.motion-basis { font-size: 11px; }.motion-stat strong { font-size: 25px; }
  .list-card, .chart-card, .radar-card, .signals-card, .compare-section { border-radius: 22px; }.card-heading h3 { font-size: 21px; }.subview-nav { width: 100%; gap: 2px; margin-bottom: 22px; }.subview-tab { flex: 1; padding: 10px 12px; font-size: 12px; }.account-list li { font-size: 13px; min-height: 54px; }.search-wrap input { font-size: 16px; }.filter-chips { gap: 6px; }.chip { padding: 8px 10px; font-size: 12px; }.profile-link { font-size: 11px; padding: 9px; }.avatar { width: 30px; height: 30px; }.row-hide { width: 32px; }.prediction-grid { gap: 12px; }.prediction-card { padding: 20px 18px; }.prediction-hero strong { font-size: 30px; }.prediction-card .label { font-size: 11px; }.prediction-icon { top: 20px; right: 14px; }.prediction-sub { font-size: 12px; }.chart-tab { font-size: 12px; }.range-btn { min-width: 34px; }.history-head h3, .compare-head h3, .momentum-head h3 { font-size: 22px; }.goal-field input { font-size: 16px; }
  .toggle-label { font-size: 14px; }.toggle-description { font-size: 13px; }.toggle-item { gap: 18px; }.toggle-item .secondary-button { font-size: 12px; }.radar-name { font-size: 13px; }.footer-brand { width: auto; }footer { margin-top: 38px; gap: 18px; }.footer-links { gap: 18px; width: 100%; }.footer-link { font-size: 12px; }#dialogContent h2 { font-size: 24px; }#dialogContent p, #dialogContent ol { font-size: 14px; }
}
@media (max-width: 360px) {
  .hero-actions { gap: 8px; }.hero-help { font-size: 13px; }.upload-panel { padding-inline: 16px; }.preview-body { padding-inline: 14px; }.preview-person { gap: 7px; }.preview-person strong { font-size: 11px; }.relationship-status { font-size: 10px; }.preview-counts strong { font-size: 30px; }.preview-counts span { font-size: 10px; }.subview-tab { padding-inline: 10px; }.heading-actions .secondary-button { padding-inline: 8px; }.stat-grid { padding-inline: 12px; }.stat-grid .stat-card { padding-inline: 10px; }.ratio-card h3 { font-size: 19px; }.ratio-card #ratioPercent { font-size: 40px; }
}
@media (prefers-reduced-transparency: reduce) { .topbar::before, .side-nav { background: var(--bg-0); backdrop-filter: none; }.focus-card { background: #232a34; backdrop-filter: none; } }
.upload-progress i { transition: none; }
.dark-mode .side-nav, .dark-mode .spotlight { box-shadow: 0 12px 32px #00000040; }
@media (max-width: 850px) { .preview-body { padding-right: 28px; } }
@media (max-width: 700px) { .preview-body { padding-right: 18px; }.preview-data { padding-right: 0; }.focus-card { box-shadow: 0 16px 28px #00000025; }.metric-text span, .prediction-hero span, .pred-legend span { font-size: 12px; } }
@media (max-width: 360px) { .preview-body { padding-right: 14px; }.preview-counts span, .relationship-status { font-size: 11px; } }

/* Finish: tactile controls, optical alignment, and quiet state continuity. */
.hero { padding-top: 64px; }
.brand { min-height: 44px; }
.hero h1 { text-wrap: balance; }
.hero-copy { animation: arrivalFocus 650ms var(--ease-out); }
.product-stage { margin-top: 44px; }
.product-stage::before { filter: none; opacity: .65; inset: 18% -2% -4%; }
.preview-window { border-color: var(--surface-edge); box-shadow: 0 24px 54px #34485d18, 0 2px 5px #34485d0a; }
.preview-chrome { background: var(--chrome); }
.preview-tabs button { min-height: 44px; }
.preview-data { min-height: 221px; }
.preview-person { transition: background-color var(--motion-feedback); border-radius: 8px; }
.preview-person:hover { background: var(--panel-2); }
.preview-person strong { font-size: 14px; }
.focus-card { color: var(--graphite-ink); }
.focus-card small, .focus-total > span { color: var(--graphite-soft); }
.focus-track i, .ratio-gauge i { background: var(--graphite-mint); }
.focus-card p { text-wrap: balance; }
.focus-card, .preview-window { animation: stageFocus 700ms var(--ease-out); }
.hero-help span, .hero-help, .hero-actions .upload-panel, .secondary-button, .export-button, .signal-button, .icon-button, .dialog-close { transition: background-color var(--motion-feedback), color var(--motion-feedback), border-color var(--motion-feedback), transform var(--motion-feedback) var(--ease-out); }
.hero-help span { display: inline-block; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body:not(.reduce-motion) .hero-help:hover span { transform: translate(2px, -2px); }
}
body:not(.reduce-motion) :is(.secondary-button, .export-button, .signal-button, .icon-button, .dialog-close):active { transform: scale(.97); }
.upload-panel:focus-within { outline: 2px solid var(--plum); outline-offset: 4px; }
.primary-button:hover, .signal-button:hover, .review-next:hover { background: var(--action-hover); filter: none; color: var(--action-ink); }
.text-button, .link-button, .footer-link, .hero-help, .arrival-nav a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.chip, .forecast-tbtn, .range-btn, select, .dialog-close, .to-top, .row-hide, .exclude-button { min-width: 44px; min-height: 44px; }
.row-hide, .exclude-button { width: 44px; height: 44px; }
.profile-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.account-list li > a:not(.profile-link), .who-list a, .radar-row { min-height: 44px; display: flex; align-items: center; }
.who-list li { padding-block: 4px; }
.alert-dismiss { width: 44px; height: 44px; }
.unfollow-alert { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; }
.unfollow-alert .alert-dismiss { margin: 0; }
.dark-mode .selection-indicator { box-shadow: 0 2px 6px #00000026; }
.dark-mode .preview-window { box-shadow: 0 24px 54px #00000030, 0 2px 5px #00000012; }
.chart-data summary { min-height: 44px; padding-block: 12px; }
.chart-point.is-selected .point { stroke: var(--ink); stroke-width: 2px; }
.chart-point.is-selected .point-halo { opacity: .3; }
.chart-cursor { stroke: var(--line-2); stroke-width: 1px; stroke-dasharray: 3 4; pointer-events: none; }
.chart-point-navigation { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.chart-step { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.chart-step:disabled { cursor: default; opacity: .4; }
.chart-selected-value { min-width: 0; color: var(--ink-soft); text-align: center; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.search-wrap:focus-within { border-color: var(--plum); box-shadow: 0 0 0 3px var(--selection); }
.search-wrap { transition: border-color var(--motion-feedback), box-shadow var(--motion-feedback); }
.search-wrap { padding-block: 0; }
.search-wrap input { min-height: 48px; }
.mobile-section-select select { min-height: 44px; }
.stat-grid .stat-card > strong, .prediction-hero strong, .metric-text strong, .focus-total strong, #ratioPercent { font-variant-numeric: tabular-nums; }
.stat-grid .stat-card > strong { margin-top: 4px; }
.stat-card p { min-height: 21px; }
.motion-strip { padding-bottom: 16px; }
.profile-section h3 { letter-spacing: -.025em; }
.toggle-item { transition: border-color var(--motion-feedback); }
.slider { transition: background-color var(--motion-state), border-color var(--motion-state); }
.slider::before { transition: transform var(--motion-state) var(--ease-out), background-color var(--motion-feedback); }
.to-top { width: 44px; height: 44px; border-radius: 50%; transition: opacity var(--motion-feedback), background-color var(--motion-feedback); }
.to-top:not(.show) { visibility: hidden; }
dialog[open] { animation: dialogFocus 220ms var(--ease-out); }
.spotlight-search:focus-within { box-shadow: inset 0 -2px var(--plum); }
.selection-track { position: relative; isolation: isolate; }
.selection-track > button { position: relative; z-index: 1; }
.selection-indicator { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; border-radius: 999px; background: var(--panel); box-shadow: 0 2px 6px #1e304510; transition: transform var(--motion-state) var(--ease-out); }
.selection-track :is(.side-link.active, .subview-tab[aria-selected="true"], .preview-tabs button[aria-selected="true"], .chart-tab.active) { background: transparent; box-shadow: none; }
.selection-track .chart-tab { background: transparent; }
.range-btn[aria-pressed="true"], .chip[aria-pressed="true"] { color: var(--plum); }
@keyframes arrivalFocus { from { opacity: .7; } to { opacity: 1; } }
@keyframes stageFocus { from { transform: translateY(12px) scale(.985); opacity: .65; } to { transform: none; opacity: 1; } }
@keyframes dialogFocus { from { opacity: .5; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  .hero { padding-top: 44px; }
  .product-stage { margin-top: 30px; }
  .preview-data { min-height: 196px; }
  .preview-person strong { font-size: 12px; }
  .microcopy .link-button { display: flex; padding: 6px 0; }
  .subview-nav { overflow-x: auto; border-radius: 24px; }
  .subview-tab { flex: 1 0 auto; white-space: nowrap; }
  .profile-link { padding-inline: 10px; }
  .row-hide { width: 44px; }
  .range-buttons { width: 100%; }
  .range-btn { min-width: 44px; flex: 1; }
  .header-actions .icon-button { width: 44px; }
  .stage-caption { margin-top: 4px; }
  .stat-grid .stat-card { padding-inline: 10px; }
  .stat-card > span { overflow-wrap: anywhere; }
  .unfollow-alert { grid-template-columns: auto minmax(0, 1fr) 44px; gap: 4px 10px; padding: 12px 14px; }
  .unfollow-alert > div { min-width: 0; }
  .unfollow-alert .alert-dismiss { grid-column: 3; grid-row: 1; align-self: start; }
  .unfollow-alert .text-button { grid-column: 2; justify-self: start; margin: 0; }
  .unfollow-alert .alert-symbol { align-self: start; padding-top: 4px; }
}
body.reduce-motion :is(dialog[open], .hero-copy, .preview-window, .focus-card, .dashboard-in) { animation: none; }
body.reduce-motion { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
  :is(.secondary-button, .export-button, .signal-button, .icon-button, .dialog-close):active { transform: none !important; }
}
