:root {
  --ink: #23332d;
  --muted: #68756f;
  --paper: #fffdf8;
  --canvas: #f4f0e8;
  --moss: #315e50;
  --moss-dark: #24483d;
  --sage: #dce9df;
  --sun: #e8a65a;
  --peach: #f4dcc9;
  --line: #d8d6cd;
  --danger: #8b3d3a;
  --shadow: 0 18px 50px rgba(35, 51, 45, 0.08);
  --font-sans: "Avenir Next", Inter, "Helvetica Neue", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0%, #f7e9d9 0, transparent 28rem), var(--canvas); }
a { color: var(--moss-dark); }
button, input, textarea, select { font: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid rgba(232, 166, 90, 0.55); outline-offset: 2px; }

.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 5vw; border-bottom: 1px solid rgba(49, 94, 80, 0.14); background: rgba(255, 253, 248, 0.76); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 160px; height: auto; }
.header-statuses { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.database-status { display: flex; align-items: center; gap: .45rem; color: #4f5e58; background: #eceee9; padding: .45rem .75rem; border: 1px solid rgba(49, 94, 80, .12); border-radius: 999px; font-size: .78rem; font-weight: 700; }
/* Beats the .database-status display rule above; without it `hidden` does nothing. */
.database-status[hidden] { display: none; }
.database-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #87928d; }
.database-status[data-source="error"]::before { background: var(--danger); }
.status { display: flex; align-items: center; gap: .45rem; color: var(--moss-dark); background: var(--sage); padding: .45rem .75rem; border-radius: 999px; font-size: .82rem; }
.status[hidden] { display: none; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #87928d; }
.status[data-mode="claude"]::before { background: #3f8a63; }
.status[data-mode="demo"]::before { background: #d38a3e; }
.status[data-mode="error"]::before { background: var(--danger); }

main { width: min(1220px, 92vw); margin: 0 auto 5rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding: 4.5rem 0 2.3rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--moss); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 680px; font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 650; line-height: .98; letter-spacing: -.05em; }
.hero-copy p { max-width: 650px; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.hero-carousel { position: relative; overflow: hidden; aspect-ratio: 632 / 382; border-radius: 32px; background: #dfe6df; box-shadow: var(--shadow); }
.carousel-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: translateX(3%); transition: opacity .65s ease, transform .65s ease; }
.carousel-image.is-active { opacity: 1; transform: translateX(0); }
.carousel-dots { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; display: flex; gap: .4rem; align-items: center; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .58); box-shadow: 0 1px 5px rgba(0, 0, 0, .25); transition: width .3s ease, background .3s ease; }
.carousel-dots span.is-active { width: 22px; border-radius: 999px; background: #fff; }

.workspace { display: grid; grid-template-columns: minmax(300px, 720px); justify-content: center; align-items: start; scroll-margin-top: 92px; }
.plan-collaboration { width: min(850px, 96vw); margin: 4rem 50% 0; transform: translateX(-50%); display: grid; grid-template-columns: minmax(0, 850px) minmax(0, 0); column-gap: 0; align-items: start; scroll-margin-top: 92px; transition: width .7s cubic-bezier(.22, .8, .25, 1), grid-template-columns .7s cubic-bezier(.22, .8, .25, 1), column-gap .7s cubic-bezier(.22, .8, .25, 1); }
.plan-collaboration.is-chat-open { width: min(1450px, 96vw); grid-template-columns: minmax(0, 850px) minmax(350px, 460px); column-gap: clamp(1.5rem, 3vw, 3rem); }
.plan-collaboration[hidden] { display: none; }
.assistant-column { width: 100%; min-width: 0; max-height: calc(100vh - 112px); overflow-y: auto; margin: 0; padding-right: .25rem; display: grid; gap: 1.2rem; position: sticky; top: 96px; scroll-margin-top: 92px; opacity: 0; transform: translateX(44px); transition: opacity .5s ease .2s, transform .65s cubic-bezier(.22, .8, .25, 1) .1s; }
.plan-collaboration.is-chat-open .assistant-column { opacity: 1; transform: translateX(0); }
.assistant-column[hidden] { display: none; }
.card { background: rgba(255, 253, 248, .94); border: 1px solid rgba(49, 94, 80, .14); border-radius: 22px; box-shadow: var(--shadow); }
.intake, .conversation { padding: 1.5rem; }
.section-heading { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.35rem; }
.section-heading h2 { margin: .1rem 0 .2rem; font-size: 1.45rem; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.step { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--peach); color: #744a25; font-weight: 800; }
.dev-override { flex: 0 0 auto; margin-left: auto; border: 1px solid rgba(139, 61, 58, .3); border-radius: 999px; padding: .42rem .7rem; background: #fff4ec; color: var(--danger); cursor: pointer; font-size: .66rem; font-weight: 850; letter-spacing: .06em; }
.dev-override[hidden] { display: none; }
.dev-override:hover { background: #f7dfd2; }

#profile-form { display: grid; gap: .95rem; }
.intake-group { display: grid; gap: .95rem; margin-top: .35rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.intake-group-heading { display: grid; gap: .25rem; }
.intake-group-heading h3 { margin: 0; color: var(--moss-dark); font-size: 1.12rem; letter-spacing: -.015em; }
.intake-group-heading p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.experienced-followup { display: grid; gap: .95rem; padding: .9rem; border-radius: 13px; background: #f0f5f1; }
.experienced-followup[hidden] { display: none; }
label { display: grid; gap: .4rem; font-size: .84rem; font-weight: 700; }
.field-example { margin-top: -.2rem; color: var(--muted); font-size: .74rem; font-weight: 500; }
.optional-label { color: var(--muted); font-size: .72rem; font-weight: 500; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: .72rem .8rem; color: var(--ink); background: #fff; resize: vertical; line-height: 1.45; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
input::placeholder, textarea::placeholder { color: #9a9f9b; }
.profile-field { transition: border-color .2s ease, box-shadow .2s ease; }
.profile-field.is-complete { border-color: #3f8a63; box-shadow: 0 0 0 2px rgba(63, 138, 99, .16); }
.profile-field.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(139, 61, 58, .12); }
.profile-submit { display: grid; gap: .6rem; margin-top: 1.1rem; }
.profile-submit p { margin: 0; color: var(--muted); font-size: .78rem; }
.profile-submit .button { width: 100%; }
.privacy-note { display: grid; gap: .2rem; margin: 1.1rem 0 .7rem; padding: .8rem; border-radius: 12px; background: #f0f5f1; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.privacy-note strong { color: var(--moss-dark); }
.delete-note { margin: .55rem .2rem 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.button { appearance: none; border: 0; border-radius: 999px; padding: .72rem 1.15rem; background: var(--moss); color: white; cursor: pointer; font-weight: 750; transition: transform .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); background: var(--moss-dark); }
.button:disabled { cursor: not-allowed; opacity: .65; transform: none; background: #aeb7b2; border-color: #aeb7b2; color: #f5f6f5; }
.button-accent { background: #c56f30; }
.button-accent:hover { background: #9f5524; }
.button-quiet { background: transparent; color: var(--moss-dark); border: 1px solid rgba(49, 94, 80, .3); }
.button-quiet:hover { background: var(--sage); }
.button-danger { color: var(--danger); border-color: rgba(139, 61, 58, .28); }

.conversation { min-height: 0; }
.messages { min-height: 180px; max-height: 270px; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding: .35rem .2rem 1rem; }
.message { display: flex; gap: .7rem; max-width: 88%; line-height: 1.55; }
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message > div:last-child { padding: .75rem 1rem; border-radius: 6px 18px 18px 18px; background: #edf3ef; }
.message.user > div:last-child { background: var(--peach); border-radius: 18px 6px 18px 18px; }
.message p { margin: 0; white-space: pre-wrap; }
.message p + p { margin-top: .65rem; }
.resource-citation { font-weight: 600; text-underline-offset: 2px; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--moss); color: white; font-size: .72rem; font-weight: 800; }
.message.user .avatar { background: #a35d2c; }
.composer { display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-items: end; border-top: 1px solid var(--line); padding-top: 1rem; }
.composer textarea { min-height: 54px; }
.revision-action { display: grid; gap: .8rem; margin-top: 1rem; padding: 1rem; border-radius: 14px; background: var(--ink); color: white; }
.revision-action div { display: grid; gap: .2rem; }
.revision-action span { color: #cbd3cf; font-size: .78rem; line-height: 1.4; }
.revision-action .button { width: 100%; }

.sources-panel { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.sources-panel summary { cursor: pointer; color: var(--moss-dark); font-weight: 750; }
.source-explainer { color: var(--muted); font-size: .82rem; }
#sources { display: grid; gap: .65rem; max-height: 310px; overflow-y: auto; }
.source-card { padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.source-card > div { display: flex; gap: .4rem; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.source-id { color: var(--moss-dark); font-weight: 600; }
.source-title { display: inline-block; margin-top: .25rem; font-weight: 750; }
.source-summary { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.pathway-action { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1rem; border-radius: 14px; background: var(--ink); color: white; }
.pathway-action div { display: grid; gap: .15rem; }
.pathway-action span { color: #cbd3cf; font-size: .8rem; }

.pathway-wrap { min-width: 0; margin: 0; }
.pathway-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pathway-toolbar h2 { margin: 0; font-size: 1.7rem; font-weight: 650; letter-spacing: -.03em; }
/* The two actions after a draft (2026-09-15): keep it, or change it. Equal weight, side by side. */
.pathway-actions { display: grid; gap: .45rem; justify-items: end; }
.pathway-action-buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.pathway-action-buttons .button { padding: .82rem 1.35rem; font-size: 1rem; }
.pathway-actions-help { margin: 0; color: var(--muted); font-size: .78rem; text-align: right; }
.revise-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding: 1rem 1.15rem; border-radius: 14px; background: var(--ink); color: white; }
.revise-strip p { margin: 0; font-size: .92rem; line-height: 1.45; }
.pathway-sheet { width: min(850px, 100%); margin: 0 auto; display: grid; gap: 1.5rem; }
.pathway-page { position: relative; min-height: 1100px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 2rem 2.3rem 3.6rem; }
.plan-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(49, 94, 80, .2); }
.plan-logo { display: block; width: 120px; height: auto; }
.plan-kicker { margin: 0; color: var(--moss); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.plan-content { padding-top: 1.55rem; }
.plan-content h1 { margin: 0; color: var(--ink); font-size: 2.55rem; font-weight: 650; line-height: 1; letter-spacing: -.045em; }
.plan-subtitle { margin: .65rem 0 1.45rem; color: var(--muted); font-size: .95rem; }
.plan-panel { border-radius: 16px; padding: 1.15rem; background: #eef4ef; }
.plan-panel h2, .how-it-works h2, .week-heading h2, .wobble-section > h2 { margin: 0 0 .55rem; color: var(--moss-dark); font-size: 1.18rem; letter-spacing: -.02em; }
.plan-panel p { margin: 0; line-height: 1.48; }
.plan-section-label { margin: 0 0 .45rem !important; color: var(--moss); font-size: .68rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.plan-lead { color: #43524c; font-size: .96rem; line-height: 1.62 !important; }
.plan-panel-welcome { border-left: 6px solid var(--sun); background: #fbefe3; }
.support-panel { margin-top: .8rem; background: #eef1f7; }
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: .8rem; }
.guide-panel { background: #f3eadf; }
.community-panel { background: var(--sage); }
.community-intro { margin-bottom: .65rem !important; color: #52605b; font-size: .74rem; }
.plan-action-label { display: inline-block; margin-top: .8rem; color: var(--moss-dark); font-size: .72rem; font-weight: 800; }
.guide-links { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.guide-links a { border: 1px solid rgba(49, 94, 80, .22); border-radius: 999px; padding: .28rem .46rem; color: var(--moss-dark); background: rgba(255, 255, 255, .55); font-size: .59rem; font-weight: 750; text-decoration: none; }
.guide-links a:hover { background: #fff; }
.guide-fallback { margin-top: .55rem !important; color: var(--muted); font-size: .61rem; }
.how-it-works { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.how-it-works ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: .7rem 0 0; padding: 0; list-style: none; counter-reset: plan-step; }
.how-it-works li { position: relative; padding-left: 2rem; color: #50605a; font-size: .76rem; line-height: 1.45; counter-increment: plan-step; }
.how-it-works li::before { content: counter(plan-step); position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--moss); color: white; font-size: .65rem; font-weight: 850; }
.plan-footer { position: absolute; left: 2.3rem; right: 2.3rem; bottom: 1.35rem; display: flex; justify-content: space-between; padding-top: .6rem; border-top: 1px solid rgba(49, 94, 80, .16); color: var(--muted); font-size: .62rem; letter-spacing: .04em; }

.week-section + .week-section { margin-top: 1.35rem; padding-top: 1.25rem; border-top: 2px solid var(--moss); }
.week-heading { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .2rem .7rem; margin-bottom: .7rem; }
.week-heading h2 { margin: 0; }
.week-heading p { grid-column: 2; margin: -.05rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.week-number { grid-row: 1 / 3; align-self: start; padding: .35rem .55rem; border-radius: 999px; background: var(--moss); color: white; font-size: .66rem; font-weight: 850; text-transform: uppercase; }
.day-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.day-card { min-width: 0; padding: .7rem .62rem; border: 1px solid rgba(49, 94, 80, .13); border-radius: 12px; background: #f8f7f2; }
.day-card:nth-child(even) { background: #eef4ef; }
.day-number { color: #a35d2c; font-size: .61rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.day-card h3 { margin: .3rem 0 .45rem; font-size: .82rem; line-height: 1.15; }
.day-card p { margin: 0; font-size: .66rem; line-height: 1.38; }
.person-label { margin-bottom: .2rem !important; color: #a35d2c; font-size: .56rem !important; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.parent-label { margin-top: .65rem !important; padding-top: .5rem; border-top: 1px solid rgba(49, 94, 80, .15); color: var(--moss); font-size: .56rem !important; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.parent-prompt { margin-top: .18rem !important; color: #58655f; }
.parent-observation, .parent-task { margin-top: .18rem !important; color: #58655f; }
.parent-task-label { margin-top: .55rem !important; padding-top: .45rem; border-top: 1px dashed rgba(49, 94, 80, .18); color: var(--moss); font-size: .56rem !important; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }

.keep-going-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.resource-group:first-child { background: #eef1f7; }
.resource-group:last-child { background: #f3eadf; }
.plan-resource + .plan-resource { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(49, 94, 80, .15); }
.plan-resource a, .plan-resource strong { color: var(--moss-dark); font-size: .86rem; font-weight: 800; }
.plan-resource p { margin: .25rem 0; color: #52605b; font-size: .72rem; }
.plan-resource small { color: var(--muted); font-size: .6rem; }
.community-panel .plan-resource small { display: none; }
.events-panel { margin-top: .85rem; padding: .9rem 1rem; background: #eef4ef; }
.events-panel h2 { margin: 0 0 .55rem; color: var(--moss-dark); font-size: 1rem; }
.event-resource { display: grid; grid-template-columns: 1fr auto; gap: .1rem .65rem; align-items: baseline; }
.event-resource + .event-resource { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid rgba(49, 94, 80, .15); }
.event-resource a { color: var(--moss-dark); font-size: .75rem; font-weight: 800; }
.event-resource span { color: var(--muted); font-size: .56rem; font-weight: 700; }
.event-resource p { grid-column: 1 / -1; margin: .12rem 0 0; color: #52605b; font-size: .64rem; line-height: 1.35; }
.wobble-section { margin-top: 1.15rem; }
.wobble-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.wobble-grid article { padding: 1rem; border-radius: 14px; background: #fbefe3; }
.wobble-grid h3 { margin: 0 0 .4rem; font-size: .88rem; }
.wobble-grid p { margin: 0; color: #52605b; font-size: .76rem; line-height: 1.48; }
.wobble-resource { margin-top: .55rem; padding-top: .45rem; border-top: 1px solid rgba(49, 94, 80, .14); }
.wobble-resource a, .wobble-resource strong { font-size: .68rem; font-weight: 650; }
.wobble-resource p, .wobble-resource small { display: none; }
.next-steps-panel { margin-top: 1.15rem; border-left: 6px solid var(--sun); background: var(--sage); }
.another-child { display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem; align-items: center; margin-top: .9rem; padding: .9rem 1rem; border: 1px solid rgba(49, 94, 80, .18); border-radius: 14px; background: rgba(255, 253, 248, .92); }
.another-child h3 { grid-column: 1; margin: 0; font-size: .95rem; }
.another-child p { grid-column: 1; margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.another-child .button { grid-column: 2; grid-row: 1 / 3; }
.modal-open { overflow: hidden; }
.save-warning-modal { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 1.25rem; background: rgba(20, 31, 27, .58); backdrop-filter: blur(2px); opacity: 0; transition: opacity .22s ease; }
.save-warning-modal[hidden] { display: none; }
.save-warning-modal.is-visible { opacity: 1; }
.save-warning-dialog { width: min(520px, 100%); padding: 1.6rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 18px; background: var(--paper); box-shadow: 0 24px 70px rgba(16, 28, 23, .3); transform: translateY(8px) scale(.985); transition: transform .26s cubic-bezier(.22, .8, .25, 1); }
.save-warning-modal.is-visible .save-warning-dialog { transform: translateY(0) scale(1); }
.save-warning-dialog h2 { margin: 0; color: var(--danger); font-size: 1.35rem; letter-spacing: -.025em; }
.save-warning-dialog p { margin: .7rem 0 1.35rem; color: #4f5e58; line-height: 1.55; }
.save-warning-actions { display: flex; justify-content: flex-end; gap: .75rem; }
.button-cancel { background: #a74641; color: #fff; }
.button-cancel:hover { background: #843531; }
.pathway-feedback-slot { width: 100%; }
.pathway-feedback-slot .feedback { margin-top: 2.5rem; }
.feedback { position: relative; width: min(480px, 100%); overflow: hidden; margin: 0 auto; padding: 1.4rem; display: grid; gap: 1rem; }
.feedback.is-pathway-position { width: min(480px, 100%); margin: 2.5rem auto 0; }
.feedback-intro { display: grid; gap: .25rem; }
.feedback-intro span { color: var(--muted); font-size: .83rem; }
.feedback-buttons { display: grid; grid-template-columns: repeat(2, 88px); gap: .65rem; justify-content: center; }
.feedback-choice { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 750; transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease; }
.feedback-choice:hover { transform: translateY(-1px); border-color: rgba(49, 94, 80, .4); }
.feedback-choice[data-useful="true"][aria-pressed="true"] { border-color: #3f8a63; background: #e2f1e8; color: #276144; box-shadow: 0 0 0 2px rgba(63, 138, 99, .14); }
.feedback-choice[data-useful="false"][aria-pressed="true"] { border-color: #b75550; background: #fae7e5; color: #8b3d3a; box-shadow: 0 0 0 2px rgba(183, 85, 80, .12); }
.feedback-details { animation: feedback-details-in .3s ease both; }
.feedback-details[hidden] { display: none; }
.feedback-notes { gap: .55rem; }
.feedback-notes-heading { color: var(--ink); font-size: .86rem; }
.feedback-notes-heading small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.feedback-submit { width: min(210px, 100%); justify-self: center; }
#feedback-status { margin: 0; color: var(--moss); font-size: .84rem; }
#feedback-status:empty { display: none; }
.feedback-confirmation { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; padding: 1rem; border-radius: inherit; background: rgba(25, 42, 36, .7); backdrop-filter: blur(1px); opacity: 0; transition: opacity .45s ease; }
.feedback-confirmation[hidden] { display: none; }
.feedback-confirmation.is-visible { opacity: 1; }
.feedback-confirmation.is-hiding { opacity: 0; }
.feedback-confirmation-popup { width: min(350px, 100%); padding: 1rem 1.1rem; border: 1px solid rgba(49, 94, 80, .16); border-radius: 14px; background: var(--paper); box-shadow: 0 16px 40px rgba(15, 28, 23, .24); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s ease, transform .45s cubic-bezier(.22, .8, .25, 1); }
.feedback-confirmation.is-visible .feedback-confirmation-popup { opacity: 1; transform: translateY(0) scale(1); }
.feedback-confirmation.is-hiding .feedback-confirmation-popup { opacity: 0; transform: translateY(-5px) scale(.98); }
.feedback-confirmation-popup p { margin: 0; color: var(--moss-dark); font-size: .88rem; font-weight: 700; line-height: 1.5; text-align: center; }
@keyframes feedback-details-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.is-pathway-loading { overflow: hidden; }
.pathway-loading { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 1.25rem; background: rgba(20, 31, 27, .48); backdrop-filter: blur(2px); }
.pathway-loading[hidden] { display: none; }
.pathway-loading-dialog { width: min(440px, 100%); padding: 1.6rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 18px; background: var(--paper); box-shadow: 0 24px 70px rgba(16, 28, 23, .28); text-align: center; }
.pathway-loading-dialog h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.pathway-loading-dialog > p:not(.loading-stage) { margin: .65rem auto 1rem; max-width: 350px; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.loading-stage { min-height: 1.25rem; margin: 0 0 .6rem; color: var(--moss-dark); font-size: .78rem; font-weight: 650; opacity: 0; transition: opacity .18s ease; }
.loading-stage.is-visible { opacity: 1; }
.loading-progress { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: #dce4df; }
.loading-progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--moss), #5e9b7f); transition-property: width; transition-timing-function: linear; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Screen only: Chrome lays out letter paper at 816 CSS px, so an unscoped 850px
   query used to fire during printing, stack the day cards, and get clipped. */
@media screen and (max-width: 850px) {
  .site-header { position: static; padding: 1rem 4vw; }
  .database-status { font-size: .72rem; }
  .brand-logo { width: 140px; }
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .hero-carousel { border-radius: 24px; }
  .workspace { grid-template-columns: 1fr; }
  .plan-collaboration, .plan-collaboration.is-chat-open { width: 100%; margin: 4rem 0 0; transform: none; grid-template-columns: 1fr; column-gap: 0; row-gap: 1.5rem; }
  .assistant-column { position: static; max-height: none; overflow: visible; padding-right: 0; }
  .conversation { min-height: auto; }
  .pathway-page { min-height: 0; padding: 1.4rem 1.2rem 3.5rem; }
  .plan-footer { left: 1.2rem; right: 1.2rem; }
  .welcome-grid, .keep-going-grid, .wobble-grid { grid-template-columns: 1fr; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: 1fr; }
  .day-card p { font-size: .76rem; }
  .pathway-action, .pathway-toolbar { align-items: stretch; flex-direction: column; }
  .pathway-actions { justify-items: stretch; }
  .pathway-action-buttons .button { flex: 1 1 auto; }
  .pathway-actions-help { text-align: left; }
  .another-child { grid-template-columns: 1fr; }
  .another-child .button { grid-row: auto; justify-self: start; }
  .feedback-buttons { grid-template-columns: repeat(2, 88px); }
  .save-warning-actions { align-items: stretch; flex-direction: column-reverse; }
  .save-warning-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-image, .carousel-dots span, .feedback-choice, .feedback-confirmation, .feedback-confirmation-popup, .plan-collaboration, .assistant-column, .save-warning-modal, .save-warning-dialog { transition: none; }
  .feedback-details { animation: none; }
  .loading-stage, .loading-progress-fill { transition: none; }
}

@media print {
  /* A real page margin, so a draft that spills onto another sheet is not printed
     from the very top edge of the paper. The page padding shrinks to match. */
  @page { size: letter; margin: .4in .4in .35in; }
  body { background: white; }
  body > header, main > :not(.plan-collaboration), .assistant-column, .no-print { display: none !important; }
  main, .plan-collaboration, .pathway-wrap, .pathway-sheet { width: 100%; max-width: none; margin: 0; padding: 0; display: block; transform: none; }
  /* Pages flow instead of being fixed 11in boxes with overflow hidden: a long draft
     continues onto another sheet at a card boundary rather than being cut off. */
  .pathway-page { width: auto; height: auto; min-height: 0; overflow: visible; margin: 0; padding: .02in .06in .1in; border: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .pathway-page:last-child { break-after: auto; page-break-after: auto; }
  .plan-footer { position: static; margin-top: .3in; }
  .plan-header, .plan-footer, .week-heading, .day-card, .plan-panel, .plan-resource, .event-resource, .wobble-grid article { break-inside: avoid; page-break-inside: avoid; }
  /* The print layout never depends on the screen breakpoints. */
  .day-grid { grid-template-columns: repeat(5, 1fr); }
  .welcome-grid, .keep-going-grid, .wobble-grid { grid-template-columns: 1fr 1fr; }
  .how-it-works ol { grid-template-columns: repeat(3, 1fr); }
  .plan-content { padding-top: .17in; }
  .plan-content h1 { font-size: 25pt; }
  .plan-subtitle { margin: .07in 0 .14in; }
  .plan-panel { padding: .11in; }
  .plan-lead { font-size: 9.4pt; }
  .welcome-grid { gap: .08in; }
  .how-it-works { margin-top: .1in; padding-top: .1in; }
  .weeks-page { padding-top: .13in; }
  .week-section + .week-section { margin-top: .13in; padding-top: .12in; }
  .week-heading { margin-bottom: .07in; }
  .day-grid { gap: .045in; }
  .day-card { padding: .065in .055in; }
  .day-card h3 { font-size: 7.9pt; }
  .day-card p { font-size: 5.8pt; line-height: 1.25; }
  .parent-label { margin-top: .05in !important; padding-top: .04in; font-size: 5.3pt !important; }
  .parent-task-label { margin-top: .04in !important; padding-top: .035in; font-size: 5.1pt !important; }
  .keep-going-grid, .wobble-grid { gap: .08in; }
  .plan-resource + .plan-resource { margin-top: .045in; padding-top: .045in; }
  .plan-resource p { font-size: 5.8pt; line-height: 1.25; }
  .events-panel { margin-top: .07in; padding: .07in .09in; }
  .event-resource p { font-size: 5.5pt; }
  .wobble-section, .next-steps-panel { margin-top: .075in; }
  .wobble-grid article { padding: .08in; }
  .wobble-grid p { font-size: 6pt; line-height: 1.3; }
  a { color: inherit; text-decoration: none; }
}
