/* Hallmark · shape: app screen · genre: modern-minimal · theme: custom · posture: restrained
 * nav: compact top bar · signature: price trend linked to event dates · states: loading, empty, stale, full · axes: financial terminal and single accent · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, show quote timestamps directly by each value */
:root {
  color-scheme: dark;
  --background: #131517;
  --surface: #191c1e;
  --raised: #22262a;
  --line: #343a40;
  --ink: #f3eee3;
  --muted: #a7afb7;
  --gold: #edc568;
  --positive: #8cdbb4;
  --negative: #ffa3a3;
  --plot-fill: #edc56819;
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--background); color: var(--ink); font: 15px/1.5 var(--font); }
button { font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; min-height: 44px; }
button:hover { background: var(--raised); }
button:active { background: var(--line); }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { font-size: 18px; font-weight: 650; }
h2 { font-size: 17px; font-weight: 650; }
.shell { width: min(calc(100% - 44px), 1240px); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.top { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .feed { display: flex; align-items: center; gap: 12px; }
.brand { text-decoration: none; }
.mark { display: grid; place-items: center; inline-size: 38px; block-size: 38px; border: 1px solid var(--line); border-radius: 4px; color: var(--gold); font-weight: 650; }
.feed { color: var(--muted); font-size: 13px; text-align: right; }
.feed button { inline-size: 44px; font-size: 23px; line-height: 1; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 24px; border-block: 1px solid var(--line); }
.quote { padding: 16px 20px 20px; min-width: 0; }
.quote:first-child { padding-inline-start: 0; }
.quote + .quote { border-inline-start: 1px solid var(--line); }
.quote h2 { font-size: 15px; }
.figure { margin-block: 4px; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.figure strong { font-size: 36px; line-height: 1.25; color: var(--gold); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.figure span, .meta, small { font-size: 13px; color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(285px, 340px); gap: 16px; }
.panel { min-width: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 16px 12px; }
.ranges { display: flex; }
.ranges button { min-width: 48px; padding-inline: 8px; border-radius: 0; font-size: 13px; white-space: nowrap; }
.ranges button:first-child { border-radius: 4px 0 0 4px; }
.ranges button:last-child { border-radius: 0 4px 4px 0; }
.ranges button + button { margin-inline-start: -1px; }
.ranges button[aria-pressed="true"] { background: var(--raised); color: var(--gold); }
.ranges button:focus-visible { position: relative; }
.plot { height: 252px; position: relative; margin: 0 12px; }
canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
[hidden] { display: none !important; }
.chart-detail { border-top: 1px solid var(--line); padding: 12px 16px; min-height: 44px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.factor-list { margin-inline: 16px; }
.factor-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(94px, auto); gap: 8px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.factor-list dd { text-align: right; font-variant-numeric: tabular-nums; }
.factor-list dd strong { font-weight: 650; }
.factor-list small { display: block; overflow-wrap: break-word; }
.calendar { margin-top: 16px; }
.calendar ul { list-style: none; padding: 0; margin: 0 16px; }
.calendar li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 44px; border-top: 1px solid var(--line); padding-block: 4px; }
.calendar li a { color: var(--muted); font-size: 13px; }
.calendar li time { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13px; }
.calendar li button { background: transparent; border-color: transparent; min-height: 44px; text-align: left; padding: 0 4px; }
.calendar li button[aria-current="date"] { color: var(--gold); }
.calendar-note { padding: 8px 16px 12px; }
.calendar-note:empty { display: none; }
.calendar-empty { color: var(--muted); }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
footer { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0 24px; font-size: 13px; color: var(--muted); }
@media (max-width: 840px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 550px) {
  .shell { width: calc(100% - 28px); }
  .top { min-height: 64px; }
  .brand, .feed { gap: 8px; }
  h1 { font-size: 15px; }
  .mark { inline-size: 30px; block-size: 33px; }
  .feed span { max-width: 91px; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 16px; }
  .quote { padding: 12px 0 12px 12px; }
  .quote:last-child { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .figure strong { font-size: 28px; }
  .plot { height: 222px; margin-inline: 8px; }
  .panel-head { padding-inline: 12px; }
  .factor-list, .calendar ul { margin-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; }
}
