:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142333;
  background: #f4f7fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #3da7ba; outline-offset: 3px; }
.app-layout { min-height: 100vh; }
.topbar { min-height: 78px; padding: 16px 38px; background: #0d1c2b; display: flex; align-items: center; justify-content: space-between; color: #fff; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: flex; height: 42px; width: 42px; border: 1px solid #678498; border-radius: 10px; align-items: center; justify-content: center; color: #9bcbd1; font-weight: 750; font-size: 25px; }
.brand-name { font-weight: 760; font-size: 19px; letter-spacing: .06em; }
.brand-subtitle { font-weight: 400; color: #d0dde7; letter-spacing: 0; margin-left: 5px; font-size: 14px; }
.brand-caption { color: #8da8ba; margin-top: 3px; font-size: 11px; letter-spacing: .025em; }
.preview-label { border: 1px solid #4a6173; color: #c4d7df; border-radius: 20px; padding: 7px 12px; white-space: nowrap; font-size: 10px; font-weight: 750; letter-spacing: .11em; }
.page-content { display: grid; grid-template-columns: 258px minmax(350px, 1fr) 264px; max-width: 1640px; margin: 0 auto; min-height: calc(100vh - 78px); }
.left-panel { padding: 35px 17px 26px 23px; background: #fff; border-right: 1px solid #e4ebf1; }
.eyebrow { font-size: 10px; color: #728495; font-weight: 800; letter-spacing: .1em; }
.scenario-name { font-weight: 740; margin-top: 11px; font-size: 18px; }
.scenario-caption { color: #748696; font-size: 12px; margin-top: 7px; line-height: 1.5; }
.side-divider { height: 1px; background: #e6ecf1; margin: 29px 0 27px; }
.stage-nav { display: grid; gap: 7px; margin-top: 15px; }
.stage-link { border: 1px solid transparent; color: #47596a; background: transparent; border-radius: 9px; text-align: left; padding: 12px 10px; display: flex; gap: 10px; align-items: center; width: 100%; }
.stage-link.selected { background: #e9f4f6; border-color: #c8e2e5; color: #126174; }
.stage-number { border: 1px solid #d5e0e7; border-radius: 8px; min-width: 27px; height: 27px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.selected .stage-number { background: #186b7e; color: white; border-color: #186b7e; }
.stage-link-name { display: block; font-weight: 670; font-size: 12px; }
.stage-link-sub { display: block; font-size: 10px; margin-top: 4px; color: #82919e; }
.sidebar-note { font-size: 11px; line-height: 1.6; color: #8996a1; margin: 26px 8px 0 4px; }
.main-panel { padding: 31px clamp(22px, 4vw, 64px) 40px; }
.notice { border: 1px solid #d8e4ed; background: #eaf2f8; border-radius: 8px; padding: 12px 15px; display: flex; align-items: center; gap: 9px; color: #315876; font-size: 12px; line-height: 1.5; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: #4785b1; flex: none; }
.content-heading { display: flex; align-items: start; justify-content: space-between; margin-top: 42px; gap: 15px; }
.separator { padding: 0 7px; color: #c1cbd4; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; margin: 13px 0 11px; }
.intro { color: #677b8d; font-size: 14px; margin: 0; line-height: 1.5; }
.stage-tag { background: #e8edef; color: #506c77; border-radius: 6px; white-space: nowrap; padding: 8px 10px; font-size: 11px; font-weight: 720; }
.step-progress { display: flex; gap: 7px; margin: 32px 0 24px; }
.progress-piece { background: #dfe7ec; height: 6px; border-radius: 4px; flex: 1; }
.progress-piece.filled { background: #22768a; }
.stage-card { min-height: 310px; background: #fff; border: 1px solid #e1e8ee; border-radius: 13px; box-shadow: 0 7px 28px rgba(25,57,83,.04); padding: 24px; text-align: center; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-kicker { color: #8495a2; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.not-built { color: #806322; background: #fff6df; border: 1px solid #f1e4be; border-radius: 6px; padding: 5px 8px; font-size: 11px; font-weight: 640; }
.empty-illustration { height: 82px; display: flex; align-items: end; justify-content: center; font-size: 55px; color: #aec8d0; }
.stage-card h2 { margin: 19px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.stage-card p { margin: 0 auto; max-width: 420px; font-size: 13px; line-height: 1.65; color: #708392; }
.power-reference { display: flex; margin: 23px auto 0; border: 1px solid #e1e9ee; padding: 10px 13px; border-radius: 9px; max-width: 380px; flex-direction: column; gap: 5px; }
.power-reference strong { font-size: 12px; color: #276b7c; letter-spacing: .1em; }
.power-reference span { font-size: 11px; color: #627b8a; }
.footnote { font-size: 11px; color: #8a9aa6; margin-top: 17px; line-height: 1.6; }
.footnote code { color: #627b87; }
.right-panel { background: #fff; border-left: 1px solid #e4ebf1; padding: 36px 20px; }
.right-panel h2 { font-size: 18px; margin: 11px 0 8px; }
.right-panel > p { font-size: 12px; line-height: 1.6; color: #778996; margin: 0 0 25px; }
.desk-button { display: flex; background: #fff; width: 100%; border: 1px solid #e1e9ee; text-align: left; border-radius: 10px; padding: 12px 10px; gap: 10px; margin-bottom: 10px; align-items: center; color: #213b4d; }
.desk-button:hover, .desk-button.desk-active { background: #f3f9fa; border-color: #c7dfe5; }
.desk-icon { background: #e8f2f5; border-radius: 8px; color: #33778a; width: 33px; height: 33px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.desk-button strong { display: block; font-size: 12px; }
.desk-button small { display: block; font-size: 10px; color: #8195a3; margin-top: 4px; }
.chevron { font-size: 22px; margin-left: auto; color: #8ba5b0; }
.right-panel .desks-disclaimer { margin-top: 21px; font-size: 11px; color: #97a6b0; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(10,27,39,.35); z-index: 5; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(430px, 100%); z-index: 6; background: white; box-shadow: -10px 0 36px rgba(17,37,56,.16); }
.drawer-header { padding: 25px; border-bottom: 1px solid #e3e9ee; display: flex; justify-content: space-between; align-items: center; }
.drawer-header h2 { font-size: 19px; margin: 0; }
.close-button { border: 0; background: #eef4f7; color: #3a5968; font-size: 25px; line-height: 1; width: 34px; height: 34px; border-radius: 7px; }
.drawer-content { padding: 28px 25px; }
.drawer-content p { color: #697d8d; font-size: 13px; line-height: 1.65; margin-top: 20px; }
@media (max-width: 1050px) {
  .page-content { grid-template-columns: 220px 1fr; }
  .right-panel { grid-column: 1 / -1; border-left: none; border-top: 1px solid #e4ebf1; padding: 24px; }
  .right-panel .desk-button { display: inline-flex; width: min(260px, 49%); margin: 0 10px 8px 0; }
}
@media (max-width: 660px) {
  .topbar { padding: 14px 18px; }
  .brand-subtitle { display: block; margin-left: 0; }
  .preview-label { font-size: 9px; max-width: 98px; white-space: normal; text-align: center; }
  .page-content { display: flex; flex-direction: column; }
  .left-panel { padding: 18px; border: none; border-bottom: 1px solid #e4ebf1; }
  .scenario-name { margin-top: 6px; }
  .side-divider, .sidebar-note, .left-panel > .eyebrow:nth-of-type(2) { display: none; }
  .stage-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .stage-link { padding: 10px 4px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
  .stage-link-name { font-size: 10px; text-align: center; }
  .stage-link-sub { display: none; }
  .main-panel { padding: 20px; }
  .content-heading { margin-top: 26px; }
  .stage-tag { display: none; }
  .stage-card { padding: 18px; }
  .right-panel .desk-button { width: 100%; }
}

/* Stage 1: strategy selection (the shared shell above remains unchanged). */
.stage1-card { text-align: left; }
.stage1-state-label { color: #61798a; background: #edf3f7; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 650; }
.stage1-message { text-align: center; max-width: 540px; margin: 38px auto 30px; }
.stage1-message h2 { margin: 14px 0 8px; }
.stage1-message p { margin: 9px auto; }
.stage1-message code { font-size: 12px; word-break: break-word; }
.stage1-ready { font-size: 47px; color: #a7c7cd; }
.stage1-body { margin: 26px 0 8px; }
.stage1-context { max-width: none !important; margin: 0 0 24px !important; color: #476071 !important; font-size: 14px !important; white-space: pre-wrap; }
.strategy-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.strategy-fieldset legend { padding: 0; font-size: 18px; color: #142333; font-weight: 740; margin-bottom: 17px; }
.strategy-list { display: grid; gap: 11px; }
.strategy-option { display: flex; align-items: center; gap: 12px; border: 1px solid #d9e5eb; border-radius: 10px; padding: 15px; cursor: pointer; background: #fff; }
.strategy-option:hover { border-color: #9bbfc8; background: #f7fbfc; }
.strategy-option--selected { border-color: #23788b; background: #ebf6f7; box-shadow: inset 0 0 0 1px #23788b; }
.strategy-option input { width: 17px; height: 17px; accent-color: #176f82; flex: none; }
.strategy-option-text { flex: 1; }
.strategy-option-text strong { display: block; font-size: 14px; line-height: 1.4; }
.strategy-option-text small { display: block; color: #6b8090; line-height: 1.5; font-size: 12px; margin-top: 5px; }
.strategy-selected-label { font-size: 11px; color: #216d7f; font-weight: 740; }
.stage1-card .strategy-disclaimer { max-width: none; text-align: left; margin: 20px 0 0; color: #8596a2; font-size: 11px; }
