:root {
  --ink: #17342d;
  --muted: #6c7d75;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #d8ddd4;
  --accent: #db5b3e;
  --mint: #c8e2d5;
  --yellow: #f1cb63;
  --sans: "Manrope", sans-serif;
  --serif: "Newsreader", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; gap: 42px; border-bottom: 1px solid rgba(23, 52, 45, .13); background: rgba(244, 241, 233, .92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .04em; }
.topbar nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; }
.topbar nav a:hover { color: var(--accent); }
.account { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.account form { margin: 0; }
.text-button { color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 700; }

.page-shell, .meeting-page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 390px; padding: 86px 0 70px; display: grid; grid-template-columns: 1.4fr .7fr; gap: 80px; align-items: end; }
.hero h1, .login-card h1 { font: 600 clamp(52px, 6vw, 82px)/.96 var(--serif); letter-spacing: -.04em; margin: 12px 0 0; }
.eyebrow, .section-kicker { margin: 0; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; }
.hero-copy, .lead { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0; }

.new-meeting { background: var(--ink); color: var(--card); padding: 32px 36px; border-radius: 4px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: end; box-shadow: 0 24px 70px rgba(23, 52, 45, .12); }
.new-meeting .section-kicker { color: var(--yellow); }
.new-meeting h2, .section-heading h2, .phase-heading h2 { font: 600 32px/1.1 var(--serif); margin: 7px 0 0; letter-spacing: -.02em; }
.new-meeting form { display: flex; gap: 14px; align-items: end; }
.new-meeting label, .field-grid label, .day-metrics label { display: flex; flex-direction: column; gap: 8px; }
.new-meeting label span, .field-grid label span, .day-metrics label span { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.new-meeting input { height: 46px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); color: white; padding: 0 13px; border-radius: 3px; }
.new-meeting .grow { flex: 1; }
.primary-button { height: 46px; border: 0; border-radius: 3px; background: var(--yellow); color: var(--ink); padding: 0 22px; font-weight: 700; cursor: pointer; }

.meeting-list { padding: 90px 0 120px; }
.day-links { padding-top: 80px; }
.day-links + .meeting-list { padding-top: 72px; }
.day-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.day-link-card { min-height: 112px; padding: 22px; display: grid; grid-template-columns: 66px 1fr 20px; gap: 16px; align-items: center; border: 1px solid var(--line); background: var(--card); transition: .2s ease; }
.day-link-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(23, 52, 45, .07); }
.day-link-card time { font: 600 22px/1 var(--serif); }
.day-link-card time small, .day-link-card div span { display: block; margin-top: 5px; color: var(--muted); font: 500 10px/1.3 var(--sans); }
.day-link-card div strong { font-size: 13px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.meeting-row { min-height: 112px; display: grid; grid-template-columns: 74px 1fr 110px 140px 30px; gap: 24px; align-items: center; border-top: 1px solid var(--line); transition: .2s ease; }
.meeting-row:last-child { border-bottom: 1px solid var(--line); }
.meeting-row:hover { padding: 0 14px; background: var(--card); border-color: var(--card); box-shadow: 0 12px 30px rgba(23, 52, 45, .06); }
.meeting-row time { font: 600 30px/1 var(--serif); }
.meeting-row time small { display: block; margin-top: 4px; font: 500 10px/1 var(--sans); color: var(--muted); }
.meeting-summary h3 { margin: 0 0 7px; font-size: 16px; }
.meeting-summary p { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 590px; }
.energy span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.energy strong { font-size: 14px; }
.score-pair { display: flex; gap: 6px; }
.score { padding: 6px 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.score.yes { background: var(--mint); }
.score.no { background: #f2d0c8; }
.row-arrow { font-size: 20px; color: var(--accent); }

.meeting-topline { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.back-link { font-size: 12px; font-weight: 700; }
.save-status { color: var(--muted); font-size: 11px; margin: 0; }
.save-status[data-tone="error"] { color: #a62920; }
.save-status[data-tone="saved"] { color: #2a7059; }
.meeting-header { padding: 30px 0 54px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.title-input { display: block; width: min(720px, 65vw); border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--ink); font: 600 clamp(42px, 5vw, 68px)/1 var(--serif); letter-spacing: -.04em; padding: 4px 0; }
.title-input:focus { outline: 0; border-color: var(--accent); }
.date-input { margin-top: 18px; border: 0; background: transparent; color: var(--muted); }
.scoreboard { display: flex; border: 1px solid var(--line); background: var(--card); }
.scoreboard div { min-width: 82px; padding: 14px; border-right: 1px solid var(--line); }
.scoreboard div:last-child { border-right: 0; }
.scoreboard strong, .scoreboard span { display: block; }
.scoreboard strong { font: 600 26px/1 var(--serif); }
.scoreboard span { margin-top: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.phase-nav { position: sticky; top: 72px; z-index: 10; display: flex; gap: 6px; padding: 10px 0; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phase-nav a { padding: 7px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.phase-nav a:hover { background: var(--ink); color: white; }

.phase-section { padding: 92px 0; display: grid; grid-template-columns: 60px 280px 1fr; gap: 34px; border-bottom: 1px solid var(--line); scroll-margin-top: 125px; }
.phase-number { font: 500 20px/1 var(--serif); color: var(--accent); }
.phase-heading h2 { font-size: 38px; }
.phase-heading > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.7; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-content: start; }
.field-grid .wide { grid-column: 1 / -1; }
.field-grid input, .field-grid select, .field-grid textarea, .day-metrics input { width: 100%; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); padding: 13px; }
.field-grid textarea { resize: vertical; line-height: 1.55; }
.field-grid small { color: var(--muted); font-size: 10px; line-height: 1.5; }

.flow-section { grid-template-rows: auto auto auto; }
.flow-list, .question-list, .flow-outcome { grid-column: 3; }
.flow-step { min-height: 116px; display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-bottom: 0; transition: .2s; }
.flow-step:last-child { border-bottom: 1px solid var(--line); }
.flow-step.unreached { opacity: .38; background: transparent; }
.flow-step.current { opacity: 1; border-color: rgba(219, 91, 62, .55); background: #fff9ef; box-shadow: 0 12px 34px rgba(23, 52, 45, .07); }
.flow-index { color: var(--muted); font-size: 10px; font-weight: 700; }
.flow-question h3 { margin: 0; font-size: 15px; }
.flow-hint { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; max-width: 560px; }
.binary-buttons, .answer-buttons { display: flex; gap: 6px; }
.binary-buttons button, .answer-buttons button { min-width: 48px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 20px; font-size: 10px; font-weight: 700; cursor: pointer; }
.binary-buttons button.selected, .answer-buttons button.selected { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.binary-buttons button.selected.yes, .answer-buttons button.selected.yes { background: var(--mint); border-color: var(--mint); }
.binary-buttons button.selected.no, .answer-buttons button.selected.no { background: #f2d0c8; border-color: #f2d0c8; }
.flow-outcome { margin: 18px 0 42px; padding: 22px 25px; background: var(--ink); color: white; display: flex; flex-direction: column; gap: 5px; }
.flow-outcome.empty { background: #e3e5de; color: var(--ink); }
.flow-outcome span { color: var(--yellow); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.flow-outcome strong { font: 500 20px/1.2 var(--serif); }
.question-list { border-top: 1px solid var(--line); }
.answer-row { min-height: 92px; padding: 18px 0; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.answer-row p { margin: 0; font-size: 12px; line-height: 1.55; max-width: 590px; }
.compact-questions { margin-top: 10px; }

.pause-banner { margin: 20px 0; padding: 30px 38px; background: var(--yellow); display: grid; grid-template-columns: 100px 1fr; align-items: center; }
.pause-banner span { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }
.pause-banner p { margin: 0; font: 500 21px/1.35 var(--serif); max-width: 820px; }
.after-fields { grid-column: 3; margin-top: 36px; }
.day-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.day-metrics label { padding: 20px; background: var(--card); border: 1px solid var(--line); }
.day-metrics input { font: 600 28px/1 var(--serif); }
.day-review-link { grid-column: 1 / -1; min-height: 86px; padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; background: var(--ink); color: white; }
.day-review-link span { color: var(--yellow); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.day-review-link strong { margin-top: 6px; font: 500 20px/1.25 var(--serif); }

.day-page { padding-bottom: 110px; }
.day-page .meeting-topline > span { color: var(--muted); font-size: 11px; }
.day-header { min-height: 300px; padding: 52px 0 64px; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; border-bottom: 1px solid var(--line); }
.day-header h1 { margin: 10px 0 16px; font: 600 clamp(58px, 7vw, 88px)/.95 var(--serif); letter-spacing: -.04em; }
.day-header p:last-child { max-width: 580px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.day-summary { display: flex; background: var(--card); border: 1px solid var(--line); }
.day-summary div { min-width: 150px; padding: 20px; border-right: 1px solid var(--line); }
.day-summary div:last-child { border-right: 0; }
.day-summary strong, .day-summary span { display: block; }
.day-summary strong { font: 600 26px/1 var(--serif); }
.day-summary span { margin-top: 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.daily-meetings { padding: 60px 0 20px; }
.daily-meeting { margin-bottom: 22px; border: 1px solid var(--line); background: var(--card); }
.daily-meeting > header { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.daily-meeting > header > div:first-child { display: flex; align-items: center; gap: 18px; }
.daily-index { color: var(--accent); font: 500 18px/1 var(--serif); }
.daily-meeting h2 { margin: 0; font: 600 26px/1.1 var(--serif); }
.daily-meeting h2 a:hover { color: var(--accent); }
.daily-meeting header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.daily-energy { text-align: right; }
.daily-energy span, .daily-note > span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.daily-energy strong { font: 600 22px/1 var(--serif); }
.daily-after-grid { display: grid; grid-template-columns: 1fr 1fr; }
.daily-after-grid > div { min-height: 82px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.daily-after-grid > div:nth-child(even) { border-right: 0; }
.daily-after-grid > div:last-child { grid-column: 1 / -1; border-right: 0; }
.daily-after-grid span { max-width: 82%; font-size: 11px; line-height: 1.45; }
.daily-answer { min-width: 46px; padding: 6px 9px; border-radius: 20px; background: #e7e7e0; text-align: center; font-size: 10px; }
.daily-answer.yes { background: var(--mint); }
.daily-answer.no { background: #f2d0c8; }
.daily-note { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.daily-note p { margin: 9px 0 0; font: 500 18px/1.45 var(--serif); }
.daily-counts { display: grid; grid-template-columns: repeat(4, 1fr); }
.daily-counts > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.daily-counts > div:last-child { border-right: 0; }
.daily-counts strong, .daily-counts span { display: block; }
.daily-counts strong { font: 600 24px/1 var(--serif); }
.daily-counts span { margin-top: 6px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.day-total { margin-top: 30px; padding: 36px; display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: center; background: var(--ink); color: white; }
.day-total h2 { margin: 7px 0 0; font: 600 32px/1 var(--serif); }
.day-total .daily-counts { border: 1px solid rgba(255, 255, 255, .18); }
.day-total .daily-counts > div { border-color: rgba(255, 255, 255, .18); }
.day-total .daily-counts span { color: rgba(255, 255, 255, .62); }

.compact-hero { min-height: 320px; }
.shift-table { padding-bottom: 70px; }
.shift-head, .shift-table article { display: grid; grid-template-columns: 1fr 1fr; }
.shift-head { padding: 12px 24px; background: var(--ink); color: white; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.shift-table article { border-bottom: 1px solid var(--line); }
.shift-table article p { margin: 0; padding: 26px 24px; font-size: 14px; line-height: 1.55; }
.shift-table article p:first-child { color: var(--muted); }
.shift-table article p:last-child { background: rgba(200, 226, 213, .35); font-weight: 600; }
.principles { padding: 0 0 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.principles > div { min-height: 260px; padding: 34px; background: var(--card); }
.principles blockquote { margin: 24px 0 0; font: 500 24px/1.35 var(--serif); }

.login-shell { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.4fr .6fr; }
.login-card { padding: clamp(50px, 9vw, 130px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.login-card h1 { font-size: clamp(56px, 7vw, 92px); }
.login-card .lead { max-width: 570px; margin: 28px 0 34px; }
.login-principle { padding: 60px; background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.login-principle span { color: var(--yellow); font-size: 12px; }
.login-principle p { font: 500 30px/1.25 var(--serif); }
.notice { padding: 16px 20px; background: #f2d0c8; font-size: 12px; }

@media (max-width: 900px) {
  .account span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; min-height: auto; }
  .new-meeting { grid-template-columns: 1fr; }
  .meeting-row { grid-template-columns: 60px 1fr 120px 20px; }
  .meeting-row .energy { display: none; }
  .phase-section { grid-template-columns: 44px 1fr; }
  .phase-heading { grid-column: 2; }
  .phase-section > :not(.phase-number):not(.phase-heading) { grid-column: 2; }
  .meeting-header { align-items: start; flex-direction: column; }
  .title-input { width: 90vw; }
  .day-link-grid { grid-template-columns: 1fr 1fr; }
  .day-header { grid-template-columns: 1fr; gap: 26px; }
  .day-summary { width: fit-content; }
  .day-total { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-principle { display: none; }
}

@media (max-width: 620px) {
  .page-shell, .meeting-page { width: min(100% - 28px, 1180px); }
  .topbar { padding: 0 14px; gap: 20px; }
  .topbar nav { gap: 12px; }
  .hero { padding: 58px 0; }
  .hero h1 { font-size: 48px; }
  .new-meeting { margin: 0 -14px; padding: 26px 20px; }
  .new-meeting form { flex-direction: column; align-items: stretch; }
  .meeting-row { grid-template-columns: 52px 1fr 20px; gap: 12px; }
  .meeting-row .score-pair { display: none; }
  .meeting-summary p { max-width: 220px; }
  .day-link-grid { grid-template-columns: 1fr; }
  .meeting-header { padding-top: 10px; }
  .title-input { font-size: 44px; }
  .scoreboard { width: 100%; }
  .scoreboard div { flex: 1; min-width: auto; }
  .phase-nav { overflow-x: auto; }
  .phase-section { padding: 64px 0; grid-template-columns: 1fr; gap: 20px; }
  .phase-number, .phase-heading, .phase-section > :not(.phase-number):not(.phase-heading) { grid-column: 1; }
  .field-grid, .day-metrics { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 28px 1fr; }
  .flow-step .binary-buttons { grid-column: 2; }
  .answer-row { grid-template-columns: 1fr; }
  .answer-buttons { flex-wrap: wrap; }
  .pause-banner { margin: 16px -14px; padding: 26px 20px; grid-template-columns: 1fr; gap: 14px; }
  .principles { grid-template-columns: 1fr; }
  .day-header { padding-top: 32px; }
  .day-header h1 { font-size: 52px; }
  .day-summary { width: 100%; }
  .day-summary div { flex: 1; min-width: 0; }
  .daily-meeting > header { align-items: start; }
  .daily-after-grid { grid-template-columns: 1fr; }
  .daily-after-grid > div, .daily-after-grid > div:nth-child(even) { grid-column: 1; border-right: 0; }
  .daily-counts { grid-template-columns: 1fr 1fr; }
  .daily-counts > div:nth-child(2) { border-right: 0; }
  .daily-counts > div { border-bottom: 1px solid var(--line); }
  .day-total { margin-left: -14px; margin-right: -14px; padding: 28px 20px; }
  .shift-table article p { padding: 18px 12px; font-size: 12px; }
  .login-card { padding: 50px 24px; }
}
