/* An outcome-first layout using the original Calm design tokens. */
main { max-width: 1480px; }
h1 { font-size: clamp(26px, 2.5vw, 38px); max-width: 780px; }
.context-row { margin: 24px 0; }
.result-story { background: var(--cs-summary); border: 1px solid var(--cs-summary-border); border-radius: 12px; padding: 28px 32px; }
.result-story h2 { font-size: clamp(25px, 2.6vw, 36px); max-width: 850px; letter-spacing: -.9px; margin: 10px 0 12px; }
.result-story > p { max-width: 760px; line-height: 1.7; color: var(--cs-text-secondary); margin: 0; font-size: 15px; }
.result-scope { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 13px; color: var(--cs-selection-text); }
.outcome-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 24px 0 32px; border: 1px solid var(--cs-border); background: var(--cs-surface); border-radius: 10px; overflow: hidden; }
.outcome { border: 0; border-right: 1px solid var(--cs-border); padding: 23px; background: transparent; text-align: left; display: flex; flex-direction: column; align-items: flex-start; font: inherit; min-width: 0; }
.outcome:last-child { border-right: 0; }
.outcome > span:first-child { font-size: 14px; color: var(--cs-text-secondary); }
.outcome > strong { font-weight: 500; font-size: clamp(23px, 2.4vw, 34px); letter-spacing: -.8px; margin: 17px 0 2px; overflow-wrap: anywhere; }
.outcome p { font-size: 13px; line-height: 1.65; color: var(--cs-text-secondary); margin-bottom: 20px; }
.outcome-link { margin-top: auto; font-size: 12px; color: var(--cs-olive); }
.outcome:hover { background: var(--cs-surface-detail); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.story-grid h2 { font-size: 22px; margin: 0 0 8px; }
.story-grid p { font-size: 14px; line-height: 1.6; color: var(--cs-text-secondary); }
.test-story { padding: 8px 0; }
.test-sequence { list-style: none; padding: 0 0 0 22px; margin: 26px 0; border-left: 2px solid var(--cs-border); }
.test-sequence li { position: relative; padding: 0 0 25px 0; }
.test-sequence li:last-child { padding-bottom: 0; }
.test-sequence li::before { content: ''; position: absolute; width: 8px; height: 8px; border: 2px solid var(--cs-olive); border-radius: 50%; left: -29px; top: 4px; background: var(--cs-canvas); }
.test-sequence strong { display: block; font-size: 15px; font-weight: 500; margin-bottom: 7px; }
.test-sequence span { display: block; font-size: 13px; line-height: 1.6; color: var(--cs-text-secondary); max-width: 450px; }
.attention-story { padding: 24px; border: 1px solid var(--cs-border); background: var(--cs-surface); border-radius: 10px; }
.action-list button { display: flex; gap: 14px; background: transparent; border: 0; border-top: 1px solid var(--cs-border); padding: 18px 0; text-align: left; width: 100%; font: inherit; }
.action-number { flex-shrink: 0; width: 25px; height: 25px; border-radius: 50%; background: var(--cs-summary); display: grid; place-items: center; font-size: 12px; }
.action-list strong { font-size: 14px; line-height: 1.5; font-weight: 500; }
.action-list button > span > span { display: block; color: var(--cs-text-secondary); font-size: 13px; line-height: 1.6; margin-top: 6px; }
.action-list em { display: block; font-style: normal; font-size: 12px; color: var(--cs-olive); margin-top: 10px; }
.action-list button:hover strong { text-decoration: underline; }
.supporting-details { border: 1px solid var(--cs-border); border-radius: 8px; margin: 26px 0; padding: 18px 22px; }
.supporting-details > summary { cursor: pointer; font-size: 14px; line-height: 1.6; }
.supporting-details > summary > span { color: var(--cs-text-caption); font-size: 12px; margin-left: 16px; }
.supporting-details[open] > summary { margin-bottom: 24px; }
#explore-results { scroll-margin-top: 20px; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--cs-olive); outline-offset: 4px; }
@media (max-width: 1200px) { .outcome-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .outcome:nth-child(2) { border-right: 0; } .outcome:nth-child(-n+2) { border-bottom: 1px solid var(--cs-border); } .story-grid { gap: 24px; } }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .result-story { padding: 22px; } .outcome-grid { grid-template-columns: 1fr; } .outcome { border-right: 0; border-bottom: 1px solid var(--cs-border); } .outcome:last-child { border-bottom: 0; } .outcome > strong { font-size: 30px; } .supporting-details > summary > span { display: block; margin-left: 0; } .heading-row { align-items: flex-start; } }
.suite-context { overflow-x: auto; } .topbar > div { overflow-wrap: anywhere; min-width: 0; }
.stage-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; margin: 20px 0; }
.stage-picker select { width: auto; max-width: 100%; min-width: 180px; }
.slow-turn-selection > .stage-picker { padding: 16px 20px; background: var(--cs-surface-detail); border-radius: 8px; }
.computed-appendix { margin-top: 32px; min-width: 0; }
.computed-appendix table { table-layout: fixed; min-width: 900px; width: 100%; }
.computed-appendix th, .computed-appendix td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; line-height: 1.6; }
.computed-appendix th:first-child { width: 15%; }
.computed-appendix th:nth-child(2) { width: 30%; }
.computed-appendix th:nth-child(3) { width: 28%; }
.computed-appendix td:nth-child(2) { font-variant-numeric: tabular-nums; color: var(--cs-ink); }
.call-controls-top { margin: 12px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--cs-border); }
.unanswered-questions dl > div, .out-of-reach dl > div { margin: 20px 0; }
.unanswered-questions dt, .out-of-reach dt { font-weight: 500; line-height: 1.5; }
.unanswered-questions dd, .out-of-reach dd { margin: 8px 0 0; font-size: 14px; color: var(--cs-text-secondary); line-height: 1.65; }
.q-body { padding: 4px 0 22px 32px; }
.insight-list { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.priority-views { display: grid; gap: 24px; margin: 28px 0; min-width: 0; }
.priority-panel { border: 1px solid var(--cs-border); background: var(--cs-surface); border-radius: 12px; padding: 26px; min-width: 0; }
.priority-panel h2 { margin: 0 0 10px; font-size: 23px; }
.priority-panel > .quiet { max-width: 95ch; }
.priority-heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.priority-heading > div { flex: 1; min-width: 220px; }
.priority-heading .stage-picker { margin: 0 0 18px; }
.priority-panel table { width: 100%; }
.priority-panel th, .priority-panel td { vertical-align: top; white-space: normal; line-height: 1.5; }
.priority-panel small { display: block; font-size: 12px; font-weight: 400; color: var(--cs-text-secondary); margin-top: 6px; }
.results-grid { min-width: 800px; }
.results-grid th:first-child { width: 13%; }
.results-grid td { width: 22%; font-variant-numeric: tabular-nums; }
.wait-key { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 22px 0; font-size: 13px; }
.wait-key span { display: flex; gap: 8px; align-items: center; }
.wait-key i { width: 12px; height: 12px; border-radius: 2px; }
.wait-frequency-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 14px 0; }
.wait-frequency-row strong { font-size: 14px; font-weight: 500; }
.wait-stack { display: flex; height: 32px; border-radius: 4px; overflow: hidden; }
.wait-stack > span { display: grid; place-items: center; overflow: hidden; font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.wait-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--cs-text-secondary); font-size: 12px; margin-top: 10px; }
.conversation-heatmap { min-width: 600px; table-layout: fixed; border-collapse: separate; border-spacing: 6px; }
.conversation-heatmap th, .conversation-heatmap td { padding: 4px; border: 0; }
.conversation-heatmap th:first-child { width: 135px; }
.conversation-heatmap button { width: 100%; padding: 15px 5px; border: 1px solid transparent; border-radius: 5px; font: inherit; font-size: 15px; color: var(--cs-ink); font-variant-numeric: tabular-nums; }
.conversation-heatmap button[aria-pressed="true"] { border-color: var(--cs-action); box-shadow: inset 0 0 0 1px var(--cs-action); }
.heat-selection { padding: 14px 16px; border-left: 3px solid var(--cs-olive); background: var(--cs-surface-detail); line-height: 1.65; font-size: 14px; }
.requirement-row { padding: 20px 0; border-top: 1px solid var(--cs-border); }
.requirement-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; font-size: 14px; line-height: 1.6; }
.requirement-title strong { font-weight: 500; max-width: 75ch; }
.requirement-title > span { color: var(--cs-text-secondary); font-variant-numeric: tabular-nums; }
.requirement-track { height: 12px; background: var(--cs-canvas); border-radius: 3px; overflow: hidden; margin: 14px 0; }
.requirement-track > span { display: block; background: var(--cs-danger-text); height: 100%; }
.requirement-row summary { cursor: pointer; color: var(--cs-olive); font-size: 13px; }
.requirement-row blockquote { margin: 14px 0; padding-left: 16px; border-left: 2px solid var(--cs-border); font-size: 14px; line-height: 1.7; }
.comparison-table { min-width: 660px; }
.comparison-caution { padding: 12px 16px; background: var(--cs-warning-surface); color: var(--cs-warning-text); font-size: 14px; line-height: 1.6; }
@media (max-width: 600px) {
  .priority-panel { padding: 18px 14px; }
  .priority-heading > div { min-width: 0; flex-basis: 100%; }
  .wait-frequency-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .wait-frequency-row > div:first-child { display: flex; gap: 12px; align-items: baseline; }
}
@media (max-width: 600px) {
  .questions, .insights { padding: 16px 12px; }
  .q-body { padding-left: 0; }
  .drawer-top h2 { font-size: 20px; }
}
