:root {
  color-scheme: light;
  --background: #f5f5f2;
  --paper: #fff;
  --text: #20211d;
  --muted: #565a51;
  --border: #dedfd8;
  --tone: #eeefe9;
  --accent: #29322a;
  --error: #82382e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--background); line-height: 1.62; }
p, h1, h2, h3, h4 { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.muted { color: var(--muted); }
strong { font-weight: 700; }

.model {
  --text: #171816;
  --muted: #60615d;
  --border: #deded9;
  --tone: #eeeeea;
  --accent: #171816;
  --heading-font: Georgia, "Times New Roman", serif;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.model-wrap { max-width: 1100px; margin-inline: auto; padding: 38px 30px 55px; }
.model-top, .board-title, .board-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.model-top { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.brand { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.model-actions { display: flex; align-items: center; gap: 10px; }
.version, .sign-out { border: 1px solid var(--border); border-radius: 20px; padding: 5px 10px; color: var(--muted); font-size: 12px; }
.sign-out { background: transparent; min-height: 40px; }
.sign-out:hover { background: var(--tone); color: var(--text); }
.model-header { padding-block: 32px 25px; }
.model-header h1 { font: 500 clamp(38px, 6vw, 58px)/1.02 var(--heading-font); letter-spacing: -.04em; margin-bottom: 10px; }
.model-header p { color: var(--muted); max-width: 680px; }

.strategic-brief { margin-bottom: 20px; background: var(--paper); border: 1px solid var(--border); border-radius: 14px; }
.strategic-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 16px; padding: 17px clamp(14px, 3vw, 24px); border-bottom: 1px solid var(--border); }
.strategic-header h2 { font: 500 27px/1.16 var(--heading-font); letter-spacing: -.02em; margin-bottom: 4px; }
.strategic-header p, .strategic-move > p:not(.kicker), .strategic-move li { color: var(--muted); font-size: 14px; }
.strategic-header a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; text-underline-offset: 3px; }
.strategic-moves { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.strategic-move { padding: 17px clamp(14px, 3vw, 24px) 19px; }
.strategic-move + .strategic-move { border-inline-start: 1px solid var(--border); background: #fafaf8; border-radius: 0 0 13px 0; }
.strategic-move h3 { font-size: 16px; margin-bottom: 5px; }
.strategic-move ol { margin: 0; padding-inline-start: 1.45rem; }
.strategic-move li + li { margin-top: 7px; }
.strategic-move li strong, .strategic-move li::marker { color: var(--text); }

.board { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
#process-map { scroll-margin-top: 12px; }
.board-title { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.board-title strong { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.board-title span, .board-footer { color: var(--muted); font-size: 12px; }
.board-footer { border-top: 1px solid var(--border); padding: 13px 20px; }
.board-footer strong { color: var(--text); }
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 20px 16px 16px; gap: 8px; position: relative; }
.flow::before { content: ""; position: absolute; inset: 42px 9% auto; height: 1px; background: #c9c9c3; }
.step { position: relative; padding: 0 3px; color: var(--muted); text-align: center; text-decoration: none; border-radius: 6px; }
.circle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border: 1px solid #c7c7c1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .15s, color .15s;
}
.step:hover .circle, .step:focus-visible .circle { border-color: var(--text); }
.step[aria-current="step"] .circle { background: var(--text); color: var(--paper); border-color: var(--text); }
.step[aria-current="step"] .step-name { color: var(--text); font-weight: 700; }
.step-name { display: block; font-size: 11px; line-height: 1.3; min-height: 29px; }
.step-number { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }

.detail { border-top: 1px solid var(--border); padding: 23px 24px 25px; scroll-margin-top: 14px; }
.detail-head { margin-bottom: 18px; }
.kicker { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 6px; }
.detail h2 { font: 500 29px/1.12 var(--heading-font); letter-spacing: -.02em; margin-bottom: 7px; }
.detail-intro { color: var(--muted); max-width: 760px; font-size: 14px; }
.strategy h3, .execution h3 { margin-bottom: 10px; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card { background: #fafaf8; border: 1px solid var(--border); padding: 14px; border-radius: 9px; }
.card-label { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.card h4 { font-size: 13px; line-height: 1.35; margin-bottom: 4px; }
.card p:not(.card-label) { color: var(--muted); font-size: 13px; }
.card .strategy-note { padding-top: 8px; font-weight: 650; }
.scale-heading { margin-block: 15px 9px; font-size: 12px; }

.execution { margin-top: 24px; padding: clamp(15px, 2.5vw, 24px); background: #fafaf8; border: 1px solid var(--border); border-radius: 9px; }
.execution h3 { margin-bottom: 5px; font-size: 20px; line-height: 1.3; }
.execution-summary { color: var(--muted); font-size: 14px; }
.execution-summary strong, .manual-input strong, .phases strong, .execution-output strong { color: var(--text); }
.execution a { text-underline-offset: 3px; }
.manual-input { padding: 11px 12px; border-radius: 6px; background: var(--tone); color: var(--muted); font-size: 13px; }
.manual-input strong, .execution-output strong { margin-inline-end: 5px; }
.phases { margin-block: 12px 0; padding-inline-start: 1.7rem; color: var(--muted); font-size: 14px; }
.phases > li { padding: 13px 0 14px 4px; border-bottom: 1px solid var(--border); }
.phases > li:last-child { border: 0; }
.phases > li::marker { font-weight: 750; color: var(--text); }
.phases h4 { margin-bottom: 4px; color: var(--text); font-size: 15px; }
.phases p { max-width: 76ch; }
.phase-points { margin-block: 6px; padding-inline-start: 1.2rem; }
.phase-points li + li { margin-top: 3px; }
.execution-output { padding: 11px 12px; border-radius: 6px; background: var(--tone); color: var(--muted); font-size: 13px; }
.setup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-block: 10px; }
.setup div { background: var(--paper); border: 1px solid var(--border); padding: 10px 12px; border-radius: 6px; }
.setup dt { color: var(--muted); font-size: 12px; }
.setup dd { margin: 3px 0 0; font-weight: 700; }
.handoff { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.handoff strong { color: var(--text); margin-right: 4px; }


@media (max-width: 800px) {
  .model-wrap { padding: 28px 18px 40px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
  .flow::before { display: none; }
  .step { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 5px; text-align: start; }
  .circle { width: 35px; height: 35px; margin: 0; grid-row: span 2; }
  .step-name { min-height: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .model-wrap { padding: 18px 12px 30px; }
  .model-header { padding-block: 24px 20px; }
  .strategic-moves { grid-template-columns: 1fr; }
  .strategic-move + .strategic-move { border-inline-start: 0; border-top: 1px solid var(--border); border-radius: 0 0 13px 13px; }
  .board-title { padding: 12px 14px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 10px; gap: 7px; }
  .detail { padding: 19px 15px 20px; }
  .detail h2 { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-footer { display: grid; gap: 5px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .circle { transition: none; }
}

.wordmark { color: var(--text); font-weight: 800; letter-spacing: -.035em; }
.wordmark span { font-weight: 600; color: var(--muted); }
.sign-in { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 22px; }
.sign-in-card { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; width: min(100%, 430px); padding: clamp(23px, 6vw, 38px); }
.sign-in-card h1 { font-size: clamp(2rem, 5.8vw, 2.7rem); line-height: 1.12; font-weight: 760; letter-spacing: -.055em; margin-block: 24px 10px; }
.sign-in-form { display: grid; gap: 7px; margin-top: 22px; }
.sign-in-form label { font-size: .88rem; font-weight: 700; }
.sign-in-form input { width: 100%; padding: 10px 12px; min-height: 46px; border: 1px solid #aeb1a7; border-radius: 5px; background: var(--paper); color: var(--text); }
.sign-in-form input + label { margin-top: 8px; }
.form-error { color: var(--error); background: #fcf1ee; border: 1px solid #e9c4bd; border-radius: 5px; padding: 9px 12px; font-size: .86rem; margin-bottom: 5px; }
.primary { border: 1px solid var(--accent); background: var(--accent); color: var(--paper); min-height: 46px; border-radius: 5px; margin-top: 12px; font-weight: 700; }
.primary:hover { background: #414d40; }

