@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("./assets/manrope-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Newsreader;
  src: url("./assets/newsreader-roman.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("./assets/newsreader-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --base: #f4f0e7;
  --surface: #fffcf7;
  --surface-hover: #f3f0e8;
  --field: #f8f6ef;
  --line: #e4ded2;
  --line-strong: #899284;
  --text: #29322b;
  --muted: #566358;
  --soft: #647366;
  --accent: #365748;
  --accent-hover: #29473a;
  --on-accent: #fffdf6;
  --sage: #e2eadf;
  --coral: #9c4d3c;
  --gold: #79562d;
  --lilac: #68577b;
  --ruler-surface: #222b25;
  --ruler-ink: #f8f2e5;
  --ruler-marker: #f1a985;
  --round: 24px;
  --display: Manrope, system-ui, sans-serif;
  --editorial: Newsreader, Georgia, serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --surface-shadow: 0 12px 32px #4137230b, 0 2px 7px #41372308;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--base);
  caret-color: var(--accent);
  scrollbar-color: #a1ac9f var(--base);
  scroll-padding-top: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { color: var(--on-accent); background: var(--accent); }
body { margin: 0; min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 3px; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .42; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [role="slider"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
:where(h1, h2, h3, main):focus { outline: none; }
:where(h1, h2, h3, p, dl, dd) { margin: 0; }
:where(h1, h2, h3) { text-wrap: balance; }
p { line-height: 1.65; }
.site-width { width: min(100% - 96px, 1184px); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; display: inline-block; flex: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.muted { color: var(--muted); font-size: .875rem; }
.skip-link { position: fixed; z-index: 5; inset: .5rem auto auto .5rem; transform: translateY(-150%); padding: .75rem 1rem; border: 0; background: var(--accent); color: var(--on-accent); border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; z-index: 2; top: 0; border-bottom: 1px solid var(--line); background: var(--base); padding-top: env(safe-area-inset-top, 0px); }
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .topbar { background: #f4f0e7e8; -webkit-backdrop-filter: saturate(125%) blur(16px); backdrop-filter: saturate(125%) blur(16px); }
}
.topbar-layout { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.main-nav { display: flex; align-items: center; gap: .12rem; }
.main-nav a, .quick-nav { min-height: 44px; padding: .55rem .86rem; display: inline-flex; align-items: center; justify-content: center; gap: .47rem; border-radius: 999px; text-decoration: none; font-size: .84rem; font-weight: 750; white-space: nowrap; transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 120ms var(--ease); }
.main-nav a { color: var(--muted); }
.main-nav .icon, .quick-nav .icon { width: 17px; height: 17px; }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--sage); }
.quick-nav { color: var(--accent); border: 1px solid #bac5b7; padding-inline: .9rem; }
.quick-nav[aria-current="page"] { background: var(--sage); }

.view { padding-bottom: 3.1rem; }
.home-view { padding-top: 1.55rem; }
.day-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .85rem; color: var(--muted); }
.day-bar p, .day-bar button { display: inline-flex; gap: .56rem; align-items: center; }
.day-bar p { font-size: .81rem; font-weight: 750; }
.day-bar p .icon { color: var(--accent); }
.day-bar .icon { width: 15px; height: 15px; }
.day-bar .privacy-trigger { font-size: .75rem; color: var(--muted); padding: .52rem 0 .52rem .25rem; }
.privacy-narrow { display: none; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.19fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.4rem); align-items: start; }
.hero { min-width: 0; display: grid; grid-template-rows: auto minmax(220px, 1fr); align-self: stretch; gap: 1.18rem; min-height: 454px; }
.hero-image { position: relative; overflow: hidden; min-height: 0; border-radius: var(--round); box-shadow: 0 13px 30px #3d352419; background: #3d4838; }
.hero-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 58%; }
.hero-content { padding: .85rem 0 .16rem; }
.hero h1 { font: 500 clamp(4rem, 7vw, 6rem)/.95 var(--editorial); letter-spacing: -.038em; text-wrap: initial; }
.hero h1 em { color: var(--accent); }
.hero p { margin-top: .43rem; color: var(--muted); font-weight: 550; max-width: 38ch; }
.hero-link { margin-top: .36rem; display: inline-flex; align-items: center; gap: .44rem; text-decoration: none; min-height: 44px; color: var(--accent); font-size: .85rem; font-weight: 800; }
.hero-link .icon { width: 16px; height: 16px; stroke-width: 1.9; }

.check-panel { padding: 1.28rem 1.4rem 1.35rem; min-width: 0; min-height: 454px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--surface-shadow); display: flex; flex-direction: column; }
.panel-top, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-top { border-bottom: 1px solid var(--line); padding: 0 0 .86rem; }
.panel-top h2 { display: flex; align-items: center; gap: .6rem; font-size: .855rem; font-weight: 800; }
.panel-top h2 .icon { width: 17px; height: 17px; color: var(--accent); }
.step-indicator { display: flex; align-items: center; color: var(--muted); font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; gap: .6rem; white-space: nowrap; }
.step-bars { display: flex; gap: 3px; }
.step-bars i { width: 10px; height: 3px; border-radius: 4px; background: #cbd5c7; }
.step-bars i.filled { background: var(--accent); }
.check-form { display: flex; flex: 1; flex-direction: column; }
.scale-step { padding-top: 1.23rem; }
.question { font: 650 1.45rem/1.2 var(--display); letter-spacing: -.035em; }
.scale-step .question { text-align: center; margin: 0 0 1rem; }
.ruler-well { background: linear-gradient(160deg, #29342c, var(--ruler-surface) 68%); color: var(--ruler-ink); border: 1px solid #242e26; border-radius: 18px; overflow: hidden; padding: .65rem .61rem .78rem; box-shadow: inset 0 1px #ffffff17; }
.ruler-value { display: grid; gap: .15rem; justify-items: center; }
#ruler-number { display: grid; place-items: center; width: 2.5ch; height: 5.3rem; font: 700 4.6rem/1 var(--display); letter-spacing: -.042em; font-variant-numeric: tabular-nums; }
.ruler-digits { display: grid; grid-template-columns: repeat(2, 1ch); height: 100%; transform: translateX(-.5ch); }
.ruler-digits[data-wide] { transform: translateX(0); }
.ruler-digits[data-rolling] { transition: transform 230ms var(--ease); }
:is(.ruler-digit, .timer-digit) { display: grid; place-items: center; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
:is(.ruler-digit, .timer-digit) > span { grid-area: 1 / 1; }
.ruler-description { font-size: .8rem; font-weight: 650; color: #dbe0d3; }
.ruler-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .05rem; margin-top: .54rem; }
.ruler { width: 100%; min-height: 64px; position: relative; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 5px; }
.ruler.is-grabbed { cursor: grabbing; }
.ruler canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ruler-pin { position: absolute; top: 9px; left: 50%; background: var(--ruler-marker); height: 33px; width: 2px; border-radius: 1px; transform: translateX(-50%); pointer-events: none; }
.ruler-pin::before { content: ""; position: absolute; background: inherit; width: 7px; height: 7px; left: 50%; top: -1px; border-radius: 100%; transform: translateX(-50%); }
.ruler-ends { display: flex; justify-content: space-between; gap: .35rem; padding: 0 .39rem; color: #cbd4c7; font-size: .735rem; font-weight: 650; }
.ruler-well :focus-visible { outline-color: var(--ruler-marker); outline-offset: 1px; }
.scale-tools { display: flex; justify-content: space-between; align-items: center; margin-top: .2rem; gap: .25rem; }
.scale-tools p { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .76rem; }
.scale-tools .icon { width: 16px; height: 16px; }
.sound-toggle[aria-pressed="true"] { color: var(--accent); }
.check-actions { display: flex; gap: .65rem; margin-top: auto; padding-top: .65rem; }
.next-button { flex: 1; justify-content: space-between; }
.details-step { padding-block: 1.2rem .25rem; }
.details-step > .question { margin-bottom: .9rem; }
.final-step > p { color: var(--muted); margin-bottom: 1rem; font-size: .93rem; }
.final-step .inline-link { display: inline-flex; margin-top: .85rem; }
.check-done { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; text-align: center; }
.check-done h3 { font: 650 1.65rem/1.2 var(--display); }
.check-done p { color: var(--muted); max-width: 28ch; }
.saved-icon { width: 53px; height: 53px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--accent); }
.saved-icon .icon { width: 26px; height: 26px; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .62rem; border: 1px solid transparent; border-radius: 999px; padding: .65rem 1.12rem; font-weight: 800; font-size: .855rem; text-align: center; text-decoration: none; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease); }
.button .icon { width: 17px; height: 17px; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.secondary { color: var(--accent); background: var(--field); border-color: #bfc6b8; }
.button.next-button { justify-content: space-between; }
.button.danger-button { background: var(--coral); color: var(--on-accent); }
.button.danger-text { color: var(--coral); }
.text-button, .inline-link { background: transparent; border: 0; color: var(--accent); padding: 0; font-size: .86rem; font-weight: 750; }
.inline-link { display: inline-flex; align-items: center; gap: .48rem; color: var(--accent); text-decoration: none; }
.inline-link .icon { width: 17px; height: 17px; }
.icon-button { display: inline-grid; width: 44px; height: 44px; flex: none; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 50%; color: var(--muted); background: transparent; transition: background-color 140ms var(--ease), transform 120ms var(--ease); }
.icon-button .icon { width: 17px; height: 17px; }
.adjust { position: relative; color: #e0e7d8; }
.adjust::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid #637166; }
.adjust[aria-disabled="true"] { opacity: .4; cursor: default; }

.home-tools { margin-top: 2.2rem; }
.section-heading h2, .surface h2 { font: 650 1.3rem/1.2 var(--display); letter-spacing: -.025em; }
.home-tools .section-heading h2 { font-size: 1.65rem; }
.home-tools .section-heading { margin-bottom: .95rem; }
.quick-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.quick-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .72rem; min-height: 84px; padding: .87rem 1.15rem; text-decoration: none; transition: background-color 160ms var(--ease); }
.quick-card + .quick-card { border-inline-start: 1px solid var(--line); }
.quick-card:focus-visible { outline-offset: -4px; }
.quick-card strong, .resource-row strong { display: block; font-weight: 800; font-size: .94rem; line-height: 1.35; }
.quick-card small, .resource-row small { display: block; color: var(--muted); font-size: .765rem; margin-top: .22rem; line-height: 1.45; }
.tile-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; }
.tile-icon .icon { width: 21px; height: 21px; }
.tint-green { background: var(--sage); color: var(--accent); }
.tint-gold { background: #f1e6d6; color: var(--gold); }
.tint-lilac { background: #eee6ef; color: var(--lilac); }
.quick-card .tile-icon { background: none; width: 35px; }
.tile-arrow { color: var(--soft); width: 16px; height: 16px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.footer-layout { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .76rem; }
.footer-layout > div { display: flex; align-items: center; gap: 1.35rem; }
.footer-layout a, .footer-layout .text-button { color: inherit; font-size: inherit; font-weight: 700; text-decoration: none; white-space: nowrap; }

.inner-view { padding-block-start: 3.1rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.3rem; margin-bottom: 1.85rem; }
.page-heading h1 { font: 500 clamp(2.75rem, 5.4vw, 4.15rem)/.98 var(--editorial); letter-spacing: -.032em; }
.page-heading p { margin-top: .45rem; color: var(--muted); max-width: 66ch; }
.page-heading .button { flex: none; }
.surface { border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); padding: 1.4rem; min-width: 0; }
.surface > h2 + p, .surface > h2 + div { margin-top: .65rem; }
.surface > h2 + p { color: var(--muted); }
.history-layout, .planner-layout, .support-layout, .quick-layout, .about-layout { display: grid; gap: 1.25rem; align-items: start; }
.history-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.planner-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.support-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.quick-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.about-layout { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; }
.segmented { display: inline-flex; gap: 2px; background: #efeee6; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex: none; }
.segmented button { min-height: 36px; border: 0; background: transparent; border-radius: 999px; color: var(--muted); font-size: .79rem; padding: .35rem .73rem; font-weight: 750; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 1px 4px #34382e1a; }
.empty-state { min-height: 183px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; padding: 1.45rem .5rem; }
.empty-state > .icon { width: 25px; height: 25px; color: var(--accent); margin-bottom: .35rem; }
.empty-state p { color: var(--muted); max-width: 43ch; font-size: .875rem; }
.empty-state .inline-link { margin-top: .3rem; }
.chart-key { display: flex; gap: 1rem; margin: .8rem 0 0; color: var(--muted); font-size: .78rem; }
.chart-key span { display: flex; align-items: center; gap: .4rem; }
.chart-key i { height: 8px; width: 8px; border-radius: 100%; }
.chart-key .stress { background: var(--coral); }
.chart-key .mood { background: var(--accent); }
.trend-canvas { display: block; width: 100%; height: 230px; margin-top: .3rem; }
.insight-item, .prep-group { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.insight-item:last-child, .prep-group:last-child { border-bottom: 0; padding-bottom: 0; }
.insight-item dt { color: var(--muted); font-size: .8rem; }
.insight-item dd { margin-top: .23rem; font-weight: 800; }
.insight-tip { padding-top: .9rem; color: var(--muted); font-size: .84rem; }
.insight-tip .inline-link { margin-top: .35rem; }
.diary { margin-top: 1.65rem; }
.diary > .section-heading { margin-bottom: .8rem; }

.entry { border-bottom: 1px solid var(--line); }
.entry summary { min-height: 59px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(82px, auto) minmax(85px, auto) auto; gap: .9rem; align-items: center; list-style: none; cursor: pointer; color: var(--muted); font-size: .83rem; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary strong { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.entry summary .icon { width: 16px; height: 16px; }
.entry[open] summary .icon { transform: rotate(180deg); }
.entry-detail { display: grid; gap: .5rem; max-width: 65ch; padding: .1rem 0 1.05rem; }
.entry-detail p { overflow-wrap: anywhere; }
.entry-detail .button { justify-self: start; margin-top: .4rem; }
.planner-side { display: grid; gap: 1rem; }
.task-list { margin: .76rem 0 0; padding: 0; list-style: none; }
.task-item { min-height: 67px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; border-bottom: 1px solid var(--line); padding-block: .55rem; }
.task-item:last-child { border-bottom: 0; padding-bottom: 0; }
.task-item > div { min-width: 0; overflow-wrap: anywhere; }
.task-name { display: block; font-weight: 800; }
.task-item.is-done .task-name { text-decoration: line-through; color: var(--muted); }
.task-meta { color: var(--muted); font-size: .765rem; }
.due-soon { color: var(--gold); font-weight: 800; }
.overdue { color: var(--coral); font-weight: 800; }
.task-controls { display: flex; }
.task-check { border-color: var(--line-strong); border-radius: 50%; width: 40px; height: 40px; }
.task-check[aria-pressed="true"] { background: var(--sage); color: var(--accent); }
.task-check[aria-pressed="false"] .icon { opacity: 0; }
.prep-heading { color: var(--accent); font-size: .78rem; font-weight: 800; }
.prep-group ul { margin: .35rem 0 0; padding: 0; list-style: none; }
.prep-group li { display: flex; justify-content: space-between; gap: .9rem; color: var(--text); font-size: .875rem; overflow-wrap: anywhere; }
.prep-group li + li { margin-top: .3rem; }
.prep-group li span:last-child { white-space: nowrap; color: var(--muted); }
.prep-export { margin-top: 1.1rem; }
.prep-export p { margin-top: .3rem; }
.prep-more, .your-thoughts { margin-top: .65rem; }
.prep-more summary, .your-thoughts summary { cursor: pointer; color: var(--muted); font-size: .86rem; font-weight: 750; }
.your-thoughts p { margin: .45rem 0 0 .85rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.rest-note { display: flex; align-items: flex-start; gap: .85rem; padding: 1.25rem; border-radius: var(--round); background: var(--sage); }
.rest-note .tile-icon { background: #d3e0d2; }
.rest-note h2 { font: 650 1.12rem/1.2 var(--display); }
.rest-note p { color: var(--muted); margin: .35rem 0 .6rem; font-size: .865rem; }

.support-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.support-heading .tile-icon { width: 25px; height: 30px; justify-items: start; background: none; }
.support-panel h2 { font-size: 1.55rem; }
.support-heading + p { color: var(--muted); }
.resource-list { margin-top: 1rem; }
.resource-row { display: flex; align-items: center; gap: .72rem; width: 100%; min-height: 59px; padding: .65rem .35rem; color: var(--text); border-top: 1px solid var(--line); text-decoration: none; transition: background-color 150ms var(--ease); }
.resource-row > span:not(.tile-icon) { flex: 1; }
.resource-row > .icon { width: 16px; height: 16px; color: var(--soft); margin-right: .3rem; }
.resource-row .tile-icon { margin-block: 0; width: 36px; height: 36px; border-radius: 7px; }
.resource-row .tile-icon .icon { width: 18px; height: 18px; }
.resource-row[aria-current="true"] strong, .resource-row[aria-current="true"] > .icon { color: var(--accent); }
.urgent-note { margin-top: .65rem; display: flex; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid #e6cdbf; border-radius: 15px; background: #f7ebe3; }
.urgent-note div { flex: 1; }
.urgent-note strong { color: var(--coral); font-size: .89rem; }
.urgent-note p { color: #69483a; font-size: .8rem; margin-top: .2rem; }
#reflection-content { margin-top: 1.2rem; }
.reflection-choices, .reflection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .75rem; }
.reflection-note { color: var(--muted); border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: .75rem; font-size: .79rem; }
.reflection-question { font-weight: 800; margin-bottom: .58rem; }
.reflection-result { color: var(--muted); line-height: 1.65; }

.activity-list h2 { margin-bottom: .9rem; }
.activity-list .resource-row[aria-current="true"] .tile-icon { background: var(--sage); }
.activity-panel { min-height: 457px; padding: 1.8rem 1.4rem; display: flex; flex-direction: column; text-align: center; align-items: center; }
.activity-panel > h2 { font-size: 1.55rem; }
.activity-panel > p { max-width: 51ch; font-size: .9rem; }
.activity-panel .activity-steps { padding: 0 0 0 1.3rem; width: min(100%, 43ch); margin: 1.55rem auto 0; text-align: left; color: var(--text); line-height: 1.55; }
.activity-panel:has(.activity-steps:not([hidden])) { min-height: 0; padding-bottom: 2rem; }
.activity-steps li + li { margin-top: .85rem; }
.timer { flex: 1; padding: .9rem 0 .2rem; display: grid; grid-template-rows: 1fr auto; justify-items: center; width: 100%; }
.timer-display { display: grid; position: relative; align-content: center; justify-items: center; gap: .36rem; min-height: 11.5rem; width: min(100%, 18rem); }
.timer-numerals { display: inline-flex; justify-content: center; align-items: center; font: 620 clamp(3.25rem, 9vw, 4.65rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.04em; white-space: nowrap; }
.timer-digit { width: .64em; height: 1.15em; }
.timer-colon { width: .28em; transform: translateY(-.075em); }
#timer-phase { color: var(--muted); font: 750 .83rem/1.45 var(--display); min-height: 1.2rem; }
.breath-guide { position: relative; width: min(75%, 9.75rem); height: 2px; margin-top: 1rem; border-radius: 999px; background: var(--line); }
.breath-guide-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--soft); transform: scaleX(.24); }
.timer-actions { margin-top: .85rem; display: flex; gap: .55rem; justify-content: center; flex-wrap: wrap; }
.timer-actions .primary { min-width: 8.5rem; }
.prose { max-width: 72ch; }
.prose h2 { font: 650 1.46rem/1.24 var(--display); margin: 1.55rem 0 .55rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose .button { margin-top: 1.25rem; }
.source-links { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin-top: .65rem; font-size: .84rem; }
.source-links a { color: var(--accent); }
.research-panel dl { margin: .8rem 0 1.1rem; }
.research-panel dl > div { padding: .82rem 0; border-bottom: 1px solid var(--line); }
.research-panel dt { color: var(--accent); font: 700 2.15rem/1.05 var(--display); font-variant-numeric: tabular-nums; }
.research-panel dd { color: var(--muted); margin-top: .25rem; }

.field { display: block; font-size: .84rem; font-weight: 750; }
.field + .field, .dialog .form-columns, .tag-field:not(:first-child) { margin-top: .74rem; }
.field .optional { margin-left: .28rem; color: var(--muted); font-size: .71rem; font-weight: 600; }
.field :is(input, textarea, select), .reflection-input { width: 100%; padding: .64rem .72rem; min-height: 45px; color: var(--text); background: var(--field); border: 1px solid var(--line-strong); border-radius: 12px; display: block; margin-top: .34rem; font-size: 1rem; font-weight: 550; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #626e62; }
.tag-field { border: 0; padding: 0; margin-inline: 0; margin-bottom: .7rem; min-width: 0; }
.tag-field legend { margin-bottom: .42rem; padding: 0; font-size: .84rem; font-weight: 750; }
.tag-list { display: flex; flex-wrap: wrap; gap: .38rem; }
.tag { min-height: 39px; display: inline-flex; align-items: center; gap: .35rem; padding: .34rem .62rem; border: 1px solid #c6ccbf; border-radius: 999px; background: var(--field); color: var(--muted); font-size: .762rem; font-weight: 750; cursor: pointer; }
.tag input { width: .92rem; height: .92rem; margin: 0; accent-color: var(--accent); }
.tag:has(input:checked) { background: var(--sage); border-color: #95a992; color: var(--accent); }
.error-message { color: var(--coral); font-size: .84rem; margin-top: .55rem; }
.dialog { color: var(--text); max-width: min(32rem, calc(100% - 2rem)); width: 100%; max-height: calc(100% - 2rem); padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--round); background: var(--surface); box-shadow: 0 20px 44px #2d322c39; }
.dialog::backdrop { background: #262e2680; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin: 0 0 .85rem; }
.dialog-heading h2 { font: 650 1.48rem/1.16 var(--display); }
.dialog p { color: var(--muted); }
.dialog .error-message { color: var(--coral); }
.dialog-actions { margin-top: 1.2rem; display: flex; gap: .55rem; justify-content: end; flex-wrap: wrap; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.form-columns > .field { margin-top: 0; }
.notice { position: fixed; bottom: 1.15rem; right: 1.15rem; max-width: calc(100% - 2.3rem); z-index: 3; pointer-events: none; background: var(--accent); border-radius: 14px; padding: .7rem 1rem; font-size: .88rem; color: var(--on-accent); font-weight: 750; box-shadow: 0 8px 24px #2033263b; }
.notice:empty { visibility: hidden; }
.noscript { padding: 1rem 0; color: var(--coral); }

@media (hover: hover) and (pointer: fine) {
  .main-nav a:not([aria-current]):hover, .quick-nav:not([aria-current]):hover { background: var(--surface-hover); color: var(--accent); }
  .quick-card:hover, .resource-row:hover { background: var(--surface-hover); }
  .quick-card:hover .tile-arrow, .resource-row:hover .icon { color: var(--accent); }
  .button.primary:hover { background: var(--accent-hover); }
  .button.secondary:hover, .icon-button:not(:disabled):not([aria-disabled="true"]):hover { background: var(--sage); }
  .ruler-well .adjust:not([aria-disabled="true"]):hover { background: #39473b; }
  .text-button:hover, .inline-link:hover, .hero-link:hover, .footer-layout a:hover { text-decoration: underline; }
  .segmented button:hover { color: var(--accent); }
  .tag:hover { border-color: var(--line-strong); color: var(--text); }
}
.button:not(:disabled):active:not(:focus-visible), .quick-nav:active:not(:focus-visible), .main-nav a:active:not(:focus-visible),
.icon-button:not(:disabled):not([aria-disabled="true"]):active:not(:focus-visible) { transform: scale(.978); }
.quick-card:active, .resource-row:active { background: var(--sage); }

@media (max-width: 1050px) {
  .site-width { width: min(100% - 56px, 1184px); }
  .home-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .topbar-layout { gap: .7rem; }
  .main-nav a, .quick-nav { padding-inline: .61rem; }
  .quick-card { padding-inline: .7rem; gap: .52rem; }
}
@media (max-width: 790px) {
  :root { scroll-padding-top: 12px; scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
  .site-width { width: calc(100% - 36px); }
  .topbar { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar-layout { min-height: 57px; justify-content: flex-end; }
  .main-nav { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2; width: min(calc(100% - 24px), 438px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 4px; border: 1px solid #dcded0; border-radius: 23px; background: #faf8f0; box-shadow: 0 7px 26px #3b38272b; }
  @supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .main-nav { background: #faf8f0ec; -webkit-backdrop-filter: saturate(135%) blur(16px); backdrop-filter: saturate(135%) blur(16px); }
  }
  .main-nav a { flex-direction: column; gap: .23rem; min-height: 51px; padding: .3rem .1rem; border-radius: 18px; font-size: .72rem; }
  .main-nav .icon { width: 20px; height: 20px; }
  .home-view { padding-top: 1.05rem; }
  .home-grid { gap: 1.15rem; }
  .hero h1 { font-size: 4.15rem; }
  .check-panel { padding-inline: 1.08rem; }
  .quick-card { padding-inline: .6rem; }
  .history-layout, .planner-layout, .quick-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .about-layout { gap: 1.2rem; }
  .notice { bottom: calc(79px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 700px) {
  .home-grid, .history-layout, .planner-layout, .support-layout, .quick-layout, .about-layout { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template: auto / minmax(0, 1fr) clamp(100px, 28%, 185px); gap: 1rem; min-height: 0; align-items: stretch; }
  .hero-image { min-height: 108px; border-radius: 18px; }
  .hero-photo { object-position: 81% 53%; }
  .hero-content { padding: .6rem 0 .06rem; }
  .hero h1 { font-size: clamp(2.88rem, 8.1vw, 4.15rem); line-height: .96; }
  .hero-link { margin-top: .1rem; }
  .hero p { margin-top: .42rem; font-size: .9rem; }
  .check-panel { min-height: 0; padding-block: 1.12rem 1.2rem; }
  .scale-step { padding-top: 1.03rem; }
  .scale-step .question { margin-bottom: .78rem; }
  .quick-row { grid-template-columns: minmax(0, 1fr); }
  .quick-card { min-height: 64px; gap: .7rem; padding: .52rem .88rem; }
  .quick-card + .quick-card { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .home-tools { margin-top: 1.65rem; }
  .home-tools .section-heading h2 { font-size: 1.3rem; }
  .home-tools .section-heading a { flex: none; }
  .inner-view { padding-block: 1.9rem 2.25rem; }
  .page-heading { align-items: start; flex-direction: column; margin-bottom: 1.2rem; gap: .7rem; }
  .surface { padding: 1.15rem; }
  .activity-panel { min-height: 0; padding-block: 1.38rem; }
  .footer-layout { flex-wrap: wrap; justify-content: start; padding-block: .85rem; gap: .6rem 1.3rem; }
  .entry summary { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .45rem; }
}
@media (max-width: 490px) {
  .day-bar { gap: .5rem; }
  .day-bar p { font-size: .76rem; }
  .privacy-wide { display: none; }
  .privacy-narrow { display: inline; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.2rem); }
  .ruler-well { padding-block: .48rem .59rem; }
  #ruler-number { height: 4.55rem; font-size: 4.12rem; }
  .timer-display { min-height: 9.6rem; }
}
@media (max-width: 390px) {
  .site-width { width: calc(100% - 26px); }
  .quick-nav { font-size: .78rem; gap: .35rem; }
  .day-bar p { font-size: .72rem; gap: .34rem; }
  .day-bar .privacy-trigger { font-size: .69rem; gap: .3rem; }
  .hero { gap: .72rem; }
  .hero p { font-size: .84rem; }
  .question { font-size: 1.22rem; }
  .step-bars i { width: 8px; }
  .section-heading { gap: .5rem; }
  .section-heading h2 { font-size: 1.04rem; }
  .segmented button { padding-inline: .45rem; }
  .form-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
  .breath-guide { visibility: hidden; }
  .button:not(:disabled):active:not(:focus-visible), .quick-nav:active:not(:focus-visible), .main-nav a:active:not(:focus-visible),
  .icon-button:not(:disabled):not([aria-disabled="true"]):active:not(:focus-visible) { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--base); -webkit-backdrop-filter: none; backdrop-filter: none; }
  @media (max-width: 790px) {
    .main-nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  }
}
