/* Study Strong — a calm, confident place to build a study routine. */
:root {
  color-scheme: light;
  --canvas: #f7f8fc;
  --surface: #ffffff;
  --ink: #252339;
  --muted: #716b80;
  --line: #eaeaf2;
  --purple: #7457df;
  --purple-dark: #5d40c3;
  --purple-soft: #f0ebff;
  --mint: #e8f6ef;
  --mint-ink: #35775b;
  --peach: #fff0e5;
  --peach-ink: #aa6336;
  --blue: #eaf1ff;
  --blue-ink: #4f72ad;
  --radius: 20px;
  --shadow: 0 4px 20px rgba(37, 35, 57, .025);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #a48aef; outline-offset: 4px; }
input, select, textarea { accent-color: var(--purple); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.035em; }
p { margin-bottom: 16px; }
button { border: 0; }
[hidden] { display: none !important; }
::selection { color: #38246d; background: #e4d9ff; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: 238px; background: var(--surface); border-right: 1px solid var(--line); padding: 28px 18px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 11px; min-height: 45px; margin-bottom: 34px; }
.brand-icon { width: 37px; height: 40px; border-radius: 12px; background: var(--purple); color: #fff; display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 4px 10px #7457df22; }
.brand-icon .icon { width: 23px; height: 23px; }
.brand-name { display: block; font-weight: 790; font-size: 18px; letter-spacing: -.7px; line-height: 1.2; }
.brand-sub { display: block; color: #6f6985; font-size: 9px; font-weight: 700; letter-spacing: 2.1px; line-height: 1.7; margin-top: 3px; }
.nav-caption { margin: 11px 14px 11px; font-size: 10px; color: #6e6a82; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 12px 14px; margin: 4px 0; background: transparent; text-align: left; border-radius: 11px; color: #6e6a7e; font-size: 13px; font-weight: 560; transition: color .16s, background .16s; }
.nav-item .icon { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item:hover { color: var(--purple); background: #f7f4ff; }
.nav-item.active { color: #6b4ed1; background: #f0ebff; font-weight: 690; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; margin-left: auto; background: #e6ddff; color: var(--purple-dark); border-radius: 6px; font-size: 10px; font-weight: 750; }
.sidebar-bottom { margin-top: auto; padding: 32px 7px 0; }
.coach-note { background: #f7f7fb; border: 1px solid #efedf6; border-radius: 15px; padding: 16px; }
.coach-note p { font-size: 11px; color: #6e6982; line-height: 1.6; margin-bottom: 12px; }
.coach-note strong { display: block; color: #60586f; font-weight: 650; font-size: 12px; margin-bottom: 5px; }
.coach-note .small { font-size: 10px; }
.coach-initials { width: 29px; height: 29px; flex: 0 0 auto; display: inline-grid; place-items: center; color: #6d58a4; background: #e9e1fa; border-radius: 50%; font-size: 10px; font-weight: 750; }
.app-main { min-width: 0; min-height: 100vh; margin-left: 238px; }
.topbar { height: 82px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 25; backdrop-filter: blur(16px); }
.topbar-title { color: #6d6980; font-size: 12px; font-weight: 500; }
.topbar-title strong { color: #666075; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.preview-pill, .free-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 10px; line-height: 1; font-weight: 650; padding: 7px 10px; border-radius: 6px; }
.preview-pill { color: #716788; background: #f3eff9; border: 1px solid #eee8f7; }
.free-pill { color: #4c7461; background: #edf7f1; }
.free-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #72a88c; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #f2e4d5; color: #81684d; border: 3px solid white; outline: 1px solid #eee8e2; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.menu-toggle { display: none; }
.content { width: 100%; max-width: 1300px; margin: 0 auto; padding: 32px 40px 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin-bottom: 9px; font-size: clamp(27px, 2.6vw, 35px); font-weight: 750; letter-spacing: -1.15px; }
.page-heading p { color: var(--muted); font-size: 13px; margin-bottom: 0; line-height: 1.65; }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.9px; text-transform: uppercase; color: #7561a2; margin-bottom: 13px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* The dashboard has a visual centerpiece without competing with the work. */
.hero { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; overflow: hidden; gap: 20px; min-height: 246px; padding: 30px 34px; background: linear-gradient(115deg, #eee7fc 0%, #eee6ff 63%, #e6ddf9 100%); border: 1px solid #e9e1f7; border-radius: 23px; margin-bottom: 24px; }
.hero-copy { align-self: center; position: relative; z-index: 2; max-width: 510px; }
.hero .eyebrow { color: #815aae; font-size: 9px; margin-bottom: 12px; }
.hero-title { font-size: clamp(25px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -1.1px; font-weight: 760; color: #35254f; margin-bottom: 12px; }
.hero-title span { color: #7e59b9; }
.hero-description { color: #76648d; line-height: 1.7; font-size: 12px; max-width: 365px; margin-bottom: 22px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { font-size: 11px; min-height: 38px; padding: 9px 15px; border-radius: 9px; }
.hero-actions .btn.secondary { background: #ffffff9e; color: #77618f; border-color: #e3d8f1; }
.hero-art { width: 250px; height: 210px; position: relative; align-self: center; justify-self: center; isolation: isolate; }
.art-orbit { position: absolute; width: 211px; height: 211px; border-radius: 50%; border: 1px solid #d9c9ef; background: #e4d6f52e; top: 1px; left: 20px; }
.art-orbit::before { content: ""; position: absolute; inset: 19px; border: 1px dashed #d6c4ef; border-radius: 50%; }
.art-book { position: absolute; z-index: 2; width: 120px; height: 151px; left: 62px; top: 28px; transform: rotate(-12deg); border-radius: 5px 13px 13px 5px; background: #faf7ff; border: 1px solid #fff; border-left: 10px solid #ad8fde; box-shadow: 8px 11px 0 #cdb4eb, 18px 23px 22px #af92d21f; padding: 26px 15px 15px 17px; }
.art-book::before { content: ""; display: block; width: 43px; height: 7px; border-radius: 4px; background: #a88bcd; margin-bottom: 17px; }
.art-book::after { content: ""; position: absolute; right: 15px; top: -1px; width: 12px; height: 34px; background: #8f6cbf; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.art-line { display: block; width: 100%; height: 4px; margin: 9px 0; border-radius: 3px; background: #e6dbee; }
.art-line:nth-child(even) { width: 73%; }
.art-star { position: absolute; z-index: 3; right: 28px; top: 23px; font-size: 34px; color: #8358b4; transform: rotate(12deg); }
.art-star:empty::after { content: "✦"; }
.art-dot { position: absolute; width: 13px; height: 13px; background: #bd9fdb; border: 3px solid #eaddf8; border-radius: 50%; left: 27px; bottom: 27px; }
.hero-art::after { content: ""; position: absolute; width: 31px; height: 31px; bottom: 11px; right: 24px; border: 5px solid #baa0d8; border-radius: 9px; transform: rotate(20deg); opacity: .65; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; line-height: 1.4; font-weight: 640; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s, box-shadow .16s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--purple); color: white; box-shadow: 0 3px 7px #7457df15; }
.btn.primary:hover { background: var(--purple-dark); box-shadow: 0 4px 10px #7457df25; }
.btn.secondary { color: #6b637e; background: #fff; border-color: #e5e0ef; }
.btn.secondary:hover { background: #faf8ff; border-color: #d8caee; }
.btn.ghost { color: #716787; background: transparent; border-color: transparent; }
.btn.ghost:hover { color: #6e4dbd; background: #f2ecfb; }
.btn.small { min-height: 32px; font-size: 11px; padding: 7px 11px; border-radius: 8px; }
.btn.danger { color: #aa5057; background: #fff0f1; border: 1px solid #f2d6da; }
.btn.danger:hover { background: #ffe7e9; }
.btn .icon { width: 15px; height: 15px; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; stroke-width: 1.7; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: transparent; color: #70697e; padding: 7px; }
.icon-button:hover { background: #f1edf8; color: #7654bb; }
.icon-button .icon { width: 18px; height: 18px; }

.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 18px 17px; display: flex; align-items: flex-start; gap: 13px; box-shadow: var(--shadow); min-width: 0; }
.stat-card > :not(.stat-icon) { min-width: 0; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 41px; height: 41px; flex: 0 0 41px; border-radius: 12px; }
.stat-icon .icon { width: 19px; height: 19px; }
.stat-icon.purple, .pill.purple { color: #7b56c2; background: #f0eafd; }
.stat-icon.mint, .pill.mint { color: #497461; background: #eaf7ef; }
.stat-icon.peach, .pill.peach { color: #976032; background: #fff1e5; }
.stat-icon.blue, .pill.blue { color: #446da3; background: #ecf2fd; }
.stat-value { display: block; font-size: 23px; line-height: 1.2; letter-spacing: -.7px; font-weight: 740; color: #4f465f; margin: 0 0 3px; }
.stat-value small { font-size: 12px; font-weight: 600; color: #736687; letter-spacing: 0; }
.stat-label { display: block; color: #71687e; font-size: 11px; line-height: 1.6; }
.stat-caption { display: block; font-size: 9px; color: #746683; margin-top: 3px; line-height: 1.4; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 23px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 23px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.card-header > div { min-width: 0; }
.card-header p { margin: 6px 0 0; font-size: 11px; color: #736783; }
.card-title { color: #5a506a; font-size: 15px; line-height: 1.35; letter-spacing: -.3px; font-weight: 680; margin: 0; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; white-space: nowrap; font-size: 9px; font-weight: 650; line-height: 1.3; padding: 5px 9px; border-radius: 6px; }
.pill .icon { width: 12px; height: 12px; }
.mission-preview { padding: 18px; border-radius: 12px; background: #f8f6fd; border: 1px solid #ede7f6; }
.mission-preview h3 { font-size: 17px; color: #6a557f; font-weight: 670; margin: 12px 0 8px; letter-spacing: -.35px; }
.mission-preview p { font-size: 11px; line-height: 1.75; color: #766687; margin-bottom: 16px; }
.mission-number { font-size: 9px; letter-spacing: 1.25px; font-weight: 750; text-transform: uppercase; color: #825baa; }
.step-list { list-style: none; padding: 0; margin: 17px 0 0; display: flex; flex-direction: column; gap: 12px; }
.step-list li { display: flex; align-items: flex-start; gap: 8px; color: #736784; font-size: 11px; line-height: 1.6; }
.step-list .icon { color: #7f5ab1; width: 14px; height: 14px; margin-top: 2px; }
.lesson-strip { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0edf5; }
.lesson-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; background: #edf5f3; color: #51736b; }
.lesson-info { min-width: 0; flex: 1; }
.lesson-info strong { display: block; font-size: 11px; font-weight: 650; color: #73687f; margin-bottom: 4px; }
.lesson-info p { margin: 0; color: #736780; font-size: 10px; line-height: 1.6; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; color: #7d5ab4; background: none; padding: 0; border: 0; }
.text-link:hover { color: var(--purple-dark); }
.text-link .icon { width: 13px; height: 13px; }

/* The focus timer is intentionally simple and useful at a glance. */
.timer-dial { width: 158px; height: 158px; margin: 15px auto 18px; border-radius: 50%; border: 5px solid #e5daf6; outline: 1px solid #f3edf9; outline-offset: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: #fdfbff; box-shadow: inset 0 0 0 5px #fff; }
.timer-dial::before { content: ""; position: absolute; width: 9px; height: 9px; top: -7px; left: calc(50% - 4px); border-radius: 50%; background: #a084cd; border: 2px solid white; box-shadow: 0 0 0 2px #d6c6ee; }
.timer-time { font-size: 35px; font-weight: 650; line-height: 1.2; color: #796292; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.timer-label { font-size: 9px; margin-top: 4px; color: #7b628f; letter-spacing: .4px; }
.timer-controls { display: flex; justify-content: center; gap: 9px; margin: 18px 0 4px; }
.timer-controls .btn { min-width: 98px; }
.chip-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.chip { background: #f7f5fa; border: 1px solid #f0edf5; color: #766688; padding: 5px 10px; border-radius: 7px; font-size: 10px; font-weight: 600; min-height: 28px; }
.chip:hover { background: #f0e9fa; border-color: #e2d6f1; }
.chip.selected { color: #8059b5; border-color: #decff0; background: #f2ebfc; }
.habit-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid #f1eef5; font-size: 11px; color: #746781; }
.habit-row:last-child { border-bottom: 0; padding-bottom: 0; }
.habit-row > span:nth-child(2), .habit-row > label { flex: 1; }
.habit-row .pill { margin-left: auto; }
.check-box { width: 19px; height: 19px; min-width: 19px; display: inline-grid; place-items: center; padding: 0; border-radius: 5px; background: #fff; border: 1.5px solid #e0d6eb; color: transparent; flex-shrink: 0; transition: background .15s, border-color .15s; }
.check-box.checked { background: #a38ac2; border-color: #a38ac2; color: #fff; }
.check-box .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 17px 0 20px; text-align: center; }
.day-dot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 49px; border-radius: 9px; background: #f8f6fb; color: #78648d; font-size: 9px; border: 1px solid #f4f0f8; }
.day-dot strong, .day-dot .icon { color: #7c6196; font-size: 13px; width: 15px; height: 15px; font-weight: 600; }
.day-dot.active { color: #815ba9; background: #f1e9fa; border-color: #eee3f7; }
.day-dot.active strong, .day-dot.active .icon { color: #8559ae; }
.day-dot.today { border-color: #bb9ddb; box-shadow: 0 0 0 2px #f5eefb; }
.progress-track { overflow: hidden; width: 100%; height: 6px; border-radius: 10px; background: #f0ebf6; }
.progress-fill { height: 100%; border-radius: inherit; background: #b59bd3; transition: width .5s; }
.progress-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; color: #786589; font-size: 9px; }
.week-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 28px 0 15px; }
.week-heading h2 { color: #73657f; font-size: 16px; margin: 0; }
.week-heading p { color: #766588; font-size: 11px; margin: 0; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.mission-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 17px; padding: 21px; transition: border-color .17s, box-shadow .17s; }
.mission-card:hover { border-color: #ddcfed; box-shadow: 0 5px 18px #7457df08; }
.mission-card.complete { background: #fafdfb; border-color: #e1eee6; }
.mission-card.current { background: #fcfaff; border-color: #cfb7e9; }
.mission-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mission-card-day { color: #825e9f; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; }
.mission-card-title { color: #796287; font-size: 15px; margin-bottom: 9px; letter-spacing: -.35px; }
.mission-card-summary { color: #796487; font-size: 11px; line-height: 1.7; margin: 0 0 18px; }
.mission-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; border-top: 1px solid #f1ecf7; font-size: 10px; color: #7b648a; }
.mission-card-footer .btn { min-height: 29px; padding: 6px 10px; font-size: 10px; }

.planner-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .85fr); gap: 23px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.form-grid .field { margin-bottom: 0; }
.field label, .field > span:first-child { font-size: 11px; font-weight: 650; color: #766588; }
.field small { color: #79648a; font-size: 10px; line-height: 1.5; }
.input, .select, .textarea { width: 100%; min-height: 41px; color: #776585; background: #fff; border: 1px solid #e7deef; border-radius: 9px; padding: 11px 12px; font-size: 12px; line-height: 1.5; transition: border-color .16s, box-shadow .16s; }
.input:hover, .select:hover, .textarea:hover { border-color: #d6c6e4; }
.input:focus, .select:focus, .textarea:focus { border-color: #b89bd5; outline: none; box-shadow: 0 0 0 3px #f2ebfa; }
.input::placeholder, .textarea::placeholder { color: #7c638f; }
.textarea { min-height: 105px; resize: vertical; }
.select { cursor: pointer; padding-right: 25px; }
.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #ece5f3; border-radius: 11px; background: #fff; }
.task-row.done { background: #fbfafc; }
.task-row.done .task-title { text-decoration: line-through; color: #79648a; }
.task-row.done .check-box { color: white; background: #ac95c5; border-color: #ac95c5; }
.task-main { flex: 1; min-width: 0; }
.task-title { display: block; font-size: 12px; font-weight: 620; color: #7a648c; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 10px; color: #7c628f; margin-top: 4px; }
.task-meta .icon { width: 12px; height: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 39px 23px; border: 1px dashed #e2d6ec; border-radius: 13px; background: #fcfaff; color: #7c6190; }
.empty-state .icon { width: 31px; height: 31px; color: #8259ac; margin-bottom: 13px; }
.empty-state h3 { color: #7d6192; margin: 0 0 8px; font-size: 15px; }
.empty-state p { max-width: 300px; font-size: 11px; line-height: 1.7; margin: 0; }

.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.resource-card { display: flex; flex-direction: column; min-width: 0; background: white; padding: 25px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.resource-card h3 { font-size: 16px; letter-spacing: -.35px; color: #7b628d; margin-bottom: 11px; }
.resource-card p { font-size: 12px; color: #7d618f; line-height: 1.75; flex: 1; margin-bottom: 23px; }
.resource-card .btn { align-self: flex-start; }
.resource-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #f3ecfc; color: #8356b5; margin-bottom: 23px; }
.resource-icon .icon { width: 22px; height: 22px; }
.resource-card:nth-child(3n + 2) .resource-icon { background: #edf8f1; color: #4d755e; }
.resource-card:nth-child(3n) .resource-icon { background: #fff2e9; color: #8f6345; }
.callout { border: 1px solid #e9e0f2; border-radius: 14px; padding: 20px; background: #faf7fe; color: #805f9a; font-size: 12px; line-height: 1.75; }
.callout p:last-child { margin-bottom: 0; }
.callout h3, .callout strong { color: #7f6095; }
.callout h3 { font-size: 15px; margin-bottom: 9px; }
.callout.purple { background: #f6f0fc; border-color: #e9dcf5; }
.callout.mint { background: #f0f8f3; border-color: #deeee4; color: #567260; }
.callout.mint h3, .callout.mint strong { color: #557460; }
.callout.peach { background: #fff6ee; border-color: #f5e9dd; color: #82674f; }
.callout.peach h3, .callout.peach strong { color: #816851; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.insight-card { border: 1px solid var(--line); border-radius: 17px; background: white; padding: 23px; }
.insight-card h3 { color: #7e6191; font-size: 15px; margin-bottom: 10px; }
.insight-card p { font-size: 12px; color: #7d6192; line-height: 1.75; margin-bottom: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric { min-width: 0; padding: 18px; background: #faf7fd; border: 1px solid #f0e8f7; border-radius: 12px; }
.metric strong { display: block; color: #825d9c; font-size: 26px; line-height: 1.3; letter-spacing: -.7px; font-weight: 700; }
.metric span, .metric p { display: block; font-size: 11px; color: #835c9e; line-height: 1.6; margin: 5px 0 0; }
.sponsor-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 23px; align-items: start; }
.model-total { font-size: 44px; color: #835ca2; letter-spacing: -1.9px; font-weight: 740; line-height: 1.2; margin: 12px 0; font-variant-numeric: tabular-nums; }
.budget-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #f1eaf6; color: #825e99; font-size: 12px; }
.budget-row strong { font-weight: 650; color: #825d9a; white-space: nowrap; }
.budget-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding: 17px; border-radius: 11px; background: #f5edfc; color: #855aa4; font-weight: 650; }
.budget-total strong { color: #815e98; font-size: 20px; letter-spacing: -.5px; }
.range { display: block; width: 100%; height: 5px; border-radius: 8px; accent-color: #a487c1; background: #f0e7f7; margin: 16px 0 8px; cursor: pointer; }
.settings-list { display: flex; flex-direction: column; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 21px 0; border-bottom: 1px solid #f1eaf7; }
.setting-row:first-child { padding-top: 4px; }
.setting-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.setting-row strong { display: block; color: #805f96; font-weight: 650; font-size: 13px; margin-bottom: 5px; }
.setting-row p { font-size: 11px; color: #845ca1; line-height: 1.65; margin: 0; }
.setting-row .input { width: 210px; max-width: 45%; }
.switch { -webkit-appearance: none; appearance: none; position: relative; width: 40px; min-width: 40px; height: 23px; border: 0; border-radius: 20px; background: #e9dfee; padding: 0; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #86609b18; transition: transform .2s; }
.switch[aria-checked="true"], .switch:checked, .switch.on { background: #ad8ec7; }
.switch[aria-checked="true"]::after, .switch:checked::after, .switch.on::after { transform: translateX(17px); }
.screen-notice { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; margin-bottom: 23px; border: 1px solid #ece4f4; border-radius: 10px; color: #7f5f99; background: #fcfaff; font-size: 11px; line-height: 1.7; }
.screen-notice .icon { width: 15px; height: 15px; color: #8559ab; flex-shrink: 0; margin-top: 2px; }
.footer-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 27px; padding: 0 2px; font-size: 9px; line-height: 1.7; color: #7a6584; }
.footer-note a, .footer-note button { color: #815f99; background: transparent; padding: 0; font-size: inherit; }
.footer-note a:hover, .footer-note button:hover { color: var(--purple); }

/* Lessons are readable without leaving the student's working context. */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: #30243f52; backdrop-filter: blur(5px); }
.modal { width: 620px; max-width: 100%; max-height: 90vh; max-height: 90dvh; border: 1px solid #ede5f5; border-radius: 23px; background: white; box-shadow: 0 24px 90px #39254d30; display: flex; flex-direction: column; overflow: hidden; margin: 0; padding: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 26px 28px 20px; border-bottom: 1px solid #f1eaf7; }
.modal-title { font-size: 23px; letter-spacing: -.65px; color: #815f96; margin: 0; }
.modal-header .eyebrow { margin-bottom: 10px; }
.modal-header .icon-button { flex-shrink: 0; }
.modal-body { padding: 26px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; color: #815e99; font-size: 13px; line-height: 1.8; }
.modal-body h3 { font-size: 15px; color: #825d99; margin: 22px 0 12px; }
.modal-body h3:first-child { margin-top: 0; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 20px 28px; border-top: 1px solid #f1eaf7; background: #fefcff; }
.lesson-steps { list-style: none; counter-reset: lesson; margin: 21px 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.lesson-steps li { position: relative; counter-increment: lesson; padding-left: 37px; min-height: 26px; }
.lesson-steps li::before { content: counter(lesson); width: 25px; height: 25px; display: grid; place-items: center; font-size: 11px; font-weight: 700; line-height: 1; position: absolute; top: 1px; left: 0; background: #f1e7fb; color: #8956b0; border-radius: 8px; }
.lesson-steps strong { color: #825d99; }
.reflection-label { display: block; font-weight: 650; font-size: 12px; color: #865ba1; margin: 23px 0 9px; }
.faith-note { border-left: 3px solid #d2b9e6; background: #faf5fe; border-radius: 0 10px 10px 0; padding: 16px 18px; color: #8759a2; font-size: 12px; line-height: 1.8; margin: 21px 0 0; }
.faith-note strong { color: #855ba0; }
.faith-note p:last-child { margin-bottom: 0; }
.toast { position: fixed; z-index: 150; bottom: 27px; left: calc(50% + 119px); transform: translate(-50%, 12px); width: max-content; max-width: min(460px, calc(100vw - 32px)); padding: 13px 20px; background: #534160; border: 1px solid #6a5179; color: #fff; border-radius: 12px; box-shadow: 0 8px 30px #3c244925; font-size: 12px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.mobile-overlay { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Details matched to the interactive view markup. */
.skip-link { position: fixed; z-index: 200; left: 20px; top: 12px; transform: translateY(-150%); background: #35254f; color: #fff; border-radius: 9px; padding: 12px 16px; font-size: 13px; font-weight: 650; }
.skip-link:focus { transform: translateY(0); }
.brand { width: 100%; background: transparent; text-align: left; padding-left: 8px; padding-right: 8px; }
.brand-dot { color: var(--purple); }
.brand-name { white-space: nowrap; }
.icon { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.coach-note { display: grid; grid-template-columns: 29px 1fr; column-gap: 10px; row-gap: 6px; }
.coach-note .coach-initials { grid-row: 1 / 3; margin-top: 2px; }
.coach-note p { margin: 0; font-size: 12px; line-height: 1.55; color: #70667e; font-weight: 600; }
.coach-note > .small { grid-column: 2; font-size: 9px; color: #776f83; }
.stat-unit { font-size: 12px; font-weight: 550; letter-spacing: 0; color: #7d718b; margin-left: 3px; white-space: nowrap; }
.full-width { width: 100%; }
.hero-copy > .pill { margin-bottom: 15px; font-size: 8px; letter-spacing: .6px; }
.hero-actions > .small { color: #725f87; font-size: 10px; white-space: nowrap; }
.art-book { padding: 20px 14px 16px 16px; }
.art-book::before { display: none; }
.art-book-title { display: block; font-size: 13px; font-weight: 850; letter-spacing: .5px; line-height: 1.15; color: #8662ac; margin-bottom: 13px; }
.art-book .art-line { height: 3px; margin: 7px 0; }
.art-book-check { position: absolute; display: grid; place-items: center; width: 31px; height: 31px; right: -16px; bottom: 15px; border-radius: 50%; background: #d6eadd; border: 4px solid #f4edf9; color: #60846e; font-size: 16px; font-weight: 750; box-shadow: 0 4px 8px #73517f0c; }
.art-caption { position: absolute; bottom: -9px; left: 14px; width: 231px; color: #856b9f; font-size: 7px; font-weight: 650; letter-spacing: 1.4px; text-align: center; }
.card-header .eyebrow { margin: 0 0 7px; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; color: #877395; }
.mission-preview { display: flex; align-items: flex-start; gap: 15px; }
.mission-preview h3 { margin: 1px 0 7px; }
.mission-preview p { margin-bottom: 0; }
.mission-number { width: 39px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #9571b6; background: #ede3f9; font-size: 19px; line-height: 1; font-weight: 650; letter-spacing: -.6px; }
.step-list { counter-reset: study-step; }
.step-list li { display: block; position: relative; padding-left: 27px; min-height: 21px; counter-increment: study-step; }
.step-list li::before { content: counter(study-step); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; position: absolute; left: 0; top: 1px; color: #8c6da6; background: #f1eaf8; font-size: 9px; font-weight: 700; }
.step-list + .text-link { margin-top: 16px; }
.step-list + p { margin-top: 19px; }
.callout .step-list { margin-top: 13px; }
.text-link { min-height: 28px; }
.focus-card { text-align: left; }
.focus-card .card-header { margin-bottom: 24px; }
.timer-footnote { text-align: center; max-width: 260px; margin: 16px auto 0; font-size: 10px; line-height: 1.7; }
.timer-label { max-width: 115px; text-align: center; line-height: 1.5; }
.timer-controls { align-items: center; }
.timer-controls .icon-button { width: 38px; height: 38px; border: 1px solid #e8e0f0; background: #fff; }
.chip { min-height: 32px; }
.habit-row { min-height: 46px; line-height: 1.65; }
button.habit-row { width: 100%; background: transparent; text-align: left; font-weight: 450; }
button.habit-row:hover { background: #faf7fe; }
label.habit-row { cursor: pointer; }
.habit-row input[type="checkbox"] { width: 19px; height: 19px; margin: 0; flex: 0 0 19px; accent-color: var(--purple); cursor: pointer; }
button.check-box { width: 24px; min-width: 24px; height: 24px; border-radius: 6px; }
button.check-box .icon { width: 14px; height: 14px; }
.progress-caption { margin: 0 0 10px; font-size: 10px; }
.day-dot { background: transparent; border-color: transparent; gap: 7px; padding: 5px 0; }
.day-circle { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #f2edf7; color: #776785; font-size: 10px; line-height: 1; }
.day-dot.active { background: transparent; border-color: transparent; }
.day-dot.active .day-circle { background: #e8dcf5; color: #8a64a8; }
.day-dot.today { border-color: #d7c2e9; background: #faf6fd; box-shadow: none; }
.day-dot.today .day-circle { background: #a281bd; color: white; }
.day-dot.today .day-circle .icon { color: white; }
.encouragement { font-size: 19px; font-weight: 650; line-height: 1.45; letter-spacing: -.5px; color: #49725b; margin: 12px 0; }
.intention-text { font-size: 21px; line-height: 1.55; letter-spacing: -.4px; color: #7c608e; padding: 0 0 14px; overflow-wrap: anywhere; }
.journey-progress { padding-top: 23px; padding-bottom: 23px; }
.journey-week { margin-bottom: 31px; }
.journey-week .week-heading { margin-top: 27px; align-items: center; }
.week-heading .eyebrow { font-size: 9px; margin: 0 0 8px; }
.week-heading h2 { margin-bottom: 7px; }
.mission-card { text-align: left; }
.mission-card-top, .mission-card-footer { width: 100%; }
.mission-card-top > .icon { width: 15px; height: 15px; color: #a089b0; }
.mission-card-title { font-weight: 650; line-height: 1.35; }
.mission-card-footer { justify-content: flex-start; gap: 5px; }
.mission-card-footer > .icon { width: 12px; height: 12px; }
.mission-card-footer > span:last-child { margin-left: auto; text-align: right; }
.completed-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #568c6b; background: #e4f2e9; }
.completed-icon .icon { width: 14px; height: 14px; stroke-width: 2; }
.field { font-size: 11px; font-weight: 650; color: #776785; }
.field .input, .field .select, .field .textarea { font-weight: 400; }
.form-grid { margin-bottom: 16px; }
.empty-state .btn { margin-top: 17px; }
.resource-card > .pill { margin-bottom: 14px; }
.resource-card h2 { color: #715880; font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -.4px; margin-bottom: 10px; }
.resource-card .text-link { align-self: flex-start; }
.resource-icon.purple { color: #8a67b0; background: #f0e8fb; }
.resource-icon.mint { color: #5c8b71; background: #eaf5ee; }
.resource-icon.peach { color: #a77651; background: #fcf0e6; }
.resource-icon.blue { color: #5c7eae; background: #eaf0fb; }
.toolkit-note { margin-top: 24px; }
.toolkit-note p { display: flex; align-items: flex-start; gap: 10px; }
.toolkit-note .icon { margin-top: 2px; width: 18px; height: 18px; }
.resource-body { margin-top: 20px; padding: 19px 21px; border: 1px solid #ede5f4; border-radius: 12px; background: #fcfaff; }
.resource-body p { white-space: pre-line; margin: 0 0 15px; }
.resource-body p:last-child { margin-bottom: 0; }
.settings-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 10px; margin-top: 22px; }
.settings-actions .btn { max-width: 100%; white-space: normal; text-align: left; }
#settings-form > .btn { margin-top: 20px; }
.switch { width: 44px; min-width: 44px; height: 26px; }
.switch::after { width: 20px; height: 20px; }
.switch[aria-checked="true"]::after, .switch:checked::after, .switch.on::after { transform: translateX(18px); }
.family-prompt { background: #fcf9ff; border-color: #e9def4; }
.family-prompt h2 { color: #765487; font-size: 23px; line-height: 1.4; letter-spacing: -.6px; margin-bottom: 17px; }
.family-prompt p.muted { font-size: 12px; line-height: 1.75; }
.partner-hero-mark { align-self: center; justify-self: center; width: 186px; height: 186px; border: 1px solid #d6c4ed; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #8463a8; background: #eadef770; box-shadow: 0 0 0 13px #eee4f950; }
.partner-hero-mark > .icon { width: 26px; height: 26px; margin-bottom: 5px; }
.partner-hero-mark > span { font-size: 67px; line-height: 1.15; font-weight: 700; letter-spacing: -3px; }
.partner-hero-mark > small { font-size: 10px; line-height: 1.5; }
.model-total { display: flex; flex-direction: column; gap: 5px; margin: 25px 0; }
.model-total > span { font-size: 11px; line-height: 1.5; letter-spacing: 0; font-weight: 500; color: #7b6a89; }
.model-total > strong { font-size: 44px; line-height: 1.2; font-weight: 740; letter-spacing: -1.9px; color: #8861a4; }
label[for="sponsor-seats"] { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 0; }
#seats-output { font-size: 19px; font-weight: 650; color: #8b65a5; }
#budget-rows + p { margin-top: 18px; font-size: 10px; line-height: 1.75; }
.sponsor-layout .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.sponsor-layout .insight-card { padding: 16px; background: #fdfbff; border-color: #efe7f7; border-radius: 12px; }
.sponsor-layout .insight-card h3 { font-size: 12px; letter-spacing: -.15px; line-height: 1.45; }
.sponsor-layout .insight-card p { font-size: 10px; }
.range { -webkit-appearance: none; appearance: none; height: 26px; background: transparent; border: 0; margin: 10px 0 6px; }
.range::-webkit-slider-runnable-track { height: 5px; background: #e8dcf1; border-radius: 10px; }
.range::-moz-range-track { height: 5px; background: #e8dcf1; border-radius: 10px; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; height: 23px; width: 23px; background: #a17fbb; border: 4px solid white; border-radius: 50%; margin-top: -9px; box-shadow: 0 0 0 1px #d2bbdf; }
.range::-moz-range-thumb { height: 16px; width: 16px; background: #a17fbb; border: 4px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #d2bbdf; }
.lesson-intro { font-size: 14px; line-height: 1.85; color: #7f668e; }
.lesson-steps > .habit-row { font-size: 12px; padding: 15px 0; color: #7e648d; }
.lesson-steps > .habit-row:first-child { padding-top: 2px; }
.lesson-steps .habit-row input { align-self: flex-start; margin-top: 3px; }
.reflection-label { line-height: 1.7; }
.reflection-label .small { font-size: 10px; font-weight: 400; }
.app-main > .footer-note { max-width: 1300px; margin: 0 auto; padding: 0 40px 28px; }

/* Tablet */
@media (max-width: 1100px) {
  .content { padding: 28px; }
  .topbar { padding: 0 28px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
  .stack { gap: 18px; }
  .card { padding: 21px; }
  .hero { grid-template-columns: 1.5fr 1fr; padding: 27px; gap: 7px; }
  .hero-art { width: 190px; transform: scale(.83); transform-origin: center; margin-left: -20px; }
  .hero-title { font-size: 29px; }
  .hero-description { font-size: 11px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { font-size: 10px; padding: 9px 11px; }
  .card-header { gap: 8px; }
  .card-title { font-size: 14px; }
  .week-strip { gap: 4px; }
  .day-dot { min-height: 43px; }
  .mission-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insight-grid { grid-template-columns: 1fr; }
  .planner-layout { grid-template-columns: 1fr; }
  .sponsor-layout { grid-template-columns: 1fr; }
  .topbar-right { gap: 10px; }
  .footer-note { align-items: flex-start; }
}

/* Collapse the rail before the working surface becomes cramped. */
@media (max-width: 900px) and (min-width: 761px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col > .stack:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .two-col > .stack:last-child > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 350px; }
  .hero-art, .partner-hero-mark { display: none; }
  .topbar-title { font-size: 10px; }
  .free-pill { display: none; }
  .page-heading { align-items: flex-start; }
}

/* Phone */
@media (max-width: 760px) {
  html { scroll-padding-top: 75px; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; width: 238px; z-index: 80; box-shadow: 10px 0 50px #34244310; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  .mobile-overlay { position: fixed; inset: 0; z-index: 70; background: #34244344; border: 0; padding: 0; }
  body.nav-open .mobile-overlay, .mobile-overlay.active { display: block; }
  .app-main { margin-left: 0; }
  .topbar { height: 68px; padding: 0 20px; gap: 10px; }
  .menu-toggle { display: inline-grid; flex-shrink: 0; }
  .topbar-title { margin-right: auto; font-size: 11px; }
  .topbar-right { gap: 9px; }
  .preview-pill { font-size: 9px; padding: 6px 8px; }
  .free-pill { display: none; }
  .avatar { width: 31px; height: 31px; font-size: 10px; }
  .content { padding: 26px 20px 24px; }
  .page-heading { margin-bottom: 22px; align-items: flex-start; gap: 12px; }
  .page-heading h1 { font-size: 28px; letter-spacing: -.85px; }
  .page-heading p { font-size: 12px; max-width: 390px; }
  .page-heading > .btn { margin-top: 3px; font-size: 10px; padding: 9px 11px; min-height: 35px; }
  .hero { grid-template-columns: 1.3fr 1fr; min-height: 234px; padding: 25px; gap: 5px; margin-bottom: 19px; border-radius: 20px; }
  .hero-title { font-size: 28px; }
  .hero-description { font-size: 11px; margin-bottom: 20px; }
  .hero-art { width: 180px; transform: scale(.8); margin-left: -10px; }
  .hero-actions .btn { min-height: 37px; }
  .stats-row { gap: 12px; margin-bottom: 20px; }
  .stat-card { gap: 11px; padding: 16px; border-radius: 14px; }
  .stat-value { font-size: 22px; }
  .stat-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .stack { gap: 20px; }
  .card { padding: 22px; border-radius: 18px; }
  .card-title { font-size: 15px; }
  .card-header { margin-bottom: 18px; }
  .timer-dial { width: 163px; height: 163px; }
  .timer-controls { margin-top: 20px; }
  .week-strip { gap: 7px; }
  .day-dot { min-height: 50px; }
  .mission-grid, .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .mission-card { padding: 18px; }
  .mission-card-title { font-size: 14px; }
  .resource-card { padding: 20px; }
  .resource-card h3 { font-size: 15px; }
  .resource-card p { font-size: 11px; }
  .resource-icon { margin-bottom: 20px; }
  .planner-layout, .sponsor-layout { gap: 20px; }
  .form-grid { gap: 13px; }
  .insight-grid { gap: 13px; }
  .footer-note { font-size: 9px; flex-wrap: wrap; gap: 8px; margin-top: 25px; }
  .modal-backdrop { padding: 16px; }
  .modal { border-radius: 19px; max-height: 91dvh; }
  .modal-header { padding: 22px 22px 18px; }
  .modal-title { font-size: 21px; }
  .modal-body { padding: 22px; font-size: 12px; }
  .modal-footer { padding: 17px 22px; }
  .toast { left: 50%; bottom: 20px; }
  .app-main > .footer-note { padding: 0 20px 24px; }
  .partner-hero-mark { width: 160px; height: 160px; }
  .partner-hero-mark > span { font-size: 58px; }
}

@media (max-width: 500px) {
  .topbar { padding: 0 15px; }
  .topbar-title { font-size: 10px; }
  .topbar-right { gap: 8px; }
  .preview-pill { font-size: 8px; padding: 6px; }
  .content { padding: 24px 16px; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { max-width: 320px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding: 25px; min-height: 0; }
  .hero-copy { max-width: 100%; }
  .hero-art, .partner-hero-mark { display: none; }
  .hero-title { font-size: 29px; max-width: 280px; }
  .hero-description { max-width: 290px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { padding: 10px 13px; font-size: 10px; }
  .stats-row { gap: 10px; }
  .stat-card { padding: 14px 12px; gap: 9px; }
  .stat-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
  .stat-icon .icon { width: 16px; height: 16px; }
  .stat-value { font-size: 21px; }
  .stat-label { font-size: 10px; }
  .stat-caption { font-size: 8px; }
  .card { padding: 20px; }
  .card-header .text-link { font-size: 10px; }
  .mission-grid, .resource-grid { grid-template-columns: 1fr; }
  .mission-card { padding: 20px; }
  .mission-card-title { font-size: 16px; }
  .mission-card-summary { font-size: 12px; }
  .mission-card-footer { font-size: 11px; }
  .resource-card { padding: 23px; }
  .resource-card p { font-size: 12px; }
  .resource-card h3 { font-size: 17px; }
  .resource-icon { width: 44px; height: 44px; margin-bottom: 18px; }
  .week-heading { flex-wrap: wrap; gap: 6px; }
  .week-heading h2 { font-size: 15px; }
  .week-heading p { font-size: 10px; }
  .week-strip { gap: 5px; }
  .day-dot { min-height: 47px; }
  .habit-row { font-size: 11px; gap: 9px; }
  .habit-row .pill { font-size: 8px; padding: 4px 7px; }
  .form-grid { grid-template-columns: 1fr; }
  .input, .select, .textarea { font-size: 16px; }
  .field label { font-size: 11px; }
  .task-row { padding: 12px; gap: 9px; }
  .task-title { font-size: 11px; }
  .task-meta { font-size: 9px; }
  .metrics-grid { gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 24px; }
  .metric span, .metric p { font-size: 10px; }
  .setting-row { gap: 18px; flex-wrap: wrap; }
  .setting-row > div:first-child { flex: 1; min-width: 200px; }
  .setting-row .input { max-width: 100%; width: 100%; }
  .model-total { font-size: 39px; }
  .budget-row { font-size: 11px; }
  .modal-header, .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; }
  .modal-footer .btn { font-size: 11px; }
  .app-main > .footer-note { padding: 0 16px 24px; }
  .sponsor-layout .insight-grid { grid-template-columns: 1fr; }
  .mission-preview { gap: 12px; }
  .mission-preview h3 { font-size: 15px; }
  .family-prompt h2 { font-size: 22px; }
  .model-total > strong { font-size: 39px; }
}

/* Readable working type stays consistent at every viewport width. */
body { font-size: 15px; }
.nav-item { font-size: 14px; }
.brand-sub { font-size: 10px; letter-spacing: 1.6px; }
.preview-pill, .free-pill { font-size: 11px; }
.page-heading p { font-size: 14px; }
.eyebrow { font-size: 10px; }
.card-header .eyebrow, .week-heading .eyebrow { font-size: 10px; }
.small { font-size: 13px; }
.hero .eyebrow { font-size: 10px; }
.hero-copy > .pill { font-size: 10px; }
.hero-description { font-size: 14px; line-height: 1.65; }
.hero-actions > .small { font-size: 12px; }
.hero-actions .btn { font-size: 13px; min-height: 42px; padding: 10px 15px; }
.btn { font-size: 13px; min-height: 42px; }
.btn.small, .page-heading > .btn { font-size: 12px; min-height: 36px; }
.btn .icon { width: 16px; height: 16px; }
.icon-button { width: 36px; height: 36px; }
.stat-label { font-size: 12px; }
.stat-caption { font-size: 11px; }
.stat-unit { font-size: 13px; }
.card-title { font-size: 17px; }
.card-header p { font-size: 12px; }
.card > p, .card p.muted, .mission-preview p { font-size: 14px; line-height: 1.7; }
.card > p.small, .card p.small { font-size: 13px; }
.mission-preview h3 { font-size: 17px; }
.pill { font-size: 11px; }
.step-list li { font-size: 13px; line-height: 1.7; }
.step-list li::before { font-size: 10px; width: 19px; height: 19px; top: 2px; }
.text-link, .card-header .text-link { font-size: 13px; min-height: 32px; }
.lesson-info strong { font-size: 13px; }
.lesson-info p { font-size: 12px; }
.timer-label { max-width: 110px; font-size: 11px; line-height: 1.4; text-align: center; }
.card .timer-footnote { font-size: 12px; }
.chip { font-size: 12px; min-height: 34px; padding: 6px 12px; }
.habit-row, button.habit-row { font-size: 13px; }
.habit-row .pill { font-size: 11px; }
.day-dot { font-size: 11px; }
.day-circle { font-size: 11px; }
.progress-caption { font-size: 12px; }
.week-heading h2 { font-size: 19px; }
.week-heading p { font-size: 13px; }
.mission-card-title { font-size: 17px; }
.mission-card-summary { font-size: 13px; }
.mission-card-day { font-size: 11px; }
.mission-card-footer { font-size: 11px; }
.field, .field label, .field > span:first-child { font-size: 13px; }
.field small { font-size: 12px; }
.input, .select, .textarea { font-size: 14px; }
.task-title { font-size: 14px; }
.task-meta { font-size: 12px; line-height: 1.6; }
.empty-state h3 { font-size: 17px; }
.empty-state p { font-size: 13px; }
.resource-card h2 { font-size: 19px; }
.resource-card p { font-size: 14px; }
.callout { font-size: 14px; }
.callout h3 { font-size: 17px; }
.callout .small { font-size: 13px; }
.insight-card h3 { font-size: 16px; }
.insight-card p { font-size: 13px; }
.metric span, .metric p { font-size: 12px; }
.model-total > span { font-size: 13px; }
.budget-row { font-size: 13px; }
.budget-total { font-size: 13px; }
.setting-row strong { font-size: 14px; }
.setting-row p, .setting-row .small { font-size: 13px; }
.screen-notice { font-size: 12px; }
.footer-note { font-size: 11px; }
.modal-body { font-size: 14px; }
.modal-body h3 { font-size: 17px; }
.modal-footer .btn { font-size: 13px; }
.lesson-steps > .habit-row { font-size: 14px; }
.reflection-label { font-size: 13px; }
.reflection-label .small { font-size: 12px; }
.faith-note { font-size: 13px; }
.family-prompt p.muted { font-size: 14px; }
.sponsor-layout .insight-card h3 { font-size: 14px; }
.sponsor-layout .insight-card p { font-size: 12px; }
#budget-rows + p { font-size: 12px; }
.toast { font-size: 13px; }
@media (max-width: 500px) {
  .input, .select, .textarea { font-size: 16px; }
  .topbar .preview-pill { font-size: 10px; }
  .stat-card { gap: 8px; }
  .stat-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .stat-label { font-size: 12px; }
  .stat-caption { font-size: 11px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding-left: 12px; padding-right: 12px; }
  .card-header { flex-wrap: wrap; }
  .card-header > .text-link { margin-left: auto; }
  .mission-preview h3 { font-size: 16px; }
  .mission-card-footer { flex-wrap: wrap; }
}

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

@media print {
  @page { size: auto; margin: 16mm; }
  body { background: white; color: #252339; font-size: 11pt; }
  .sidebar, .topbar, .mobile-overlay, .toast, .modal-backdrop, .menu-toggle, .hero-art, .partner-hero-mark, .skip-link, .footer-note, .btn, .icon-button, .preview-pill, .screen-notice { display: none !important; }
  .app-main { margin: 0; }
  .content { max-width: none; padding: 0; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { color: #252339; font-size: 24pt; }
  .page-heading p, .muted { color: #625b6f; }
  .hero { display: block; min-height: 0; padding: 18px; background: white; border: 1px solid #d8d3df; }
  .hero-title { color: #252339; font-size: 22pt; }
  .hero-description { color: #625b6f; }
  .card, .stat-card, .mission-card, .resource-card, .insight-card, .callout { box-shadow: none; break-inside: avoid; border-color: #d8d3df; background: white; }
  .two-col, .planner-layout, .sponsor-layout { display: block; }
  .two-col > *, .stack > *, .planner-layout > *, .sponsor-layout > * { margin-bottom: 18px; }
  .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .mission-grid, .resource-grid, .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-title, .stat-value, .metric strong, .mission-card-title, .resource-card h3 { color: #3d3349; }
  .card p, .stat-label, .stat-caption, .mission-card-summary, .resource-card p, .budget-row { color: #6b6176; }
  .progress-track, .progress-fill, .pill, .stat-icon, .check-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .input, .select, .textarea { border-color: #d8d3df; color: #3d3349; font-size: 10pt; }
}

/* Week-four accent. */
.pill.coral, .stat-icon.coral, .resource-icon.coral { color: #9b5b46; background: #fff0e8; }

/* Comfortable standalone layout around iPhone sensor and home indicator areas. */
@media (display-mode: standalone) {
  .topbar { padding-top: max(12px, env(safe-area-inset-top)); height: auto; min-height: 72px; }
  .app-main { padding-bottom: env(safe-area-inset-bottom); }
  .sidebar { padding-top: max(24px, env(safe-area-inset-top)); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .icon-button, .chip, .btn, .nav-item { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .input, .select, .textarea { font-size: 16px; }
}

.beta-notice { display: block; }
.beta-notice a { display: block; margin-top: 6px; color: inherit; text-underline-offset: 3px; }
