:root {
  --canvas: #f4f1ea;
  --surface: #fbfaf6;
  --ink: #14201f;
  --ink-2: #46524f;
  --muted: #7b8482;
  --line: #e3ded3;
  --line-2: #d6d0c3;
  --teal: #0f766e;
  --teal-ink: #0b5953;
  --teal-wash: #e3efec;
  --gain: #17753f;        /* chart mark + text */
  --loss: #e8849a;        /* chart mark only */
  --loss-ink: #a3314b;    /* text for losses */
  --neutral-mark: #c3bdb0;
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --ui: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scrollbar-gutter: stable; }  /* same horizontal position whether or not a page scrolls */
body {
  background: var(--canvas);
  color: var(--ink);
  font: 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-ink); }
.num, table, .kpi-value, .hero-number { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 28px; }  /* one width for every page */

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--canvas); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { font: 600 26px/1 var(--display); letter-spacing: -0.02em; }
.brand-mark span { color: var(--teal); }
.brand-sub { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.top nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; margin-left: 22px; }
.top nav a:hover { color: var(--teal-ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); font-weight: 600; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.muted { color: var(--muted); }
.gain { color: var(--gain); }
.loss { color: var(--loss-ink); }

/* Layout */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding: 56px 0 40px; align-items: start; }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; gap: 32px; } }
section { padding: 8px 0 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* Rules list */
.rules { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 2px; }
.rules li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules b { font-weight: 600; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 1px; }

/* Form */
form { display: grid; gap: 18px; }
label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
input[type=date], input[type=number], input[type=text], input[type=password], select {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, .seg label:focus-within, summary:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; cursor: pointer;
  background: #fff; display: grid; gap: 2px; transition: border-color .15s, background .15s;
}
.seg label:has(input:checked) { border-color: var(--teal); background: var(--teal-wash); box-shadow: inset 0 0 0 1px var(--teal); }
.seg .name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.seg .state { font-size: 12px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neutral-mark); display: inline-block; }
.dot.on { background: var(--gain); }
.note { font-size: 13px; color: var(--muted); margin: -6px 0 0; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 14px; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--teal); }
.check .muted { font-size: 13px; }
details.creds { border-top: 1px dashed var(--line-2); padding-top: 12px; }
details.creds summary { cursor: pointer; font-size: 13px; color: var(--ink-2); font-weight: 500; }
details.creds .inner { display: grid; gap: 12px; margin-top: 12px; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn {
  font: 500 12px var(--ui); border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 4px 11px; cursor: pointer;
}
.chip-btn:hover { border-color: var(--teal); color: var(--teal-ink); }
.btn {
  font: 600 15px var(--ui); background: var(--ink); color: var(--surface); border: 0;
  border-radius: 12px; padding: 13px 18px; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--teal-ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { font: 500 13px var(--ui); background: none; border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 10px; padding: 7px 12px; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-ink); }
.error { background: #fbeef1; border: 1px solid #f0c9d2; color: var(--loss-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.hidden { display: none !important; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: #f6f3ec; }
tr.quiet td { color: var(--muted); }
.empty { padding: 36px; text-align: center; color: var(--muted); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #efece4; color: var(--ink-2); }
.tag.ce { background: #e3f0e7; color: var(--gain); }
.tag.pe { background: #f8e6ea; color: var(--loss-ink); }
.tag.running { background: var(--teal-wash); color: var(--teal-ink); }
.tag.failed { background: #f8e6ea; color: var(--loss-ink); }
.swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* Run report */
.report-head { padding: 40px 0 8px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.report-head .meta { color: var(--ink-2); margin-top: 8px; }
.verdict { display: grid; grid-template-columns: 1.1fr 2fr; gap: 20px; margin-top: 24px; }
@media (max-width: 920px) { .verdict { grid-template-columns: 1fr; } }
.hero-number { font: 600 clamp(44px, 6vw, 68px)/1 var(--display); letter-spacing: -0.03em; margin: 10px 0 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 16px 18px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.kpi:nth-child(-n+4) { border-top: 0; }
.kpi:nth-child(4n+1) { border-left: 0; }
.kpi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 22px; font-weight: 600; margin-top: 4px; }
.kpi-sub { font-size: 12px; color: var(--muted); }
.kpis.card { padding: 0; }

.charts { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-top: 20px; }
@media (max-width: 920px) { .charts { grid-template-columns: 1fr; } }
.chart-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--muted); font: 11px var(--ui); font-variant-numeric: tabular-nums; }
.tooltip {
  position: absolute; pointer-events: none; background: var(--ink); color: var(--surface);
  font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .1s;
}
.tooltip.show { opacity: 1; }
.tooltip b { font-weight: 600; }

.mix-bar { display: flex; gap: 2px; height: 28px; margin: 18px 0 16px; }
.mix-bar div { border-radius: 4px; min-width: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.legend li { display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 8px; }
.cost-lines { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; font-size: 14px; }
.cost-lines div { display: flex; justify-content: space-between; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { font: 500 13px var(--ui); background: none; border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; color: var(--ink-2); cursor: pointer; }
.tabs button[aria-pressed=true] { background: var(--ink); color: var(--surface); }
.tabs button:hover:not([aria-pressed=true]) { border-color: var(--line-2); }

.progress { margin-top: 28px; }
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 14px 0 8px; }
.bar > div { height: 100%; background: var(--teal); border-radius: 999px; transition: width .4s ease; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.reveal { animation: reveal .45s ease-out both; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .pulse, .reveal { animation: none; } }

footer { color: var(--muted); font-size: 13px; padding: 28px 0 48px; border-top: 1px solid var(--line); margin-top: 20px; }

/* Reconciliation */
.field-label { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.drop {
  position: relative; display: grid; gap: 4px; place-items: center; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 26px 16px; background: #fff;
  transition: border-color .15s, background .15s;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--teal); background: var(--teal-wash); }
.drop.has-file { border-style: solid; border-color: var(--teal); }
.drop-title { font-weight: 600; }
.drop .muted { font-size: 13px; }
.drop:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }

.findings { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.finding { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.finding:first-child { border-top: 0; }
.f-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-top: 1px; }
.finding.ok .f-icon { background: #e3f0e7; color: var(--gain); }
.finding.diff .f-icon { background: #f8e6ea; color: var(--loss-ink); }
.finding.info .f-icon { background: #efece4; color: var(--ink-2); font-style: italic; font-family: var(--display); }
.tag.ok-tag { background: #e3f0e7; color: var(--gain); }

table.compare th[scope=row] { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 500; position: static; }
table.compare td { white-space: normal; min-width: 150px; }
tr.detail > td { background: #f7f4ed; padding-top: 4px; padding-bottom: 14px; }
table.checks { font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.checks th { position: static; font-size: 11px; padding: 8px 12px; }
table.checks td { padding: 7px 12px; }
table.checks tr.flip td { background: #fbeef1; font-weight: 600; }
.chart .row-label { fill: var(--ink-2); font: 500 12px var(--ui); }

/* Sign in */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-wrap { width: 100%; max-width: 400px; }
.login-brand { display: flex; align-items: baseline; gap: 12px; justify-content: center; margin-bottom: 22px; }
.login-card { padding: 30px 28px; }
.login-card form { margin-top: 18px; }
.login-title { font-size: 30px; }
.login-foot { font-size: 12px; text-align: center; margin-top: 16px; }
.login-foot code { font-size: 11px; background: #efece4; border-radius: 4px; padding: 1px 5px; }
.notice { background: var(--teal-wash); color: var(--teal-ink); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 14px; }
.login-card .error { margin-top: 14px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 500 12px var(--ui); color: var(--ink-2); background: none; border: 0; padding: 6px 8px; cursor: pointer; border-radius: 6px; }
.pw-toggle:hover { color: var(--teal-ink); }
.signout { display: inline; margin: 0 0 0 22px; }
.signout button { font: 500 15px var(--ui); color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; }
.signout button:hover { color: var(--teal-ink); }
.top nav { display: flex; align-items: center; }
.progress .notice { margin: 12px 0 0; }
.cell-sub { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }

/* Day-by-day ledger: 14 columns */
table.ledger th, table.ledger td { padding-left: 10px; padding-right: 10px; }
table.ledger th:first-child, table.ledger td:first-child { padding-left: 16px; }
table.ledger th:last-child, table.ledger td:last-child { padding-right: 16px; }
table.ledger .cell-sub { font-size: 11px; margin-top: 1px; }

#exit-rule { width: 100%; min-width: 0; }
#exit-rule-note { margin-top: -6px; }

/* Research workspace: shared visual system and responsive analytical views. */
:root {
  --canvas: #f5f7fb; --surface: #fff; --ink: #18263d; --ink-2: #4b5d76;
  --muted: #66758b; --line: #e4e9f1; --line-2: #cbd4e1;
  --teal: #325fe8; --teal-ink: #234dc9; --teal-wash: #edf2ff;
  --gain: #14775e; --loss: #df7a87; --loss-ink: #b63f52; --neutral-mark: #a7b3c6;
  --display: 'Segoe UI', system-ui, sans-serif; --ui: 'Segoe UI', system-ui, sans-serif;
  --radius: 16px;
}
html { scroll-behavior: smooth; scroll-padding-top: 145px; }
body { font-size: 14px; line-height: 1.6; }
.wrap { max-width: 1440px; padding: 0 40px; }
h1, h2, h3 { letter-spacing: -.035em; font-weight: 650; }
h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.18; }
h2 { font-size: 22px; } h3 { font-size: 16px; letter-spacing: -.015em; }
a, button, input, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
button, select { touch-action: manipulation; }
input[type=search] { font: inherit; color: var(--ink); border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0; }
input[type=date], input[type=number], input[type=text], input[type=password], select { font-size: 14px; min-height: 43px; border-radius: 9px; }
input:focus-visible, select:focus-visible { border-color: var(--teal); outline-width: 2px; }
::placeholder { color: #7b879a; }
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { height: 72px; }
.brand { align-items: center; gap: 10px; }
.brand-symbol { width: 30px; height: 30px; display: inline-grid; place-items: center; background: var(--teal); color: #fff; font: 700 25px/1 var(--ui); border-radius: 9px 9px 9px 3px; }
.brand-mark { font: 700 24px/1 var(--ui); letter-spacing: -.055em; }
.top nav { gap: 6px; }
.top nav a { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.top nav a:hover { background: var(--teal-wash); }
.workspace-page .top nav a[href='/'], .report-page .top nav a[href='/#runs'] { color: var(--teal-ink); background: var(--teal-wash); }
.signout { padding-left: 14px; margin-left: 12px; border-left: 1px solid var(--line); }
.signout button { font-size: 13px; }
.eyebrow { font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.lede { font-size: 15px; line-height: 1.7; max-width: 66ch; margin: 12px 0 0; }
.card { box-shadow: 0 3px 14px #23386103; }
.btn { background: var(--teal); color: #fff; font-size: 14px; font-weight: 600; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn:hover { background: #234ccc; }
.btn-ghost { background: #fff; font-size: 13px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; background: #edf0f5; }
.tag.ce { color: #116048; background: #e9f5ef; } .tag.pe { color: #9e3752; background: #fbebef; }
.note { line-height: 1.65; } .footnote { margin: 16px 0 0; font-size: 12px; }
.workspace-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 40px 0 28px; }
.workspace-heading h1 { margin-top: 8px; }
.workspace-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.workspace-stat { display: flex; flex-direction: column; justify-content: center; padding: 22px 24px; min-height: 126px; }
.workspace-stat strong { font-size: 29px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.workspace-stat .stat-label { color: var(--ink-2); font-size: 12px; }
.workspace-stat small { color: var(--muted); font-size: 12px; }
.workspace-stat a { font-size: 12px; }
.builder { grid-template-columns: .8fr 1.2fr; gap: 64px; padding: 44px 0 48px; }
.builder-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; margin-top: 18px; }
.strategy-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 26px; }
.strategy-pills span { border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 8px; font-size: 11px; color: var(--ink-2); }
.strategy-details summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.rules { margin: 16px 0 0; }.rules li { grid-template-columns: 64px 1fr; font-size: 12px; gap: 12px; }.rules b { font-size: 10px; }
.research-note { display: flex; gap: 14px; background: #eaf0fd; border-radius: 12px; padding: 20px; margin-top: 28px; color: #334a73; font-size: 13px; }
.research-note p { margin: 4px 0 0; font-size: 12px; line-height: 1.7; }
.note-icon { width: 27px; height: 27px; flex-shrink: 0; display: grid; place-items: center; background: #fff; border-radius: 7px; color: var(--teal); }
.builder-card { padding: 26px; }
.builder-card .section-head { margin: 0; align-items: center; }
.form-intro { margin: 6px 0 0; font-size: 13px; }
form { gap: 16px; }.seg label { border-radius: 9px; }.seg .state { font-size: 11px; }
.form-preview { font-size: 12px; color: var(--ink-2); margin: 0; padding: 11px 13px; background: var(--canvas); border-radius: 8px; }
.check { padding: 14px; background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; }
.presets button[aria-pressed=true] { color: var(--teal-ink); border-color: var(--teal); background: var(--teal-wash); }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: 18px 0; }
.toolbar .search-field { flex: 1; min-width: 200px; }.search-field { display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }
.toolbar .field { min-width: 140px; font-size: 12px; }.toolbar>span { padding-bottom: 10px; font-size: 12px; }
.table-wrap { border-radius: 12px; max-width: 100%; }.table-wrap table { font-size: 12px; }
th { background: #f8fafd; font-size: 10px; font-weight: 600; padding: 13px 16px; }td { padding: 15px 16px; }
tbody tr.link:hover td { background: #f2f6ff; }.cell-sub { margin-top: 4px; font-size: 10px; }
.table-link { font: inherit; font-weight: 600; color: var(--teal-ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.breadcrumb { display: flex; gap: 9px; align-items: center; font-size: 12px; color: var(--muted); padding-top: 28px; }.breadcrumb a { text-decoration: none; }
.report-head { padding: 18px 0 24px; align-items: center; }.report-head h1 { font-size: clamp(25px, 3vw, 36px); }
.report-head .meta { font-size: 12px; }.report-head .note { margin-top: 10px; display: inline-flex; padding: 5px 10px; border-radius: 6px; color: var(--teal-ink); background: var(--teal-wash); font-size: 11px; }
.report-actions { display: flex; gap: 10px; }.report-actions .btn { padding: 9px 14px; }
.report-nav { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow: auto; }
.report-nav a { color: var(--ink-2); white-space: nowrap; padding: 12px 0; text-decoration: none; font-size: 12px; font-weight: 600; border-bottom: 2px solid transparent; }.report-nav a:hover { color: var(--teal); border-color: var(--teal); }
.insight-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.insight { display: flex; gap: 11px; align-items: start; padding: 14px 16px; background: #eef2f8; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }
.insight b { display: block; color: var(--ink); margin-bottom: 2px; }.insight p { margin: 0; color: var(--ink-2); line-height: 1.55; }.insight-icon { font-size: 17px; color: var(--teal); }
.verdict { grid-template-columns: 1fr 2fr; gap: 18px; margin-top: 20px; }.net-card { background: #142847; color: #fff; display: flex; flex-direction: column; justify-content: center; border: 0; }
.net-card .kpi-label,.net-card .muted { color: #beccdf; }.net-card .hero-number { color: #fff; }.net-card .hero-number.loss { color: #ffadba; }
.hero-number { font: 650 clamp(35px,4vw,53px)/1.2 var(--ui); margin: 12px 0; }.kpi { padding: 17px 15px; }.kpi-label { font-size: 10px; letter-spacing: .04em; }.kpi-value { font-size: 22px; letter-spacing: -.035em; }.kpi-sub { font-size: 10px; margin-top: 4px; }
.charts { gap: 18px; }.chart-title { align-items: center; gap: 12px; }.chart-title .muted { font-size: 11px; }.chart-title h3 { margin-bottom: 3px; }
.chart .grid line { stroke-dasharray: 3 4; }.chart .axis text { font: 10px var(--ui); }.chart-caption { font-size: 12px; margin: 8px 0 18px; }
.tabs { gap: 3px; }.tabs button { font-size: 11px; padding: 6px 11px; border-radius: 7px; }.tabs button[aria-pressed=true] { background: var(--teal-wash); color: var(--teal-ink); }
.report-section { padding: 34px 0 0; }.report-section .section-head h2 { margin-top: 5px; }.section-head>.muted { font-size: 12px; }
.insight-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }.insight-grid>.card { min-width: 0; }
.compact-select { width: auto; max-width: 180px; padding: 6px 9px; min-height: 34px; font-size: 12px; }
.calendar-summary { margin: 12px 0 18px; display: flex; gap: 14px; align-items: baseline; }.calendar-summary strong { font-size: 24px; letter-spacing: -.04em; }.calendar-summary span { color: var(--muted); font-size: 11px; }
.trade-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 5px; }.calendar-weekday { font-size: 10px; text-align: center; color: var(--muted); padding: 3px 0 6px; }
.calendar-day { min-height: 61px; border: 1px solid var(--line); border-radius: 7px; padding: 7px 5px; background: #f9fafc; font: inherit; color: var(--ink-2); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
button.calendar-day { cursor: pointer; }button.calendar-day:hover { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }.calendar-day .day-num { font-size: 10px; }.calendar-day .day-pnl { font-size: 10px; font-weight: 650; white-space: nowrap; }.calendar-day.profit { background: #e9f5ef; color: #116448; border-color: #d2e9dc; }.calendar-day.negative { background: #fcecf0; color: #a8344b; border-color: #f2d4dc; }.calendar-day.weekend { opacity: .5; }.calendar-day.excluded { border-style: dashed; }.calendar-day.no-session { background: transparent; border-color: transparent; }
.bar-list { display: grid; gap: 13px; margin-top: 18px; }.bar-item { display: grid; grid-template-columns: 65px 1fr 90px; gap: 10px; align-items: center; font-size: 11px; }.bar-track { height: 8px; border-radius: 9px; background: #f0f3f8; overflow: hidden; }.bar-fill { height: 100%; border-radius: inherit; background: var(--gain); }.bar-fill.negative { background: var(--loss); }.bar-item strong { font-size: 12px; text-align: right; }
.segment-heading { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }.segment-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; font-size: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }.segment-row:last-child { border: 0; }.segment-row small { display: block; font-size: 10px; color: var(--muted); }.segment-row .rate { color: var(--muted); font-size: 11px; }
.quality-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }.quality-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }.quality-stat strong { font-size: 27px; font-weight: 650; display: block; letter-spacing: -.035em; }.quality-stat span { display: block; font-size: 12px; color: var(--ink-2); }.quality-stat small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.giveback-row { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; width: 100%; font: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: 13px 0; cursor: pointer; color: var(--ink); }.giveback-row:last-child { border: 0; }.giveback-row:hover { background: var(--canvas); }.giveback-row .rank { color: var(--muted); font-size: 11px; }.giveback-row b { display: block; font-size: 12px; }.giveback-row small { font-size: 10px; color: var(--muted); }.giveback-row>strong { font-size: 13px; }
.scatter-point { cursor: pointer; transition: r .15s; }.scatter-point:hover,.scatter-point:focus { r: 7; stroke: var(--ink); stroke-width: 2; outline: none; }
.comparison-result { margin-top: 20px; }.comparison-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }.comparison-stats span { color: var(--muted); font-size: 11px; }.comparison-stats strong { display: block; font-size: 22px; letter-spacing: -.035em; }.comparison-result p { font-size: 12px; color: var(--ink-2); }.comparison-result .empty { padding: 20px; text-align: left; border: 1px dashed var(--line-2); border-radius: 9px; }
.trade-dialog { width: min(760px,calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; border: 1px solid var(--line); border-radius: 18px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px #12243f40; }.trade-dialog::backdrop { background: #13274280; backdrop-filter: blur(3px); }.dialog-head { position: sticky; top: 0; background: #fff; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 23px 26px; border-bottom: 1px solid var(--line); }.dialog-head h2 { margin-top: 4px; }.icon-button { width: 34px; height: 34px; background: var(--canvas); border: 1px solid var(--line); border-radius: 9px; font: 24px/1 var(--ui); cursor: pointer; color: var(--ink-2); }
#trade-detail { padding: 24px 26px; }.trade-verdict { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }.trade-verdict strong { font-size: 32px; letter-spacing: -.04em; }.trade-verdict p { margin: 3px 0; font-size: 12px; color: var(--muted); }.trade-fields { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px 16px; margin: 22px 0; }.trade-fields dt { font-size: 11px; color: var(--muted); }.trade-fields dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; }.trade-timeline { list-style: none; padding: 0; margin: 22px 0; }.trade-timeline li { border-left: 2px solid #dde5f5; margin-left: 4px; padding: 0 0 16px 18px; font-size: 12px; position: relative; }.trade-timeline li:before { content: ''; width: 8px; height: 8px; border: 2px solid #fff; border-radius: 50%; position: absolute; background: var(--teal); left: -7px; top: 4px; }.trade-timeline time { display: inline-block; width: 55px; color: var(--muted); }.trade-timeline li:last-child { padding-bottom: 0; }
.price-range { padding: 18px 0 10px; }.price-range svg { width: 100%; height: auto; }.price-range text { font: 11px var(--ui); fill: var(--ink-2); }
.login-body { padding: 0; background: #fff; }.login-shell { display: grid; grid-template-columns: 1fr 1fr; width: 100%; min-height: 100dvh; }.login-story { background: #142847; padding: clamp(36px,6vw,88px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; color: #fff; }.login-story .brand { color: #fff; }.login-story h1 { font-size: clamp(34px,4vw,56px); line-height: 1.12; margin: 20px 0; }.login-story .eyebrow { color: #9cb7ff; }.login-story p { color: #b9c9e2; max-width: 40ch; line-height: 1.8; }.login-story-foot { color: #8ea4c4; font-size: 10px; letter-spacing: .13em; }.login-capabilities { display: grid; gap: 18px; margin-top: 36px; }.login-capabilities span { color: #8eabe3; font-size: 11px; }.login-capabilities b { color: #e2eaf9; margin-left: 18px; font-size: 13px; font-weight: 500; }.login-wrap { align-self: center; justify-self: center; width: min(420px,100%); padding: 40px 20px; }.login-brand { display: none; }.login-card { border: 0; box-shadow: none; padding: 10px 0; }.login-title { font-size: 28px; margin-top: 12px; }.login-card form { margin-top: 30px; gap: 22px; }.login-foot { text-align: left; color: var(--muted); font-size: 11px; line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.skip-link { position: fixed; z-index: 99; top: -60px; left: 20px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }.skip-link:focus { top: 10px; }
footer { font-size: 11px; margin-top: 44px; padding-bottom: 30px; }
@media(max-width:1100px) { .wrap { padding: 0 26px; }.builder { gap: 30px; }.verdict { grid-template-columns: 1fr; }.net-card { min-height: 180px; }.hero-number { font-size: 46px; } }
@media(max-width:920px) { .builder { grid-template-columns: 1fr; }.builder>div:first-child { display: none; }.insight-grid { grid-template-columns: 1fr; }.charts { grid-template-columns: 1fr; }.login-shell { grid-template-columns: .9fr 1fr; }.login-story { padding: 36px; }.login-story h1 { font-size: 36px; } }
@media(max-width:700px) { .wrap { padding: 0 18px; }.top .wrap { height: 64px; }.brand-symbol { width: 25px; height: 25px; font-size: 22px; }.brand-mark { font-size: 20px; }.top nav { gap: 0; }.top nav a { padding: 8px; font-size: 11px; }.signout { margin-left: 5px; padding-left: 8px; }.signout button { font-size: 11px; }.workspace-heading { padding-top: 28px; align-items: start; flex-direction: column; gap: 16px; }.workspace-stats { grid-template-columns: 1fr; gap: 10px; }.workspace-stat { min-height: 90px; padding: 16px 20px; }.workspace-stat strong { font-size: 26px; }.builder { padding-top: 24px; }.builder-card { padding: 20px; }.card { padding: 20px; }.builder-card .tag { display: none; }.insight-strip { grid-template-columns: 1fr; gap: 9px; }.kpis { grid-template-columns: 1fr 1fr; }.kpi { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }.kpi:nth-child(-n+4) { border-top: 1px solid var(--line); }.kpi:nth-child(-n+2) { border-top: 0; }.kpi:nth-child(2n+1) { border-left: 0; }.quality-stats { grid-template-columns: 1fr; gap: 10px; }.quality-stat { padding: 16px 20px; }.quality-stat strong { font-size: 24px; }.section-head { align-items: start; flex-wrap: wrap; gap: 10px; }.report-nav { gap: 22px; }.report-actions { width: 100%; }.report-actions a { flex: 1; }.chart-title { flex-wrap: wrap; }.chart-title .tabs { margin-left: auto; }.toolbar { gap: 10px; }.toolbar .field { min-width: 0; flex: 1; }.toolbar .search-field { flex-basis: 100%; }.comparison-stats { grid-template-columns: 1fr 1fr; }.trade-fields { grid-template-columns: 1fr 1fr; }.dialog-head,#trade-detail { padding: 20px; }.trade-verdict { flex-wrap: wrap; gap: 10px; }.trade-verdict strong { font-size: 28px; }.trade-dialog { max-height: calc(100dvh - 24px); }.calendar-day { min-height: 54px; padding: 5px 3px; }.calendar-day .day-pnl { font-size: 9px; }.trade-calendar { gap: 3px; }.bar-item { grid-template-columns: 58px 1fr 83px; gap: 7px; }.login-shell { grid-template-columns: 1fr; min-height: 100dvh; }.login-story { display: none; }.login-brand { display: flex; justify-content: start; margin-bottom: 40px; }.login-wrap { padding: 40px 26px; }.report-head h1 { font-size: 26px; }.tooltip { white-space: normal; min-width: 140px; max-width: 190px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:16px 0; font-size:12px; }
.pagination>div { display:flex; gap:8px; }
.btn-ghost:disabled { opacity:.4; cursor:default; }

@media(max-width:700px) { .price-range text { font-size:19px; } .chart .axis text { font-size:18px; } #capture-chart text { font-size:17px; } }
