:root {
  --ink: #102a43;
  --muted: #627d98;
  --soft: #f0f4f7;
  --line: #d9e2ec;
  --paper: #fbfcfe;
  --white: #fff;
  --teal: #087f8c;
  --teal-dark: #05616d;
  --teal-soft: #e6f5f4;
  --coral: #ef8354;
  --yellow: #fff0b3;
  --shadow: 0 10px 30px rgba(16,42,67,.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #edf2f6;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #edf2f6; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible { outline: 3px solid rgba(8,127,140,.34); outline-offset: 2px; }
.app-shell { width: 100%; max-width: 660px; min-height: 100vh; margin: 0 auto; background: var(--paper); box-shadow: 0 0 60px rgba(16,42,67,.08); padding-bottom: 76px; }
.topbar { height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(251,252,254,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.brand-lockup { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 20px; font-family: Georgia, serif; font-style: italic; }
.brand-dot { color: var(--coral); padding: 0 1px; }
.icon-button, .close-button { border: 0; background: transparent; color: var(--muted); font-size: 22px; width: 36px; height: 36px; border-radius: 10px; }
.icon-button:hover, .close-button:hover { background: var(--soft); color: var(--ink); }
#app { padding: 22px 18px 32px; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: var(--teal); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 12px; }
h2 { font-size: 25px; letter-spacing: -.04em; margin-bottom: 8px; }
h3 { font-size: 16px; margin-bottom: 5px; letter-spacing: -.02em; }
.subhead { color: var(--muted); line-height: 1.55; margin-bottom: 0; }
.hero { padding: 10px 2px 22px; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.day-count { text-align: right; color: var(--muted); font-size: 12px; line-height: 1.45; white-space: nowrap; }
.day-count strong { display: block; color: var(--ink); font-size: 19px; letter-spacing: -.04em; }
.day-card { border-radius: 22px; padding: 20px; color: var(--ink); background: linear-gradient(135deg, #e4f3f2 0%, #f7f5e9 100%); border: 1px solid rgba(8,127,140,.13); box-shadow: var(--shadow); margin-bottom: 22px; }
.day-card.compact { margin-top: 14px; }
.day-card-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.day-card h2 { margin-bottom: 7px; }
.goal { color: #35536d; line-height: 1.5; margin-bottom: 12px; }
.cadence { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: var(--teal-dark); background: rgba(255,255,255,.7); padding: 6px 9px; border-radius: 99px; }
.progress-ring { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) var(--progress), rgba(255,255,255,.75) 0); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #edf5f2; }
.progress-ring span { position: relative; z-index: 1; font-size: 11px; font-weight: 800; }
.primary-button, .secondary-button, .coach-button { border: 0; border-radius: 12px; font-weight: 800; padding: 12px 16px; transition: transform .16s, background .16s; }
.primary-button { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #071a2a; }
.primary-button:hover, .secondary-button:hover, .coach-button:hover { transform: translateY(-1px); }
.primary-button:active { transform: translateY(2px); box-shadow: none; }
.primary-button span { color: #9be3dd; margin-left: 7px; }
.secondary-button { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.coach-button { background: var(--coral); color: #fff; box-shadow: 0 4px 0 #c65e39; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.section-label { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 850; margin: 24px 2px 10px; }
.bites-list { display: grid; gap: 12px; }
.bite-card { border: 1px solid var(--line); border-radius: 17px; background: #fff; overflow: hidden; box-shadow: 0 4px 16px rgba(16,42,67,.04); }
.bite-card.done { border-color: #abdcd6; }
.bite-summary { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px; text-align: left; background: #fff; border: 0; color: var(--ink); }
.bite-summary:hover { background: #fafdfe; }
.bite-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 850; }
.bite-card.done .bite-number { background: var(--teal); color: #fff; }
.bite-summary-copy { flex: 1; min-width: 0; }
.bite-summary-copy strong { display: block; font-size: 14px; margin-bottom: 3px; }
.bite-summary-copy small { color: var(--muted); font-size: 12px; }
.chevron { color: var(--muted); font-size: 19px; transition: transform .2s; }
.bite-card.open .chevron { transform: rotate(180deg); }
.bite-body { padding: 0 15px 18px; border-top: 1px solid var(--soft); }
.hook { margin: 16px 0; padding: 12px 14px; border-left: 3px solid var(--coral); background: #fff8f4; border-radius: 0 10px 10px 0; color: #7f432d; font-weight: 750; font-size: 13px; }
.loop-step { margin-top: 18px; }
.step-kicker { display: flex; align-items: center; gap: 7px; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 900; margin-bottom: 6px; }
.step-kicker span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: var(--teal-soft); font-size: 10px; }
.learn-copy { color: #35536d; line-height: 1.52; font-size: 14px; margin-bottom: 0; }
.interact-box { border: 1px solid #b8e0dd; border-radius: 13px; background: #f2fbfa; padding: 13px; }
.interact-title { font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.control-row { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13px; color: #35536d; }
.control-row label { min-width: 68px; font-weight: 700; }
.control-row input[type="range"] { accent-color: var(--teal); flex: 1; }
.control-row select, .control-row input[type="text"] { flex: 1; min-width: 0; border: 1px solid #b9d8d7; border-radius: 8px; padding: 8px; color: var(--ink); background: #fff; }
.output { margin-top: 11px; padding: 10px; border-radius: 9px; background: var(--ink); color: #e9f7f5; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; min-height: 40px; white-space: pre-wrap; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 10px 0 2px; color: #35536d; font-size: 13px; line-height: 1.4; }
.check-row input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.check-row.checked { color: var(--teal-dark); font-weight: 700; }
.completed-note { color: var(--teal-dark); font-size: 12px; margin: 10px 0 0 27px; font-weight: 700; }
.coach-callout { margin-top: 25px; padding: 16px; border: 1px dashed #f1b49f; background: #fff8f4; border-radius: 15px; display: flex; align-items: center; gap: 13px; }
.coach-callout .coach-emoji { font-size: 22px; }
.coach-callout p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.map-header { padding: 9px 2px 18px; }
.map-header p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.map-list { display: grid; gap: 10px; position: relative; }
.map-list::before { content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.map-day { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 13px 13px 0; background: #fff; border: 1px solid var(--line); border-radius: 15px; text-align: left; color: var(--ink); z-index: 1; }
.map-day:hover:not(:disabled) { border-color: #94cbc7; }
.map-day:disabled { cursor: pointer; opacity: .8; }
.map-node { margin-left: 8px; width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); font-weight: 850; font-size: 11px; }
.map-day.current { border-color: #a8d8d4; box-shadow: 0 4px 15px rgba(8,127,140,.08); }
.map-day.current .map-node { border-color: var(--teal); background: var(--teal); color: #fff; }
.map-day.done .map-node { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.map-day.locked .map-node { background: var(--soft); }
.map-copy { flex: 1; min-width: 0; }
.map-copy strong { display: block; font-size: 14px; margin-bottom: 3px; }
.map-copy small { display: block; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-status { font-size: 10px; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.map-day.current .map-status { color: var(--teal); }
.map-day.done .map-status { color: var(--teal-dark); }
.preview-note { margin-top: 18px; padding: 12px 14px; border-radius: 11px; background: var(--soft); color: var(--muted); font-size: 12px; line-height: 1.45; }
.back-link { border: 0; background: transparent; padding: 4px 0; color: var(--teal-dark); font-weight: 800; font-size: 13px; }
.day-view-header { padding: 7px 2px 12px; }
.locked-banner { margin: 4px 0 17px; padding: 13px 14px; border-radius: 12px; background: #fff5df; color: #785d20; font-size: 13px; line-height: 1.45; }
.placeholder { color: var(--muted); background: #f8fafb; border: 1px dashed var(--line); padding: 12px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.shell-bite { padding: 16px; border: 1px solid var(--line); background: #fff; border-radius: 15px; }
.shell-bite + .shell-bite { margin-top: 10px; }
.shell-bite.done { border-color: #abdcd6; }
.shell-bite-title { display: flex; gap: 10px; align-items: center; }
.shell-bite-title .bite-number { width: 24px; height: 24px; }
.bottom-nav { height: 68px; position: fixed; z-index: 6; bottom: 0; left: 50%; transform: translateX(-50%); width: min(660px, 100%); display: flex; justify-content: center; gap: 70px; background: rgba(255,255,255,.95); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav-item { border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 750; min-width: 72px; }
.nav-icon { font-size: 17px; line-height: 1; }
.nav-item.active { color: var(--teal-dark); }
.hidden { display: none !important; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(16,42,67,.44); display: flex; align-items: flex-end; }
.coach-sheet { width: min(660px, 100%); margin: 0 auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 10px 18px 28px; box-shadow: 0 -15px 50px rgba(16,42,67,.2); max-height: 90vh; overflow: auto; }
.sheet-handle { width: 42px; height: 4px; border-radius: 99px; background: var(--line); margin: 0 auto 15px; }
.sheet-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.sheet-heading h2 { margin-bottom: 0; }
.coach-boundary { color: var(--muted); font-size: 13px; line-height: 1.5; padding: 11px 12px; background: var(--teal-soft); border-radius: 10px; }
#coachQuestion { width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--ink); background: #fff; }
#coachForm .primary-button { margin-top: 10px; width: 100%; }
.suggestion-row { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 11px; }
.suggestion { border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); padding: 7px 10px; font-size: 11px; }
.suggestion:hover { border-color: var(--teal); color: var(--teal-dark); }
.coach-answer { margin-top: 17px; padding: 14px; border-left: 3px solid var(--coral); border-radius: 0 11px 11px 0; background: #fff8f4; color: #35536d; line-height: 1.55; font-size: 14px; }
.coach-answer strong { color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 661px) { .app-shell { min-height: 100vh; } }

.shell-complete{margin-top:18px;padding:16px;border:1px solid var(--line,#dce3dc);border-radius:16px;background:#fff}.shell-complete .subhead{margin:0 0 12px}.shell-bite .check-row{margin-top:10px}

/* SLICE-HOST-D4-7 (2026-09-28): lesson-op buttons, mock label, read-only snippet */
.op-row { flex-wrap: wrap; gap: 6px; }
.mini-button { border: 1px solid #b9d8d7; background: #fff; color: var(--ink); border-radius: 8px; padding: 7px 9px; font-size: 12px; font-weight: 750; }
.mini-button:disabled { opacity: .5; cursor: not-allowed; }
.mock-badge { display: inline-block; margin: -2px 0 8px; padding: 4px 8px; border-radius: 99px; background: var(--yellow); color: #6b5410; font-size: 11px; font-weight: 800; }
.snippet-label { margin: 10px 0 4px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.snippet { margin: 0; padding: 10px; border-radius: 9px; background: #f3f5f8; border: 1px dashed var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; line-height: 1.5; white-space: pre-wrap; overflow-x: auto; color: #35536d; }
.placeholder-badge { display: inline-block; margin: -2px 0 8px; padding: 4px 8px; border-radius: 99px; background: #fde2d6; color: #8a3a17; font-size: 11px; font-weight: 800; }
