:root {
  color-scheme: light;
  --paper: #faf9f6;
  --cream: #f7f3eb;
  --ink: #182724;
  --forest: #254d43;
  --deep: #153c30;
  --muted: #54615b;
  --line: #e1e2d8;
  --white: #fffefa;
  --sage: #e0ebe2;
  --lilac: #e9e4f4;
  --rose: #f4e3de;
  --sky: #e1eaf4;
  --sand: #f4ead6;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow: 0 8px 20px #2d3a2510, 0 2px 4px #252d2305;
  --radius: 22px;
  --max: 1100px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-padding-top: 85px; }
body { margin: 0; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: radial-gradient(ellipse at 82% 1%, #eef1e6 0, transparent 33rem), var(--paper); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
h1,h2,h3,p,ul,ol,fieldset,figure { margin: 0; }
h1,h2,h3 { line-height: 1.09; letter-spacing: -.035em; color: var(--deep); }
h1,h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.55rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); }
h3 { font-size: 1.16rem; }
a { color: var(--forest); text-underline-offset: .22em; }
button,input,select,textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .43; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #43745e; outline-offset: 3px; }
input,select,textarea { min-inline-size: 0; max-inline-size: 100%; }
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--forest); }
svg { flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(calc(-100% - 12px)); border-radius: 9px; padding: 10px 15px; color: white; background: var(--deep); z-index: 30; }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid #dfdfd4; background: #faf9f6f5; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--deep); font: 700 1.31rem/1 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.brand-icon { color: var(--forest); border-radius: 8px; display: grid; place-items: center; min-width: 31px; height: 34px; }
.desktop-nav,.header-brand { display: none; }
.mobile-header { width: 100%; }
.mobile-detail { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; font-weight: 690; text-align: center; min-height: 57px; }
.mobile-detail .icon-btn { box-shadow: none; background: transparent; border-color: transparent; }
.bottom-nav { position: fixed; z-index: 10; inset: auto 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #faf9f6f8; backdrop-filter: blur(18px); padding: 4px 8px max(env(safe-area-inset-bottom),6px); border-top: 1px solid #dfe1d7; }
.bottom-nav a { display: grid; place-items: center; align-content: center; gap: 2px; min-height: 56px; padding: 3px; text-align: center; font-size: .68rem; font-weight: 590; line-height: 1.2; color: #445d55; text-decoration: none; }
.bottom-nav a[aria-current] { color: var(--deep); font-weight: 760; }
.bottom-nav a[aria-current] svg { outline: 1px solid #cbd8c9; background: var(--sage); border-radius: 14px; box-sizing: content-box; padding: 4px 13px; }
.site-main { width: min(100%,var(--max)); margin: 0 auto; padding: 0 16px 44px; min-height: min(74vh,720px); }
.site-footer { border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; padding: 22px 16px 33px; display: flex; flex-wrap: wrap; gap: 20px 30px; align-items: center; justify-content: space-between; }
.site-footer p { color: var(--muted); font-size: .84rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }

.panel { background-color: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-heading { padding: 29px 0 21px; }
.page-heading h1 { margin: 5px 0 9px; }
.lede { color: var(--muted); font-size: clamp(1rem,2vw,1.15rem); max-width: 42rem; }
.eyebrow { display: block; color: var(--forest); font: 720 .69rem/1.25 var(--sans); letter-spacing: .115em; text-transform: uppercase; }
.muted,.private-note { color: var(--muted); }
.private-note { display: flex; gap: 6px; align-items: center; font-size: .77rem; }
.back-link,.text-link,.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 670; font-size: .87rem; }
.back-link { display: none; color: var(--muted); margin-bottom: .35rem; }
.text-button { border: none; background: transparent; padding: 0 2px; color: var(--forest); }
.text-button:hover,.text-link:hover { text-decoration: underline; }
.button { border: 1px solid transparent; border-radius: 13px; padding: 10px 14px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 710; font-size: .94rem; line-height: 1.19; text-align: center; text-decoration: none; white-space: normal; }
.button.full { width: 100%; }
.button.primary { background: linear-gradient(120deg,#285646,#1b4438); color: #fffefb; box-shadow: 0 2px 4px #163e3626, inset 0 1px #ffffff17; border-color: #153c30; }
.button.primary:hover { background: #164233; }
.button.secondary,.button.light { background: #fffefa; color: var(--deep); border-color: #d9e0d0; }
.button.secondary:hover,.button.light:hover { background: #edf2e7; }
.button.danger { color: white; background: #9b3a35; }
.danger-link { color: #983d38; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--forest); border: 1px solid #dce0d4; border-radius: 13px; background: var(--white); text-decoration: none; }
.tile-icon { display: inline-grid; place-items: center; height: 45px; width: 45px; border-radius: 13px; background-color: var(--tone,var(--sage)); color: var(--symbol,var(--forest)); }
.tone-sage { --tone: var(--sage); --symbol: #295649; }
.tone-lilac { --tone: var(--lilac); --symbol: #5c4b7f; }
.tone-sky { --tone: var(--sky); --symbol: #2d5476; }
.tone-rose { --tone: var(--rose); --symbol: #91474f; }
.tone-sand { --tone: var(--sand); --symbol: #77532e; }
.art-hero,.home-hero-art { background-image: url('/art/hero.jpg'); }
.art-age { background-image: url('/art/age.jpg'); }
.art-report { background-image: url('/art/report.jpg'); }
.art-calendar { background-image: url('/art/calendar.jpg'); }
.art-orbit { background-image: url('/art/world.jpg'); }
.art-travel { background-image: url('/art/travel.jpg'); }
.art-birthday { background-image: url('/art/birthday.jpg'); }
.art-custom { background-image: url('/art/custom.jpg'); }

.home-hero { margin: 0 -16px; position: relative; }
.home-intro { overflow: hidden; position: relative; min-height: 284px; isolation: isolate; background: #f6f1de; }
.home-hero-art { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: 54% 51%; }
.home-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#fbf4e7f5 0,#fbf4e7bb 25%,#fbf4e722 60%,transparent 83%); mask-image: linear-gradient(#000 10%,transparent 86%); }
.home-copy { padding: 30px 22px; }
.home-copy h1 { font-size: clamp(2.85rem, 12vw, 4.2rem); line-height: .92; letter-spacing: -.067em; color: #152c25; }
.home-copy h1 span { color: #417454; }
.home-copy p { margin-top: 12px; max-width: 245px; font-size: .89rem; line-height: 1.4; font-weight: 520; color: #233c35; text-wrap: pretty; }
.hero-form { position: relative; margin: -41px 16px 0; padding: 17px; border-color: #c7d2bd; }
.hero-form > .tile-icon { display: none; }
.hero-form > p:not(.private-note) { color: var(--muted); margin: 5px 0 12px; font-size: .85rem; }
.hero-form .private-note { margin-top: 11px; }
.home-paths { margin-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.path-tile { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 12px 11px 11px; min-height: 100px; border: 1px solid #ffffffb2; border-radius: 17px; text-decoration: none; color: var(--ink); background: linear-gradient(120deg,#ffffff66,transparent),var(--tone); box-shadow: 0 2px 4px #42382308; }
.path-tile > span:first-child { color: var(--symbol); margin-bottom: 5px; }
.path-tile strong { font-size: .98rem; }
.path-tile small { color: #45544c; font-size: .72rem; }
.path-arrow { position: absolute; color: var(--symbol); top: 13px; right: 11px; opacity: .86; }
.path-tile:hover,.tool-tile:hover,.story-card:hover,.moment-card:hover { border-color: #98b29c; }
.home-reading { margin-top: 30px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.section-heading h2 { margin-top: 4px; }
.section-heading .text-link { align-self: flex-end; white-space: nowrap; }

.stack { display: grid; gap: 12px; }
.birth-inputs,.moment-types,.lab-toggle { padding: 0; min-width: 0; border: 0; }
.birth-inputs legend,.field>span,.moment-types legend { color: var(--ink); font-size: .87rem; font-weight: 700; }
.birth-inputs legend,.moment-types legend { margin-bottom: 5px; }
.birth-row { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; }
.birth-row label,.field { display: grid; gap: 4px; color: var(--muted); font-size: .77rem; font-weight: 560; min-width: 0; }
.birth-row input,.field input,.field select,textarea { width: 100%; border: 1px solid #cfd7cb; color: var(--ink); background: #ffffff; border-radius: 10px; min-height: 46px; padding: 8px 9px; font-size: 1rem; line-height: normal; font-weight: 520; }
.birth-row input::placeholder { color: #66736a; font-weight: 480; }
.field input[type="date"],.field input[type="time"] { appearance: none; text-align: start; display: flex; flex-direction: row; }
.field input::-webkit-date-and-time-value { text-align: start; width: 100%; }
.field select { padding-right: 7px; }
.field-row { display: grid; grid-template-columns: 1fr .8fr 1.15fr; gap: 7px; }
.form-error { color: #903334; font-size: .85rem; padding: 8px 9px; border-radius: 7px; background: #f9ece9; }
.check { display: flex; align-items: center; gap: 7px; min-height: 44px; font-size: .91rem; }
.check input { flex: 0 0 auto; width: 19px; height: 19px; }
.reference { padding-top: 2px; }
.reference summary,.explain summary { cursor: pointer; color: var(--forest); font-weight: 660; min-height: 38px; display: list-item; font-size: .86rem; }
.reference[open] .field { margin-top: 4px; }
.reference small { color: var(--muted); display: block; margin-top: 4px; }
.explain { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 12px; }
.explain p { color: var(--muted); line-height: 1.53; font-size: .87rem; }

.story-grid { display: grid; gap: 13px; }
.story-card { border: 1px solid #e3e1d4; background: var(--white); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.story-art { display: block; height: 129px; background-size: cover; background-position: center 52%; background-color: var(--tone); }
.story-card .art-calendar { background-position: center 54%; }
.story-card .art-orbit { background-position: center 58%; }
.story-body { display: grid; gap: 6px; flex: 1; padding: 14px 14px 12px; }
.story-body .eyebrow { display: flex; gap: 5px; align-items: center; color: var(--symbol); }
.story-body strong { color: var(--deep); font: 650 clamp(1.25rem,4vw,1.55rem)/1.08 var(--serif); letter-spacing: -.018em; }
.story-desc { font-size: .84rem; color: var(--muted); }
.story-link { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 720; align-self: end; margin-top: 5px; color: var(--forest); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 7px 12px; border: 1px solid #e2e3d7; border-radius: 99px; color: var(--ink); background: #fcfbf6; box-shadow: 0 2px 5px #223a2410; font-size: .8rem; font-weight: 650; line-height: 1.13; text-align: center; }
.chip[aria-pressed="true"] { color: white; background: #2a5346; border-color: #214838; }
.chip:hover { border-color: #5c7f67; }

.age-layout,.tool-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 13px; align-items: start; }
#age-results { min-width: 0; }
.age-input-panel,.tool-form-panel,.tool-notes>.panel,.info-page .panel { padding: 17px; }
.age-input-panel h2 { margin-bottom: 12px; }
.age-input-panel .private-note { margin-top: 11px; }
.age-empty { overflow: hidden; }
.age-empty-image { height: 155px; background: #dfeada url('/art/age.jpg') center 62%/cover; }
.age-empty>div:last-child { padding: 16px; }
.age-empty h2 { margin: 5px 0 7px; }
.age-hero { border-radius: var(--radius); min-height: 250px; background: linear-gradient(96deg,#12392dc8,#14352b92 43%,transparent 88%), url('/art/age.jpg') center 54%/cover; color: white; padding: 23px 18px; border: 1px solid #527b5f; }
.age-hero p { font-weight: 630; text-shadow: 0 1px 6px #132b25; }
.age-hero h2 { font-size: clamp(2.85rem,10vw,4.7rem); color: white; margin: 9px 0 4px; }
.age-hero .button { margin-top: 17px; min-height: 45px; }
.age-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.metric { position: relative; display: flex; flex-direction: column; align-items: start; gap: 3px; min-height: 103px; border: 1px solid #ffffffa3; border-radius: 14px; padding: 12px; color: var(--ink); background: linear-gradient(125deg,#fff7,transparent),var(--tone); text-align: left; }
.metric:hover { border-color: #89a292; }
.metric > span:first-child { font-size: .81rem; font-weight: 690; padding-right: 10px; }
.metric strong { font: 700 clamp(1.2rem,4.5vw,1.72rem)/1.1 var(--serif); color: var(--deep); letter-spacing: -.025em; }
.metric small { font-size: .7rem; color: var(--muted); }
.metric-arrow { position: absolute; right: 9px; top: 7px; color: var(--forest); }
.timeline { margin-top: 11px; padding: 16px; }
.timeline .section-heading { align-items: start; }
.timeline .section-heading > span { text-align: right; }
.timeline .muted { font-size: .76rem; }
.timeline ol { list-style: none; display: flex; position: relative; justify-content: space-between; padding: 7px 0 12px; }
.timeline ol::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 2px; background: #a7bfa9; }
.timeline li { display: flex; flex-direction: column; flex: 1; align-items: center; position: relative; gap: 2px; font-size: .78rem; white-space: nowrap; }
.timeline li i { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2px solid #35634e; margin-bottom: 4px; }
.timeline li.is-current i { background: #4b795e; box-shadow: inset 0 0 0 2px white; }
.timeline li span { color: var(--muted); }
.clear-age { margin-top: 4px; }
.report { width: 100%; min-width: 0; max-width: 565px; margin-inline: auto; }
.card-track { margin-top: 4px; position: relative; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #a3b6a0 transparent; padding-bottom: 6px; }
.life-card { flex: 0 0 91%; min-width: 0; scroll-snap-align: start; border-radius: 21px; min-height: 325px; display: flex; align-items: start; padding: 16px; border: 1px solid #d5ded0; background-size: cover; background-position: center; }
.life-card:last-child { flex-basis: 100%; }
.life-card > div { padding: 12px 13px; border-radius: 14px; color: var(--deep); background: #faf7eef0; max-width: 97%; }
.life-card .card-label { font-size: .87rem; margin: 14px 0 2px; font-weight: 660; }
.life-card h2 { font-size: clamp(1.85rem,7vw,3rem); margin-bottom: 3px; }
.life-card p:last-child { font-size: .87rem; }
.card-controls { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 5px; }
.card-dots { display: flex; }
.card-dots button { display: grid; place-items: center; border: 0; background: transparent; min-width: 36px; min-height: 44px; }
.card-dots button::before { content: ""; border: 1px solid #628775; background: #dbe3d9; width: 8px; height: 8px; border-radius: 99px; }
.card-dots button[aria-pressed="true"]::before { width: 15px; background: var(--forest); }
.report .status { text-align: center; }
.status { font-size: .84rem; color: var(--muted); margin: 5px 0 7px; }
.status:empty { display: none; }

.tool-grid { display: grid; gap: 11px; }
.tool-tile { display: grid; align-items: start; grid-template-columns: 45px minmax(0,1fr) 22px; gap: 11px; padding: 14px; text-decoration: none; color: var(--ink); }
.tool-tile strong { font: 650 1.37rem/1.2 var(--serif); color: var(--deep); }
.tool-tile p { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.tile-arrow { align-self: center; color: var(--forest); }
.panel-title { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.calc-result { padding: 18px; background: linear-gradient(125deg,#fff9,transparent),var(--tone); }
.calc-result h2 { font-size: clamp(2rem,7vw,3.4rem); margin: 8px 0 3px; }
.calc-result p:not(.private-note) { margin-top: 3px; color: #40574d; }
.result-facts { border-top: 1px solid #a9bbab; margin-top: 11px; padding-top: 7px; font-size: .88rem; }
.tool-notes { display: grid; gap: 10px; margin-top: 14px; }
.tool-notes .tone-sage { background: #edf2e9; }
.tool-notes p { color: var(--muted); margin-top: 6px; font-size: .9rem; }
.live-clock { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; margin: 11px 0 6px; }
.live-clock > div { padding: 7px 3px; border-radius: 10px; background: #fff9; border: 1px solid #f7fbf0; text-align: center; min-width: 0; }
.live-clock strong { display: block; font: 700 clamp(1.02rem,5vw,1.74rem)/1.15 var(--serif); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; color: var(--deep); }
.live-clock small { font-size: .66rem; }

.moments-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; gap: 0 8px; }
.moments-heading .page-heading { padding-bottom: 8px; }
.new-moment { white-space: nowrap; }
.moment-grid { display: grid; gap: 11px; }
.moment-grid + .private-note { margin-top: 12px; }
.moments-empty { grid-column: 1/-1; display: grid; overflow: hidden; }
.moments-empty > div:last-child { padding: 17px; }
.moments-empty:not(:has(.empty-moment-art)) { padding: 16px; }
.moments-empty h2 { margin: 5px 0 6px; }
.moments-empty p:not(.eyebrow) { color: var(--muted); margin-bottom: 12px; }
.empty-moment-art { min-height: 119px; background: #e2ebe2 url('/art/custom.jpg') center 55%/cover; }
.theme-forest { --moment:#e1eadc; --moment-art:url('/art/custom.jpg'); }
.theme-coast { --moment:#e0eaf7; --moment-art:url('/art/travel.jpg'); }
.theme-blossom { --moment:#f4e3e9; --moment-art:url('/art/report.jpg'); }
.theme-confetti { --moment:#f5e6db; --moment-art:url('/art/birthday.jpg'); }
.moment-card { display: flex; flex-direction: column; position: relative; min-height: 147px; isolation: isolate; overflow: hidden; padding: 13px 15px; border: 1px solid #e0e1d6; border-radius: 18px; background: var(--moment); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.moment-art { position: absolute; inset: 0 0 0 19%; z-index: -1; background: var(--moment-art) center/cover; mask-image: linear-gradient(90deg,transparent 1%,#0005 36%,#000 73%); }
.moment-card > div:not(.moment-art) { position: relative; max-width: 72%; text-shadow: 0 0 7px var(--moment), 0 0 10px var(--moment), 0 0 15px var(--moment); }
.moment-card h2 { margin: 3px 0 1px; font-size: 1.35rem; overflow-wrap: anywhere; }
.moment-card p:not(.eyebrow) { font-size: .79rem; color: #364941; }
.moment-card strong { display: block; font: 700 1.53rem/1.13 var(--serif); margin-top: 8px; }
.moment-arrow { position: absolute; bottom: 13px; right: 12px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: #fffdf3e8; color: var(--forest); }
.moment-editor { padding: 15px; max-width: 655px; margin-inline: auto; }
.moment-editor > h2 { margin: 2px 0 13px; }
.type-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.type-option,.lab-toggle label { display: grid; position: relative; cursor: pointer; }
.type-option input,.lab-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.type-option span,.lab-toggle label span { min-height: 46px; display: flex; align-items: center; gap: 6px; border: 1px solid #dce0d6; padding: 7px 8px; border-radius: 10px; background: #fdfbf7; font-size: .83rem; font-weight: 650; }
.type-option input:checked + span { color: var(--deep); border-color: #397758; background: #edf2e8; box-shadow: inset 0 0 0 1px #397758; }
.type-option input:focus-visible + span,.lab-toggle input:focus-visible + span { outline: 3px solid #43745e; outline-offset: 2px; }
.theme-option i { height: 18px; width: 18px; border-radius: 50%; background: var(--moment); border: 1px solid #99a39a; }
.editor-actions,.moment-actions,.dialog-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.editor-actions { justify-content: flex-end; }
.moment-detail { overflow: hidden; width: min(100%, 620px); margin: 0 auto; background: var(--moment); }
.moment-cover { min-height: 175px; aspect-ratio: 2.5; background: var(--moment-art) center 55%/cover; }
.moment-detail-body { padding: 15px; }
.moment-detail h2 { font-size: clamp(2.3rem,8vw,3.8rem); overflow-wrap: anywhere; }
.moment-name { font-size: 1.17rem; font-weight: 700; margin: 2px 0; overflow-wrap: anywhere; }
.moment-actions { margin-top: 12px; }
.moment-actions .danger-link { margin-left: auto; padding-inline: 4px; }

.article { margin: 12px auto 0; max-width: 820px; }
.article-header { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(128deg,#fff9,transparent),var(--tone); border-radius: 20px; padding: 20px 16px; }
.article-header h1 { font-size: clamp(2.25rem,8vw,4rem); margin: 5px 0 8px; text-wrap: balance; }
.article-header .lede { max-width: 39rem; }
.article-calendar { margin: 15px -16px -20px; min-height: 140px; background: url('/art/calendar.jpg') center 54%/cover; }
.article-inner { max-width: 42rem; margin: 0 auto; }
.article-prose { color: #2e463d; font-size: clamp(.99rem,2vw,1.06rem); line-height: 1.64; }
.article-inner > .article-prose:first-child { margin: 17px 0 14px; }
.article-prose section { margin-top: 23px; }
.article-prose h2 { margin-bottom: 8px; }
.article-prose p + p { margin-top: 9px; }
.article-prose ul { padding-left: 1.35rem; }
.sources { border-top: 1px solid var(--line); padding-top: 15px; }
.sources li { overflow-wrap: anywhere; }
.article-links { border-top: 1px solid var(--line); margin-top: 21px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-links .button { justify-content: space-between; text-align: left; }
.lab { background: linear-gradient(140deg,#fffefb,#f8f6ef); padding: 15px; display: grid; gap: 11px; }
.lab-heading { display: flex; align-items: center; gap: 10px; }
.lab-heading h2 { margin-top: 2px; }
.lab > p { color: var(--muted); font-size: .93rem; }
.lab-result { display: block; padding: 12px; border-radius: 13px; color: #29473d; background: #e6eee3; min-width: 0; }
.lab-result strong { display: block; color: var(--deep); font: 700 clamp(1.28rem,5vw,2.12rem)/1.14 var(--serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.lab-result p,.lab-result small { display: block; margin-top: 4px; }
.lab-result small { color: #43594e; font-size: .8rem; }
.prediction { margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.prediction h3 { margin-bottom: 4px; }
.prediction .filters { margin: 7px 0 3px; }
.range-field { display: grid; gap: 3px; font-size: .88rem; font-weight: 660; }
.range-field > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.range-field input { width: 100%; margin: 0; min-height: 44px; }
.lab-toggle { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-toggle label { flex: 1 1 115px; }
.lab-toggle label span { min-height: 44px; justify-content: center; border-radius: 99px; text-align: center; }
.lab-toggle label input:checked+span { background: var(--forest); color: white; border-color: var(--deep); }
.lesson-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,128px),1fr)); gap: 8px; }
.orbit-figure { position: relative; overflow: hidden; height: 156px; isolation: isolate; background: radial-gradient(ellipse at 40% 88%,#f9e8ce5e,transparent 65%), linear-gradient(135deg,#f4ebdf,#e8e9f6); border-radius: 16px; }
.orbit-ring { position: absolute; inset: 22% 13%; border: 1.5px dashed #6c8e86; border-radius: 50%; transform: rotate(-7deg); }
.sun { position: absolute; left: calc(50% - 19px); top: calc(50% - 19px); width: 38px; height: 38px; background: radial-gradient(circle at 36% 30%,#ffe5a0,#ffc046 65%,#f1a032); border: 1px solid #d08d3e; border-radius: 50%; box-shadow: 0 0 0 6px #ffd16c3d, 0 0 0 12px #ffd78725; }
.orbit-planet { position: absolute; inset: 0; }
.earth { position: absolute; top: var(--y,50%); left: var(--x,87%); width: 37px; height: 37px; display: grid; place-items: center; font-size: 28px; transform: translate(-50%,-50%); }
.orbit-star { display: none; }
.spin-figure { min-height: 156px; display: flex; justify-content: center; align-items: center; gap: clamp(12px,8vw,39px); background: linear-gradient(135deg,#f4ebdf,#e8e9f6); border-radius: 16px; }
.spin-dial { order: 1; position: relative; display: grid; place-items: center; width: 109px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #5d796e; box-shadow: 0 0 0 6px #fff8; }
.spin-earth { font-size: 59px; line-height: 1; }
.spin-pointer { position: absolute; inset: 0; transform: rotate(var(--angle,0deg)); }
.spin-pointer i { display: block; position: absolute; top: -4px; left: calc(50% - 5px); width: 10px; height: 10px; background: var(--forest); border-radius: 50%; box-shadow: 0 0 0 3px #fff; }
.spin-sun,.spin-star { font-size: 25px; min-width: 34px; text-align: center; }
.spin-sun { order: 2; color: #9d6253; opacity: .45; }
.spin-star { color: #6a527e; }
.spin-figure.by-sun .spin-star { opacity: .45; }
.spin-figure.by-sun .spin-sun { opacity: 1; color: #805207; }
.year-track { margin: 6px 0 0; }
.year-track > div { position: relative; height: 12px; border-radius: 6px; background: linear-gradient(90deg,#d9e6d7,#e1dbf0); border: 1px solid #c8d4c7; margin-inline: 7px; }
.year-track [data-year-marker] { position: absolute; top: -4px; transform: translateX(-50%); border: 2px solid white; height: 18px; width: 18px; background: var(--forest); border-radius: 50%; box-shadow: 0 1px 4px #254d4345; }
.year-track p { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: 5px; }
.mini-calendar { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; }
.mini-calendar span { display: grid; min-height: 31px; place-items: center; border-radius: 6px; background: #efeee8; font-size: .78rem; }
.mini-calendar .mini-week { background: transparent; color: #536a60; font-size: .74rem; font-weight: 710; }
.mini-calendar .leap-date { background: #315c4b; color: #fff; font-weight: 700; }
.anchor-list { margin: 5px 0 0; padding-left: 20px; font-size: .85rem; }
.trip-strip,.city-clock-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(67px,1fr)); gap: 5px; }
.trip-strip span,.city-clock-grid>div { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px; border: 1px solid #dce2d6; border-radius: 10px; background: #f9faf3; font-size: .76rem; }
.trip-strip b,.city-clock-grid strong { font: 700 1.24rem/1.1 var(--serif); color: var(--deep); }
.trip-strip small,.city-clock-grid small { font-size: .69rem; color: var(--muted); }
.city-clock-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.info-page { max-width: 760px; margin-inline: auto; }
.info-page .panel h2 { margin: 12px 0 6px; }
.info-page .panel h2:first-child { margin-top: 0; }

dialog { color: var(--ink); width: min(calc(100% - 26px),460px); max-height: calc(100% - 24px); overflow: auto; background: #fffdfa; border: 1px solid #aebcaf; border-radius: 21px; padding: 16px; box-shadow: 0 13px 58px #19221c36; }
dialog::backdrop { background: #17342d70; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 8px; }
.dialog-head h2 { margin-top: 2px; }
dialog p { margin-bottom: 8px; font-size: .93rem; }
dialog > label { font-size: .86rem; font-weight: 690; display: block; margin: 8px 0 4px; }
dialog textarea { resize: vertical; }
.dialog-actions { margin-top: 8px; justify-content: flex-end; }

@media (min-width: 520px) {
  .site-main,.site-footer { padding-inline: 23px; }
  .header-inner { padding-inline: 23px; }
  .home-hero { margin-inline: -23px; }
  .home-intro { min-height: 340px; }
  .home-copy { padding: 38px 34px; }
  .hero-form { margin-inline: 23px; }
  .story-grid,.moment-grid,.tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .moments-empty { grid-template-columns: 1fr 1.2fr; }
  .moments-empty:not(:has(.empty-moment-art)) { grid-template-columns: 1fr; }
  .timeline ol { max-width: 440px; }
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .bottom-nav,.mobile-header { display: none; }
  .header-brand,.desktop-nav { display: flex; align-items: center; }
  .header-inner { min-height: 72px; padding-inline: 26px; }
  .brand { font-size: 1.45rem; }
  .brand-tagline { display: none; }
  .desktop-nav { gap: 6px; }
  .desktop-nav a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 11px; color: var(--forest); text-decoration: none; font-size: .9rem; font-weight: 650; border-radius: 10px; }
  .desktop-nav a[aria-current] { background: var(--sage); color: var(--deep); }
  .desktop-nav a:hover { background: #eef1e8; }
  .desktop-nav svg { width: 17px; height: 17px; }
  .site-main,.site-footer { padding-inline: 26px; }
  .page-heading { padding-top: 35px; padding-bottom: 22px; }
  .back-link { display: inline-flex; }
  .home-hero { margin: 26px 0 0; position: relative; isolation: isolate; border: 1px solid #cbd8c7; border-radius: 27px; min-height: 404px; display: grid; grid-template-columns: minmax(0,1.38fr) minmax(285px,1fr); align-items: center; column-gap: 13px; overflow: hidden; background: #e9efdf; }
  .home-intro { align-self: stretch; position: static; display: flex; align-items: flex-start; min-width: 0; isolation: auto; background: transparent; }
  .home-hero-art { background-position: center 52%; }
  .home-hero-art::after { background: linear-gradient(90deg,#fcf7ecef,#fcf7ec6e 39%,transparent 65%); mask-image: linear-gradient(#000 27%,transparent 89%); }
  .home-copy { padding: 44px 0 20px 33px; }
  .home-copy h1 { font-size: clamp(4.05rem,7.5vw,6.35rem); }
  .home-copy p { font-size: 1.03rem; max-width: 300px; }
  .hero-form { margin: 18px 25px 18px 0; padding: 18px; background: #fffdf7f5; }
  .hero-form > .tile-icon { display: grid; width: 37px; height: 37px; margin-bottom: 7px; }
  .hero-form .birth-row { gap: 8px; }
  .home-paths { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 15px; }
  .path-tile { padding: 14px 13px; }
  .home-reading { margin-top: 39px; }
  .featured-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .story-art { height: 141px; }
  .age-layout { grid-template-columns: minmax(260px,.75fr) minmax(0,1.45fr); }
  .age-hero { min-height: 288px; padding: 28px; }
  .age-empty-image { height: 225px; }
  .tool-layout { grid-template-columns: 1fr 1.1fr; }
  .tool-notes { grid-template-columns: 1.1fr .9fr; }
  .tool-form-panel,.calc-result,.tool-notes>.panel { padding: 20px; }
  .article { margin-top: 22px; }
  .article-header { padding: 24px; }
  .article-calendar { margin: 17px -24px -24px; min-height: 170px; }
  .lab { padding: 19px; }
  .orbit-figure { height: 183px; }
  .moment-editor,.moment-detail { padding: 0; }
  .moment-editor,.moment-detail-body { padding: 21px; }
  .new-moment { margin-bottom: 5px; }
}
@media (min-width: 970px) {
  .brand-tagline { display: inline; margin-left: 16px; border-left: 1px solid #bbc9ba; padding-left: 16px; color: var(--forest); font: italic 1.05rem/1.1 var(--serif); white-space: nowrap; }
  .header-inner { min-height: 74px; }
  .home-hero { min-height: 420px; }
  .home-copy { padding-left: 46px; }
  .hero-form { margin-right: 36px; padding: 24px; }
  .discover-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .age-layout { gap: 17px; }
  .age-input-panel { padding: 23px; }
  .type-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}

/* Phase 1.1 · Keep controls inside the safe area, including in landscape. */
@media (orientation: landscape) {
  .header-inner,.site-main,.site-footer {
    padding-left: max(16px,env(safe-area-inset-left));
    padding-right: max(16px,env(safe-area-inset-right));
  }
  .bottom-nav {
    padding-left: max(8px,env(safe-area-inset-left));
    padding-right: max(8px,env(safe-area-inset-right));
  }
}
dialog {
  max-height: calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));
  overscroll-behavior: contain;
}
.share-picture {
  display: grid;
  justify-items: center;
  margin-block: 8px;
}
.share-picture img {
  display: block;
  width: min(100%,40dvh,270px);
  height: auto;
  border-radius: 14px;
  border: 1px solid #d2dbce;
}
.share-picture .status { text-align: center; }
.share-primary > .button { width: 100%; }
.share-primary > .button:disabled { opacity: .55; cursor: default; }
.share-text-options {
  border-top: 1px solid #e0e5d9;
  margin-top: 12px;
}
.share-text-options summary { color: var(--forest); cursor: pointer; font-weight: 650; padding-block: 9px; }
.share-text-options textarea { resize: none; }
.birthday-action {
  margin-block: 8px;
  padding: 9px 12px;
}
.birthday-action small { color: var(--muted); }
.moment-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-block: 10px;
  color: var(--forest);
  background: #e8f0e6;
  border-radius: 11px;
}
.moment-notice p { margin: 0; }

.lesson-figure {
  padding: 14px;
  margin: 16px 0;
  border: 1px solid #d7dfcf;
  border-radius: 15px;
  background: linear-gradient(135deg,#eef3e7,#fbf6e8);
  color: var(--forest);
}
.lesson-figure figcaption { display: grid; gap: 3px; margin-bottom: 12px; }
.lesson-figure figcaption strong { font: 700 1.1rem var(--serif); }
.lesson-figure figcaption span,.lesson-figure small { color: var(--muted); font-size: .78rem; }
.month-bars { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px 5px; }
.month-bars > span { display: grid; grid-template-rows: auto 30px auto; place-items: end center; gap: 3px; font-size: .76rem; }
.month-bar { width: 63%; height: calc(10px + (var(--days) - 28) * 6px); background: #74957c; border-radius: 5px; }
.month-bars > span:nth-child(2) .month-bar { background: #94684a; }
.day-figure > div,.offsets-figure > div { display: flex; gap: 6px; justify-content: space-between; margin-bottom: 9px; }
.day-figure > div span,.offsets-figure > div span { display: grid; padding: 7px; font-size: .8rem; text-align: center; background: #fdfbf4; border: 1px solid #d7dfcf; border-radius: 9px; flex: 1; }
.day-figure > div i { align-self: center; flex: 0 0 12%; height: 2px; background: #769683; }
.lab-takeaway { border-left: 3px solid #92ab92; padding-left: 12px; }
@media (min-width: 650px) {
  .month-bars { grid-template-columns: repeat(12,minmax(0,1fr)); }
}

/* Phase 2 retains the common card and form shell across the new tools. */
.tool-groups { display:grid; gap:22px; }
.tool-group h2 { margin:0 0 8px; }
.tool-inset,.moment-scene-result { min-width:0; margin:0; padding:12px; border:1px solid #d9e3d5; border-radius:13px; background:#f6f8f0; }
.tool-inset legend { color:var(--deep); font-weight:700; padding-inline:4px; }
.tool-inset p { color:var(--muted); margin-bottom:8px; font-size:.88rem; }
.tool-inset h3 { margin:0 0 4px; }
.endpoint-controls,.tool-samples { display:flex; flex-wrap:wrap; gap:6px 12px; }
.tool-time-pair,.inline-control { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:end; }
.inline-control { grid-template-columns:minmax(0,1fr) auto; }
.inline-control .button { align-self:end; margin-bottom:0; }
.weekday-pills { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.weekday-pills span { justify-content:center; padding-inline:4px; }
.weekday-pills abbr { text-decoration:none; }
.removable-list { list-style:none; padding:0; margin:6px 0 0; display:flex; flex-wrap:wrap; gap:5px; }
.removable-list:empty { display:none; }
.removable-list li { display:flex; max-width:100%; align-items:center; gap:3px; border:1px solid #dce6d6; border-radius:25px; padding-left:9px; background:#fffdf7; font-size:.82rem; }
.removable-list li span { overflow-wrap:anywhere; }
.remove-tool-item { min-width:44px; min-height:44px; outline-offset:-3px; margin:0; border:0; background:none; font-size:1.2rem; }
.advanced-output { min-width:0; }
.advanced-output .calc-result { min-height:140px; }
.tool-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,105px),1fr)); gap:7px; margin-top:13px; }
.tool-stats > div { display:flex; flex-direction:column; gap:4px; background:#fdfcf6ad; border-radius:11px; padding:10px; }
.tool-stats strong { color:var(--deep); overflow-wrap:anywhere; }
.tool-stats span { color:var(--muted); font-size:.8rem; }
.tool-action { margin-top:4px; padding-inline:8px; }
.zone-occurrences { margin-top:10px; }
.occurrence-options { display:grid; gap:4px; }
.zone-results { display:grid; gap:6px; margin-top:12px; }
.zone-result { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,1fr); gap:8px; background:#fdfcf6bb; padding:10px; border-radius:11px; }
.zone-result > div { min-width:0; display:flex; flex-direction:column; gap:2px; }
.zone-result > div:last-child { text-align:right; }
.zone-result strong,.zone-result small { overflow-wrap:anywhere; }
.zone-result b { font:700 1.45rem/1 var(--serif); color:var(--deep); }
.zone-result small { font-size:.76rem; }
.moment-sort { max-width:245px; margin-bottom:10px; }
.moment-scene-hint { font-size:.86rem; }
.moment-scene-result { margin-top:12px; }
.moment-scene-result p { margin:3px 0; overflow-wrap:anywhere; }
[data-milestone-fields] { display:grid; gap:7px; margin-bottom:8px; }
.art-baby { background-image:url('/art/baby.jpg'); }
.art-celebration { background-image:url('/art/celebration.jpg'); }
.theme-together { --moment:#ede5ef; --moment-art:url('/art/relationship.jpg'); }
.theme-nursery { --moment:#e5eee3; --moment-art:url('/art/baby.jpg'); }
.theme-study { --moment:#e8e5d7; --moment-art:url('/art/exam.jpg'); }
.theme-lanterns { --moment:#f6e9d4; --moment-art:url('/art/celebration.jpg'); }
.card-dots { display:grid; grid-template-columns:repeat(5,minmax(26px,34px)); }
.card-dots button { min-width:0; width:100%; }
@media (min-width:650px) {
  .weekday-pills { grid-template-columns:repeat(7,minmax(0,1fr)); }
  .card-dots { grid-template-columns:repeat(10,minmax(24px,30px)); }
}

/* Discover learning paths and lesson models */
.learning-index,.learning-shelves,.learning-path{display:grid;gap:1rem}
.learning-search-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .65rem;align-items:end}
.learning-search-box p{grid-column:1/-1;margin:.15rem 0 0;font-size:.88rem}
.learning-search-box button{align-self:end}
.learning-filters{flex-wrap:wrap}
.learning-shelf{border:1px solid var(--line,#e2e6dd);border-radius:1.35rem;overflow:hidden;background:#fffdf9}
.learning-shelf-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.45rem .7rem;align-items:center;padding:1rem}
.learning-shelf-head h2,.learning-shelf-head p{margin:0}
.learning-shelf-head a{grid-column:2;min-height:44px;align-content:center}
.learning-shelf-head .tile-icon{background:#ffffff70}
.learning-index-list{margin:0;padding:.35rem .85rem;list-style:none}
.learning-index-list li + li{border-top:1px solid var(--line,#e4e9de)}
.learning-index-list a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.8rem;text-decoration:none;padding:.7rem .15rem}
.learning-index-list small{display:block;color:#43564d;margin-top:.13rem;line-height:1.45;font-size:.9rem}
.learning-index-list a:hover strong,.learning-index-list a:focus-visible strong{text-decoration:underline}
.learning-path{max-width:49rem;margin-inline:auto}
.learning-path ol{counter-reset:lesson}
.learning-path li{counter-increment:lesson}
.learning-path li a{grid-template-columns:2rem minmax(0,1fr) auto}
.learning-path li a::before{content:counter(lesson);border-radius:50%;background:#e0ebe2;text-align:center;line-height:2rem;font-weight:700}
.learning-next{border-top:1px solid var(--line,#e4e9de);padding:1rem 0}
.learning-next p{font-weight:700;margin:.1rem 0 .6rem}
.learning-next span{font-weight:400;color:#43564d}
.learning-next div{display:grid;gap:.4rem}
.learning-next .text-link{min-height:44px;align-content:center}
.learning-article .article-header{padding-bottom:clamp(1.4rem,5vw,2.8rem)}
.learning-article .article-header h1{font-size:clamp(2.15rem,6.5vw,4.25rem)}
.learning-article .article-inner{display:grid;gap:1.05rem}
.learning-article .article-prose section{margin:0 0 1.3rem}
.learning-article .article-prose p{margin-bottom:.7rem}
.learning-objective{padding:.75rem 1rem;background:#eef0e8;border-radius:.8rem}
.learning-objective strong{display:block;margin-bottom:.2rem}
.learning-lab{min-width:0}
.learning-lab h2,.learning-lab h3{margin:0}
.learning-controls{min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.6rem;border:0;padding:0;margin:0 0 .85rem}
.learning-controls select,.learning-controls input{min-width:0}
.learning-result{padding:.85rem;border-radius:1rem}
.learning-result-title{font-family:Georgia,serif;font-size:clamp(1.45rem,5vw,2.35rem);line-height:1.15;margin:.1rem 0 .7rem;font-weight:bold}
.learning-result-note{margin:.75rem 0 .05rem}
.learning-reset{min-height:44px}
.learning-quiz{border-top:1px solid var(--line,#e4e9de);padding:1rem 0 0;margin-top:.6rem}
.learning-quiz > div{display:flex;flex-wrap:wrap;gap:.5rem}
.learning-quiz .button{min-height:44px;text-align:left;white-space:normal;justify-content:start}
.learning-quiz .button[aria-pressed=true]{border-color:#254d43;box-shadow:inset 0 0 0 1px #254d43}
.learning-feedback:not(:empty){padding:.5rem .65rem;background:#fbefd9;border-radius:.65rem;margin-bottom:.15rem}
.learning-feedback[data-correct=true]:not(:empty){background:#e0ebe2}
.learning-figure{margin:0;text-align:center}
.learning-figure-svg{width:100%;max-width:23rem;display:block;margin:auto}
.learning-figure figcaption{font-size:.88rem;line-height:1.4}
.diagram-face{fill:#fcfaf1;stroke:#254d43;stroke-width:2}
.diagram-dot{fill:#a44849}
.diagram-line,.diagram-dash,.diagram-hand,.diagram-minute,.diagram-wave{stroke:#254d43;stroke-width:1.7;stroke-linecap:round;fill:none}
.diagram-dash{stroke-dasharray:4 4}
.diagram-hand{stroke-width:4}
.diagram-minute{stroke:#914040;stroke-width:3}
.diagram-wave{stroke-width:2.7}
.diagram-night{fill:#a7afc4}
.diagram-sun{fill:#f3bd57;stroke:#835e29;stroke-width:1.4}
.learning-tiles,.learning-track,.learning-strip,.learning-bars{list-style:none;margin:0;padding:0;display:grid;gap:.45rem}
.learning-tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr))}
.learning-strip{grid-template-columns:repeat(auto-fit,minmax(min(100%,4.5rem),1fr))}
.learning-track{position:relative;padding-left:.75rem;border-left:2px solid #73887a}
.learning-tiles li,.learning-track li,.learning-strip li{padding:.55rem .6rem;border:1px solid #254d4324;border-radius:.65rem;min-width:0;background-image:linear-gradient(#fff6,#fff4)}
.learning-strip li{text-align:center;padding:.45rem .2rem}
.learning-tiles span,.learning-track span,.learning-strip span,.learning-bars span{display:block;font-size:.8rem;color:#344940}
.learning-tiles strong,.learning-track strong,.learning-strip strong,.learning-bars b{display:block;color:#162f27;font-size:.92rem;overflow-wrap:anywhere}
.learning-bars li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.25rem .5rem}
.learning-bar-rail{grid-column:1/-1;overflow:hidden;background:#fff9;border-radius:1rem;height:12px}
.learning-bar-rail i{display:block;border-radius:1rem;height:100%;background-image:linear-gradient(#254d4340,#254d4340)}
@media(min-width:750px){.learning-shelf-head{grid-template-columns:auto minmax(0,1fr) auto}.learning-shelf-head a{grid-column:auto}.learning-index-list{padding-inline:1rem}.learning-track{grid-auto-flow:column;grid-auto-columns:1fr;border-left:0;border-top:2px solid #73887a;padding:.65rem 0 0}}
.learning-lab,.learning-search-box{padding:clamp(.95rem,3vw,1.3rem)}
.learning-controls input,.learning-controls select,.learning-search-box input{min-height:46px}
.learning-controls select{
  -webkit-appearance:none;
  appearance:none;
  height:46px;
  padding-right:2.25rem;
  overflow:hidden;
  text-overflow:ellipsis;
  background-image:linear-gradient(45deg,transparent 50%,#254d43 50%),linear-gradient(135deg,#254d43 50%,transparent 50%);
  background-position:calc(100% - 1rem) center,calc(100% - .6875rem) center;
  background-size:.3125rem .3125rem;
  background-repeat:no-repeat;
}
.learning-next,.learning-shelf-head,.learning-path,.learning-index-list{overflow-wrap:anywhere}
.learning-stopwatch{min-width:0;margin:.4rem 0 .9rem;padding:.65rem .75rem;border:1px solid var(--line);border-radius:.8rem;background:#f7f1e6}
.learning-stopwatch legend{font-weight:700}
.learning-stopwatch p{margin:0 0 .55rem}
.learning-stopwatch output{font-size:1.55rem;display:inline-block;font-variant-numeric:tabular-nums;margin:0 .65rem .4rem 0}
.stopwatch-buttons{display:inline-flex;gap:.4rem;flex-wrap:wrap}
.learning-shelf-head h2{font-family:Georgia,serif;font-size:clamp(1.35rem,4vw,1.75rem)}
.learning-index-list svg{color:#416455}
