/* Reference-led Sapphire glass appearance. styles.css owns shared behavior;
   this sheet owns the current material, palette, and page composition. */
:root, body.dark-mode {
  color-scheme: dark;
  --bg-0: #070d17; --bg-1: #101b2b;
  --panel: #141f30; --panel-2: #1d2c41;
  --line: #8ab5ee26; --line-2: #a6caff4d;
  --ink: #f5f8ff; --ink-soft: #dce7f8;
  --muted: #b4c4df; --faint: #a4b6d2;
  --plum: #b5a8ff; --pink: #98c5ff; --blue: #7bc4ff;
  --coral: #ff969e; --mint: #8bf0cf; --gold: #eecb87; --warm: #ecb59b;
  --selection: #30517b66; --action: #0664e9; --action-hover: #005ad4; --action-ink: #fff;
  --glass: #101b2bb3; --chrome: #101b2bd9; --chrome-edge: #a4c8ff38;
  --surface-edge: #c0d7ff30; --display-soft: #b8d5ff;
  --graphite-ink: #f5faff; --graphite-soft: #c6d9ed; --graphite-mint: #8bf0cf;
  --shadow-card: 0 18px 48px #02060e55;
  --radius: 26px; --radius-sm: 18px; --card-padding: 30px;
  --shell: min(1520px, calc(100% - clamp(36px, 9vw, 144px)));
  --grad: linear-gradient(145deg, #74bdff, #717bfb 58%, #b4a6ff);
  --grad-mint: linear-gradient(90deg, #93ecc9, #80dfe8);
  --grad-plum: linear-gradient(135deg, #a79cff, #7c9bff);
}
body.light-mode {
  color-scheme: light;
  --bg-0: #f5f9ff; --bg-1: #e9f1fc;
  --panel: #ffffff; --panel-2: #edf4ff;
  --line: #2459a322; --line-2: #2459a33d;
  --ink: #102b50; --ink-soft: #29486c; --muted: #506582; --faint: #566c88;
  --plum: #6553b6; --pink: #175ec0; --blue: #125bb8;
  --coral: #b93855; --mint: #087257; --gold: #826119; --warm: #99542d;
  --selection: #dceaffb3; --glass: #ffffffd9; --chrome: #f8fbfff0;
  --chrome-edge: #2459a32e; --surface-edge: #6b9cd43d; --display-soft: #145ec4;
  --action: #075ee2; --action-hover: #004bbd;
  --graphite-ink: var(--ink); --graphite-soft: var(--muted); --graphite-mint: var(--mint);
  --shadow-card: 0 18px 48px #234a8114;
  --grad-mint: linear-gradient(90deg, #087d68, #159da7);
  --sapphire-ice-art: url("assets/sapphire-ice.svg");
}
body { position: relative; isolation: isolate; background: var(--bg-0); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("assets/sapphire-folds.svg") center top / cover no-repeat; }
body.light-mode::before { background-image: var(--sapphire-ice-art); opacity: 1; }
.app-shell { position: relative; display: block; }
.topbar { position: relative; inset: auto; z-index: 20; min-height: 94px; padding: 23px 0; justify-content: start; gap: 22px; border: 0; }
.topbar::before { display: none; }
.brand { color: var(--ink); font-size: 29px; font-weight: 700; gap: 14px; letter-spacing: -.035em; }
.brand > span > span { color: inherit; }
.brand-mark { width: 38px; height: 39px; gap: 5px; }
.brand-mark i { width: 8px; border-radius: 5px; transform: skewY(-22deg); }
.brand-mark i:nth-child(1) { height: 22px; background: linear-gradient(#b2a3ff, #54b5ff); }
.brand-mark i:nth-child(2) { height: 36px; background: linear-gradient(#beaaff, #6d8fff); }
.brand-mark i:nth-child(3) { height: 28px; background: linear-gradient(#aa9eff, #6a92fb); }
.arrival-nav { margin: 0 auto; gap: 28px; }.arrival-nav a { color: var(--muted); font-size: 14px; }
.header-actions { margin-left: auto; gap: 4px; }.header-actions .icon-button { color: var(--ink-soft); background: transparent; border: 0; }
.icon-button, .dialog-close { border-radius: 14px; border-color: var(--line); background: #a2c9ff08; color: var(--ink-soft); }
.icon-button:hover, .dialog-close:hover { border-color: var(--line-2); background: var(--selection); color: var(--ink); }
.workspace-menu { display: none; position: relative; flex: none; }
.has-analysis .workspace-menu { display: block; }
.workspace-menu summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); cursor: pointer; list-style: none; font-size: 13px; }
.workspace-menu summary::-webkit-details-marker { display: none; }.workspace-menu summary:hover, .workspace-menu[open] summary { background: var(--glass); color: var(--ink); }
.workspace-menu summary > .ui-icon { width: 17px; height: 17px; }.menu-chevron { margin-left: 2px; }.workspace-menu[open] .menu-chevron { transform: rotate(180deg); }
.workspace-menu .side-nav { position: absolute; inset: 54px auto auto 0; display: flex; flex-direction: column; width: 238px; max-width: calc(100vw - 36px); align-items: stretch; margin: 0; padding: 8px; gap: 3px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--chrome); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 20px 50px #00000055; }
.workspace-menu .side-link { width: 100%; justify-content: start; min-height: 46px; padding: 11px 14px; border-radius: 12px; color: var(--muted); }
.workspace-menu .side-link.active { color: var(--ink); }.workspace-menu .side-link:hover { background: var(--selection); }
.workspace-menu .selection-indicator { border-radius: 12px; background: var(--panel-2); box-shadow: none; }
.has-analysis .arrival-nav { display: none; }.has-analysis .header-actions { margin-left: 0; margin-right: auto; }
.has-analysis .account-chip { display: none; }
.secondary-button, .export-button, .skip-button, .restore-button { min-height: 46px; padding: 11px 18px; border: 1px solid var(--line-2); border-radius: 20px; font-size: 14px; font-weight: 600; background: linear-gradient(150deg, #d7e8ff16, #8bb8ff06), var(--glass); color: var(--ink); box-shadow: inset 0 1px 0 #eef6ff17, 0 5px 16px #02070d24; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.secondary-button:hover, .export-button:hover { background: var(--panel-2); border-color: #b2d5ff80; }
.primary-button, .signal-button, .review-next { background: var(--action); color: var(--action-ink); border-color: #78b3ff42; box-shadow: inset 0 1px 0 #ffffff20, 0 8px 24px #0053b92b; }
.primary-button:hover, .signal-button:hover, .review-next:hover { background: var(--action-hover); color: #fff; border-color: #78b3ff66; }
.text-button, .link-button, .footer-link, .hero-help { color: var(--pink); }.text-button:hover, .link-button:hover, .footer-link:hover { color: var(--ink); }
.hero { padding: 54px 0 40px; }.hero h1 { font-size: clamp(58px, 6.5vw, 92px); line-height: 1.03; color: var(--ink); letter-spacing: -.04em; }.hero h1 > span { color: #b9d7fc; }
.hero-subtitle { color: var(--muted); font-size: 19px; }.hero-actions { margin-top: 30px; }
.hero .upload-panel { border: 1px solid #8abfff6b; border-radius: 20px; background: var(--action); color: #fff; padding: 14px 24px; box-shadow: inset 0 1px 0 #ffffff20, 0 10px 28px #0063c92b; }.hero .upload-panel:hover { background: var(--action-hover); }
.hero .upload-icon { color: #fff; }.hero .browse-label { color: #fff; }.microcopy { color: var(--faint); }
.product-stage { width: min(1080px, 100%); margin-top: 50px; padding-right: 128px; }.product-stage::before { display: none; }
.preview-window { border: 1px solid var(--line-2); border-radius: 28px; background: linear-gradient(150deg, #cae4ff10, #779bce03), var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 1px 0 #e4efff18, 0 30px 70px #02070f66; }
.preview-chrome { background: #a4c4ef09; border-color: var(--line); }.preview-title h2 { color: var(--ink); font-size: 30px; }.preview-title h2 > span { color: var(--muted); }
.preview-tabs { background: #03091444; border: 1px solid var(--line); }.preview-tabs button { color: var(--muted); }.preview-tabs button[aria-selected="true"] { color: var(--ink); }
.preview-counts { border-color: var(--line); }.preview-counts strong { font-size: 45px; color: var(--ink); }.preview-counts span { color: var(--muted); }.preview-counts > div:last-child strong { color: var(--mint); }
.preview-list-title, .preview-person { border-color: var(--line); }.preview-person strong { color: var(--ink-soft); }.preview-person small { color: var(--muted); }.preview-person:hover { background: #95c7ff0a; }
.portrait-blue { color: #9bcbff; background: #244b743e; }.portrait-green { color: #9ce9d1; background: #275a4b40; }.portrait-peach { color: #fac0c6; background: #72414940; }
.focus-card { background: linear-gradient(150deg, #203850b8, #0b182bdc); border: 1px solid #8cbce35e; box-shadow: inset 0 1px 0 #dbefff24, 0 20px 48px #01071266; border-radius: 26px; }
.stage-caption { color: var(--muted); }.example-label { color: var(--muted); }
.dashboard { padding: 16px 0 0; min-height: calc(100vh - 170px); }.dashboard-inner { display: block; }.dashboard-main { width: 100%; }
.section-heading { position: static; margin: 0 0 30px; align-items: start; }.section-heading h2 { font-size: clamp(34px, 4.05vw, 64px); line-height: 1.15; font-weight: 700; letter-spacing: -.04em; max-width: none; }
.export-name { font-size: 15px; color: var(--muted); margin-top: 9px; }.heading-actions { gap: 14px; }
.heading-actions .secondary-button { min-height: 54px; padding: 14px 24px; border-radius: 26px; font-size: 15px; }.heading-actions .ui-icon { width: 22px; height: 22px; }
@media (min-width: 1101px) { .has-analysis .heading-actions { position: absolute; top: 23px; right: 0; z-index: 22; }.heading-actions #shareButton { min-width: 204px; }.heading-actions #newAnalysis { min-width: 272px; }.has-analysis .header-actions #aboutButton, .has-analysis .header-actions #helpButton { display: none; } }
.mobile-section-select { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; }.mobile-section-select select { background: transparent; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; gap: 16px; margin-bottom: 20px; border: 0; border-radius: 0; background: none; }
.stat-grid .stat-card { --stat-color: var(--blue); --stat-tint: #4985d322; position: relative; min-height: 235px; padding: 24px 28px; border: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent); border-radius: 26px; background: linear-gradient(145deg, #cde5ff0c, transparent 56%, var(--stat-tint)), var(--glass); box-shadow: inset 0 1px 0 #cde4ff12, 0 14px 35px #02070c33; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; }
.stat-grid .stat-card:last-child { border-right: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent); }
.stat-grid .stat-card.plum { --stat-color: var(--plum); --stat-tint: #8270d522; }.stat-grid .stat-card.warm { --stat-color: var(--coral); --stat-tint: #b35b7022; }.stat-grid .stat-card.mint { --stat-color: var(--mint); --stat-tint: #4c9c8622; }
.stat-grid .stat-card > :not(.metric-contour) { position: relative; z-index: 1; }.stat-grid .stat-card .stat-icon { position: absolute; top: 24px; left: 28px; right: auto; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--stat-color) 22%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--stat-color) 12%, transparent); color: var(--stat-color); box-shadow: inset 0 1px 0 #ffffff09; }
.stat-grid .stat-icon .ui-icon { width: 26px; height: 26px; }
.stat-grid .stat-card p { display: flex; align-items: center; min-height: 48px; padding-left: 66px; margin: 0 0 12px; font-size: 17px; font-weight: 500; color: var(--ink); }
.stat-grid .stat-card.plum p { color: #c8c1ff; }.stat-grid .stat-card.warm p { color: #efc2d2; }
.stat-grid .stat-card > strong { font-size: clamp(38px, 4.5vw, 78px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; color: var(--ink); margin: 0; }
.stat-grid .stat-card.warm > strong { color: var(--coral); }.stat-grid .stat-card.mint > strong { color: var(--mint); }
.stat-grid .stat-card > span { color: var(--muted); font-size: 15px; margin-top: 6px; }.stat-grid .stat-card .stat-chip { font-size: 13px; color: var(--stat-color); font-weight: 600; margin-top: 7px; }
.stat-grid .stat-card .stat-micro { font-size: 13px; }.stat-grid .stat-spark { display: none; }
/* Decorative fold accents, intentionally distinct from the real report charts. */
.stat-grid .stat-card .metric-contour { position: absolute; z-index: 0; inset: auto -3px -3px -3px; height: 92px; margin: 0; pointer-events: none; }
.metric-contour::before, .metric-contour::after { content: ''; position: absolute; inset: 0; mask-size: 100% 100%; -webkit-mask-size: 100% 100%; }
.metric-contour::before { background: linear-gradient(180deg, color-mix(in srgb, var(--stat-color) 22%, transparent), transparent); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 100' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 98C115 97 235 100 297 39C334 3 351 1 380 19V100H0Z'/%3E%3C/svg%3E"); }
.metric-contour::after { background: var(--stat-color); opacity: .65; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 100' preserveAspectRatio='none'%3E%3Cpath fill='none' stroke='white' stroke-width='1.25' d='M0 98C115 97 235 100 297 39C334 3 351 1 380 19'/%3E%3C/svg%3E"); }
.overview-detail { grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); gap: 18px; align-items: stretch; }
.list-card, .ratio-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card, .prediction-card { border: 1px solid var(--line-2); border-radius: 26px; background: linear-gradient(145deg, #cde5ff0b, #a1b8dc02), var(--glass); box-shadow: inset 0 1px 0 #d3e7ff14, 0 16px 40px #02070d33; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ratio-card { position: relative; display: block; min-height: 360px; padding: 32px 36px; overflow: hidden; color: var(--ink); isolation: isolate; }
.ratio-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url("assets/sapphire-ratio.svg") center / cover; opacity: .8; }
.ratio-card > div { display: block; width: 100%; }.ratio-card h3 { margin: 0 0 20px; font-size: clamp(24px, 2.15vw, 36px); line-height: 1.1; font-weight: 600; color: var(--ink); max-width: none; }
.ratio-card #ratioPercent { display: block; margin: 0 0 8px; font-size: clamp(60px, 5.5vw, 94px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; color: #daf8fc; }
.ratio-card #ratioDescription { color: var(--muted); font-size: 16px; }.ratio-meter { display: flex; align-items: center; gap: 18px; margin-top: 20px; }.ratio-gauge { flex: 1; height: 11px; margin: 0; background: #d4e5ff22; border-radius: 99px; }.ratio-gauge i { background: linear-gradient(90deg, #8cf0c4, #79e5e4); border-radius: inherit; box-shadow: 0 2px 10px #7de4bf25; }#ratioGaugeLabel { color: var(--muted); font-size: 13px; }
.ratio-card .tier-pill { display: inline-flex; align-items: center; min-height: 38px; margin-top: 20px; border: 1px solid var(--line-2); border-radius: 22px; padding: 8px 15px; color: var(--ink-soft); background: #b9d7ff09; font-size: 12px !important; }
.ratio-card > div:first-child > .tier-pill { color: var(--ink-soft); }
.ratio-card .tier-pill::before { content: ''; width: 17px; height: 17px; margin-right: 8px; background: var(--mint); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0l-1 1-1-1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.who-card { min-height: 360px; padding: 32px 36px; background: linear-gradient(140deg, #bdcfe510, #a7ccff04 68%, #afc6ff12), var(--glass); }
.who-card .card-heading { margin-bottom: 0; }.who-card .card-heading h3 { font-size: clamp(24px, 2.15vw, 36px); line-height: 1.15; font-weight: 600; }.who-card .card-heading > div > span { font-size: 13px; color: var(--muted); }
.who-card .list-actions { width: auto; }.who-card .text-button { min-height: 40px; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 22px; background: #8bb8ff08; font-size: 12px; font-weight: 500; white-space: nowrap; }
.who-grid { margin: 28px 0 0; gap: 26px; }.who-col + .who-col { border-left: 1px solid var(--line-2); padding-left: 26px; }
.who-col-head { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 4px 14px; margin: 0; }.who-dot { grid-column: 1; grid-row: 1; width: 9px; height: 9px; }.who-col-head strong { grid-column: 2; grid-row: 1; font-size: 40px; line-height: 1.15; font-weight: 500; }.who-col-head small { grid-column: 2; grid-row: 2; font-size: 15px; color: var(--muted); }
.who-card .who-col-head strong { font-size: 48px; }.who-card .who-col-head small { font-size: 16px; }
.who-list { margin-top: 18px; max-height: 185px; }.who-list li { font-size: 12px; border-color: var(--line); }.who-list .avatar { background: #a2c4ff17; }
.who-empty { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--line-2); margin: 22px 0 0; padding: 24px 0 0; color: var(--muted); font-size: 15px; }
.who-empty::before { content: ''; width: 46px; height: 46px; flex: none; border: 1px solid var(--line-2); border-radius: 50%; background: #9fbbef15 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239eafcf' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3'/%3E%3Cpath d='M5 20v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: -8px 0 0 -2px #88a9dd12; }
.motion-strip { margin: 26px 0 0; padding: 20px 0; border-block: 1px solid var(--line); }.motion-stat { padding-inline: 24px; }.motion-stat strong { font-size: 24px; }.motion-stat small { color: var(--ink-soft); }.motion-basis { color: var(--faint); }
.motion-icon .ui-icon { width: 17px; height: 17px; }.row-hide, .exclude-button { display: inline-flex; align-items: center; justify-content: center; }.row-hide .ui-icon, .exclude-button .ui-icon { width: 17px; height: 17px; }.open-arrow .ui-icon, .profile-link .ui-icon, #whoCompareBtn .ui-icon { width: 15px; height: 15px; }
.export-warning, .unfollow-alert { background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card-heading h3, .radar-heading h3, .signals-card h3, .compare-head h3, .history-head h3, .momentum-head h3 { color: var(--ink); }.card-heading > div > span, .panel-heading p, .history-head p { color: var(--muted); }
.subview-nav, .chart-tabs, .range-buttons, .preview-tabs { border: 1px solid var(--line); background: #08122366; border-radius: 18px; }.subview-tab, .chart-tab, .range-btn { color: var(--muted); border-radius: 13px; }.selection-indicator { background: #b7d5ff15; border: 1px solid #abd0ff20; box-shadow: inset 0 1px 0 #ffffff08; border-radius: 13px; }
.subview-tab[aria-selected="true"], .chart-tab.active, .range-btn.active { color: var(--ink); }.chip, .forecast-tbtn { border-radius: 14px; border: 1px solid var(--line); background: #9bcbff06; }.chip.active, .forecast-tbtn.active { background: var(--selection); border-color: var(--line-2); color: var(--ink); }
.account-list li, .radar-row-wrap, .review-list li { border-color: var(--line); }.account-list li:hover, .review-list li:hover { background: #91bbf90b; }.avatar { background: #a5c8fa13; border: 1px solid var(--line); }.profile-link { color: var(--pink); border: 1px solid var(--line); background: #a1cfff05; border-radius: 14px; }
.search-wrap, select, .goal-field input { background: #050d1d57; border: 1px solid var(--line); color: var(--ink); border-radius: 13px; }.search-wrap:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px #82b8ff12; }.search-wrap input, .goal-field input { color: var(--ink); }.search-wrap input::placeholder { color: var(--faint); }
.empty-state, .radar-empty { background: #abcfff08; border: 1px dashed var(--line-2); color: var(--muted); border-radius: 16px; }
.compare-results .list-card { border: 0; box-shadow: none; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
.chart-title p, .chart-title strong { color: var(--ink-soft); }.chart-subtitle, .chart-data caption, .chart-data thead th { color: var(--muted); }.chart-grid-lines line { stroke: var(--line); }.chart-line { stroke: var(--blue); }.follows-chart .chart-line { stroke: var(--mint); }.unfollows-chart .chart-line { stroke: var(--coral); }
.chart-points .point { fill: var(--blue); }.chart-points .point-halo { fill: var(--blue); }.follows-chart .chart-points .point, .follows-chart .chart-points .point-halo { fill: var(--mint); }.unfollows-chart .chart-points .point, .unfollows-chart .chart-points .point-halo { fill: var(--coral); }
.chart-tooltip { background: var(--panel-2); color: var(--ink); border-color: var(--line-2); border-radius: 12px; }.chart-data table { color: var(--ink-soft); }.chart-data th, .chart-data td { border-color: var(--line); }
.prediction-grid { gap: 16px; }.prediction-card { padding: 24px; }.prediction-sub { color: var(--muted); }.weekday-card { border-color: var(--line); }.day-bar { background: #a9caff0d; }.day-bar i { background: var(--mint); }.day.peak .day-bar i { background: var(--blue); }
.toggle-item { border-color: var(--line); }.toggle-description { color: var(--muted); }.slider { background: #a8c9ff0b; border-color: var(--line-2); }.switch input:checked + .slider { background: #6c9aff; border-color: #6c9aff; }.switch input:checked + .slider::before { background: #091224; }
.profile-page-head .account-chip { display: inline-flex; margin: 0 0 26px; background: var(--glass); border-color: var(--line-2); }.profile-section { max-width: 920px; }.usage-stats .stat-card { background: var(--glass); border: 1px solid var(--line); padding: 24px; }
.how-it-works { padding-top: 52px; }.how-it-works h2 { color: var(--ink); }.steps article { border-color: var(--line-2); }.steps p { color: var(--muted); }.step-num { color: var(--blue); }.step-demo { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; }.demo-chip { background: #a1c6ff0d; color: var(--ink-soft); }.demo-ok { color: var(--mint); }
footer { border-color: var(--line); color: var(--muted); }.footer-brand > span { color: var(--ink); }.footer-brand p, .footer-copyright { color: var(--faint); }
dialog, .spotlight { background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 30px 100px #02071188; border-radius: 24px; }dialog::backdrop { background: #020713b8; backdrop-filter: blur(8px); }.spotlight-search, .spotlight-footer { border-color: var(--line); }.spotlight-item.active { background: var(--selection); }.spotlight-search input { color: var(--ink); }.spotlight-item.active .ui-icon { color: var(--blue); }
.progress-toast, #instatrackToast { background: var(--panel); border-color: var(--line-2); color: var(--ink); }.to-top { background: var(--panel); border-color: var(--line-2); color: var(--ink); }
.compact-mode .stat-grid { padding: 0; }.compact-mode .stat-grid .stat-card { padding: 22px; min-height: 216px; }.compact-mode .stat-grid .stat-icon { left: 22px; }
/* Sapphire ice: white glass, blue-edged depth, and role-tinted metrics. */
body.light-mode .brand-mark i:nth-child(1) { background: linear-gradient(#7bb8ff, #1366dd); }
body.light-mode .brand-mark i:nth-child(2) { background: linear-gradient(#8a9ff5, #225ce0); }
body.light-mode .brand-mark i:nth-child(3) { background: linear-gradient(#a7b7fa, #5274e2); }
body.light-mode .hero h1 > span { color: var(--display-soft); }
body.light-mode :is(.list-card, .ratio-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card, .prediction-card, .preview-window) { background: linear-gradient(145deg, #ffffffc7, #ecf4ff26), var(--glass); box-shadow: inset 0 1px 0 #ffffff, 0 18px 48px #234a8112, 0 2px 6px #234a8106; }
body.light-mode .stat-grid .stat-card { --stat-tint: #347ce914; background: linear-gradient(150deg, #ffffffeb, #ffffff75 50%, var(--stat-tint)), var(--glass); border-color: color-mix(in srgb, var(--stat-color) 24%, transparent); box-shadow: inset 0 1px 0 #ffffff, 0 10px 28px #234a810e; }
body.light-mode .stat-grid .stat-card.plum { --stat-tint: #7964d918; }
body.light-mode .stat-grid .stat-card.warm { --stat-tint: #d6618014; }
body.light-mode .stat-grid .stat-card.mint { --stat-tint: #24987914; }
body.light-mode .stat-grid .stat-card > strong { color: var(--stat-color); }
body.light-mode .stat-grid .stat-card.plum p, body.light-mode .stat-grid .stat-card.warm p { color: var(--ink); }
body.light-mode .stat-grid .stat-card .stat-icon { background: color-mix(in srgb, var(--stat-color) 8%, #fff); border-color: color-mix(in srgb, var(--stat-color) 18%, transparent); }
body.light-mode .metric-contour::before { opacity: .65; }
body.light-mode .metric-contour::after { opacity: .4; }
body.light-mode .ratio-card::before { background-image: var(--sapphire-ice-art); background-position: 70% 60%; opacity: .65; }
body.light-mode .ratio-card #ratioPercent { color: var(--mint); }
body.light-mode :is(.ratio-gauge, .focus-track) { background: #d3e6ed; }
body.light-mode :is(.ratio-gauge, .focus-track) i { background: var(--grad-mint); box-shadow: none; }
body.light-mode .ratio-card .tier-pill { background: #ffffffa6; border-color: #08725730; color: var(--mint); }
body.light-mode .who-card { background: linear-gradient(145deg, #ffffffeb, #f3f8ffb3), var(--glass); }
body.light-mode .preview-chrome { background: #eef5ffb3; }
body.light-mode .focus-card { background: linear-gradient(145deg, #ffffffed, #e9f3ffeb); border-color: #79a7df66; color: var(--ink); box-shadow: inset 0 1px 0 #ffffff, 0 20px 44px #17488126, 0 2px 6px #1748810a; }
body.light-mode .focus-symbol { color: var(--mint); }
body.light-mode .focus-total strong { color: var(--blue); }
body.light-mode .portrait-blue { color: var(--blue); background: #e0edff; }
body.light-mode .portrait-green { color: var(--mint); background: #dff2e9; }
body.light-mode .portrait-peach { color: var(--coral); background: #fbe5eb; }
body.light-mode :is(.preview-tabs, .subview-nav, .chart-tabs, .range-buttons) { background: #e7f0fbb3; }
body.light-mode .selection-indicator { background: #ffffff; border-color: #96b9e43d; box-shadow: 0 2px 6px #234a810c; }
body.light-mode :is(.chip, .forecast-tbtn) { background: #ffffff94; }
body.light-mode :is(.chip.active, .forecast-tbtn.active) { background: var(--selection); border-color: #7ba8df66; }
body.light-mode :is(.search-wrap, select, .goal-field input) { background: #ffffffb3; }
body.light-mode .search-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #125bb814; }
body.light-mode :is(.secondary-button, .export-button, .skip-button, .restore-button):not(.primary-button) { background: linear-gradient(150deg, #ffffffed, #f0f6ffd9); box-shadow: inset 0 1px 0 #ffffff, 0 4px 12px #234a810b; }
body.light-mode :is(.secondary-button, .export-button):not(.primary-button):hover { background: var(--panel-2); border-color: #6697d866; }
body.light-mode :is(.primary-button, .signal-button, .review-next, .hero .upload-panel) { box-shadow: inset 0 1px 0 #ffffff30, 0 8px 20px #075ee225; }
body.light-mode .workspace-menu .side-nav { box-shadow: 0 18px 40px #234a811c; }
body.light-mode .switch input:checked + .slider { background: var(--action); border-color: var(--action); }
body.light-mode .switch input:checked + .slider::before { background: #fff; }
body.light-mode :is(.empty-state, .radar-empty) { background: #eef5ff80; }
body.light-mode :is(dialog, .spotlight) { background: #fbfdff; box-shadow: 0 24px 70px #183b6b29; }
body.light-mode dialog::backdrop { background: #163b6b38; }
body.light-mode .to-top { background: #ffffffd9; box-shadow: 0 4px 16px #234a8110; }
body.light-mode .compare-results .list-card { background: none; box-shadow: none; }
@media (max-width: 1200px) {
  .topbar { gap: 15px; }.brand { font-size: 26px; }.stat-grid { gap: 12px; }.stat-grid .stat-card { padding: 22px; min-height: 220px; }.stat-grid .stat-card .stat-icon { left: 22px; top: 22px; width: 42px; height: 42px; }.stat-grid .stat-card p { padding-left: 56px; font-size: 15px; min-height: 42px; }.stat-grid .stat-card > span { font-size: 13px; }
  .who-card, .ratio-card { padding: 28px; }.who-col-head small { font-size: 13px; }.section-heading { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  .has-analysis .header-actions { margin-left: auto; margin-right: 0; }.heading-actions { width: 100%; justify-content: start; }.heading-actions .secondary-button { min-height: 46px; padding: 11px 18px; font-size: 13px; }.section-heading { gap: 20px; }.dashboard { padding-top: 18px; }.section-heading h2 { font-size: 45px; }
  .stat-grid .stat-card p { font-size: 14px; }.stat-grid .stat-card > strong { font-size: 46px; }.ratio-card, .who-card { min-height: 340px; }.who-col + .who-col { padding-left: 18px; }.who-grid { gap: 18px; }
}
@media (max-width: 850px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.stat-grid .stat-card { min-height: 226px; }.stat-grid .stat-card p { font-size: 16px; }.stat-grid .stat-card > strong { font-size: 58px; }
  .overview-detail { grid-template-columns: 1fr; }.ratio-card { min-height: 0; }.ratio-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }.ratio-card h3 { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: 30px; }.ratio-card #ratioPercent { grid-column: 2; margin: 0; font-size: 72px; }.ratio-card #ratioDescription { grid-column: 2; font-size: 14px; }.ratio-meter { grid-column: 1; margin-top: 15px; }.ratio-meter #ratioGaugeLabel { display: none; }.ratio-card .tier-pill { grid-column: 2; margin-top: 14px; width: fit-content; }
  .who-card { min-height: 320px; }.who-card .card-heading h3 { font-size: 30px; }.who-col-head strong { font-size: 40px; }.who-col-head small { font-size: 15px; }.motion-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }.motion-stat:nth-child(2) { border-right: 0; }.motion-stat:nth-child(3) { padding-left: 0; }.insights-grid, .discovery-section, .history-grid { grid-template-columns: 1fr; }
  .product-stage { padding-right: 72px; }.preview-counts strong { font-size: 36px; }.preview-title h2 { font-size: 25px; }.focus-card { width: 224px; }.preview-body { padding-right: 28px; }
}
@media (max-width: 700px) {
  :root, body.dark-mode { --shell: calc(100% - 36px); --card-padding: 22px; }
  .topbar { min-height: 82px; padding: 17px 0; gap: 8px; }.brand { font-size: 24px; gap: 11px; }.brand-mark { width: 29px; height: 31px; gap: 4px; }.brand-mark i { width: 7px; }.brand-mark i:nth-child(1) { height: 17px; }.brand-mark i:nth-child(2) { height: 29px; }.brand-mark i:nth-child(3) { height: 22px; }
  .workspace-menu { display: none !important; }.header-actions, .has-analysis .header-actions { margin-left: auto; margin-right: 0; gap: 0; }.header-actions .icon-button { width: 40px; min-width: 40px; height: 44px; }.header-actions #aboutButton { display: none; }.has-analysis .header-actions #helpButton { display: none; }
  .hero { padding: 35px 0 20px; }.hero h1 { font-size: clamp(52px, 12vw, 76px); }.hero-subtitle { font-size: 16px; }.hero-actions { margin-top: 24px; }.hero .upload-panel { padding: 12px 18px; }.hero .browse-label, .hero-help { font-size: 14px; }
  .product-stage { padding: 0 0 32px; margin-top: 34px; }.preview-window { border-radius: 22px; }.preview-body { padding: 24px 18px 70px; }.preview-title h2 { font-size: 26px; }.preview-counts strong { font-size: 34px; }.focus-card { position: relative; width: calc(100% - 28px); margin: -46px 14px 0 auto; padding: 22px; }.focus-card p { font-size: 20px; }.stage-caption { font-size: 12px; }
  .dashboard { padding-top: 17px; }.section-heading { margin-bottom: 20px; gap: 20px; }.section-heading h2 { font-size: 35px; line-height: 1.15; max-width: none; }.export-name { font-size: 12px; margin-top: 9px; }.heading-actions { gap: 10px; }.heading-actions .secondary-button { min-height: 44px; padding: 10px; font-size: 12px; border-radius: 18px; }.heading-actions .ui-icon { width: 17px; height: 17px; }.mobile-section-select { margin-bottom: 22px; padding: 10px 14px; }
  .stat-grid { gap: 12px; margin-bottom: 18px; padding: 0; }.stat-grid .stat-card { min-height: 208px; padding: 18px; border: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent); border-radius: 22px; }.stat-grid .stat-card:nth-child(2) { border-right: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent); }.stat-grid .stat-card:nth-child(3), .stat-grid .stat-card:nth-child(4) { border-top: 1px solid color-mix(in srgb, var(--stat-color) 35%, transparent); }
  .stat-grid .stat-card .stat-icon { display: grid; top: 18px; left: 18px; width: 33px; height: 33px; }.stat-grid .stat-icon .ui-icon { width: 19px; height: 19px; }.stat-grid .stat-card p { min-height: 34px; padding-left: 43px; font-size: 12px; margin: 0 0 20px; }.stat-grid .stat-card > strong { font-size: 42px; }.stat-grid .stat-card > span { font-size: 12px; margin-top: 6px; }.stat-grid .stat-card .stat-chip, .stat-grid .stat-card .stat-micro { font-size: 11px; line-height: 1.5; }.stat-grid .stat-card .metric-contour { height: 60px; }
  .overview-detail { gap: 18px; }.ratio-card { padding: 24px; border-radius: 22px; }.ratio-card > div { gap: 8px 14px; }.ratio-card h3 { font-size: 23px; }.ratio-card #ratioPercent { font-size: 56px; }.ratio-card #ratioDescription { font-size: 12px; }.ratio-gauge { height: 8px; }.ratio-card .tier-pill { font-size: 11px !important; min-height: 32px; padding: 6px 10px; }
  .who-card { padding: 24px; min-height: 310px; border-radius: 22px; }.who-card .card-heading h3 { font-size: 29px; }.who-card .card-heading > div > span { font-size: 12px; }.who-card .list-actions { width: auto; }.who-card .text-button { padding: 8px 12px; font-size: 11px; }.who-grid { gap: 16px; margin-top: 24px; }.who-col + .who-col { padding-left: 16px; }.who-col-head { gap: 4px 10px; grid-template-columns: 9px minmax(0, 1fr); }.who-col-head strong { font-size: 36px; }.who-col-head small { font-size: 12px; }.who-list li { font-size: 11px; }.who-empty { font-size: 13px; gap: 14px; padding-top: 20px; }.who-empty::before { width: 36px; height: 36px; background-size: 21px; }
  .who-card .who-col-head strong { font-size: 36px; }.who-card .who-col-head small { font-size: 12px; }
  .motion-stat { padding-inline: 16px; }.motion-stat strong { font-size: 22px; }.motion-stat small { font-size: 12px; }.motion-basis { font-size: 11px; }.card-heading h3 { font-size: 21px; }.list-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card { border-radius: 22px; }
  .subview-nav { border-radius: 18px; overflow-x: auto; }.subview-tab { border-radius: 13px; padding: 10px 12px; }.chart-tab { font-size: 12px; }.chart-tabs { width: 100%; }.chart-tabs .chart-tab { flex: 1; }.prediction-card { padding: 20px; border-radius: 22px; }
  .how-it-works { padding-top: 38px; }.profile-section h3 { font-size: 20px; }.toggle-label { font-size: 14px; }.toggle-description { font-size: 12px; }
}
@media (max-width: 360px) {
  .brand { font-size: 22px; }.header-actions .icon-button { width: 38px; min-width: 38px; }.brand-mark { width: 27px; gap: 3px; }.stat-grid { gap: 10px; }.stat-grid .stat-card { padding: 14px; min-height: 204px; }.stat-grid .stat-card .stat-icon { top: 14px; left: 14px; width: 29px; height: 29px; }.stat-grid .stat-card p { padding-left: 36px; font-size: 11px; }.stat-grid .stat-card > strong { font-size: 36px; }.stat-grid .stat-card > span { font-size: 11px; }.who-card, .ratio-card { padding: 20px; }.ratio-card h3 { font-size: 21px; }.ratio-card #ratioPercent { font-size: 48px; }.who-card .text-button { font-size: 11px; padding: 8px 10px; }
}
@media (prefers-reduced-transparency: reduce) {
  .stat-grid .stat-card, .list-card, .ratio-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card, .prediction-card, .preview-window, .workspace-menu .side-nav { background: var(--panel); backdrop-filter: none; -webkit-backdrop-filter: none; }.ratio-card::before { display: none; }
  body.light-mode :is(.stat-grid .stat-card, .list-card, .ratio-card, .chart-card, .radar-card, .signals-card, .compare-section, .forecast-card, .prediction-card, .preview-window, .focus-card, .workspace-menu .side-nav) { background: var(--panel); }
}

/* Arrival: one welcome viewport, followed by the scroll-revealed example. */
:root { --arrival-header-height: 94px; }
html { scroll-padding-top: 112px; }
body:not(.has-analysis) .topbar { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: var(--arrival-header-height); }
body:not(.has-analysis) .topbar::before { display: block; background: transparent; border-bottom: 0; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
body:not(.has-analysis) .brand { grid-column: 1; grid-row: 1; justify-self: start; }
body:not(.has-analysis) .arrival-nav { display: flex; grid-column: 2; grid-row: 1; justify-self: center; align-items: center; gap: 30px; margin: 0; }
body:not(.has-analysis) .arrival-nav a { min-height: 44px; padding: 10px 0; align-items: center; white-space: nowrap; }
body:not(.has-analysis) .header-actions { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; }
.hero { padding-top: 0; }
.hero-copy { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100svh - var(--arrival-header-height)); padding: clamp(40px, 7svh, 80px) 0; }
.hero-copy h1 { flex: none; }.hero-copy .hero-subtitle { flex: none; }
.scroll-cue { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; }
.scroll-cue:hover { color: var(--ink); }.scroll-cue .ui-icon { width: 17px; height: 17px; }
.hero .preview-window, .hero .focus-card { animation: none; }
.product-stage { scroll-margin-top: 0; }
/* Immediate data, eased presentation. Keep the root untransformed so the
   absolute header actions never jump into a new containing block. */
.dashboard-in { animation: none; }
.dashboard-in .section-heading > div:first-child { animation: result-heading 280ms var(--ease-out); }
.dashboard-in .heading-actions { animation: result-actions 240ms var(--ease-out); }
.dashboard-in .dashboard-content { animation: result-content 340ms var(--ease-out); }
@keyframes result-heading { from { opacity: .65; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes result-actions { from { opacity: .65; } to { opacity: 1; } }
@keyframes result-content { from { opacity: .7; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body.reduce-motion .dashboard-in :is(.section-heading > div, .dashboard-content) { animation: none; }
@media (prefers-reduced-motion: reduce) { .dashboard-in :is(.section-heading > div, .dashboard-content) { animation: none; } }
@media (max-width: 700px) {
  :root { --arrival-header-height: 128px; }
  html { scroll-padding-top: 144px; }
  body:not(.has-analysis) .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 16px 0; }
  body:not(.has-analysis) .header-actions { grid-column: 2; }
  body:not(.has-analysis) .arrival-nav { grid-column: 1 / -1; grid-row: 2; gap: 30px; }
  body:not(.has-analysis) .arrival-nav a { font-size: 13px; padding: 8px 0; }
  .hero { padding-top: 0; }.hero-copy { padding: 36px 0 48px; }
  .scroll-cue { font-size: 12px; margin-top: 20px; }
}
@media (prefers-reduced-transparency: reduce) {
  body:not(.has-analysis) .topbar::before { background: var(--bg-0); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
