.viewer-shell { width: min(1420px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 46px; }

.hero {
  overflow: hidden;
  color: white;
  background: var(--navy);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(19,37,47,.15);
}

.top-nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.hero .pill { color: #c8d4d9; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.edit-link { padding: 8px 12px; color: var(--navy); background: var(--mint); border-radius: 9px; font-size: 11px; font-weight: 850; text-decoration: none; }

.hero-copy { display: grid; grid-template-columns: 1.3fr .7fr; gap: 64px; align-items: center; padding: 34px 48px 38px; }
.hero .eyebrow { color: #99aeb9; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.hero h1 span { color: var(--mint); }
.hero-principle { margin: 18px 0 0; color: #aebfc6; font-size: 12px; }
.hero-summary { width: 100%; max-width: 390px; justify-self: end; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.13); }
.summary-label { margin: 0 0 12px; color: #99aeb9; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.track-status { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 11px; }
.track-status strong { color: #eef3f4; }
.track-status b { color: var(--amber); font-size: 9px; }
.track-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.track-dot.site { background: var(--mint); }
.progress-block { margin-top: 15px; }
.progress-block > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.progress-block strong { font-size: 38px; letter-spacing: -.05em; }
.progress-block span { color: #99aeb9; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.progress-track { height: 7px; margin-top: 10px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--mint); transition: width .35s ease; }

.gantt-card, .now-card, .context-card {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gantt-card { padding: 26px 28px 30px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.section-head h2, .now-card h2, .context-card h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.legend { display: flex; gap: 17px; color: var(--muted); font-size: 10px; font-weight: 750; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #c9cdce; }
.legend-dot.doing { background: var(--amber); }
.legend-dot.done { background: var(--green); }

.gantt { display: grid; grid-template-columns: 170px repeat(6, minmax(125px, 1fr)); margin-top: 26px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gantt-cell { min-height: 88px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gantt-header { min-height: 72px; background: #f7f6f1; }
.gantt-header.current { background: #fff7dc; }
.gantt-header strong { display: block; margin-bottom: 6px; font-size: 12px; }
.gantt-header span { color: var(--muted); font-size: 9px; }
.row-label { display: flex; flex-direction: column; justify-content: center; background: #f7f6f1; }
.row-label strong { font-size: 12px; }
.row-label span { margin-top: 5px; color: var(--muted); font-size: 9px; }
.stage-cell { position: relative; display: flex; flex-direction: column; gap: 8px; cursor: pointer; background: rgba(255,255,255,.68); opacity: .64; transition: background 160ms ease, opacity 160ms ease, box-shadow 160ms ease; }
.stage-cell:hover { background: #faf9f4; }
.stage-cell.current { z-index: 1; background: #fffdf4; opacity: 1; box-shadow: inset 0 0 0 2px var(--amber); }
.stage-cell.done { opacity: .48; }
.stage-cell.selected { opacity: 1; }
.stage-bar { height: 8px; border-radius: 99px; background: #dfe2e2; }
.stage-cell.doing .stage-bar { background: var(--amber); }
.stage-cell.done .stage-bar { background: var(--green); }
.stage-cell.video.done .stage-bar { background: var(--coral); }
.stage-cell strong { font-size: 11px; line-height: 1.35; }
.stage-cell small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.stage-cell .state-label { margin-top: auto; font-size: 9px; font-weight: 900; letter-spacing: .04em; }
.stage-cell.doing .state-label { color: #9a6712; }
.stage-cell.done .state-label { color: var(--green); }

.milestone-detail { grid-column: 2 / -1; padding: 16px 18px; background: var(--navy); color: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.milestone-detail strong { color: var(--mint); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.milestone-detail p { margin: 7px 0 0; font-size: 13px; line-height: 1.5; }
.milestone-detail span { display: block; margin-top: 7px; color: #9eb0b8; font-size: 9px; }

.current-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 20px; }
.now-card, .context-card { padding: 24px 26px; }
.section-head.compact { align-items: center; }
.sprint-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.sprint-item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 12px; background: #f7f6f1; border: 1px solid #e5e3da; border-radius: 11px; }
.sprint-check { display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid #b8c0c2; border-radius: 50%; font-size: 10px; }
.sprint-item.done .sprint-check { color: white; border-color: var(--green); background: var(--green); }
.sprint-item strong { display: block; margin-bottom: 4px; color: var(--blue); font-size: 9px; letter-spacing: .08em; }
.sprint-item.site strong { color: var(--green); }
.sprint-item.shared strong { color: #8a5c13; }
.sprint-item p { margin: 0; font-size: 11px; line-height: 1.45; }
.sprint-item.done p { color: var(--muted); text-decoration: line-through; }

.context-card { color: white; background: var(--coral); border-color: transparent; }
.context-card .eyebrow { color: rgba(255,255,255,.7); }
.context-card p:last-child { margin: 22px 0 0; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.context-card.empty { color: var(--ink); background: var(--card); border-color: var(--line); }
.context-card.empty .eyebrow { color: var(--muted); }
.context-card.empty p:last-child { color: var(--muted); }

.outcomes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.outcome { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 22px 24px; color: white; background: var(--navy); border-radius: var(--radius); }
.outcome > span { font-size: 25px; font-weight: 900; color: var(--coral); }
.outcome.site > span { color: var(--mint); }
.outcome h3 { margin: 2px 0 7px; font-size: 15px; }
.outcome p { margin: 0; color: #c7d2d6; font-size: 11px; line-height: 1.6; }
footer { max-width: 800px; margin: 26px auto 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.6; }

@media (max-width: 1100px) {
  .viewer-shell { width: min(100% - 32px, 980px); }
  .hero-copy { gap: 36px; padding: 38px 32px 44px; }
  .gantt-card { overflow-x: auto; }
  .gantt { min-width: 1060px; }
}

@media (hover: hover) and (pointer: fine) {
  .stage-cell:hover { opacity: 1; }
}

@media (max-width: 760px) {
  .viewer-shell { width: calc(100% - 20px); padding-top: 10px; }
  .top-nav { padding: 17px; }
  .nav-actions .pill { display: none; }
  .hero-copy { grid-template-columns: 1fr; gap: 30px; padding: 32px 20px 36px; }
  .hero h1 { font-size: 52px; }
  .hero-summary { justify-self: start; }
  .current-grid, .outcomes { grid-template-columns: 1fr; }
  .sprint-list { grid-template-columns: 1fr; }
  .gantt-card, .now-card, .context-card { padding-left: 18px; padding-right: 18px; }
  .legend { display: none; }
}
