:root {
  --navy: #06192c;
  --navy-2: #0b2239;
  --cream: #faf7f0;
  --paper: #f2ecdf;
  --red: #ef3f37;
  --ink: #111820;
  --muted: #687078;
  --line: rgba(17, 24, 32, 0.14);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; background: var(--navy); }
body { min-height: 100dvh; margin: 0; overflow: hidden; color: var(--ink); background: var(--navy); font-family: var(--body); }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, textarea:focus-visible { outline: 3px solid rgba(239,63,55,.42); outline-offset: 2px; }
img { display: block; max-width: 100%; }
svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { width: 100%; height: 100dvh; overflow: hidden; background: var(--cream); }
.app-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: calc(72px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; color: white; border-bottom: 1px solid rgba(255,255,255,.13); background: var(--navy); }
.brand-button { display: grid; gap: 2px; padding: 0; color: white; background: transparent; text-decoration: none; }
.brand-button img { width: 184px; max-width: 48vw; }
.brand-button > span { color: rgba(255,255,255,.62); font-size: .48rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.location { display: grid; justify-items: end; gap: 3px; }
.location span { color: rgba(255,255,255,.55); font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.location button { padding: 0; color: white; background: transparent; font-size: .72rem; font-weight: 700; }
.location b { color: var(--red); }

.screen-stack { position: relative; height: calc(100dvh - 72px - env(safe-area-inset-top) - 76px - env(safe-area-inset-bottom)); background: var(--cream); }
.screen { position: absolute; inset: 0; visibility: hidden; overflow: hidden; opacity: 0; transform: translateX(18px); transition: opacity 180ms ease, transform 260ms cubic-bezier(.22,1,.36,1), visibility 260ms; }
.screen.is-active { visibility: visible; opacity: 1; transform: translateX(0); }
.screen.is-leaving { visibility: visible; opacity: 0; transform: translateX(-15px); }
.screen-scroll { height: 100%; padding: 25px 16px 34px; overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.screen-scroll::-webkit-scrollbar { display: none; }

.eyebrow, .section-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--navy); font-size: .61rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { justify-content: flex-start; gap: 8px; }
.eyebrow > span { width: 21px; height: 4px; background: var(--red); }
.section-topline p { margin: 0; }
.section-topline > span { color: var(--muted); letter-spacing: .05em; }
h1, h2 { margin: 0; color: var(--navy); font-family: var(--display); font-size: clamp(3.6rem, 17vw, 5rem); font-weight: 900; letter-spacing: .012em; line-height: .78; text-transform: uppercase; text-wrap: balance; }
h1 em, h2 em { color: var(--red); font-style: normal; }
.lede { max-width: 32rem; margin: 18px 0 23px; color: #4e5860; font-size: .88rem; line-height: 1.55; text-wrap: pretty; }

.shift-hero { position: relative; width: 100%; aspect-ratio: 1.48; padding: 0; overflow: hidden; color: white; background: var(--navy); text-align: left; }
.shift-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.shift-hero:active img { transform: scale(1.025); }
.shift-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,25,44,.06), rgba(6,25,44,.96)); }
.shift-hero__content { position: absolute; inset: auto 18px 16px; display: grid; gap: 4px; }
.shift-hero__content small { font-size: .58rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.shift-hero__content strong { font-family: var(--display); font-size: 1.65rem; line-height: 1; text-transform: uppercase; }
.shift-hero__content b { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.28); font-size: .72rem; }
.shift-hero__content i { color: var(--red); font-size: 1rem; font-style: normal; }

.section-label { display: flex; justify-content: space-between; margin: 22px 0 9px; color: var(--navy); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-label b { color: #92989d; font-weight: 700; letter-spacing: .05em; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.score { display: grid; min-height: 105px; padding: 14px; color: var(--navy); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
button.score:active { background: var(--paper); }
.score small { align-self: start; color: var(--muted); font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.score strong { align-self: end; font-family: var(--display); font-size: 2rem; line-height: 1; }
.score span { color: #667078; font-size: .61rem; font-weight: 600; }
.score--feature strong { color: #16884f; }
.score--alert strong, .score--alert span { color: var(--red); }
.posted-banner { position: relative; display: grid; width: 100%; gap: 5px; margin-top: 15px; padding: 16px 47px 16px 16px; color: white; background: var(--red); text-align: left; }
.posted-banner span { font-size: .57rem; font-weight: 900; letter-spacing: .15em; }
.posted-banner strong { font-size: .81rem; line-height: 1.3; }
.posted-banner svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

.progress-block { margin: 2px 0 19px; padding: 18px; color: white; background: var(--navy); }
.progress-block > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; }
.progress-block span { font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.progress-block strong { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.progress-track { height: 6px; margin: 12px 0 9px; background: rgba(255,255,255,.16); }
.progress-track span { display: block; width: 73%; height: 100%; background: var(--red); transition: width 450ms cubic-bezier(.22,1,.36,1); }
.progress-block small { color: rgba(255,255,255,.62); font-size: .62rem; }
.module-list { border-top: 1px solid var(--line); }
.module { position: relative; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; width: 100%; min-height: 78px; padding: 12px 4px; color: var(--navy); border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.module > span { color: #9aa0a5; font-family: var(--display); font-size: 1.1rem; font-weight: 800; }
.module div { display: grid; gap: 4px; }
.module small { color: var(--muted); font-size: .57rem; font-weight: 700; text-transform: uppercase; }
.module strong { font-size: .82rem; }
.module svg { color: #16884f; }
.module i { color: #9aa0a5; font-size: .55rem; font-style: normal; font-weight: 800; letter-spacing: .1em; }
.module--current { grid-template-columns: 32px 1fr; padding: 15px 12px 15px 4px; border-right: 7px solid var(--red); background: var(--paper); }
.module--current b { margin-top: 4px; color: var(--red); font-size: .65rem; }
.module--current.is-complete { border-right-color: #16884f; }
.module--current.is-complete b { color: #16884f; }
.proof-strip { display: grid; gap: 5px; margin-top: 20px; padding: 15px; color: white; background: var(--red); }
.proof-strip strong { font-family: var(--display); font-size: 1.25rem; text-transform: uppercase; }
.proof-strip span { font-size: .65rem; line-height: 1.4; }

.recipe-feature { position: relative; width: 100%; padding: 0 0 15px; color: var(--navy); border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.recipe-feature img { width: 100%; aspect-ratio: 1.4; object-fit: cover; }
.recipe-feature > span { position: absolute; top: 12px; left: 12px; padding: 7px 9px; color: white; background: var(--red); font-size: .56rem; font-weight: 900; letter-spacing: .12em; }
.recipe-feature div { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; }
.recipe-feature strong { font-family: var(--display); font-size: 1.55rem; text-transform: uppercase; }
.recipe-feature b { color: var(--red); font-size: .65rem; white-space: nowrap; }
.recipe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; }
.recipe-row button { position: relative; padding: 0; overflow: hidden; color: white; background: var(--navy); }
.recipe-row img { width: 100%; aspect-ratio: 1.25; object-fit: cover; opacity: .78; }
.recipe-row span { position: absolute; right: 10px; bottom: 9px; left: 10px; font-family: var(--display); font-size: 1.25rem; font-weight: 800; text-align: left; text-transform: uppercase; }
.quick-standard { display: grid; gap: 7px; padding: 17px; color: white; background: var(--navy); }
.quick-standard > span { color: #aeb9c4; font-size: .56rem; font-weight: 900; letter-spacing: .14em; }
.quick-standard strong { font-family: var(--display); font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.quick-standard small { color: rgba(255,255,255,.58); font-size: .58rem; line-height: 1.4; }

.message { margin-bottom: 13px; padding: 16px; border: 1px solid var(--line); background: white; }
.message--priority { border: 0; border-top: 7px solid var(--red); }
.message header, .message-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.message header span, .message header b { color: var(--muted); font-size: .53rem; font-weight: 900; letter-spacing: .1em; }
.message--priority header b { color: var(--red); }
.message h3 { margin: 16px 0 7px; color: var(--navy); font-family: var(--display); font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.message p { margin: 0; color: #5d666d; font-size: .73rem; line-height: 1.5; }
.message-meta { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .53rem; }
.message-meta strong { color: var(--navy); }
.message button { width: 100%; min-height: 43px; margin-top: 13px; color: white; background: var(--red); font-size: .68rem; font-weight: 800; }
.message button.is-complete { background: #16884f; }
.compose-button { width: 100%; min-height: 50px; color: var(--navy); border: 1px solid var(--navy); background: transparent; font-size: .74rem; font-weight: 800; }

.recap-form { display: grid; gap: 16px; }
.recap-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--navy); }
.recap-metrics label { display: grid; gap: 6px; padding: 14px; color: white; background: var(--navy-2); }
.recap-metrics span, .notes span { font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.recap-metrics input { width: 100%; padding: 0; color: white; border: 0; outline: 0; background: transparent; font-family: var(--display); font-size: 2rem; font-weight: 800; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 9px; color: var(--navy); font-size: .65rem; font-weight: 800; }
.rating { display: grid; grid-template-columns: repeat(3,1fr); }
.rating button { min-height: 42px; color: var(--muted); border: 1px solid var(--line); border-right: 0; background: transparent; font-size: .59rem; font-weight: 700; }
.rating button:last-child { border-right: 1px solid var(--line); }
.rating button.is-selected { color: white; border-color: var(--navy); background: var(--navy); }
.notes { display: grid; gap: 8px; }
.notes textarea { width: 100%; resize: none; padding: 13px; color: var(--ink); border: 1px solid var(--line); border-radius: 0; outline: 0; background: white; font-size: .73rem; line-height: 1.5; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: .68rem; font-weight: 700; }
.check-row input { width: 17px; height: 17px; accent-color: var(--red); }
.submit-recap { min-height: 52px; color: white; background: var(--red); font-size: .76rem; font-weight: 900; }
.recap-success { display: none; padding: 32px 20px; color: white; background: var(--navy); text-align: center; }
.recap-success.is-visible { display: grid; justify-items: center; }
.recap-success > span { display: grid; width: 56px; height: 56px; place-items: center; color: white; background: #16884f; border-radius: 50%; }
.recap-success p { margin: 22px 0 8px; color: #aeb9c4; font-size: .58rem; font-weight: 900; letter-spacing: .13em; }
.recap-success h3 { margin: 0; font-family: var(--display); font-size: 2.5rem; text-transform: uppercase; }
.recap-success small { max-width: 260px; margin-top: 8px; color: rgba(255,255,255,.62); font-size: .7rem; line-height: 1.5; }
.recap-success button { width: 100%; min-height: 48px; margin-top: 24px; color: var(--navy); background: var(--cream); font-size: .7rem; font-weight: 900; }

.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(5,1fr); height: calc(76px + env(safe-area-inset-bottom)); padding: 8px 5px env(safe-area-inset-bottom); color: #7d8790; border-top: 1px solid rgba(17,24,32,.15); background: rgba(250,247,240,.97); backdrop-filter: blur(18px); }
.bottom-nav button { position: relative; display: grid; align-content: center; justify-items: center; gap: 5px; min-width: 0; color: inherit; background: transparent; transition: color 160ms ease, transform 160ms ease; }
.bottom-nav button:active { transform: translateY(1px) scale(.96); }
.bottom-nav button.is-active { color: var(--red); }
.bottom-nav svg { width: 1.25rem; height: 1.25rem; }
.bottom-nav span { font-size: .56rem; font-weight: 800; }
.bottom-nav i { position: absolute; top: 5px; left: calc(50% + 7px); display: grid; min-width: 15px; height: 15px; place-items: center; color: white; border-radius: 50%; background: var(--red); font-size: .48rem; font-style: normal; font-weight: 900; }

.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; transition: opacity 220ms ease, visibility 220ms; }
.sheet.is-open { visibility: visible; opacity: 1; }
.sheet-backdrop { position: absolute; inset: 0; width: 100%; background: rgba(6,25,44,.74); backdrop-filter: blur(3px); }
.sheet-card { position: absolute; right: 0; bottom: 0; left: 0; max-height: 88dvh; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); overflow: auto; color: var(--ink); background: var(--cream); transform: translateY(100%); transition: transform 360ms cubic-bezier(.22,1,.36,1); }
.sheet.is-open .sheet-card { transform: translateY(0); }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 17px; background: #c7c5bf; }
.sheet-close { position: absolute; top: 19px; right: 16px; display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--navy); }
.sheet-kicker { color: var(--muted); font-size: .57rem; font-weight: 900; letter-spacing: .13em; }
.sheet-card h2 { margin-top: 10px; font-size: 3.7rem; }
.recipe-spec { display: grid; grid-template-columns: 74px 1fr; gap: 9px 12px; margin: 22px 0; padding: 14px; color: white; background: var(--navy); font-size: .67rem; }
.recipe-spec span { color: #aeb9c4; }
.sheet-card ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sheet-card li { display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.sheet-card li > b { color: var(--red); font-family: var(--display); font-size: 1.1rem; }
.sheet-card li span { color: #5f686f; font-size: .7rem; line-height: 1.45; }
.sheet-card li strong { display: block; color: var(--navy); }
.sheet-action { width: 100%; min-height: 50px; margin-top: 18px; color: white; background: var(--red); font-size: .74rem; font-weight: 900; }

.toast { position: fixed; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 16px; z-index: 100; visibility: hidden; padding: 14px 16px; color: white; background: var(--navy); box-shadow: 0 14px 40px rgba(6,25,44,.24); font-size: .7rem; font-weight: 700; opacity: 0; transform: translateY(10px); transition: opacity 180ms ease, transform 240ms ease, visibility 240ms; }
.toast.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }

@media (min-width: 700px) {
  body { display: grid; place-items: center; padding: 24px; background: #d8d9d7; }
  .app-shell { position: relative; width: 430px; height: min(920px, calc(100dvh - 48px)); border: 10px solid #17202a; box-shadow: 0 28px 90px rgba(6,25,44,.28); }
  .app-header { padding-top: 0; height: 72px; }
  .screen-stack { height: calc(100% - 72px - 76px); }
  .bottom-nav { position: absolute; }
  .sheet { position: absolute; }
  .toast { position: absolute; }
}

@media (max-width: 350px) {
  .brand-button img { width: 150px; }
  h1, h2 { font-size: 3.3rem; }
  .screen-scroll { padding-right: 13px; padding-left: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
