/* Portfolio presentation. Charts retain the shared categorical/status palette. */
:root {
  --brand: #5946bb;
  --brand-soft: #eeebfa;
  --heading: #25284c;
  --radius: 14px;
  --radius-sm: 7px;
  --topbar-h: 76px;
}
:root:not([data-theme="dark"]) {
  --page: #f7f7fc;
  --surface-1: #fff;
  --surface-2: #f5f4fb;
  --surface-3: #eceaf6;
  --ink: #2b2e4c;
  --ink-2: #555d7a;
  --ink-muted: #656b87;
  --border: #e4e2ef;
  --border-strong: #c5bfdc;
  --grid: #eceaf4;
  --axis: #c5c2d9;
  --metric-lilac: #f4f1fd;
  --metric-blue: #f0f5ff;
  --metric-peach: #fff3eb;
  --shadow-1: 0 4px 18px rgba(57, 45, 112, .04);
  --shadow-2: 0 12px 35px rgba(57, 45, 112, .12);
}
:root[data-theme="dark"] {
  --brand: #c2b3ff;
  --brand-soft: #302b4a;
  --heading: #eeeaf9;
  --page: #161624;
  --surface-1: #202032;
  --surface-2: #28283d;
  --surface-3: #35334c;
  --ink: #eeeaf9;
  --ink-2: #c6c2dc;
  --ink-muted: #aaa5c3;
  --border: #3c3853;
  --border-strong: #69617f;
  --grid: #3c3853;
  --axis: #77708f;
  --metric-lilac: #302941;
  --metric-blue: #242e45;
  --metric-peach: #382c38;
  --good-ink: #89dcad;
}
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
[hidden] { display: none !important; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
body { font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(ellipse 1100px 650px at top left, var(--brand-soft), transparent) no-repeat, var(--page); }
h1, h2, h3 { color: var(--heading); }
.topbar { padding: 12px max(24px, calc((100vw - 1680px) / 2)); gap: 32px; min-height: 76px; }
.topbar__id { gap: 11px; }
.logo { width: 39px; height: 39px; align-items: center; justify-content: center; border-radius: 10px; color: #f3eeff; background: linear-gradient(140deg, #6753c5, #344487); }
.brand-name { color: var(--heading); text-decoration: none; font-weight: 750; font-size: 18px; letter-spacing: -.6px; }
.brand-dot { color: #b85c3e; }
.topbar__sub { font-size: 10.5px; letter-spacing: .01em; margin-top: 2px; }
.topnav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.topnav__link { border: 0; background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-2); text-decoration: none; cursor: pointer; padding: 8px 0; white-space: nowrap; }
.topnav__link:hover { color: var(--brand); }
.topnav__source span { margin-left: 4px; }
.topbar__status { display: flex; align-items: center; gap: 12px; margin-left: 0; }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { background: var(--surface-2); }
.pill { font-size: 10.5px; padding: 4px 8px; }
.pill--ok { border-color: transparent; background: var(--brand-soft); color: var(--brand); }
.introduction { max-width: 1728px; margin: 24px auto 0; padding: 0 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 48px; background: radial-gradient(ellipse at 100% 0, #e2a2bc38, transparent 55%), linear-gradient(115deg, #273e87, #44347a 65%, #5b3b72); color: #eeebff; padding: 27px 34px; border-radius: 18px; position: relative; overflow: hidden; box-shadow: 0 12px 30px #3d32791a; }
.hero::after { content: ""; position: absolute; width: 480px; height: 480px; border: 1px solid #ffffff08; border-radius: 50%; right: -180px; top: -230px; box-shadow: 0 0 0 60px #ffffff03, 0 0 0 120px #ffffff02; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 9.5px; font-weight: 650; letter-spacing: .17em; color: #ded5ff; margin-bottom: 10px; }
.eyebrow__line { display: block; height: 1px; width: 22px; background: #c7bbf1; }
.hero h1 { font-size: clamp(28px, 2.55vw, 42px); font-weight: 650; line-height: 1.14; letter-spacing: -1.4px; color: #fff; }
.hero h1 br { display: none; }
.hero h1 span { color: #ffcfb6; }
.hero__description { font-size: 12.5px; line-height: 1.75; max-width: 600px; color: #e0dff3; margin-top: 11px; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.hero__cta { background: #ffd4bc; color: #3f2d56; border-color: #ffd4bc; padding: 9px 14px; font-size: 12px; font-weight: 700; }
.hero__cta:hover:not(:disabled) { background: #ffe4d4; border-color: #ffe4d4; }
.hero__cta span { margin-left: 12px; }
.hero__dataset { color: #ded7ef; font-size: 10px; }
.hero__dataset span { padding: 0 5px; }
.hero__workflow { position: relative; z-index: 1; padding-left: 30px; border-left: 1px solid #ffffff20; align-self: center; }
.workflow__label { font-size: 9px; font-weight: 600; letter-spacing: .12em; color: #d9ceee; margin-bottom: 5px; }
.workflow-step { display: flex; width: 100%; align-items: center; gap: 14px; border: 0; border-bottom: 1px solid #ffffff12; padding: 10px 0; background: none; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.workflow-step:last-child { border-bottom: 0; padding-bottom: 0; }
.workflow-step:hover strong, .workflow-step:hover .workflow-step__arrow { color: #ffd4bc; }
.workflow-step__number { font-size: 10px; color: #e2c4f2; font-variant-numeric: tabular-nums; }
.workflow-step strong { font-size: 12px; font-weight: 600; }
.workflow-step small { display: block; color: #d9d4eb; font-size: 10px; margin-top: 2px; }
.workflow-step__arrow { margin-left: auto; font-size: 17px; color: #e4d6f5; }
.statstrip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: hidden; margin: 16px 0 22px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-1); }
.stat { min-width: 0; border: 0; border-right: 1px solid var(--border); border-radius: 0; background: none; padding: 16px 22px; }
.stat:nth-child(1), .stat:nth-child(5) { background: linear-gradient(135deg, var(--metric-lilac), var(--surface-1)); }
.stat:nth-child(2), .stat:nth-child(4) { background: linear-gradient(135deg, var(--metric-blue), var(--surface-1)); }
.stat:nth-child(3) { background: linear-gradient(135deg, var(--metric-peach), var(--surface-1)); }
.stat:last-child { border-right: 0; }
.stat__value { font-size: 25px; color: var(--heading); font-weight: 650; letter-spacing: -.9px; }
.stat__label { font-size: 9px; letter-spacing: .1em; margin-top: 4px; color: var(--ink-2); font-weight: 650; }
.stat__denom { font-size: 10px; color: var(--ink-muted); margin-top: 3px; }
.layout { max-width: 1728px; margin: auto; padding: 0 24px 24px; grid-template-columns: 280px minmax(420px, 1fr) 330px; gap: 20px; }
.col--search, .col--chat { top: 96px; }
.col--main { min-width: 0; }
.mobile-tools { display: none; }
#catalogue, #analyst, .col--main { scroll-margin-top: 94px; }
.section-kicker { color: var(--brand); font-size: 8.5px; font-weight: 750; letter-spacing: .13em; margin-bottom: 4px; }
.workspace-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 0 0 17px; min-height: 51px; }
.workspace-head h2 { font-size: 21px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; }
.workspace-head p:not(.section-kicker) { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }
.snapshot-label { flex: 0 0 auto; font-size: 9px; padding: 4px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--ink-muted); background: var(--surface-1); }
.card__head { padding: 15px 17px; }
.card__head h2 { font-size: 14px; font-weight: 650; }
.card__head h3 { font-size: 13px; font-weight: 650; }
.card__body { padding: 19px; }
.card__sub { line-height: 1.5; font-size: 10.5px; margin-top: 4px; }
.card__foot { padding: 11px 17px; font-size: 10.5px; line-height: 1.65; }
.card--flush { max-height: calc(100vh - 112px); }
.search-presets { display: flex; gap: 6px; padding: 13px 15px 0; }
.preset { font: inherit; cursor: pointer; font-size: 10px; border: 1px solid var(--border); border-radius: 5px; padding: 4px 9px; background: var(--surface-2); color: var(--ink-2); }
.preset:hover, .preset.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.filters { padding: 13px 15px; gap: 10px; }
.fld__label { font-size: 10px; }
.filters input, .filters select { font-size: 11px; min-height: 34px; }
.fld--row { font-size: 10.5px; line-height: 1.6; }
.fld--row input { min-height: 0; }
.advanced-filters summary { cursor: pointer; font-size: 10.5px; color: var(--ink-2); padding: 5px 0; }
.advanced-filters summary span { display: block; color: var(--ink-muted); font-size: 9px; padding-left: 13px; margin-top: 2px; }
.advanced-filters__body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; }
.btn--primary { background: #5946bb; border-color: #5946bb; color: #fff; }
.btn--primary:hover:not(:disabled) { background: #48349f; border-color: #48349f; }
.filters__actions .btn { font-size: 11px; padding: 8px 12px; }
.filters__actions .btn span { float: right; }
.results__meta { font-size: 10px; padding: 10px 15px; background: var(--surface-1); }
.results__meta > span:last-child { font-size: 9px; }
.notes { font-size: 10px; }
.result { padding: 13px 15px; border-left-width: 3px; }
.result__title { font-size: 11.5px; line-height: 1.55; font-weight: 600; }
.result__meta { font-size: 9px; gap: 5px 8px; margin-top: 6px; }
.result__price { font-size: 13px; display: block; }
.result.is-focus { border-left-color: var(--brand); background: var(--brand-soft); }
.result__tags { margin-top: 7px; }
.result .tag { font-size: 8px; padding: 1px 5px; }
.tag--sent { background: var(--brand-soft); color: var(--brand); }
.result__eyebrow { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--ink-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.result__initial { font-weight: 650; color: var(--brand); }
.focusbar { padding: 17px; border-left: 3px solid var(--brand); }
.focusbar__title { font-size: 13.5px; line-height: 1.6; flex-basis: 100%; }
.focusbar__kv { width: 100%; gap: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.focusbar__label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.focusbar__label .section-kicker { margin: 0; }
.focusbar__share { border: 0; background: none; color: var(--brand); font: inherit; font-size: 10px; padding: 0 3px; cursor: pointer; }
.kv__k { font-size: 8px; letter-spacing: .08em; }
.kv__v { font-size: 13px; }
.tabs { box-shadow: none; padding: 4px; gap: 0; border-radius: 9px; margin-bottom: 17px; }
.tab { flex: 1 1 0; padding: 9px 6px; font-size: 10px; white-space: nowrap; border-radius: 6px; }
.tab.is-active { background: #5946bb; color: #fff; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid-2 .card + .card { margin-top: 0; }
.panels > .panel > .grid-2 + .card { margin-top: 14px; }
.market-brief { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 17px 19px; background: var(--brand-soft); border: 1px solid var(--border); border-radius: 11px; margin-bottom: 14px; }
.market-brief h3 { font-size: 13px; color: var(--brand); margin-bottom: 4px; }
.market-brief p { font-size: 10.5px; line-height: 1.7; color: var(--ink-2); }
.market-brief__number { color: var(--brand); font-size: 28px; font-weight: 650; letter-spacing: -1px; text-align: right; }
.market-brief__number small { display: block; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.market-chart .hbar { grid-template-columns: 77px minmax(0, 1fr) auto; gap: 8px; }
.market-chart .hbar__label { text-transform: capitalize; font-size: 10px; }
.market-chart .hbar__track { height: 9px; border-radius: 3px; }
.market-chart .hbar__fill { background: #7763cd; }
.market-chart--brands .hbar__fill { background: #4e83b1; }
.market-chart .hbar__value { font-size: 10px; min-width: 45px; }
.market-chart .hbar__sub { font-size: 8px; margin-top: -2px; }
.market-chart .hbars { gap: 13px; }
.market-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 15px; border: 1px solid var(--border); background: var(--surface-1); border-radius: 9px; color: var(--ink-2); font-size: 10.5px; line-height: 1.7; }
.market-note__icon { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 10px; color: var(--ink-muted); margin-top: 1px; }
.market-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.market-action { font: inherit; text-align: left; cursor: pointer; display: flex; gap: 12px; align-items: center; color: var(--heading); background: var(--surface-1); border: 1px solid var(--border); border-radius: 11px; padding: 15px; }
.market-action:hover { border-color: var(--brand); background: var(--brand-soft); }
.market-action__icon { background: var(--surface-2); color: var(--brand); border-radius: 9px; display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; font-size: 17px; }
.market-action strong { display: block; font-size: 11px; font-weight: 650; }
.market-action small { display: block; font-size: 9px; color: var(--ink-muted); line-height: 1.5; margin-top: 3px; }
.market-action > span:last-child { font-size: 15px; margin-left: auto; color: var(--brand); }
.card--chat { height: min(740px, calc(100vh - 112px)); min-height: 560px; }
.card__head--chat { gap: 6px; }
.chat__log { padding: 19px 17px; gap: 16px; }
.chat__intro { gap: 13px; font-size: 11.5px; line-height: 1.8; }
.chat__intro h3 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -.6px; }
.assistant-mark { width: 39px; height: 39px; display: grid; place-items: center; font-size: 29px; color: var(--brand); background: var(--brand-soft); border-radius: 11px; margin-top: 3px; }
.chat__suggestion-label { font-size: 8px; font-weight: 700; letter-spacing: .13em; color: var(--ink-muted); margin-top: 8px; }
.chat__suggestions { gap: 9px; }
.chat__suggestions .chip { border-radius: 8px; font-size: 10.5px; padding: 10px 12px; line-height: 1.5; display: flex; justify-content: space-between; }
.chat__suggestions .chip::after { content: "↗"; color: var(--brand); margin-left: 9px; }
.chat__suggestions .chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.chat__timing { font-size: 9px; color: var(--ink-muted); line-height: 1.7; }
.chat__form { padding: 13px 15px; }
.chat__form textarea { font-size: 11px; line-height: 1.7; background: var(--surface-2); border-radius: 8px; min-height: 70px; }
.chat__hint { font-size: 9px; }
.msg--user .msg__bubble { background: #5946bb; }
.tour-guide { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--brand-soft); border: 1px solid var(--brand); border-radius: 10px; margin-bottom: 14px; padding: 14px 16px; }
.tour-guide strong { font-size: 12px; color: var(--brand); }
.tour-guide p:not(.section-kicker) { font-size: 10.5px; margin-top: 4px; color: var(--ink-2); line-height: 1.6; }
.tour-guide__actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.tour-guide .btn { background: var(--surface-1); color: var(--brand); border-color: var(--brand); white-space: nowrap; }
.icon-button { border: 0; background: none; font-size: 23px; color: var(--ink-2); cursor: pointer; padding: 0 4px; line-height: 1; min-width: 28px; min-height: 28px; }
.site-footer { max-width: 1728px; margin: auto; padding: 15px 24px 25px; display: flex; justify-content: space-between; gap: 16px; color: var(--ink-muted); font-size: 9px; }
.site-footer > span:first-child { color: var(--ink-2); }
.site-footer > span:first-child span { margin: 0 7px; color: var(--axis); }
.project-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--border); border-radius: 19px; background: var(--surface-1); color: var(--ink); padding: 30px; box-shadow: var(--shadow-2); }
.project-dialog::backdrop { background: #0b1c2ab0; backdrop-filter: blur(4px); }
.project-dialog__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.project-dialog h2 { font-size: 30px; line-height: 1.2; letter-spacing: -1px; font-weight: 600; }
.project-dialog__intro { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin-top: 15px; }
.method-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.method-steps > div > span { font-size: 12px; color: var(--brand); font-weight: 650; }
.method-steps h3 { font-size: 13px; margin: 8px 0; }
.method-steps p { font-size: 11px; color: var(--ink-2); line-height: 1.8; }
.project-dialog__caveat { padding: 17px; border-radius: 9px; background: var(--surface-2); font-size: 11px; line-height: 1.9; color: var(--ink-2); }
.project-dialog__caveat strong { display: block; color: var(--ink); }
.project-dialog__foot { display: flex; gap: 15px; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 10px; color: var(--ink-muted); }
.project-dialog__foot a { color: var(--brand); font-weight: 600; }
.sk--lg { width: 55%; }
.specgrid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.spec__k { font-size: 9px; }
.spec__v { font-size: 12px; }
.callout { font-size: 11px; line-height: 1.7; }
@media (min-width: 1700px) { .layout { grid-template-columns: 300px minmax(500px, 1fr) 360px; gap: 24px; } }
@media (max-width: 1300px) { .layout { grid-template-columns: 255px minmax(0, 1fr); } .col--chat { grid-column: 1 / -1; position: static; } .card--chat { height: 570px; min-height: 0; } .hero { gap: 28px; padding: 25px 28px; } .topnav { gap: 18px; } }
@media (max-width: 1000px) { .topnav__source { display: none; } .topbar { gap: 18px; } .hero { grid-template-columns: 1fr; } .hero__workflow { display: none; } .hero h1 { font-size: 34px; } .stat { padding: 14px; } .stat__value { font-size: 21px; } .stat__denom { font-size: 9px; } }
@media (max-width: 860px) { .layout { grid-template-columns: minmax(0, 1fr); } .col--search { position: static; } .card--flush { max-height: none; } .results { max-height: 340px; } .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); } .filters > .fld--full, .filters > .advanced-filters { grid-column: 1 / -1; } .filters > .fld:first-child { grid-column: 1 / -1; } .advanced-filters__body { grid-template-columns: repeat(2, minmax(0, 1fr)); } .topnav__link:first-child { display: none; } }
@media (max-width: 860px) { .col--main { order: 0; } .col--search { order: 1; } .col--chat { order: 2; } .mobile-tools { display: flex; gap: 18px; margin-bottom: 13px; } .mobile-tools a { color: var(--brand); font-size: 10px; font-weight: 600; text-decoration: none; } }
@media (max-width: 600px) { :root { --topbar-h: 70px; } html { scroll-padding-top: 86px; } .topbar { min-height: 70px; padding: 10px 16px; gap: 10px; } .topbar__id { gap: 8px; } .brand-name { font-size: 15px; } .topbar__sub { font-size: 8px; } .logo { width: 33px; height: 33px; } .logo svg { width: 23px; } .topnav { gap: 0; } .topnav__link { font-size: 10px; } .topbar__status { gap: 5px; margin-left: auto; } #healthPill { width: 8px; height: 8px; min-width: 8px; padding: 0; overflow: hidden; border-radius: 50%; font-size: 0; } #healthPill .pill__dot { width: 8px; height: 8px; } .introduction { margin-top: 14px; padding: 0 14px; } .hero { padding: 23px; border-radius: 14px; } .eyebrow { font-size: 7.5px; letter-spacing: .12em; } .hero h1 { font-size: 30px; letter-spacing: -1px; } .hero h1 br { display: block; } .hero__description { font-size: 11.5px; } .hero__actions { gap: 12px; } .hero__dataset { font-size: 8px; } .statstrip { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 13px 0 19px; } .stat { grid-column: span 2; padding: 13px 11px; border-bottom: 1px solid var(--border); } .stat:nth-child(3) { border-right: 0; } .stat:nth-child(n+4) { grid-column: span 3; border-bottom: 0; } .stat__value { font-size: 21px; } .stat__label { font-size: 7.5px; letter-spacing: .07em; } .stat__denom { font-size: 8px; line-height: 1.6; } .layout { padding: 0 14px 14px; gap: 20px; } .workspace-head h2 { font-size: 20px; } .workspace-head p:not(.section-kicker) { font-size: 10px; } .snapshot-label { display: none; } .grid-2 { grid-template-columns: 1fr; } .market-chart .hbar { grid-template-columns: 92px minmax(0, 1fr) auto; } .market-actions { grid-template-columns: 1fr; gap: 9px; } .filters { grid-template-columns: 1fr 1fr; } .tab { font-size: 9px; padding: 9px 3px; } .tabs { overflow-x: auto; } .focusbar__kv { gap: 16px; } .site-footer { flex-direction: column; padding: 16px; gap: 8px; font-size: 8px; } .tour-guide { align-items: flex-start; flex-direction: column; gap: 10px; } .tour-guide__actions { width: 100%; justify-content: space-between; } .project-dialog { padding: 22px; } .project-dialog h2 { font-size: 25px; } .method-steps { grid-template-columns: 1fr; gap: 17px; } .project-dialog__foot { align-items: flex-start; flex-direction: column; } .card--chat { height: 640px; } }
@media (max-width: 375px) { .topnav { display: none; } .brand-name { font-size: 14px; } .hero { padding: 20px; } .hero h1 { font-size: 27px; } }
@media (max-width: 600px) { .filters input, .filters select, .chat__form textarea { font-size: 16px; } .preset, .chat__suggestions .chip { min-height: 38px; } .tab { min-height: 38px; } #healthPill { width: 24px; height: 34px; min-width: 24px; border: 0; background: transparent; display: inline-flex; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Assistant chart tools: the same data is inspectable in the plot, table and export. */
.msg__charts:empty { display: none; }
.msg__charts { display: grid; gap: 12px; min-width: 0; }
.chat-chart { min-width: 0; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-1); padding: 13px; }
.chat-chart__head h3 { font-size: 14px; line-height: 1.45; margin: 3px 0 6px; }
.chat-chart__scope { color: var(--ink-2); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-chart__actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.chat-chart__actions button { font: inherit; font-size: 10px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-2); color: var(--brand); cursor: pointer; }
.chat-chart__actions button:hover { border-color: var(--brand); }
.chat-chart__plot { width: 100%; min-width: 0; }
.chat-chart__plot svg { display: block; overflow: visible; }
.chat-chart__point { cursor: pointer; }
.chat-chart__point:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.chat-chart__point:hover { filter: brightness(1.08); }
.chat-chart__axis { font-size: 10px; color: var(--ink-2); margin-top: 3px; text-align: center; }
.chat-chart__tooltip { margin: 9px 0; padding: 8px; border-radius: 5px; background: var(--surface-2); color: var(--ink-2); font-size: 10px; line-height: 1.6; min-height: 32px; overflow-wrap: anywhere; }
.chat-chart__data, .chat-chart__context { font-size: 10px; color: var(--ink-2); line-height: 1.65; margin-top: 9px; }
.chat-chart summary { color: var(--brand); cursor: pointer; font-weight: 600; }
.chat-chart__table-wrap { max-height: 300px; overflow: auto; margin-top: 8px; }
.chat-chart table { border-collapse: collapse; width: 100%; font-size: 10px; }
.chat-chart td, .chat-chart th { padding: 7px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); min-width: 65px; }
.chat-chart th:first-child { min-width: 110px; }
.chat-chart thead { background: var(--surface-2); }
.chat-chart__context p { margin: 8px 0; }
.chat-chart__context ul { padding-left: 17px; }
.chat-chart__context li + li { margin-top: 6px; }
.chat-chart-dialog { width: min(980px, calc(100% - 24px)); max-height: calc(100dvh - 30px); overflow-y: auto; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-1); color: var(--ink); }
.chat-chart-dialog::backdrop { background: #101022b3; backdrop-filter: blur(4px); }
.chat-chart-dialog__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; font-size: 12px; color: var(--ink-2); }
.chat-chart-dialog__top button { font: inherit; font-size: 25px; color: var(--ink); border: 0; background: none; cursor: pointer; min-width: 36px; min-height: 36px; }
.chat-chart-dialog .chat-chart { border: 0; padding: 0; }
.chat-chart-dialog .chat-chart__head h3 { font-size: 22px; }
@media (max-width: 600px) { .chat-chart-dialog { padding: 16px; } .chat-chart__actions button { min-height: 36px; } }
@media (max-width: 1300px) { .col--search { position: static; } }

.dashboard-visualization { margin-top: 15px; padding: 18px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; scroll-margin-top: 94px; }
.dashboard-visualization__head h3 { font-size: 16px; line-height: 1.5; }
.dashboard-visualization__head p:not(.section-kicker) { font-size: 11px; color: var(--ink-2); line-height: 1.6; margin-top: 4px; }
.dashboard-chart-presets { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.dashboard-chart-presets button { font: inherit; font-size: 11px; color: var(--brand); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.dashboard-chart-presets button.is-active { background: #5946bb; color: #fff; border-color: #5946bb; }
.dashboard-chart-question { font-size: 10px; color: var(--ink-muted); line-height: 1.7; margin: 11px 0; overflow-wrap: anywhere; }
.dashboard-visualization .chat-chart { border: 0; padding: 0; }
.dashboard-visualization .chat-chart__head h3 { font-size: 17px; }
.chat-chart__actions [data-chart-dashboard] { background: var(--brand-soft); border-color: var(--brand); font-weight: 650; }
@media (max-width: 600px) { .dashboard-visualization { padding: 14px; } .dashboard-chart-presets button { min-height: 38px; font-size: 10px; } }
