.workspace { background:linear-gradient(155deg,#fafaf8,#eeedf3); }
.board { border-radius:16px; box-shadow:0 24px 55px -35px #30253f55; }
.board-bar { background:#2b2735; color:#fff; border:0; }
.board-mark { object-fit:contain; }
.board-tools { color:#d9d2e4; }
.board select { background:#3b3546; color:white; border-color:#665c72; }
.view-switch { display:flex; gap:clamp(10px,2.8vw,44px); padding-inline:clamp(16px,2.6vw,40px); border-bottom:1px solid var(--line); }
.view-switch button { padding:13px 1px 11px; font-size:14px; color:#625c6b; background:transparent; border:0; border-bottom:2px solid transparent; }
.view-switch button[aria-pressed=true] { color:#513694; border-color:#7752b6; font-weight:600; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); margin:0; border-bottom:1px solid var(--line); }
.metrics>div { padding:clamp(16px,2vw,30px); }
.metrics>div+div { border-left:1px solid #e7e5eb; }
.metrics dt { font-size:13px; color:#55505e; }
.metrics dd { margin:5px 0 1px; font-size:clamp(25px,2.7vw,44px); font-weight:530; letter-spacing:-.065em; line-height:1.13; }
.metrics small,.decision-panel span,.trend-value small { font-size:12px; color:#6c6475; }
.overview-panels { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(230px,1fr); }
.trend,.decision-panel,.detail-view { padding:clamp(18px,2.1vw,32px); }
.trend-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.trend-options { display:flex; gap:2px; border-radius:6px; background:#f0eef4; padding:3px; }
.trend-options button { padding:3px 10px; border:0; border-radius:4px; background:transparent; color:#60586c; font-size:12px; }
.trend-options button[aria-pressed=true] { background:white; color:#46315d; box-shadow:0 1px 4px #31253c24; }
.trend-value { margin:12px 0 8px; font-size:24px; font-weight:530; letter-spacing:-.055em; }
.trend-value small { display:inline-block; margin-left:9px; font-weight:400; letter-spacing:0; }
.graph-body { display:flex; gap:8px; height:125px; }
.graph-axis { display:flex; flex-direction:column; justify-content:space-between; text-align:right; padding-top:12px; font:10px var(--mono); color:#6a6272; min-width:65px; }
.plot-area { flex:1; position:relative; min-width:0; background:linear-gradient(to bottom, transparent calc(13.33% - 1px),#dfdae7 13.33%,transparent calc(13.33% + 1px), transparent calc(55% - 1px),#e8e4eb 55%,transparent calc(55% + 1px), transparent calc(96.67% - 1px),#dfdae7 96.67%,transparent calc(96.67% + 1px)); }
.trend-plot { width:100%; height:100%; }
.plot-dot { position:absolute; width:8px; height:8px; border-radius:50%; background:#fff; border:2px solid #7658aa; transform:translate(-50%,-50%); }
.graph-dates { display:flex; justify-content:space-between; margin:4px 0 0 70px; color:#675e72; font:10px var(--mono); }
.decision-panel { border-left:1px solid var(--line); background:#faf9fb; }
.decision-panel button { display:block; width:100%; border:0; border-top:1px solid #dfdae5; background:transparent; color:var(--ink); text-align:left; padding:13px 0; }
.decision-panel h3 { margin-bottom:16px; }
.decision-panel small { display:block; color:#806039; font:11px var(--mono); }
.decision-panel strong { display:block; font-size:clamp(16px,1.4vw,21px); letter-spacing:-.035em; font-weight:550; margin:3px 0; }
.decision-panel button:hover span { text-decoration:underline; color:var(--violet); }
.board-foot { display:flex; justify-content:space-between; gap:10px; border-top:1px solid var(--line); background:#fbfafd; padding:10px clamp(16px,2.5vw,38px); font:11px var(--mono); color:#68606e; }
.detail-view { min-height:285px; }
.detail-view>p,.age-totals,.age-key { font-size:14px; color:var(--soft); }
.detail-view .table-scroll { overflow-x:auto; margin-top:18px; }
.detail-view table { width:100%; border-collapse:collapse; font-size:14px; text-align:left; white-space:nowrap; }
.detail-view th,.detail-view td { padding:10px 12px; border-top:1px solid #e7e4ea; }
.detail-view thead { background:#f6f5f8; color:#675f70; }
.detail-view th { font-weight:550; }
.detail-view th small { display:block; font:10px var(--mono); color:#726879; }
.stock-status { display:inline-block; padding:3px 7px; background:#eaf4ed; color:#345e47; border-radius:4px; font-size:12px; }
.stock-status.low { background:#faefd9; color:#76541e; }
.age-totals strong { color:var(--ink); font-weight:530; font-size:28px; letter-spacing:-.045em; }
.age-bar { background:#d7e8dd; border-radius:4px; overflow:hidden; height:9px; margin:12px 0 6px; }
.age-bar i { display:block; height:100%; background:#d8aa6d; }
.age-key { display:flex; justify-content:space-between; gap:10px; font-size:12px; }
.trust-panel p,.trust-panel li { font-size:15px; color:var(--soft); }
.trust-panel { display:grid; grid-template-columns:1fr 1fr; margin-top:clamp(32px,5vw,72px); gap:clamp(24px,4vw,72px); padding-top:26px; border-top:1px solid var(--line); }
.trust-panel h3 { font-size:clamp(26px,2.7vw,40px); font-weight:500; line-height:1.1; letter-spacing:-.05em; margin:8px 0 10px; }
.trust-panel .eyebrow { color:var(--violet); font-size:12px; }
.trust-panel ul { margin:0; list-style:none; padding:0; }
.trust-panel li+li { margin-top:12px; }
.trust-panel li strong { color:var(--ink); font-weight:550; }
@media(max-width:700px) {
  .metrics { grid-template-columns:1fr 1fr; }
  .metrics>div:nth-child(3) { border-left:0; }
  .metrics>div:nth-child(n+3) { border-top:1px solid var(--line); }
  .overview-panels,.trust-panel { grid-template-columns:1fr; }
  .decision-panel { border-left:0; border-top:1px solid var(--line); }
  .view-switch { gap:0; justify-content:space-between; padding-inline:11px; }
  .view-switch button { font-size:12px; }
  .metrics dt,.metrics small,.board-foot { font-size:11px; }
  .board-foot { flex-wrap:wrap; }
  .graph-axis { min-width:52px; font-size:9px; }
  .graph-dates { margin-left:53px; font-size:9px; }
  .trend-value small { font-size:10px; }
}
.plot-dot { width:28px; height:28px; border:0; padding:0; background:transparent; display:grid; place-items:center; }
.plot-dot::before { content:""; width:6px; height:6px; border-radius:100%; border:2px solid #7658aa; background:white; transition:box-shadow .18s; }
.plot-dot[aria-pressed=true]::before,.plot-dot:hover::before { background:#7658aa; box-shadow:0 0 0 4px #7658aa24; }
.plot-legend { display:flex; gap:16px; margin:13px 0 0 70px; color:#635969; font-size:11px; }
.plot-legend span::before { content:""; display:inline-block; width:15px; border-top:2px solid #8063b9; vertical-align:3px; margin-right:6px; }
.plot-legend span+span::before { border-color:#82798c; border-top-style:dashed; }
.stock-level { display:block; margin-top:4px; width:72px; height:4px; background:#eae6f1; border-radius:5px; }
.stock-level i { display:block; height:100%; background:#9983b9; border-radius:5px; }
@media(max-width:700px) { .plot-legend { margin-left:53px; } }
