:root {
  color-scheme: light;
  --forest: #174c3c;
  --forest-deep: #0e382d;
  --forest-soft: #e4eee8;
  --leaf: #4f7d68;
  --moss: #78937e;
  --sun: #d7a95d;
  --sun-soft: #f6ecd8;
  --cream: #f7f5ef;
  --paper: #fffdf8;
  --ink: #1d2a25;
  --muted: #65716b;
  --line: #dfe5df;
  --white: #fff;
  --danger: #8b4b42;
  --shadow: 0 18px 48px rgba(35, 58, 47, .09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 8% 3%, rgba(215, 169, 93, .14), transparent 26rem),
    linear-gradient(180deg, #fbfaf6 0, var(--cream) 45rem, #f3f4ef 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 1000; padding: .75rem 1rem; background: var(--forest); color: white; border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 62px;
  padding: 0 max(20px, calc((100vw - var(--shell)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(251, 250, 246, .88);
  border-bottom: 1px solid rgba(23, 76, 60, .09);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--forest-deep); text-decoration: none; font-size: .86rem; font-weight: 750; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px 9px 14px 9px; background: var(--forest); color: var(--sun); font-family: Georgia, serif; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .45rem .7rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 650; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--forest-soft); color: var(--forest); outline: none; }
.site-nav .language-switch { border: 1px solid #cfd9d2; color: var(--forest); }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3.25rem, 8vw, 6.75rem) 3.5rem; }
.eyebrow, .tiny-label { display: block; margin: 0 0 .55rem; color: var(--leaf); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: clamp(3.25rem, 8.5vw, 7.2rem); font-weight: 500; letter-spacing: -.068em; line-height: .89; color: var(--forest-deep); }
.slogan { margin: 1.35rem 0 .8rem; color: var(--sun); font-family: Georgia, "Songti SC", serif; font-size: clamp(1.18rem, 2.6vw, 1.75rem); font-style: italic; }
.intro { max-width: 630px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.8; }

.today-panel { padding: clamp(1.25rem, 3vw, 1.8rem); background: rgba(255, 253, 248, .9); border: 1px solid rgba(23, 76, 60, .12); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.date-row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.date-row strong { display: block; font-size: 1.07rem; }
.local-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .65rem; background: var(--forest-soft); border-radius: 999px; color: var(--forest); font-size: .7rem; font-weight: 750; white-space: nowrap; }
.local-badge span { width: 6px; height: 6px; background: #4d8d6f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(77, 141, 111, .13); }
.progress-layout { display: grid; grid-template-columns: 118px 1fr; gap: 1.2rem; align-items: center; padding: 1.35rem 0; }
.progress-ring { --progress: 0deg; width: 112px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--forest) var(--progress), #e5e9e4 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 9px; background: var(--paper); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23, 76, 60, .05); }
.progress-ring > div { position: relative; display: grid; text-align: center; line-height: 1.15; }
.progress-ring strong { font-family: Georgia, serif; font-size: 1.65rem; color: var(--forest); }
.progress-ring span { color: var(--muted); font-size: .68rem; margin-top: .25rem; }
.progress-copy strong { display: block; color: var(--forest-deep); font-size: 1rem; }
.progress-copy p { margin: .3rem 0 0; color: var(--muted); font-size: .78rem; }
.now-card { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; padding: .85rem 1rem; background: var(--forest); border-radius: 15px; color: white; }
.now-card .tiny-label { margin: 0; color: #bcd1c5; font-size: .62rem; }
.now-card strong { display: block; font-size: .93rem; }
.now-card time { color: #dfece5; font-size: .8rem; font-variant-numeric: tabular-nums; }
.now-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(215, 169, 93, .18); }
.hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .75rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1rem; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: .82rem; font-weight: 780; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .check-button:focus-visible, .na-button:focus-visible, summary:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(215, 169, 93, .55); outline-offset: 2px; }
.button-primary { background: var(--forest); color: white; box-shadow: 0 8px 20px rgba(23, 76, 60, .16); }
.button-quiet { background: transparent; border-color: #ccd8d0; color: var(--forest); }

.sleep-check { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: center; padding: 1.25rem 1.4rem; background: #eef1e9; border: 1px solid #dbe1d6; border-radius: var(--radius-md); }
.sleep-check[hidden] { display: none; }
.sleep-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #334c46; color: #f4d6a2; font-size: 1.6rem; }
.sleep-check h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 1.12rem; font-weight: 600; line-height: 1.35; }
.sleep-check p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.sleep-check .tiny-label { margin-bottom: .25rem; }
.sleep-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.text-button { align-self: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; }

.system-section { padding-block: clamp(4rem, 8vw, 6.5rem) 1rem; }
.system-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.system-heading h2 { max-width: 760px; margin: 0; color: var(--forest-deep); font-family: Georgia, "Songti SC", serif; font-size: clamp(2.1rem, 4.7vw, 4.2rem); font-weight: 500; letter-spacing: -.055em; line-height: 1; }
.system-heading > p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.75; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem; border-block: 1px solid var(--line); }
.principle-grid article { min-width: 0; padding: 1.4rem 1.2rem 1.5rem; border-right: 1px solid var(--line); }
.principle-grid article:first-child { padding-left: 0; }
.principle-grid article:last-child { border-right: 0; }
.principle-grid span { color: var(--sun); font-family: Georgia, serif; font-size: .9rem; }
.principle-grid h3 { margin: 1rem 0 .45rem; color: var(--forest-deep); font-family: Georgia, "Songti SC", serif; font-size: 1.08rem; }
.principle-grid p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }

.timeline-section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; color: var(--forest-deep); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.section-heading > p { margin: 0; color: var(--muted); font-size: .93rem; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 24px; bottom: 40px; left: 89px; width: 1px; background: linear-gradient(var(--sun), #b9c9bf 20%, #b9c9bf 80%, #738e81); }
.stage-card { display: grid; grid-template-columns: 120px 1fr; position: relative; padding-bottom: 1.1rem; scroll-margin-top: 90px; }
.timeline-time { display: grid; grid-template-columns: 1fr 48px; gap: .75rem; align-items: start; padding-top: 1.4rem; position: relative; z-index: 2; }
.timeline-time time { padding-top: .55rem; color: var(--muted); font-size: .78rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.timeline-node { width: 38px; height: 38px; display: grid; place-items: center; background: var(--cream); border: 1px solid #bfcfc4; border-radius: 50%; color: var(--forest); font-family: Georgia, serif; font-size: .88rem; transition: .25s; }
.stage-surface { padding: 1.4rem 1.55rem 1.2rem; background: rgba(255, 253, 248, .72); border: 1px solid rgba(23, 76, 60, .1); border-radius: var(--radius-md); transition: border .22s, box-shadow .22s, transform .22s, background .22s; }
.stage-card.is-current .stage-surface { background: var(--paper); border-color: rgba(23, 76, 60, .42); box-shadow: var(--shadow); transform: translateX(5px); }
.stage-card.is-current .timeline-node { background: var(--forest); border-color: var(--forest); color: white; box-shadow: 0 0 0 6px rgba(23, 76, 60, .11); }
.stage-card.is-done .timeline-node { background: var(--sun); border-color: var(--sun); color: #33240f; }
.stage-card.is-na { opacity: .72; }
.stage-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.stage-kicker { margin: 0 0 .2rem; color: var(--leaf); font-size: .7rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.stage-card h3 { margin: 0; font-family: Georgia, "Songti SC", serif; color: var(--forest-deep); font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; letter-spacing: -.025em; }
.current-chip { flex: 0 0 auto; padding: .32rem .6rem; background: var(--sun-soft); border-radius: 999px; color: #7b5721; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stage-action { margin: .7rem 0 1rem; max-width: 800px; color: #34443d; font-size: 1rem; font-weight: 590; }
.stage-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-height: 42px; }
.check-button, .na-button { min-height: 40px; border-radius: 11px; cursor: pointer; font-size: .78rem; font-weight: 780; }
.check-button { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border: 1px solid #c6d4cb; background: #f7faf7; color: var(--forest); }
.checkmark { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #9bb3a5; border-radius: 6px; color: transparent; }
.is-done .check-button { background: var(--forest); border-color: var(--forest); color: white; }
.is-done .checkmark { background: white; border-color: white; color: var(--forest); }
.na-button { padding: .55rem .75rem; border: 0; background: transparent; color: var(--muted); }
.is-na .na-button { background: #eceeea; color: #4f5e56; }
.status-text { margin-left: auto; color: #849088; font-size: .7rem; }
.stage-details { margin-top: .8rem; border-top: 1px solid var(--line); }
.stage-details summary { padding: .9rem 0 .15rem; color: var(--forest); cursor: pointer; font-size: .76rem; font-weight: 780; list-style: none; }
.stage-details summary::-webkit-details-marker { display: none; }
.stage-details summary::after { content: "+"; float: right; font-size: 1rem; font-weight: 400; }
.stage-details[open] summary::after { content: "−"; }
.detail-grid { display: grid; grid-template-columns: .9fr 1.1fr .9fr; gap: 1.4rem; padding: 1rem 0 .35rem; }
.detail-grid section { min-width: 0; }
.detail-grid h4 { margin: 0 0 .45rem; color: var(--forest-deep); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.detail-grid p, .detail-grid li { color: var(--muted); font-size: .8rem; line-height: 1.65; }
.detail-grid p { margin: 0; }
.detail-grid ol { margin: 0; padding-left: 1.15rem; }
.detail-grid li + li { margin-top: .35rem; }
.evidence-block { padding: .9rem; background: var(--forest-soft); border-radius: 12px; }
.evidence-block a { display: inline-block; margin-top: .75rem; color: var(--forest); font-size: .73rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.deep-guide { margin-top: 1.25rem; padding: 1.25rem; background: #f3f2ea; border: 1px solid #e1e2d7; border-radius: 16px; }
.deep-guide > header { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr); gap: 1.5rem; align-items: end; padding-bottom: 1rem; border-bottom: 1px solid #d8dcd2; }
.deep-guide > header span { color: var(--leaf); font-size: .63rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.deep-guide > header h4 { margin: .25rem 0 0; color: var(--forest-deep); font-family: Georgia, "Songti SC", serif; font-size: 1.35rem; letter-spacing: -.02em; text-transform: none; }
.deep-guide > header p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.65; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: .8rem; }
.topic-card { padding: 1rem; background: rgba(255,255,255,.68); border: 1px solid rgba(23,76,60,.08); border-radius: 12px; }
.topic-card.is-caution { background: #fbf5e8; border-color: #ead8b5; }
.topic-card h5 { margin: 0 0 .4rem; color: var(--forest-deep); font-family: Georgia, "Songti SC", serif; font-size: .95rem; }
.topic-card p, .topic-card li { color: var(--muted); font-size: .76rem; line-height: 1.62; }
.topic-card p { margin: 0; }
.topic-card ul { margin: .55rem 0 0; padding-left: 1.05rem; }
.topic-card li + li { margin-top: .25rem; }
.guide-sources { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid #d8dcd2; }
.guide-sources strong { color: var(--muted); font-size: .67rem; }
.guide-sources a { color: var(--forest); font-size: .67rem; font-weight: 750; text-underline-offset: 2px; }
.deferred-note { display: flex; align-items: baseline; gap: .6rem; padding: .55rem .75rem; background: #eef1e9; border-radius: 10px; color: #344b43; }
.deferred-note strong { font-size: .78rem; }
.deferred-note span { color: var(--muted); font-size: .7rem; }

.history-section { margin-bottom: 5rem; padding: clamp(1.4rem, 4vw, 2.25rem); background: var(--forest-deep); border-radius: var(--radius-lg); color: white; box-shadow: 0 25px 60px rgba(14, 56, 45, .18); }
.history-section .eyebrow { color: #9ec0ae; }
.history-section .section-heading { margin-bottom: 1.5rem; }
.history-section .section-heading h2 { color: white; }
.streak-box { justify-self: end; display: grid; text-align: right; }
.streak-box span { color: #a9c1b5; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.streak-box strong { color: #f1e4c9; font-family: Georgia, serif; font-size: 1.1rem; font-weight: 500; }
.streak-box b { font-size: 2rem; font-weight: 500; }
.week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .65rem; }
.day-cell { min-width: 0; padding: .8rem .55rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; text-align: center; }
.day-cell.today { border-color: rgba(215,169,93,.7); }
.day-cell.complete { background: rgba(215,169,93,.17); }
.day-name { display: block; color: #aac0b5; font-size: .65rem; text-transform: uppercase; }
.day-date { display: block; margin: .18rem 0 .55rem; font-family: Georgia, serif; font-size: 1rem; }
.mini-bar { height: 5px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 99px; }
.mini-bar span { display: block; height: 100%; width: 0; background: var(--sun); border-radius: inherit; }
.day-value { display: block; margin-top: .4rem; color: #dce8e1; font-size: .66rem; }
.streak-explainer { margin-top: .9rem; color: #b8c9c0; font-size: .72rem; }
.streak-explainer summary { cursor: pointer; }
.streak-explainer p { max-width: 760px; margin: .5rem 0 0; }
.month-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.month-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.month-heading span { color: #a9bdb3; font-size: .7rem; }
.month-grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: .4rem; margin-top: .8rem; }
.month-day { aspect-ratio: 1; min-width: 0; border: 1px solid rgba(255,255,255,.08); border-radius: 6px; background: rgba(255,255,255,.05); position: relative; }
.month-day[data-level="1"] { background: #5c7569; }
.month-day[data-level="2"] { background: #8d9f7d; }
.month-day[data-level="3"] { background: #d7a95d; }
.month-day.today { box-shadow: 0 0 0 2px white; }

.beyond-section { padding-block: 1rem 5rem; }
.beyond-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.beyond-grid article { min-width: 0; padding: clamp(1.3rem, 3vw, 2rem); background: rgba(255,253,248,.72); border: 1px solid rgba(23,76,60,.11); border-radius: var(--radius-md); }
.beyond-grid article:nth-child(4n+1) { background: var(--forest-deep); color: white; }
.beyond-kicker { margin: 0 0 .45rem !important; color: var(--leaf) !important; font-size: .68rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.beyond-grid article:nth-child(4n+1) .beyond-kicker { color: #a9c8b8 !important; }
.beyond-grid h3 { margin: 0 0 .75rem; color: var(--forest-deep); font-family: Georgia, "Songti SC", serif; font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 500; }
.beyond-grid article:nth-child(4n+1) h3 { color: white; }
.beyond-grid article > p:not(.beyond-kicker) { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }
.beyond-grid article:nth-child(4n+1) > p:not(.beyond-kicker) { color: #d7e5de; }
.beyond-grid a { display: inline-block; margin-top: 1rem; color: var(--forest); font-size: .7rem; font-weight: 800; text-underline-offset: 3px; }
.beyond-grid article:nth-child(4n+1) a { color: #f1d39f; }

.trust-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 5rem; }
.trust-section article { padding: 1.4rem; border-top: 1px solid #bfcfc4; }
.trust-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1rem; background: var(--forest-soft); border-radius: 11px; color: var(--forest); font-family: Georgia, serif; font-weight: 700; }
.trust-section h2 { margin: 0 0 .55rem; color: var(--forest-deep); font-family: Georgia, "Songti SC", serif; font-size: 1.15rem; }
.trust-section p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.site-footer { display: grid; grid-template-columns: 1fr auto; gap: .2rem 2rem; align-items: end; padding-block: 2.25rem 3rem; border-top: 1px solid #d4ddd6; }
.site-footer strong { color: var(--forest); font-family: Georgia, "Songti SC", serif; font-size: 1.1rem; font-weight: 500; }
.site-footer p { margin: 0; color: var(--muted); font-size: .75rem; }
.site-footer a { grid-row: 1 / span 2; grid-column: 2; color: var(--leaf); font-size: .75rem; font-weight: 750; text-decoration: none; }

.settings-dialog { width: min(92vw, 560px); padding: 0; background: var(--paper); border: 0; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.25); color: var(--ink); }
.settings-dialog::backdrop { background: rgba(12, 29, 23, .55); backdrop-filter: blur(5px); }
.settings-dialog form { padding: 1.6rem; }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.dialog-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; color: var(--forest-deep); font-size: 1.7rem; font-weight: 500; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.4rem; }
.dialog-intro { margin: .6rem 0 1.3rem; color: var(--muted); font-size: .84rem; }
.time-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.time-fields label { display: grid; gap: .35rem; color: var(--leaf); font-size: .72rem; font-weight: 780; }
.time-fields input { width: 100%; min-height: 48px; padding: .65rem .75rem; background: #f7f8f4; border: 1px solid #d5ddd7; border-radius: 11px; color: var(--ink); }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.4rem; }
.print-only { display: none; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.8rem; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .today-panel { max-width: 600px; }
  .section-heading { grid-template-columns: 1fr; gap: .8rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .system-heading, .deep-guide > header { grid-template-columns: 1fr; gap: .8rem; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid article:nth-child(2) { border-right: 0; }
  .principle-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sleep-check { grid-template-columns: auto 1fr; }
  .sleep-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .trust-section { grid-template-columns: 1fr; }
  .month-grid { grid-template-columns: repeat(10, 1fr); }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .site-header { min-height: 56px; padding-inline: 12px; }
  .brand span:last-child { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: .4rem .55rem; }
  .hero { gap: 2rem; padding-block: 2.2rem 2rem; }
  .hero h1 { letter-spacing: -.055em; }
  .intro { font-size: .95rem; }
  .today-panel { padding: 1rem; border-radius: 22px; }
  .local-badge { font-size: 0; padding: .55rem; }
  .progress-layout { grid-template-columns: 96px 1fr; gap: .8rem; }
  .progress-ring { width: 92px; }
  .progress-ring strong { font-size: 1.35rem; }
  .hero-actions { grid-template-columns: 1fr; }
  .sleep-check { grid-template-columns: 1fr; padding: 1rem; }
  .sleep-icon { width: 40px; height: 40px; }
  .sleep-actions { grid-column: auto; }
  .sleep-actions .button { flex: 1 1 140px; }
  .timeline-section { padding-block: 3.5rem; }
  .system-section { padding-top: 3rem; }
  .system-heading h2 { font-size: 2.35rem; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article:first-child { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-grid article:last-child { border-bottom: 0; }
  .timeline::before { left: 18px; }
  .stage-card { grid-template-columns: 37px 1fr; padding-bottom: .85rem; }
  .timeline-time { grid-template-columns: 37px; padding-top: 1.1rem; }
  .timeline-time time { position: absolute; left: 53px; top: 1.25rem; z-index: 3; padding: 0; color: var(--leaf); text-align: left; }
  .timeline-node { grid-row: 1; width: 36px; height: 36px; }
  .stage-surface { padding: 2.55rem 1rem 1rem; border-radius: 16px; }
  .stage-card.is-current .stage-surface { transform: none; }
  .stage-kicker { line-height: 1.35; }
  .stage-action { font-size: .92rem; }
  .deep-guide { margin-inline: -.35rem; padding: .9rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .status-text { flex-basis: 100%; margin-left: 0; }
  .deferred-note { align-items: flex-start; flex-direction: column; gap: 0; }
  .history-section { width: 100%; border-radius: 0; padding-inline: 12px; }
  .history-section .section-heading { grid-template-columns: 1fr auto; }
  .week-grid { gap: .3rem; }
  .day-cell { padding: .65rem .25rem; border-radius: 10px; }
  .day-name { font-size: .56rem; }
  .day-value { font-size: .56rem; }
  .month-grid { grid-template-columns: repeat(10, 1fr); }
  .month-heading span { display: none; }
  .beyond-grid { grid-template-columns: 1fr; }
  .time-fields { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer a { grid-column: 1; grid-row: auto; margin-top: .7rem; }
}

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

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: white; color: black; font-size: 10pt; }
  .skip-link, .site-header, .hero-copy, .sleep-check, .system-section, .hero-actions, .history-section, .beyond-section, .trust-section, .site-footer, .stage-details, .status-text, .na-button, .current-chip { display: none !important; }
  .shell { width: 100%; }
  .hero { display: block; padding: 0 0 6mm; }
  .today-panel { padding: 0; border: 0; box-shadow: none; }
  .date-row { padding: 0 0 3mm; }
  .local-badge, .progress-layout, .now-card { display: none; }
  .print-only { display: block; }
  .print-header { margin-bottom: 5mm; }
  .print-header .print-title { margin: 0; color: var(--forest); font-family: Georgia, serif; font-size: 24pt; font-weight: 700; }
  .print-header p { margin: 1mm 0 0; color: #555; }
  .timeline-section { padding: 0; }
  .section-heading { display: none; }
  .timeline::before { left: 22mm; top: 0; bottom: 0; }
  .stage-card { grid-template-columns: 28mm 1fr; padding-bottom: 2.2mm; break-inside: avoid; }
  .timeline-time { grid-template-columns: 1fr 10mm; gap: 2mm; padding-top: 2.5mm; }
  .timeline-node { width: 8mm; height: 8mm; background: white; }
  .stage-surface { padding: 2.5mm 3.5mm; border: 1px solid #ccd5cf; border-radius: 3mm; background: white; box-shadow: none; }
  .stage-kicker { font-size: 6.5pt; }
  .stage-card h3 { font-size: 12pt; }
  .stage-action { margin: 1mm 0 2mm; font-size: 9pt; }
  .stage-controls { min-height: 0; }
  .check-button { width: 7mm; height: 7mm; min-height: 0; padding: 0; border: 1px solid #777; background: white !important; color: transparent !important; }
  .checkmark { width: 100%; height: 100%; border: 0; color: transparent !important; }
  .check-button span:last-child { display: none; }
  .deferred-note { padding: 1mm 2mm; background: #eee; }
}
