/* The review layout: the summary, the views and the scenario comparison, over the kit and the dashboard layouts. */
:root {
  --studio-teal: #236a59; --studio-blue: #6689a8; --studio-chart-wash: #eff5f0;
  --cs-canvas: #f6f7f4; --cs-sidebar: #eef1eb; --cs-surface: #fff;
  --cs-ink: #24332c; --cs-text-secondary: #626e66; --cs-text-caption: #66736a;
  --cs-border: #e0e6de; --cs-border-strong: #a3b0a5;
  --cs-olive: #236a59; --cs-action: #244c3d; --cs-selection: #dce9df; --cs-selection-text: #234f3e;
  --cs-summary: #edf4ee; --cs-summary-border: #dce7de;
  --cs-chart-primary: #236a59; --cs-chart-comparison: #6689a8;
  --cs-blue: #dbe8f1; --cs-lavender: #dce8df; --cs-peach: #eee0cc;
  --cs-font-sans: "Segoe UI", Arial, sans-serif;
  --cs-font-mono: "Cascadia Mono", Consolas, monospace;
}
[hidden] { display: none !important; }
body { -webkit-font-smoothing: antialiased; }
button, select, input { font-family: inherit; }
button { transition: background-color 130ms ease, border-color 130ms ease; }
button:active { opacity: .85; }
.sidebar { width: 196px; padding: 28px 17px; background: var(--cs-sidebar); }
.app { margin-left: 196px; }
.brand { font-size: 25px; letter-spacing: -1.2px; }
.brand-dot { display: none; }
.workspace { margin: 35px 0 30px; font-size: 12px; }
.workspace-icon { padding: 7px 10px; background: #fff; }
.nav-item { font-size: 13px; padding: 12px 10px; gap: 10px; border-radius: 6px; }
.nav-item > span { font-size: 17px; }
.nav-label { font-size: 10px; letter-spacing: 1.1px; margin-left: 10px; }
.sidebar-note { padding: 35px 9px 25px; }
.sidebar-note .mini-wave { display: none; }
.sidebar-note p { line-height: 1.7; font-size: 13px; }
.profile { padding-top: 18px; font-size: 12px; }
.profile small { font-size: 11px; }
.avatar { background: #d5e3d7; }
.topbar { min-height: 56px; padding: 10px 34px; font-size: 12px; background: #fbfcf9; }
.topbar > div { max-width: 65%; }
.demo { font-family: var(--cs-font-sans); font-size: 11px; background: transparent; }
main { max-width: 1550px; padding: 30px 34px 20px; }
.heading-row { align-items: center; }
h1 { font-size: 28px; font-weight: 550; letter-spacing: -.9px; margin: 8px 0 8px; }
h2, h3 { font-weight: 550; }
.eyebrow { font-family: var(--cs-font-sans); font-size: 10px; font-weight: 650; letter-spacing: 1.6px; }
.subheading { font-size: 12px; color: var(--cs-text-secondary); }
.outline { font-size: 12px; min-height: 38px; border-color: var(--cs-border); background: var(--cs-surface); padding: 8px 13px; }
.outline:hover { border-color: var(--cs-border-strong); }
.context-row { margin: 20px 0 14px; gap: 12px; }
.run-picker { font-size: 11px; min-height: 34px; padding: 7px 10px; }
.run-meta { font-size: 11px; }
.sample-note { font: 10px var(--cs-font-sans); }
.suite-context { margin: 0 0 18px; padding: 10px 14px; background: #f1f4ee; border-style: dashed; }
.suite-context > summary { font-size: 11px; }
.suite-context > summary > span { font-size: 11px; }
.scenario-switcher { background: #edf4ec; border: 1px solid #b9cdbb; border-left: 3px solid var(--studio-teal); padding: 0; }
.scenario-switcher > summary { display: flex; align-items: center; gap: 14px; padding: 17px 19px; list-style: none; }
.scenario-switcher > summary::-webkit-details-marker { display: none; }
.scenario-switcher > summary:hover { background: #e5efe4; }
.scenario-switcher > summary > span { margin: 0; }
.scenario-switcher > summary > .scenario-count { display: grid; place-items: center; flex-shrink: 0; width: 39px; height: 39px; background: #d8e7d8; border: 1px solid #bfd2c0; border-radius: 8px; color: #244c3d; font-size: 19px; font-weight: 650; }
.scenario-description { flex: 1; min-width: 0; }
.scenario-description strong { display: block; font-size: 14px; font-weight: 650; color: var(--cs-ink); }
.scenario-description small { display: block; margin-top: 5px; font-size: 11px; line-height: 1.6; color: var(--cs-text-secondary); overflow-wrap: anywhere; }
.scenario-toggle { display: inline-flex; align-items: center; gap: 14px; padding: 9px 13px; border: 1px solid #afc5b2; border-radius: 6px; background: #fff; color: var(--studio-teal); font-size: 12px; font-weight: 600; white-space: nowrap; }
.scenario-chevron { font-size: 18px; line-height: 1; }
.scenario-hide { display: none; }
.scenario-switcher[open] > summary { margin-bottom: 0; border-bottom: 1px solid #cbdccc; }
.scenario-switcher[open] .scenario-show { display: none; }
.scenario-switcher[open] .scenario-hide { display: inline; }
.scenario-switcher[open] .scenario-chevron { transform: rotate(180deg); }
.scenario-switcher > .suite { margin: 16px; }
@media (max-width: 600px) {
  .scenario-switcher > summary { flex-wrap: wrap; padding: 14px; gap: 10px; }
  .scenario-description { flex-basis: calc(100% - 52px); }
  .scenario-switcher > summary > .scenario-toggle { margin-left: 49px; display: inline-flex; }
}
.studio-summary { border: 1px solid var(--cs-border); border-radius: 12px; background: var(--cs-surface); overflow: hidden; }
.studio-result { padding: 25px 27px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; background: linear-gradient(105deg,#f0f6ef,#fafcf8); }
.studio-result h2 { font-size: clamp(23px,2.2vw,31px); max-width: 770px; font-weight: 550; line-height: 1.25; letter-spacing: -.9px; margin: 10px 0; }
.studio-result p { font-size: 12px; color: var(--cs-text-secondary); line-height: 1.7; margin: 0; }
.studio-sample { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; border-left: 1px solid #d7e3d5; padding-left: 28px; }
.studio-sample strong { font-size: 34px; font-weight: 500; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.studio-sample > span { font-size: 12px; }
.studio-sample small { font-size: 10px; color: var(--cs-text-secondary); white-space: nowrap; margin-top: 5px; }
.studio-caution { display: flex; align-items: center; gap: 11px; background: #faf4e8; padding: 10px 27px; color: #705829; border-top: 1px solid #eee4cc; }
.studio-caution > span { border: 1px solid #bd9e61; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; flex-shrink: 0; }
.studio-caution p { flex: 1; font-size: 11px; line-height: 1.65; margin: 0; }
.studio-caution strong { font-weight: 600; }
.studio-caution button { border: 0; background: none; white-space: nowrap; font-size: 11px; }
.studio-metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.studio-metrics > button { position: relative; display: flex; flex-direction: column; text-align: left; border: 0; border-right: 1px solid var(--cs-border); background: transparent; padding: 20px 25px; gap: 10px; min-width: 0; }
.studio-metrics > button:last-child { border: 0; }
.studio-metrics > button:hover { background: #f7faf5; }
.studio-metrics > button > span:first-child { font-size: 11px; font-weight: 550; color: var(--cs-text-secondary); }
.studio-metrics strong { font-size: 30px; font-weight: 550; letter-spacing: -1px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.studio-metrics small { font-size: 10px; line-height: 1.7; color: var(--cs-text-secondary); max-width: 28ch; }
.metric-arrow { position: absolute; right: 18px; top: 20px; font-size: 13px; color: #728879; }
.studio-nav { display: flex; overflow-x: auto; gap: 24px; border-bottom: 1px solid var(--cs-border); margin: 25px 0; position: sticky; top: 0; z-index: 5; background: var(--cs-canvas); }
.studio-nav button { position: relative; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 13px 0; font-size: 12px; white-space: nowrap; color: var(--cs-text-secondary); }
.studio-nav button[aria-pressed="true"] { border-bottom-color: var(--studio-teal); color: var(--studio-teal); font-weight: 650; }
.studio-nav button:hover { color: var(--studio-teal); }
.studio-overview-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,1fr); gap: 20px; align-items: start; }
.studio-chart, .studio-brief { min-width: 0; background: #fff; border: 1px solid var(--cs-border); border-radius: 10px; padding: 22px; }
.studio-chart-head { display: flex; justify-content: space-between; gap: 20px; }
.studio-chart h2, .studio-brief h2 { font-size: 17px; letter-spacing: -.35px; line-height: 1.4; margin: 0; }
.studio-chart-head p { font-size: 11px; color: var(--cs-text-secondary); line-height: 1.6; margin: 7px 0 0; }
.chart-unit { font-size: 9px; letter-spacing: 1px; color: var(--cs-text-caption); padding-top: 5px; }
.studio-chart-legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 10px; margin: 23px 0 12px; }
.studio-chart-legend > span { display: flex; align-items: center; gap: 7px; }
.studio-chart-legend i { width: 15px; height: 2px; background: var(--studio-teal); }
.studio-chart-legend i.typical-line { background: var(--studio-blue); }
.studio-speed-chart { display: block; width: 100%; overflow: visible; }
.studio-speed-chart text { font-size: 11px; fill: var(--cs-text-caption); }
.studio-speed-chart g[role="button"] { cursor: pointer; outline-offset: 2px; }
.studio-speed-chart g[role="button"]:focus-visible { outline: 2px solid var(--studio-teal); }
.studio-chart-detail { display: flex; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--cs-border); margin-top: 15px; }
.studio-chart-detail > div { display: flex; flex-direction: column; gap: 6px; }
.studio-chart-detail > div > span { font-size: 10px; color: var(--cs-text-secondary); }
.studio-chart-detail strong { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.studio-chart-detail small { font-size: 10px; font-weight: 400; color: var(--cs-text-secondary); }
.studio-chart-detail button { margin-left: auto; font-size: 10px; }
.studio-chart > .quiet { font-size: 10px; margin: 4px 0 0; }
.studio-brief { background: #f0f4ee; border-color: #dce5d8; }
.brief-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.brief-mark { color: var(--studio-teal); }
.studio-brief ol { list-style: none; padding: 0; margin: 22px 0 0; }
.studio-brief li { padding: 17px 0; border-top: 1px solid #dce4d7; }
.brief-severity { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: #657d68; }
.brief-severity.high { color: #925540; }
.brief-severity.medium { color: #826633; }
.studio-brief li button { display: flex; gap: 10px; width: 100%; text-align: left; font-size: 13px; font-weight: 600; line-height: 1.5; background: none; border: 0; padding: 7px 0 0; }
.studio-brief li button span { margin-left: auto; }
.studio-brief li p, .brief-empty { font-size: 11px; color: var(--cs-text-secondary); line-height: 1.7; margin: 7px 0 0; }
.brief-more { display: flex; justify-content: space-between; background: none; border: 0; border-top: 1px solid #dce4d7; padding: 17px 0 0; width: 100%; color: var(--studio-teal); font-size: 11px; }
.brief-empty { margin: 20px 0; }
.studio-view-heading { display: flex; align-items: baseline; gap: 16px; margin: 28px 0 16px; }
.studio-view-heading > span { font-size: 10px; font-weight: 650; letter-spacing: 1.2px; }
.studio-view-heading > p { font-size: 11px; color: var(--cs-text-secondary); margin: 0; }
.priority-views { gap: 20px; margin: 0; }
.priority-views:has(> section:not([hidden])) { margin-bottom: 20px; }
.priority-panel { padding: 23px; border-radius: 10px; }
.priority-panel h2 { font-size: 19px; letter-spacing: -.4px; }
.priority-panel .quiet { font-size: 11px; }
.priority-panel table { font-size: 12px; }
.priority-panel th { font-size: 10px; font-family: var(--cs-font-sans); letter-spacing: .7px; font-weight: 550; }
.priority-panel tbody th { font-size: 12px; letter-spacing: 0; font-weight: 600; }
.priority-panel td { padding-top: 17px; padding-bottom: 17px; }
.priority-panel small { font-size: 10px; line-height: 1.6; }
.results-grid small { max-width: 26ch; }
.results-grid th:first-child { width: 12%; }
.stage-picker { font-size: 11px; }
.cs-input, .stage-picker select { font-size: 12px; }
.wait-frequency-row { padding: 17px 0; }
.wait-stack { height: 38px; }
.wait-key { font-size: 11px; }
.wait-counts { font-size: 10px; }
.conversation-heatmap button { padding: 21px 7px; }
.requirement-title { font-size: 13px; }
.studio-findings { margin: 0; border: 0; padding: 0; }
.studio-findings > summary { font-size: 12px; }
.insights, .questions { padding: 24px; }
.insight-list { gap: 16px; }
.studio-evidence .section-top { margin-top: 0; }
.studio-evidence .section-top h2 { font-size: 21px; }
.studio-evidence .tabs { background: var(--cs-surface); padding: 6px; border: 1px solid var(--cs-border); border-radius: 8px; margin-bottom: 18px; }
.studio-evidence .tab { border-radius: 5px; font-size: 12px; }
.insight-panel { border-radius: 10px; grid-template-columns: minmax(0,1.7fr) minmax(260px,1fr); }
.chart-head h3 { font-size: 18px; }
.chart-head p { font-size: 11px; line-height: 1.7; }
.takeaway { background: #eef3eb; padding: 25px; }
.takeaway h3 { font-size: 19px; letter-spacing: -.3px; }
.takeaway p { font-size: 12px; line-height: 1.8; }
.below-note { font-size: 10px; margin-top: 24px; }
.below-note .text-button { font-size: 10px; }
.drawer { background: #fafbf8; }
.drawer .card, .drawer .cs-card { border-radius: 10px; }
footer { font-size: 9px; letter-spacing: 1px; padding-top: 25px; }
@media (min-width: 1600px) { main { padding-left: 44px; padding-right: 44px; } }
@media (max-width: 1150px) { .studio-overview-grid { grid-template-columns: minmax(0,1fr); } .studio-brief ol { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; } .studio-brief li { padding-top: 14px; } .studio-result { grid-template-columns: minmax(0,1fr); } .studio-sample { display: none; } .studio-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .studio-metrics > button:nth-child(2n) { border-right: 0; } .studio-metrics > button:nth-child(-n+4) { border-bottom: 1px solid var(--cs-border); } .studio-metrics > button:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .sidebar { width: 64px; padding: 24px 10px; } .app { margin-left: 64px; } .workspace, .sidebar-note, .profile, .nav-label, .brand-dot { display: none; } .brand { font-size: 0; } .brandmark { display: block; } .nav-item { font-size: 0; gap: 0; padding: 12px; } .nav-item > span { font-size: 20px; } .nav-item small { display: none; } main { padding: 24px; } .insight-panel { grid-template-columns: minmax(0,1fr); } .topbar { padding: 12px 24px; } }
@media (max-width: 600px) { .sidebar { width: 48px; padding: 22px 5px; } .app { margin-left: 48px; } .nav-item { padding: 12px 8px; } main { padding: 22px 14px; } .topbar { padding: 10px 14px; } .topbar > div { max-width: 100%; } .topbar .demo { padding: 0; } h1 { font-size: 24px; } .heading-row { align-items: flex-start; } .heading-row > .outline { font-size: 0; width: 38px; padding: 8px; justify-content: center; } .heading-row > .outline > span { font-size: 11px; } .studio-result { padding: 21px 18px; } .studio-result h2 { font-size: 25px; } .studio-metrics > button { padding: 18px 15px; } .studio-metrics strong { font-size: 25px; } .studio-metrics small { font-size: 10px; } .studio-caution { padding: 12px 16px; align-items: flex-start; flex-wrap: wrap; } .studio-caution button { margin-left: 28px; } .studio-nav { gap: 22px; margin: 20px 0; } .studio-chart, .studio-brief, .priority-panel { padding: 18px 14px; } .studio-brief ol { grid-template-columns: minmax(0,1fr); gap: 0; } .studio-chart-detail { flex-wrap: wrap; } .studio-chart-detail button { margin-left: 0; } .chart-unit { display: none; } .studio-view-heading { flex-direction: column; gap: 7px; } .insights, .questions { padding: 18px 14px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (max-width: 600px) {
  .sidebar { position: static; width: auto; padding: 15px 16px 8px; border-right: 0; border-bottom: 1px solid var(--cs-border); display: block; overflow: visible; }
  .sidebar .brand { font-size: 23px; display: flex; }
  .sidebar nav { display: flex; gap: 6px; margin-top: 13px; overflow-x: auto; }
  .sidebar .nav-item { font-size: 11px; width: auto; flex-shrink: 0; margin: 0; padding: 9px 10px; gap: 7px; white-space: nowrap; }
  .sidebar .nav-item > span { font-size: 14px; }
  .app { margin-left: 0; }
  .topbar { min-height: 35px; justify-content: flex-end; }
  .topbar > div { display: none; }
  .heading-row > .outline { display: none; }
  .studio-caution { display: grid; grid-template-columns: 17px minmax(0,1fr); }
  .studio-caution button { grid-column: 2; margin-left: 0; text-align: left; padding: 3px 0; }
}

/* Scenario comparison */
.scenario-compare .scenario-reading { font-size: 12px; line-height: 1.8; max-width: 95ch; margin: 16px 0; }
.scenario-link { display: inline-flex; align-items: baseline; gap: 7px; text-align: left; font-weight: 500; overflow-wrap: anywhere; }
.scenario-swatch { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 2px; }
.scenario-compare .chart { max-width: 800px; min-height: 0; margin: 20px 0; }
.scenario-compare .requirement-title { font-size: 12px; }
.scenario-compare .results-grid th:first-child { width: 22%; }
.scenario-compare .results-grid td { width: auto; }
.scenario-compare .results-grid th { overflow-wrap: anywhere; }
.scenario-compare .wait-frequency-row { grid-template-columns: minmax(140px, 1fr) minmax(0, 4fr); }
.scenario-compare .wait-key { font-size: 11px; gap: 10px 20px; }
.scenario-compare .wait-counts { font-size: 10px; line-height: 1.6; }
.rate-track { position: relative; }
.rate-track .rate-fill { position: absolute; top: 0; bottom: 0; left: 0; background: var(--cs-chart-primary); opacity: .3; }
.rate-track .rate-range { position: absolute; top: 0; bottom: 0; min-width: 3px; background: var(--cs-chart-primary); opacity: .8; }
.scenario-heat { padding: 14px 7px; border-radius: 6px; font-variant-numeric: tabular-nums; color: var(--cs-ink); }
.scenario-heat small { display: block; }
.scenario-heat b { font-weight: 700; }
.scenario-compare .conversation-heatmap .scenario-link { width: auto; padding: 0; border: 0; border-radius: 0; font-size: 12px; color: var(--cs-olive); }
@media (max-width: 600px) {
  .scenario-compare .wait-frequency-row { grid-template-columns: minmax(0, 1fr); }
  .scenario-compare .wait-frequency-row > div:first-child { flex-wrap: wrap; }
  .scenario-compare .chart { overflow-x: auto; }
  .scenario-compare .chart svg { min-width: 480px; }
}

/* Small screens, following the design system's "below 760" column: a wide table
   becomes one record per row, each value under its own label, so the columns
   that matter (the verdicts) are never scrolled off the edge. */
@media (max-width: 759px) {
  table.stack { min-width: 0; table-layout: auto; border-spacing: 0; }
  table.stack thead { display: none; }
  table.stack tbody { display: block; }
  table.stack tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px 16px; padding: 14px 0; border-top: 1px solid var(--cs-border); }
  table.stack tr > * { display: block; width: auto; min-width: 0; padding: 0; border: 0; text-align: left; white-space: normal; }
  table.stack tr > :first-child { grid-column: 1 / -1; width: auto; font-weight: 600; }
  table.stack td:empty { display: none; }
  table.stack tr.selected { background: var(--cs-selection); padding-inline: 10px; border-radius: 8px; }
  table.stack tr.selected td { background: none; }
  table.stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 400; letter-spacing: .6px; text-transform: uppercase; color: var(--cs-text-caption); }
}
/* The overview chart scales with its viewBox; its labels are set in viewBox
   units, so on a phone they grow to stay readable instead of shrinking away. */
@media (max-width: 480px) { .studio-speed-chart text { font-size: 20px; } }
/* Touch: every control at least 44px, the design system's web minimum. */
@media (max-width: 759px), (pointer: coarse) {
  .text-button, .seg button, .tabs button, .studio-nav button, .sidebar .nav-item, .studio-caution button, .brand, .compare-control, summary { min-height: 44px; }
  .text-button { display: inline-flex; align-items: center; }
  .icon-button { width: 44px; height: 44px; }
  .compare-control input { width: 20px; height: 20px; }
  input[type="range"] { min-height: 44px; }
}
