:root {
  --ground: #171719;
  --surface: #131217;
  --raised: #212023;
  --border: #2a292d;
  --rule: #242326;
  --control: #3a3a3e;
  --text: #ffffff;
  --muted: #8a8c92;
  --muted-2: #bdbdc0;
  --accent: #4a8ad6;
  --positive: #44a282;
  --negative: #e5566f;
  --warning: #d9a441;
  --rail-width: 56px;
  --gap: 24px;
  --pad: 32px;
  --radius-card: 6px;
  --control-height: 34px;
  --font-sans: 'Public Sans', Inter, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--ground); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--ground); font-family: var(--font-sans); font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.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; top: -50px; left: 10px; z-index: 30; padding: 8px 10px; background: var(--text); color: var(--ground); }.skip-link:focus { top: 10px; }

.app-shell { display: flex; min-height: 100vh; }
.rail { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; align-items: center; width: var(--rail-width); border-right: 1px solid var(--rule); background: var(--ground); }
.rail-brand { display: grid; place-items: center; width: 100%; height: 56px; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; }.rail-brand span { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: -.08em; }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding-top: 20px; }.rail-item { position: relative; display: grid; place-items: center; width: 100%; height: 40px; padding: 0; border: 0; border-left: 1px solid transparent; background: transparent; color: var(--muted); }.rail-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }.rail-item span:not(.rail-status) { position: absolute; left: 60px; display: none; padding: 5px 7px; border: 1px solid var(--border); background: var(--raised); color: var(--text); font-size: 11px; white-space: nowrap; }.rail-item:hover span:not(.rail-status), .rail-item:focus-visible span:not(.rail-status) { display: block; }.rail-item:hover, .rail-item.active { color: var(--text); }.rail-item.active { border-left-color: var(--accent); background: rgba(74,138,214,.04); }.rail-rule { width: 24px; height: 1px; margin: 12px 0 4px; background: var(--rule); }.rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; margin-top: auto; padding-bottom: 18px; }.rail-status { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }.rail-user { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; }
.main-content { width: calc(100% - var(--rail-width)); min-width: 0; margin-left: var(--rail-width); }.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 var(--pad); border-bottom: 1px solid var(--rule); }.context { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 12px; }.context strong { color: var(--text); font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; }.context em { margin-left: 9px; color: #6d6e73; font-size: 11px; font-style: normal; }.topbar-tools { display: flex; align-items: center; gap: 18px; }.source-status { color: var(--muted); font-size: 11px; }.source-status i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--positive); }.quiet-button, .link-button, .text-button { border: 0; background: transparent; }.quiet-button { min-height: 30px; padding: 0; border-bottom: 1px solid var(--control); color: var(--muted-2); font-size: 12px; }.quiet-button:hover, .link-button:hover, .text-button:hover { color: var(--text); }.top-icon { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); }.top-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.canvas { max-width: 1380px; margin: 0 auto; padding: 36px var(--pad) 64px; }.view-panel[hidden] { display: none; }.screen-header { display: flex; align-items: end; justify-content: space-between; gap: var(--gap); margin-bottom: 24px; }.section-kicker { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .04em; }.screen-header h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }.screen-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; }.header-controls { display: flex; align-items: end; gap: 18px; }.date-field { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }.date-field input { width: 140px; height: var(--control-height); padding: 0 8px; border: 1px solid var(--border); border-radius: 4px; outline: none; background: var(--surface); color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; }.inverse-button { min-height: var(--control-height); padding: 0 13px; border: 1px solid var(--text); border-radius: 4px; background: var(--text); color: var(--ground); font-size: 12px; }.inverse-button:hover { background: var(--muted-2); border-color: var(--muted-2); }.finding { margin: 0 0 24px; padding: 10px 0; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--rule); color: var(--muted-2); font-size: 12px; line-height: 1.5; }.finding strong { margin-right: 12px; color: var(--text); font-weight: 600; }
.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: var(--gap); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }.kpi { min-height: 106px; padding: 16px 18px; border-right: 1px solid var(--border); }.kpi:last-child { border-right: 0; }.kpi > span, .kpi > em { display: block; }.kpi > span { color: var(--muted); font-size: 12px; }.kpi strong { display: block; margin: 15px 0 8px; color: var(--text); font-family: var(--font-mono); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }.kpi strong small, .report-card h2 small, .station-price small, .summary-value small { color: var(--muted); font-family: var(--font-sans); font-size: 11px; font-weight: 400; }.kpi em { color: var(--muted); font-size: 11px; font-style: normal; }.move { color: var(--muted-2); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }.muted-note { color: var(--muted) !important; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: var(--gap); margin-bottom: var(--gap); }.panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }.overview-grid .panel, .table-panel, .report-summary, .report-card, .report-notes, .filters, .large-table-panel, .station-row, .lpds-detail > .panel, .archive-filters { padding: 20px; }.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }.panel-heading h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 600; }.panel-meta { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; }.decision-list { margin: 26px 0 20px; }.decision-row { display: grid; grid-template-columns: 150px minmax(80px, 1fr) 90px; align-items: center; gap: 16px; min-height: 55px; border-bottom: 1px solid var(--rule); }.decision-row:last-child { border-bottom: 0; }.decision-name { position: relative; padding-left: 15px; }.data-mark { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--muted); vertical-align: 2px; }.data-mark.pipe { background: var(--accent); }.data-mark.lpds { background: var(--muted-2); }.data-mark.rail { background: var(--warning); }.decision-name > .data-mark { position: absolute; left: 0; top: 6px; }.decision-name strong, .decision-name small { display: block; }.decision-name strong { font-size: 12px; font-weight: 600; }.decision-name small { margin-top: 4px; color: var(--muted); font-size: 11px; }.decision-track { height: 1px; background: var(--control); }.decision-track i { display: block; height: 1px; background: var(--accent); }.decision-row:nth-child(2) .decision-track i { background: var(--muted-2); }.decision-row:nth-child(3) .decision-track i { background: var(--warning); }.decision-value { text-align: right; }.decision-value strong, .decision-value small { display: block; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }.decision-value strong { font-size: 13px; font-weight: 500; }.decision-value small { margin-top: 5px; color: var(--muted); font-size: 11px; }.trend-foot, .panel-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; }.trend-foot strong { color: var(--text); font-family: var(--font-mono); font-size: 12px; font-weight: 500; }.link-button, .text-button { padding: 0; color: var(--muted-2); font-size: 11px; }.report-lines { margin: 18px 0 20px; }.report-line { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 55px; border-bottom: 1px solid var(--rule); }.report-line:last-child { border-bottom: 0; }.line-number { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }.report-line strong, .report-line small { display: block; }.report-line strong { font-size: 12px; font-weight: 500; }.report-line small { margin-top: 4px; color: var(--muted); font-size: 11px; }.report-line b { color: var(--text); font-family: var(--font-mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.table-panel { margin-bottom: var(--gap); }.table-panel .panel-heading { align-items: center; margin-bottom: 16px; }.table-scroll { overflow-x: auto; }table { width: 100%; min-width: 680px; border-collapse: collapse; font-variant-numeric: tabular-nums; }th, td { height: 42px; padding: 0 10px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }th { color: var(--muted); font-size: 11px; font-weight: 500; }td { color: var(--muted-2); font-size: 12px; }td:first-child { color: var(--text); }tbody tr:hover { background: var(--raised); }.numeric { text-align: right; }.strong { color: var(--text); font-family: var(--font-mono); font-weight: 500; }.source-name { display: inline-flex; align-items: center; gap: 1px; }.source-name .data-mark { margin-right: 7px; }
.report-summary { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: var(--gap); border-top: 1px solid var(--accent); }.report-summary h2 { margin: 0; font-size: 20px; font-weight: 500; }.report-summary p:not(.section-kicker) { max-width: 650px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }.summary-value { color: var(--text); font-family: var(--font-mono); font-size: 25px; font-variant-numeric: tabular-nums; white-space: nowrap; }.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: var(--gap); }.report-card-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }.report-card h2 { margin: 0; font-family: var(--font-mono); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }.report-card dl { margin: 24px 0 22px; }.report-card dl div, .station-facts dl div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--rule); }.report-card dt, .station-facts dt { color: var(--muted); font-size: 11px; }.report-card dd, .station-facts dd { margin: 0; color: var(--muted-2); font-family: var(--font-mono); font-size: 11px; text-align: right; }.evidence { margin: 0; color: var(--muted); font-size: 11px; }.report-notes .panel-heading { align-items: center; }.report-notes ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }.report-notes li { color: var(--muted-2); font-size: 12px; line-height: 1.55; }.report-notes li span { display: block; margin-bottom: 8px; color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.filters { display: flex; align-items: end; gap: var(--gap); margin-bottom: var(--gap); }.filters label, .archive-filters label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }.filters select, .archive-filters select { min-width: 160px; height: var(--control-height); padding: 0 8px; border: 1px solid var(--border); border-radius: 4px; outline: 0; background: var(--surface); color: var(--muted-2); font-size: 12px; }.filters .link-button { margin-left: auto; margin-bottom: 9px; }.large-table-panel { padding-bottom: 10px; }.large-table-panel .panel-heading { align-items: center; margin-bottom: 14px; }
.station-list { display: grid; gap: 8px; margin-bottom: var(--gap); }.station-row { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 90px; align-items: center; gap: 20px; }.station-row > div strong, .station-row > div small { display: block; }.station-row > div strong { font-size: 13px; font-weight: 500; }.station-row > div small { margin-top: 5px; color: var(--muted); font-size: 11px; }.station-price { font-family: var(--font-mono); font-size: 18px; font-weight: 500; text-align: right; }.station-row > .move { text-align: right; }.lpds-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: var(--gap); }.bar-chart { display: flex; align-items: end; gap: 12px; height: 220px; margin-top: 24px; padding: 0 14px; border-bottom: 1px solid var(--border); }.bar-chart i { flex: 1; max-width: 48px; background: var(--accent); }.station-facts dl { margin: 22px 0 0; }
.archive-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap); }.archive-filters { display: grid; align-content: start; gap: 17px; }.archive-filters .inverse-button { margin-top: 4px; }.archive-filters h2 { margin: 0; font-size: 16px; font-weight: 600; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; padding: 10px 12px; border: 1px solid var(--positive); background: var(--surface); color: var(--text); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity 180ms ease, transform 180ms ease; }.toast.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 1050px) { :root { --pad: 24px; }.overview-grid, .lpds-detail { grid-template-columns: 1fr; }.report-grid { grid-template-columns: 1fr; }.report-card { min-height: 0; }.kpi-strip { grid-template-columns: repeat(2, 1fr); }.kpi:nth-child(2) { border-right: 0; }.kpi:nth-child(-n+2) { border-bottom: 1px solid var(--border); } }
@media (max-width: 700px) { :root { --gap: 16px; --pad: 16px; }.rail { inset: auto 0 0; flex-direction: row; align-items: stretch; width: 100%; height: 64px; border-top: 1px solid var(--rule); border-right: 0; }.rail-brand, .rail-bottom { display: none; }.rail-nav { flex-direction: row; align-items: stretch; justify-content: space-around; gap: 0; padding: 0; }.rail-item { width: 20%; height: 64px; border-left: 0; border-top: 1px solid transparent; }.rail-item.active { border-top-color: var(--accent); background: transparent; }.rail-item span:not(.rail-status), .rail-item:hover span:not(.rail-status), .rail-item:focus-visible span:not(.rail-status) { position: static; display: block; padding: 0; border: 0; background: transparent; color: inherit; font-size: 9px; }.rail-item svg { display: block; margin: 9px auto 4px; }.rail-rule { display: none; }.main-content { width: 100%; margin-left: 0; padding-bottom: 64px; }.topbar { min-height: 52px; padding: 0 var(--pad); }.context em, .source-status { display: none; }.topbar-tools { gap: 12px; }.canvas { padding-top: 25px; }.screen-header { align-items: start; flex-direction: column; }.header-controls { width: 100%; justify-content: space-between; }.date-field { flex: 1; }.date-field input { width: 100%; }.kpi-strip { grid-template-columns: 1fr 1fr; }.kpi { min-height: 94px; padding: 13px 12px; }.kpi strong { margin: 11px 0 6px; font-size: 17px; }.kpi > span, .kpi > em { font-size: 11px; }.overview-grid .panel, .table-panel, .report-summary, .report-card, .report-notes, .filters, .large-table-panel, .station-row, .lpds-detail > .panel, .archive-filters { padding: 16px; }.decision-row { grid-template-columns: 112px minmax(40px, 1fr) 78px; gap: 9px; }.decision-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.report-summary { align-items: start; flex-direction: column; }.summary-value { font-size: 22px; }.report-notes ol { grid-template-columns: 1fr; gap: 15px; }.report-notes li { padding-bottom: 15px; border-bottom: 1px solid var(--rule); }.filters { align-items: stretch; flex-wrap: wrap; }.filters label { flex: 1; min-width: 130px; }.filters select { width: 100%; min-width: 0; }.filters .link-button { width: 100%; margin: 0; text-align: left; }.station-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 15px; }.station-price { grid-column: 2; grid-row: 1; font-size: 16px; }.station-row > .move { grid-column: 2; grid-row: 2; }.station-row > div { grid-row: 1 / 3; }.archive-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .kpi-strip { grid-template-columns: 1fr; }.kpi { border-right: 0; border-bottom: 1px solid var(--border); }.kpi:last-child { border-bottom: 0; }.context strong { font-size: 10px; }.context span { font-size: 11px; }.panel-heading { gap: 10px; }.panel-meta { font-size: 10px; }.decision-row { grid-template-columns: 100px minmax(30px, 1fr) 73px; }.screen-header h1 { font-size: 24px; } }

/* The chart bars use a flat field; no decorative gradient in the data-terminal style. */
.bar-chart { background: none !important; }

/* Keep the market marker class independent from the desktop/mobile icon rail. */
.data-mark.rail { position: static; inset: auto; z-index: auto; display: inline-block; flex-direction: initial; align-items: initial; width: 5px; height: 5px; margin: 0 6px 0 0; border: 0; border-radius: 50%; background: var(--warning); color: inherit; }

/* Readability and numeric alignment overrides for narrow screens and tables. */
.context em { color: var(--muted); }
td.numeric, th.numeric { text-align: right; }
@media (max-width: 700px) { .rail-item span:not(.rail-status), .rail-item:hover span:not(.rail-status), .rail-item:focus-visible span:not(.rail-status) { font-size: 11px; } }
@media (max-width: 420px) { .context strong, .panel-meta { font-size: 11px; } }

/* Reference direction: a rounded dark finance/logistics dashboard with visible
   navigation, compact metric cards, and one restrained multiseries chart. */
:root { --ground: #111319; --surface: #191c25; --raised: #232734; --border: #303646; --rule: #2a2f3b; --control: #465066; --accent: #5b9cff; --positive: #63d889; --negative: #ff8190; --warning: #f2c266; --lpds-accent: #58cddd; --radius-card: 14px; }
.panel { box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.overview-grid { align-items: start; }
.kpi-strip { gap: 16px; border: 0; }
.kpi { border: 1px solid var(--border); border-radius: 14px; background: var(--raised); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.kpi:nth-child(1) { border-top: 2px solid var(--warning); }.kpi:nth-child(2) { border-top: 2px solid var(--accent); }.kpi:nth-child(3) { border-top: 2px solid var(--lpds-accent); }.kpi:nth-child(4) { border-top: 2px solid var(--positive); }
.kpi strong { font-size: 22px; }
.finding { padding: 12px 16px; border: 1px solid rgba(91,156,255,.35); border-radius: 12px; background: rgba(91,156,255,.08); }
.decision-track { height: 4px; border-radius: 999px; background: #343b4b; }.decision-track i { height: 4px; border-radius: 999px; }.decision-row:nth-child(2) .decision-track i { background: var(--lpds-accent); }
.data-mark.lpds { background: var(--lpds-accent); }
.mini-chart { margin: 22px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--rule); }.mini-chart-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 11px; }.mini-chart-head small { color: var(--muted); font-family: var(--font-mono); font-size: 10px; }.mini-chart svg { display: block; width: 100%; height: 112px; margin-top: 12px; overflow: visible; }.mini-chart line { stroke: var(--rule); stroke-width: 1; }.mini-chart polyline { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }.mini-chart .chart-pipe { stroke: var(--accent); }.mini-chart .chart-lpds { stroke: var(--lpds-accent); }.mini-chart .chart-rail { stroke: var(--warning); }.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 9px; color: var(--muted); font-size: 11px; }.chart-legend span { display: inline-flex; align-items: center; }.chart-legend .data-mark { width: 7px; height: 7px; margin-right: 6px; }
.report-card, .report-summary, .filters, .large-table-panel, .station-row, .lpds-detail > .panel, .archive-filters { background: var(--surface); }
th, td { height: 45px; }.table-panel table { border-spacing: 0 2px; border-collapse: separate; }.table-panel tbody tr { background: rgba(255,255,255,.015); }.table-panel tbody tr:hover { background: rgba(91,156,255,.08); }
@media (min-width: 701px) { :root { --rail-width: 204px; }.rail { align-items: stretch; padding: 0 13px; background: var(--surface); }.rail-brand { justify-content: flex-start; gap: 10px; height: 72px; padding: 0 12px; border-bottom: 0; }.rail-brand::after { content: 'OIL MARKET'; color: var(--text); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .05em; }.rail-brand span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #10131b; font-size: 10px; letter-spacing: -.08em; }.rail-nav { align-items: stretch; gap: 6px; padding-top: 24px; }.rail-item { display: flex; align-items: center; justify-content: flex-start; gap: 12px; height: 44px; padding: 0 14px; border: 0; border-radius: 10px; }.rail-item span:not(.rail-status) { position: static; display: block; padding: 0; border: 0; background: transparent; color: inherit; font-size: 12px; }.rail-item:hover span:not(.rail-status), .rail-item:focus-visible span:not(.rail-status) { display: block; }.rail-item.active { border: 0; background: rgba(91,156,255,.16); color: var(--text); }.rail-item.active::before { content: ''; width: 3px; height: 20px; margin-left: -14px; border-radius: 0 4px 4px 0; background: var(--accent); }.rail-rule { width: calc(100% - 28px); margin: 14px; }.rail-bottom { align-items: stretch; padding: 0 0 18px; }.rail-bottom .rail-item { width: 100%; }.rail-user { align-self: flex-start; margin-left: 14px; }.main-content { width: calc(100% - var(--rail-width)); margin-left: var(--rail-width); }.topbar { min-height: 64px; }.canvas { padding-top: 40px; } }
@media (min-width: 701px) and (max-width: 1050px) { :root { --rail-width: 164px; --pad: 20px; }.rail { padding: 0 8px; }.rail-brand { padding: 0 8px; }.rail-brand::after { content: 'OM'; }.rail-item { gap: 9px; padding: 0 9px; }.rail-item.active::before { margin-left: -9px; }.source-status { display: none; }.topbar-tools { gap: 10px; } }
@media (max-width: 700px) { .kpi { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }.kpi:last-child { border-bottom: 1px solid var(--border); }.mini-chart { overflow: hidden; }.mini-chart svg { min-width: 420px; }.chart-legend { gap: 10px; }.panel { box-shadow: none; } }

.theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted-2); font-size: 11px; }.theme-toggle:hover { color: var(--text); }.theme-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }.theme-icon-moon { display: none; }.theme-label { white-space: nowrap; }
[data-theme="light"] { --ground: #edf3f9; --surface: #ffffff; --raised: #f7faff; --border: #d9e4ef; --rule: #e2eaf3; --control: #c6d5e5; --text: #152033; --muted: #6c7b8d; --muted-2: #3d4b5e; --accent: #278fe8; --positive: #34b77a; --negative: #e16476; --warning: #e5ae3d; --lpds-accent: #2ab7c9; }
[data-theme="light"] .theme-icon-sun { display: none; }[data-theme="light"] .theme-icon-moon { display: block; }[data-theme="light"] .inverse-button { border-color: var(--accent); background: var(--accent); color: #fff; }[data-theme="light"] .rail-item.active { background: rgba(40,141,232,.12); }[data-theme="light"] .finding { border-color: rgba(40,141,232,.28); background: rgba(40,141,232,.07); }[data-theme="light"] .panel, [data-theme="light"] .kpi { box-shadow: 0 8px 24px rgba(65,92,122,.1); }
@media (max-width: 700px) { .theme-label { display: none; }.theme-toggle { width: 28px; justify-content: center; }.topbar-tools { gap: 12px; } }

/* Personal workspace controls: local, reversible, and shared by every browser session. */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: var(--gap); align-items: start; }
.dashboard-grid > [data-widget="kpis"], .dashboard-grid > [data-widget="offers"] { grid-column: 1 / -1; }
.dashboard-grid > .panel { padding: 20px; margin-bottom: 0; }
.dashboard-grid > .kpi-strip { margin-bottom: 0; }
.widget-hidden { display: none !important; }
.customize-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted-2); font-size: 11px; }
.customize-button:hover { color: var(--text); }
.customize-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.customize-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(5, 7, 11, .62); backdrop-filter: blur(3px); }
.customize-panel { position: fixed; inset: 0 0 0 auto; z-index: 40; display: flex; flex-direction: column; width: min(448px, 100vw); border-left: 1px solid var(--border); background: var(--surface); box-shadow: -18px 0 50px rgba(0,0,0,.26); }
.customize-panel[hidden], .customize-backdrop[hidden] { display: none; }
.customize-panel-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px 26px 22px; border-bottom: 1px solid var(--border); }
.customize-panel-header h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.customize-panel-header p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.panel-close { width: 30px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-2); font-size: 22px; line-height: 1; }
.panel-close:hover { border-color: var(--accent); color: var(--text); }
.customize-panel-body { overflow-y: auto; padding: 22px 26px 34px; }
.customize-section { padding: 0 0 24px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); }
.customize-section:last-of-type { margin-bottom: 20px; }
.customize-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.customize-section-heading h3 { margin: 0; color: var(--text); font-size: 14px; font-weight: 600; }
.customize-hint { max-width: 145px; color: var(--muted); font-size: 10px; line-height: 1.35; text-align: right; }
.customize-list, .column-list { display: grid; gap: 7px; }
.customize-list-item, .column-control-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 54px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); transition: border-color 150ms ease, opacity 150ms ease, transform 150ms ease; }
.customize-list-item:hover, .column-control-item:hover { border-color: var(--control); }
.customize-list-item.is-hidden, .column-control-item.is-hidden { opacity: .55; }
.customize-list-item.is-dragging, .column-control-item.is-dragging { border-color: var(--accent); opacity: .7; transform: scale(.99); }
.drag-handle { width: 22px; height: 30px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 17px; letter-spacing: -4px; cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.check-row { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted-2); cursor: pointer; }
.check-row input, .sticky-option input { width: 15px; height: 15px; accent-color: var(--accent); }
.check-row span { display: grid; gap: 3px; min-width: 0; }
.check-row strong { overflow: hidden; color: var(--text); font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.check-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.move-actions { display: flex; gap: 3px; }
.move-actions button { width: 25px; height: 25px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: var(--muted-2); font-family: var(--font-mono); font-size: 12px; }
.move-actions button:hover { border-color: var(--accent); color: var(--text); }
.customize-select-label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; text-align: right; }
.customize-select-label select, .column-control-item select { height: 29px; padding: 0 7px; border: 1px solid var(--border); border-radius: 6px; outline: 0; background: var(--surface); color: var(--muted-2); font-size: 11px; }
.customize-select-label select { min-width: 112px; }
.customize-help { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.column-control-item { grid-template-columns: 24px minmax(0, 1fr) 82px auto; min-height: 48px; }
.column-control-item .check-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-option { display: flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--muted-2); font-size: 11px; cursor: pointer; }
.density-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.density-switch button { min-height: 36px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-2); font-size: 11px; }
.density-switch button[aria-pressed="true"] { border-color: var(--accent); background: rgba(91,156,255,.12); color: var(--text); }
.reset-view-button { width: 100%; min-height: 36px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-2); font-size: 11px; }
.reset-view-button:hover { border-color: var(--negative); color: var(--negative); }
body.customize-open { overflow: hidden; }
[data-density="compact"] th, [data-density="compact"] td { height: 34px; padding-top: 0; padding-bottom: 0; }
[data-density="compact"] .table-panel .panel-heading { margin-bottom: 10px; }
.column-hidden { display: none !important; }
th[data-column-width="narrow"], td[data-column-width="narrow"] { width: 92px; max-width: 110px; }
th[data-column-width="normal"], td[data-column-width="normal"] { width: auto; }
th[data-column-width="wide"], td[data-column-width="wide"] { width: 220px; }
td[data-column-width="narrow"] { overflow: hidden; text-overflow: ellipsis; }
.table-sticky .sticky-column { position: sticky; left: 0; z-index: 2; background: var(--surface); box-shadow: 7px 0 10px -10px var(--text); }
.table-sticky thead .sticky-column { z-index: 3; background: var(--raised); }
.table-sticky tbody tr:hover .sticky-column { background: var(--raised); }
@media (max-width: 1050px) { .dashboard-grid { grid-template-columns: 1fr; }.dashboard-grid > [data-widget="kpis"], .dashboard-grid > [data-widget="offers"] { grid-column: auto; } }
@media (max-width: 700px) { .customize-button span { display: none; }.customize-button { width: 28px; justify-content: center; }.dashboard-grid > .panel { padding: 16px; }.customize-panel-header { padding: 22px 18px 18px; }.customize-panel-body { padding: 18px 18px 28px; }.column-control-item { grid-template-columns: 24px minmax(0, 1fr) 78px auto; } }
@media (max-width: 420px) { .customize-section-heading { align-items: start; flex-direction: column; }.customize-hint { max-width: none; text-align: left; }.column-control-item { grid-template-columns: 24px minmax(0, 1fr) auto; }.column-control-item select { grid-column: 2; width: 100%; }.column-control-item .move-actions { grid-column: 3; grid-row: 1 / 3; } }

.account-button { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; max-width: 150px; padding: 0; border: 0; background: transparent; color: var(--muted-2); font-size: 11px; }
.account-button:hover, .account-button.is-signed-in { color: var(--text); }
.account-button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.account-button.is-signed-in .account-dot { background: var(--positive); }
.account-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(5, 7, 11, .62); backdrop-filter: blur(3px); }
.account-panel { position: fixed; inset: 0 0 0 auto; z-index: 40; display: flex; flex-direction: column; width: min(430px, 100vw); border-left: 1px solid var(--border); background: var(--surface); box-shadow: -18px 0 50px rgba(0,0,0,.26); }
.account-panel[hidden], .account-backdrop[hidden] { display: none; }
.account-panel-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 26px 26px 22px; border-bottom: 1px solid var(--border); }
.account-panel-header h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.account-panel-header p:not(.section-kicker) { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.account-panel-body { overflow-y: auto; padding: 24px 26px 34px; }
.account-message { min-height: 18px; margin: 0 0 18px; color: var(--positive); font-size: 11px; line-height: 1.45; }
.account-message:empty { display: none; }
.account-message.is-error { color: var(--negative); }
.account-form { display: grid; gap: 15px; }
.account-form label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.account-form input { width: 100%; height: 40px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; outline: 0; background: var(--raised); color: var(--text); font-size: 12px; }
.account-form input:focus { border-color: var(--accent); }
.account-form .inverse-button { width: 100%; margin-top: 5px; }
.account-mode-button, .account-logout-button { width: 100%; min-height: 35px; margin-top: 14px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-2); font-size: 11px; }
.account-mode-button:hover { border-color: var(--accent); color: var(--text); }
.account-logout-button { border-color: rgba(255,129,144,.35); color: var(--negative); }
.account-note { margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 10px; line-height: 1.55; }
body.account-open { overflow: hidden; }
.account-form [hidden], .account-panel [hidden] { display: none !important; }
@media (max-width: 700px) { .account-button span:last-child { display: none; }.account-button { width: 24px; justify-content: center; }.account-panel-header { padding: 22px 18px 18px; }.account-panel-body { padding: 20px 18px 28px; } }
