:root {
  --canvas: #f5f1f0;
  --surface: #fff;
  --ink: #101820;
  --muted: #667078;
  --powder: #a9d8f6;
  --blush: #f2dce7;
  --lilac: #ded8f5;
  --butter: #fff99a;
  --coral: #f01835;
  --mint: #cdefe2;
  --hairline: #e7e3e2;
  --radius-card: 34px;
  --radius-inner: 22px;
  --shadow: 0 14px 34px rgba(16, 24, 32, .045);
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: var(--surface);
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-150%);
  transition: transform var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.app-header {
  color: var(--ink);
  background: var(--canvas);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1220px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; color: var(--ink); background: var(--powder); border-radius: 14px; place-items: center; }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: .77rem; letter-spacing: .08em; }
.brand-copy span { color: var(--muted); font-size: .69rem; letter-spacing: .06em; }
.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 15px;
  color: var(--surface);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.status-pip { width: 8px; height: 8px; background: var(--mint); border-radius: 50%; }

.app-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 72px;
}
.briefing-panel { min-width: 0; }
.briefing-card {
  position: sticky;
  top: 24px;
  z-index: 2;
  padding: clamp(26px, 3vw, 34px);
  color: var(--ink);
  background: var(--powder);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}
.briefing-card .eyebrow { color: rgba(16, 24, 32, .68); }
.briefing-card h1 { max-width: 240px; margin: 12px 0 5px; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.065em; line-height: 1; }
.briefing-subtitle { margin: 0; color: rgba(16, 24, 32, .7); font-size: .95rem; }
.briefing-divider { height: 1px; margin: 28px 0 5px; background: rgba(16, 24, 32, .15); }
.mission-summary { margin: 0; }
.mission-summary > div { display: grid; gap: 3px; padding: 13px 0; border-bottom: 1px solid rgba(16, 24, 32, .15); }
.mission-summary > div:last-child { border-bottom: 0; }
.mission-summary dt { color: rgba(16, 24, 32, .62); font-size: .77rem; }
.mission-summary dd { overflow-wrap: anywhere; margin: 0; font-size: .96rem; font-weight: 600; }
.flight-progress { margin-top: 28px; padding: 0 8px; }
.progress-heading { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.progress-heading strong { display: block; margin-top: 5px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.progress-percent { color: var(--ink); font-size: .8rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.progress-track { height: 8px; margin: 14px 0 20px; overflow: hidden; background: rgba(16, 24, 32, .12); border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--ink); border-radius: inherit; transition: width 180ms ease-out; }
.flight-rail { position: relative; display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; }
.flight-rail::before { position: absolute; top: 15px; bottom: 15px; left: 9px; width: 2px; content: ""; background: rgba(16, 24, 32, .18); }
.rail-step { position: relative; z-index: 1; min-height: 46px; }
.rail-step a { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 2px 0; color: rgba(16, 24, 32, .72); text-decoration: none; font-size: .84rem; }
.rail-marker { display: grid; flex: 0 0 20px; width: 20px; height: 20px; place-items: center; color: var(--ink); background: var(--powder); border: 2px solid var(--ink); border-radius: 50%; font-size: .65rem; font-weight: 700; }
.rail-step.is-current a { color: var(--ink); font-weight: 700; }
.rail-step.is-current .rail-marker { background: var(--butter); }
.rail-step.is-complete a { color: var(--ink); }
.rail-step.is-complete .rail-marker { color: var(--ink); background: var(--mint); border-color: var(--ink); font-size: 0; }
.rail-step.is-complete .rail-marker::before { content: "✓"; font-size: .72rem; }
.rail-step a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 7px; }

.checklist-area { min-width: 0; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin: 0 0 34px; }
.accent-eyebrow { color: var(--ink); }
.page-intro h2 { max-width: 680px; margin: 9px 0 12px; font-size: clamp(2.4rem, 6vw, 4.75rem); font-weight: 450; letter-spacing: -.075em; line-height: 1; text-wrap: balance; }
.page-intro p { max-width: 680px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.intro-stamp { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; min-width: 150px; padding: 10px 0; }
.stamp-line { color: var(--muted); font-size: .77rem; }
.intro-stamp strong { color: var(--ink); font-size: .75rem; font-weight: 700; }
.mission-card, .check-section, .decision-card { background: var(--surface); border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow); }
.mission-card, .check-section { scroll-margin-top: 22px; padding: clamp(24px, 3.2vw, 36px); }
.mission-card { margin-bottom: 20px; }
.section-kicker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.section-index { display: inline; width: auto; height: auto; color: var(--muted); background: transparent; border-radius: 0; font-size: .78rem; font-weight: 700; }
.section-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin: 18px 0 23px; }
.section-heading-row h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.section-description { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.section-state { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; color: var(--muted); background: var(--canvas); border-radius: 999px; font-size: .76rem; white-space: nowrap; }
.section-state.is-complete { color: var(--ink); background: var(--mint); }
.state-symbol { font-size: .95rem; font-weight: 800; }
.mission-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; }
.field > span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.field input { width: 100%; min-height: 52px; padding: 11px 15px; color: var(--ink); background: #fcfbfb; border: 1px solid var(--hairline); border-radius: 18px; outline: 0; transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease); }
.field input::placeholder { color: #9ba2a5; }
.field input:focus { background: var(--surface); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 24, 32, .12); }
.field-date, .field-time, .field-location { grid-column: span 2; }
.check-sections { display: grid; gap: 20px; }
.checkpoint-list { display: grid; gap: 10px; }
.checkpoint { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; min-width: 0; margin: 0; padding: 17px 17px 17px 20px; background: #fcfbfb; border: 1px solid transparent; border-radius: var(--radius-inner); transition: background-color var(--ease), border-color var(--ease), transform var(--ease); }
.checkpoint legend { float: left; width: 100%; max-width: 100%; margin: 0; padding: 0; color: var(--ink); font-size: .98rem; font-weight: 600; line-height: 1.4; }
.checkpoint legend + .answer-group { clear: both; }
.answer-group { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; background: var(--canvas); border-radius: 999px; }
.answer { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 13px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 999px; font-size: .8rem; font-weight: 650; cursor: pointer; user-select: none; transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform 120ms ease; }
.answer:active, .reset-button:active { transform: scale(.96); }
.answer input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer-icon { display: grid; width: 18px; height: 18px; place-items: center; color: currentColor; border: 1px solid currentColor; border-radius: 50%; }
.answer-icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.answer:has(input:focus-visible) { outline: 3px solid rgba(16, 24, 32, .2); outline-offset: 2px; }
.answer:has(input:checked) { color: var(--ink); background: var(--surface); border-color: var(--ink); }
.answer-yes:has(input:checked) { color: #17654d; background: var(--mint); border-color: transparent; }
.answer-no:has(input:checked) { color: #a9142b; background: var(--blush); border-color: transparent; }
.checkpoint-status { display: inline-flex; align-items: center; justify-content: end; min-width: 112px; color: var(--muted); font-size: .77rem; font-weight: 650; text-align: right; }
.checkpoint-status .status-symbol { display: inline-grid; width: 19px; height: 19px; margin-right: 6px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .76rem; }
.checkpoint.is-yes { background: #f8fdfb; border-color: rgba(205, 239, 226, .9); }
.checkpoint.is-yes .checkpoint-status { color: #17654d; }
.checkpoint.is-no { background: #fff9fb; border-color: rgba(242, 220, 231, .95); }
.checkpoint.is-no .checkpoint-status { color: #a9142b; }

.decision-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 20px; padding: 24px 27px; border-radius: 32px; transition: background-color var(--ease), color var(--ease), box-shadow var(--ease); }
.decision-pending { color: var(--surface); background: var(--ink); }
.decision-icon { display: grid; width: 48px; height: 48px; place-items: center; color: currentColor; background: rgba(255, 255, 255, .11); border-radius: 17px; }
.decision-icon svg { width: 28px; height: 28px; }
.decision-copy h3 { margin: 3px 0 3px; font-size: 1.2rem; letter-spacing: -.035em; line-height: 1.15; }
.decision-copy p { margin: 0; color: inherit; opacity: .72; font-size: .86rem; }
.decision-pending .eyebrow { color: rgba(255, 255, 255, .65); }
.decision-badge { padding: 10px 15px; color: var(--surface); background: rgba(255, 255, 255, .12); border-radius: 999px; font-size: .74rem; font-weight: 750; letter-spacing: .02em; }
.decision-go { color: var(--ink); background: var(--mint); }
.decision-go .eyebrow { color: rgba(16, 24, 32, .62); }
.decision-go .decision-icon { background: rgba(255, 255, 255, .5); }
.decision-go .decision-badge { color: var(--ink); background: var(--surface); }
.decision-nogo { color: var(--ink); background: var(--blush); }
.decision-nogo .eyebrow { color: rgba(16, 24, 32, .62); }
.decision-nogo .decision-icon { color: var(--coral); background: rgba(255, 255, 255, .5); }
.decision-nogo .decision-badge { color: var(--surface); background: var(--coral); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 3px 0; }
.save-note { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: .78rem; }
.save-icon { display: grid; width: 19px; height: 19px; place-items: center; color: #17654d; }
.save-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px 17px; color: var(--surface); background: var(--ink); border: 0; border-radius: 999px; font-size: .8rem; font-weight: 650; transition: background-color var(--ease), color var(--ease), transform 120ms ease; }
.reset-button:hover { color: var(--ink); background: var(--powder); }
.reset-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.reset-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.app-footer { display: flex; justify-content: space-between; width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 28px; color: var(--muted); font-size: .72rem; }
[hidden] { display: none !important; }

.overview { width: min(1220px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 72px; }
.overview-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.overview-head h1 { margin: 7px 0 7px; font-size: clamp(2.8rem, 6vw, 4.75rem); font-weight: 450; letter-spacing: -.075em; line-height: 1; }
.overview-head p { margin: 0; color: var(--muted); font-size: 1rem; }
.overview-feedback, .mission-feedback { min-height: 24px; color: #17654d; font-size: .8rem; font-weight: 650; }
.new-mission-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; width: 100%; min-height: 192px; padding: 28px 34px; color: var(--ink); text-align: left; background: var(--powder); border: 0; border-radius: var(--radius-card); box-shadow: var(--shadow); transition: transform 150ms ease, box-shadow var(--ease); }
.new-mission-card:hover { box-shadow: 0 18px 38px rgba(16, 24, 32, .08); }
.new-mission-card:active { transform: scale(.96); }
.new-mission-card:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.new-mission-icon { display: grid; width: 66px; height: 66px; place-items: center; background: rgba(255, 255, 255, .48); border-radius: 22px; }
.new-mission-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }
.new-mission-copy { display: grid; gap: 4px; }
.new-mission-copy strong { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 550; letter-spacing: -.055em; }
.new-mission-copy span { color: rgba(16, 24, 32, .68); font-size: .96rem; }
.new-mission-arrow { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.overview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 45px 0 20px; }
.overview-toolbar h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 600; letter-spacing: -.045em; }
.mission-filters { display: flex; gap: 5px; padding: 4px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); }
.filter-button { min-height: 44px; padding: 8px 16px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; font-size: .8rem; font-weight: 650; transition: background-color var(--ease), color var(--ease), transform 120ms ease; }
.filter-button:hover { color: var(--ink); }
.filter-button:active { transform: scale(.96); }
.filter-button.is-active { color: var(--surface); background: var(--ink); }
.filter-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.overview .mission-card { position: relative; min-width: 0; margin: 0; padding: 0; overflow: hidden; background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); }
.mission-open { display: grid; gap: 8px; width: 100%; min-height: 205px; padding: 25px 54px 24px 25px; color: var(--ink); text-align: left; background: transparent; border: 0; }
.mission-open:hover { background: #fcfbfb; }
.mission-open:focus-visible { outline: 3px solid var(--ink); outline-offset: -4px; }
.mission-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.mission-card-label { overflow: hidden; font-size: 1.2rem; font-weight: 650; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.mission-open > strong { color: var(--muted); font-size: .9rem; font-weight: 500; }
.mission-people { overflow: hidden; color: var(--muted); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.mission-status { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 32px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.status-open { color: var(--ink); background: var(--butter); }
.status-go { color: #17654d; background: var(--mint); }
.status-nogo { color: #a9142b; background: var(--blush); }
.mission-progress { display: flex; align-items: center; gap: 10px; margin-top: auto; color: var(--muted); font-size: .75rem; }
.mission-progress-track { display: block; flex: 1; height: 7px; overflow: hidden; background: var(--canvas); border-radius: 999px; }
.mission-progress-track > span { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.mission-delete { position: absolute; top: 17px; right: 16px; display: grid; width: 44px; height: 44px; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 50%; transition: color var(--ease), background-color var(--ease), transform 120ms ease; }
.mission-delete:hover { color: var(--coral); background: var(--blush); }
.mission-delete:active { transform: scale(.96); }
.mission-delete:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.mission-delete svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.empty-state { display: grid; justify-items: center; max-width: 520px; margin: 18px auto 0; padding: 48px 24px; text-align: center; background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.empty-state-icon { display: grid; width: 58px; height: 58px; margin-bottom: 14px; place-items: center; color: var(--ink); background: var(--lilac); border-radius: 19px; }
.empty-state-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.empty-state h2 { margin: 0 0 5px; font-size: 1.5rem; letter-spacing: -.04em; }
.empty-state p { max-width: 360px; margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.dark-pill { min-height: 48px; padding: 10px 18px; color: var(--surface); background: var(--ink); border: 0; border-radius: 999px; font-size: .8rem; font-weight: 650; transition: transform 120ms ease, background-color var(--ease); }
.dark-pill:hover { color: var(--ink); background: var(--powder); }
.dark-pill:active { transform: scale(.96); }
.dark-pill:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.checklist-topbar { display: flex; align-items: center; gap: 17px; min-height: 48px; margin-bottom: 25px; }
.detail-title { display: none; max-width: min(36vw, 300px); overflow: hidden; font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.overflow-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; color: var(--ink); background: var(--surface); border: 0; border-radius: 50%; transition: background-color var(--ease), color var(--ease), transform 120ms ease; }
.overflow-button:hover { background: var(--powder); }
.overflow-button:active { transform: scale(.96); }
.overflow-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.overflow-button svg { width: 20px; height: 20px; fill: currentColor; }
.back-button, .delete-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 13px; color: var(--ink); background: transparent; border: 0; border-radius: 999px; font-size: .8rem; font-weight: 650; transition: background-color var(--ease), color var(--ease), transform 120ms ease; }
.back-button:hover { background: var(--surface); }
.delete-button { margin-left: auto; color: var(--muted); }
.delete-button:hover { color: var(--coral); background: var(--blush); }
.back-button:active, .delete-button:active { transform: scale(.96); }
.back-button:focus-visible, .delete-button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.back-button svg, .delete-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.overview-bottom-bar, .detail-bottom-bar { display: none; }
.action-sheet { width: min(440px, calc(100% - 32px)); padding: 25px; color: var(--ink); background: var(--surface); border: 0; border-radius: 28px; box-shadow: 0 22px 70px rgba(16, 24, 32, .22); }
.action-sheet::backdrop { background: rgba(16, 24, 32, .28); }
.sheet-handle { display: none; width: 42px; height: 4px; margin: -8px auto 18px; background: var(--hairline); border-radius: 99px; }
.sheet-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.sheet-heading h2 { margin: 5px 0 0; font-size: 1.5rem; letter-spacing: -.045em; }
.sheet-close { display: grid; width: 44px; height: 44px; place-items: center; color: var(--muted); background: var(--canvas); border: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.sheet-close:focus-visible, .sheet-cancel:focus-visible, .sheet-action:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sheet-actions { display: grid; gap: 8px; }
.sheet-action { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 68px; padding: 12px 14px; color: var(--ink); text-align: left; background: var(--canvas); border: 0; border-radius: 18px; transition: background-color var(--ease), color var(--ease), transform 120ms ease; }
.sheet-action:hover { background: var(--powder); }
.sheet-action:active { transform: scale(.96); }
.sheet-action svg { flex: 0 0 auto; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.sheet-action span { display: grid; gap: 1px; }
.sheet-action strong { font-size: .88rem; }
.sheet-action small { color: var(--muted); font-size: .75rem; }
.sheet-action.sheet-danger { color: var(--coral); background: var(--blush); }
.sheet-action.sheet-danger small { color: #a9142b; }
.sheet-cancel { width: 100%; min-height: 48px; margin-top: 12px; color: var(--muted); background: transparent; border: 0; border-radius: 999px; font-size: .84rem; font-weight: 650; }
.sheet-cancel:hover { color: var(--ink); background: var(--canvas); }

@media (max-width: 1040px) {
  .app-shell { gap: 30px; }
  .mission-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-date, .field-time, .field-location { grid-column: auto; }
  .checkpoint { grid-template-columns: 1fr; gap: 10px; }
  .checkpoint-status { justify-content: start; text-align: left; }
}
@media (max-width: 760px) {
  .header-inner { width: calc(100% - 32px); min-height: 68px; padding: 12px 0; }
  .brand-mark { width: 38px; height: 38px; border-radius: 13px; }
  .brand-mark svg { width: 25px; height: 25px; }
  .brand-copy strong { font-size: .7rem; }
  .brand-copy span { font-size: .63rem; }
  .offline-badge { min-height: 40px; padding: 7px 12px; font-size: .7rem; }
  .is-checklist-view .app-header { display: none; }
  .overview { width: 100%; padding: 28px 16px calc(126px + env(safe-area-inset-bottom)); }
  .overview-head { display: block; margin-bottom: 23px; }
  .overview-head h1 { font-size: 3.45rem; }
  .overview-feedback { margin-top: 10px; }
  .new-mission-card { min-height: 166px; padding: 23px 20px; gap: 13px; border-radius: 28px; }
  .new-mission-icon { width: 52px; height: 52px; border-radius: 17px; }
  .new-mission-icon svg { width: 28px; height: 28px; }
  .new-mission-copy strong { font-size: 1.55rem; }
  .new-mission-copy span { font-size: .82rem; line-height: 1.35; }
  .new-mission-arrow { width: 22px; height: 22px; }
  .overview-toolbar { display: block; margin: 34px 0 17px; }
  .mission-filters { width: 100%; margin-top: 14px; }
  .filter-button { flex: 1; padding-inline: 8px; }
  .mission-grid { grid-template-columns: 1fr; gap: 13px; }
  .mission-open { min-height: 190px; padding: 22px 52px 21px 20px; }
  .mission-card-label { font-size: 1.08rem; }
  .mission-status { font-size: .7rem; }
  .empty-state { padding: 38px 20px; border-radius: 28px; }
  .app-shell { display: block; width: 100%; padding: 16px 16px calc(150px + env(safe-area-inset-bottom)); }
  .briefing-card { position: static; padding: 26px 22px; border-radius: 28px; }
  .briefing-card h1 { max-width: none; font-size: 2.55rem; }
  .flight-progress { display: none; }
  .flight-rail { display: none; }
  .checklist-area { padding-top: 36px; }
  .page-intro .accent-eyebrow { display: none; }
  .checklist-topbar { gap: 6px; margin-bottom: 25px; }
  .checklist-topbar .back-button { flex: 0 0 auto; padding-inline: 7px; }
  .detail-title { display: block; flex: 1 1 auto; }
  .mission-feedback { display: none; }
  .checklist-area .checkpoint { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 17px 0; background: transparent !important; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; }
  .checklist-area .checkpoint:last-child { border-bottom: 0; }
  .checklist-area .checkpoint.is-yes, .checklist-area .checkpoint.is-no { border-color: var(--hairline); }
  .checklist-area .checkpoint-status { justify-content: start; text-align: left; }
  .checklist-area .checkpoint-list { gap: 0; }
  .page-intro { display: block; margin-bottom: 26px; }
  .page-intro h2 { font-size: clamp(2.5rem, 12vw, 3.45rem); }
  .page-intro p { font-size: .95rem; }
  .intro-stamp { margin-top: 18px; }
  .mission-card, .check-section { padding: 24px 17px; border-radius: 28px; }
  .section-heading-row { display: block; margin: 16px 0 20px; }
  .section-state { margin-top: 11px; }
  .mission-fields { grid-template-columns: 1fr 1fr; gap: 12px; }
  .field-location { grid-column: span 2; }
  .checkpoint { padding: 16px 13px; border-radius: 20px; }
  .answer-group { width: max-content; max-width: 100%; }
  .answer { flex: 1 1 auto; padding-inline: 11px; }
  .decision-card { grid-template-columns: auto 1fr; gap: 13px; padding: 20px; border-radius: 28px; }
  .decision-icon { width: 43px; height: 43px; }
  .decision-copy h3 { font-size: 1.08rem; }
  .decision-copy p { font-size: .81rem; }
  .decision-badge { grid-column: 1 / -1; text-align: center; }
  .form-actions { align-items: stretch; flex-direction: column; padding-top: 21px; }
  .app-footer { display: block; width: calc(100% - 32px); padding-bottom: 24px; }
  .app-footer span { display: block; margin-top: 6px; }
  .overview-bottom-bar { position: fixed; right: 16px; bottom: max(13px, env(safe-area-inset-bottom)); left: 16px; z-index: 10; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: var(--ink); border-radius: 999px; box-shadow: 0 12px 28px rgba(16, 24, 32, .2); }
  .bottom-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; color: rgba(255, 255, 255, .68); background: transparent; border: 0; border-radius: 999px; font-size: .8rem; font-weight: 650; transition: background-color var(--ease), color var(--ease), transform 120ms ease; }
  .bottom-action.is-active { color: var(--ink); background: var(--surface); }
  .bottom-action:hover { color: var(--surface); background: rgba(255, 255, 255, .12); }
  .bottom-action.is-active:hover { color: var(--ink); background: var(--surface); }
  .bottom-action:active { transform: scale(.96); }
  .bottom-action:focus-visible { outline: 3px solid var(--surface); outline-offset: 2px; }
  .bottom-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
  .detail-bottom-bar { position: fixed; right: 16px; bottom: max(13px, env(safe-area-inset-bottom)); left: 16px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 9px 10px 9px 17px; color: var(--surface); background: var(--ink); border-radius: 999px; box-shadow: 0 12px 28px rgba(16, 24, 32, .2); }
  .detail-bottom-summary { display: grid; gap: 1px; min-width: 0; }
  .detail-bottom-summary strong { font-size: .86rem; font-variant-numeric: tabular-nums; }
  .detail-bottom-summary span { overflow: hidden; color: rgba(255, 255, 255, .72); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .detail-next { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 10px 14px; color: var(--ink); background: var(--butter); border: 0; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; transition: transform 120ms ease, background-color var(--ease); }
  .detail-next:hover { background: var(--powder); }
  .detail-next:active { transform: scale(.96); }
  .detail-next:focus-visible { outline: 3px solid var(--surface); outline-offset: 2px; }
  .detail-next svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
  .action-sheet { position: fixed; right: 0; bottom: 0; left: 0; width: 100%; max-width: none; margin: 0; padding: 13px 17px calc(17px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; }
  .sheet-handle { display: block; }
}
@media (max-width: 400px) {
  .offline-badge { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; gap: 0; overflow: visible; font-size: 0; }
  .mission-fields { display: block; }
  .field { margin-bottom: 12px; }
  .field:last-child { margin-bottom: 0; }
  .answer { padding-inline: 8px; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
