:root {
  color-scheme: light;
  /* Fleckulator-family tokens. Exact hex values can be swapped here once its source CSS is reconnected. */
  --ink: #17242e;
  --muted: #667784;
  --navy: #17384f;
  --navy-2: #214e67;
  --teal: #2c7b82;
  --teal-soft: #dceced;
  --blue-soft: #e8f0f4;
  --paper: #f4f1ea;
  --surface: #fffdfa;
  --surface-2: #fbf8f2;
  --line: #d9dedf;
  --line-strong: #bec9cd;
  --danger: #9b3f3f;
  --shadow: 0 10px 28px rgba(24, 52, 70, .08);
  --radius: 18px;
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% -8%, rgba(44,123,130,.13), transparent 33rem),
    linear-gradient(180deg, #f8f6f0 0, var(--paper) 24rem);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.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; }

.app-shell { min-height: 100vh; padding-bottom: calc(94px + var(--safe-bottom)); }
.app-header {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) 18px 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.app-header h1, .auth-card h1 { margin: 3px 0 0; font-size: clamp(2rem, 8vw, 3.1rem); line-height: .96; letter-spacing: -.06em; color: var(--navy); }
.header-actions { display: flex; gap: 8px; }
.eyebrow { margin: 0; font-size: .69rem; font-weight: 800; letter-spacing: .14em; color: var(--teal); }

main { max-width: 760px; margin: 0 auto; padding: 0 14px 24px; }
.card {
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border: 1px solid rgba(23,56,79,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.slim { box-shadow: 0 6px 18px rgba(24,52,70,.055); }
.date-strip { min-height: 76px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 12px; overflow: hidden; }
.date-center { border: 0; background: transparent; padding: 12px 6px; color: inherit; display: grid; gap: 5px; text-align: center; }
.date-center strong { font-size: 1.08rem; letter-spacing: -.02em; }
.date-arrow { border: 0; background: transparent; color: var(--navy); font-size: 2rem; height: 100%; }
.date-arrow:active { background: var(--blue-soft); }

.icon-button { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.72); color: var(--navy); display: grid; place-items: center; }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:active { transform: translateY(1px); }

.carry-banner { margin: 0 2px 12px; padding: 11px 13px; border-radius: 13px; background: var(--teal-soft); color: #21484c; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .86rem; }
.text-button { border: 0; background: transparent; color: var(--navy); font-weight: 800; white-space: nowrap; }

.section-card { padding: 18px; margin: 12px 0; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.section-heading > div:first-child { position: relative; padding-left: 45px; min-height: 36px; }
.section-number { position: absolute; left: 0; top: 0; font-size: .72rem; font-weight: 900; letter-spacing: .08em; color: var(--navy); background: var(--blue-soft); border: 1px solid #d3e0e7; padding: 5px 7px; border-radius: 8px; }
h2 { margin: 2px 0 0; font-size: 1.45rem; letter-spacing: -.04em; color: var(--navy); }
h3 { margin: 0; font-size: 1rem; }
.count-pill, .domain-pill { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.domain-pill { color: var(--teal); border-color: #c7dddd; background: #edf6f5; max-width: 44%; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }

.quick-add { border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); overflow: hidden; margin-bottom: 18px; }
.quick-add textarea { width: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 13px 13px 8px; font-size: 1rem; line-height: 1.35; }
.quick-add textarea::placeholder, input::placeholder { color: #87949c; }
.quick-add-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px; border-top: 1px solid #e4e6e2; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: #fff; flex: 1; max-width: 320px; }
.segment { border: 0; background: transparent; padding: 7px 9px; border-radius: 8px; color: var(--muted); font-size: .76rem; font-weight: 800; }
.segment.active { background: var(--navy); color: #fff; }
.add-button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; font-size: 1.45rem; line-height: 1; font-weight: 400; }

.task-groups { display: grid; gap: 16px; }
.task-group { display: grid; gap: 6px; }
.task-group-title { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 900; font-size: .69rem; text-transform: uppercase; letter-spacing: .12em; }
.task-group-title::after { content: ""; flex: 1; height: 1px; background: #e7e8e4; }
.task-row { display: grid; grid-template-columns: 30px 1fr 32px; align-items: start; gap: 7px; min-height: 42px; padding: 7px 0; border-bottom: 1px solid #eeeae3; }
.task-row:last-child { border-bottom: 0; }
.task-check { width: 23px; height: 23px; margin-top: 1px; border: 1.5px solid var(--line-strong); border-radius: 7px; background: #fff; display: grid; place-items: center; color: #fff; }
.task-check.checked { background: var(--teal); border-color: var(--teal); }
.task-check.checked::after { content: "✓"; font-size: .82rem; font-weight: 900; }
.task-text { font-size: .96rem; line-height: 1.35; overflow-wrap: anywhere; }
.task-text.done { color: #87939a; text-decoration: line-through; text-decoration-thickness: 1px; }
.row-delete { width: 30px; height: 30px; border: 0; background: transparent; color: #a2aaae; border-radius: 8px; font-size: 1.15rem; }
.row-delete:hover, .row-delete:focus-visible { color: var(--danger); background: #f8eeee; }
.empty-state { color: var(--muted); font-size: .9rem; padding: 4px 0 1px; }

.perspective-list { display: grid; gap: 10px; }
.perspective-item { display: grid; grid-template-columns: 24px 1fr; gap: 9px; line-height: 1.38; font-size: .94rem; }
.perspective-item::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--teal); border-radius: 50%; margin: 4px 0 0 5px; }
.learning-card { background: linear-gradient(145deg, #fffefa, #eef6f5); border-color: #cfe1e0; }
.science-fact { margin: 0; font-family: ui-serif, Georgia, serif; font-size: 1.06rem; line-height: 1.55; letter-spacing: -.012em; }
.science-source { display: inline-block; margin-top: 13px; font-size: .74rem; color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.button { border: 0; border-radius: 12px; min-height: 44px; padding: 0 15px; font-weight: 850; letter-spacing: -.01em; }
.button.primary { background: var(--navy); color: #fff; box-shadow: 0 4px 12px rgba(23,56,79,.18); }
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line-strong); }
.button.danger { background: #fff; color: var(--danger); border: 1px solid #e3caca; }
.button.wide { width: 100%; }
.mini-button { border: 1px solid var(--line); background: var(--surface-2); color: var(--navy); border-radius: 9px; min-height: 32px; padding: 0 10px; font-weight: 800; font-size: .76rem; }
.action-dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 10px max(12px, calc((100vw - 760px)/2 + 14px)) var(--safe-bottom); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; background: rgba(244,241,234,.92); backdrop-filter: blur(16px); border-top: 1px solid rgba(23,56,79,.1); }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 8%, rgba(44,123,130,.17), transparent 28rem), var(--paper); }
.auth-card { width: min(100%, 420px); background: var(--surface); border: 1px solid rgba(23,56,79,.12); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: var(--navy); color: white; font-weight: 950; letter-spacing: -.06em; margin-bottom: 20px; }
.auth-card .muted { margin: 14px 0 20px; }
.muted { color: var(--muted); }
.setup-fields { display: grid; gap: 12px; margin-bottom: 16px; }
label { display: grid; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--muted); }
input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; background: #fff; color: var(--ink); outline: 0; }
input:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44,123,130,.10); }
.form-error { min-height: 1.2em; color: var(--danger); font-size: .78rem; margin: 10px 0 0; }

.sheet-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; background: transparent; }
.sheet-dialog::backdrop { background: rgba(12,28,38,.42); backdrop-filter: blur(3px); }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 50px rgba(12,28,38,.18); }
@media (min-width: 680px) {
  .sheet-dialog { padding: 8vh 20px; }
  .sheet { position: relative; width: min(620px, 100%); max-height: 84vh; margin: auto; border-radius: 22px; bottom: auto; }
}
.sheet-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.sheet-header h2 { font-size: 1.7rem; }
.close-dialog { font-size: 1.4rem; }
.month-nav { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; text-align: center; margin-bottom: 12px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-weekdays { padding: 0 0 6px; color: var(--muted); font-size: .65rem; font-weight: 900; text-align: center; }
.calendar-day { aspect-ratio: 1; min-height: 42px; border: 1px solid transparent; background: transparent; border-radius: 11px; color: var(--ink); display: grid; place-items: center; position: relative; }
.calendar-day.other { opacity: .28; }
.calendar-day.has-tasks::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); bottom: 5px; }
.calendar-day.selected { background: var(--navy); color: #fff; }
.calendar-day.today { border-color: var(--teal); }

.settings-form, .settings-block { display: grid; gap: 14px; }
fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
legend { font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.radio-row { grid-template-columns: 24px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); color: var(--ink); }
.radio-row input { width: 18px; min-height: auto; accent-color: var(--teal); }
.radio-row span { display: grid; gap: 2px; }
.radio-row small { font-weight: 500; color: var(--muted); }
.settings-divider { height: 1px; background: var(--line); margin: 22px 0; }
.settings-block-head { display: flex; justify-content: space-between; align-items: center; }
.inline-form { display: grid; grid-template-columns: 1fr 40px; gap: 8px; }
.settings-list { display: grid; gap: 7px; }
.settings-item { display: grid; grid-template-columns: 1fr 36px; gap: 8px; align-items: start; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-size: .88rem; line-height: 1.35; }
.settings-item button { border: 0; background: transparent; color: var(--danger); font-size: 1rem; }

.toast { position: fixed; z-index: 99; left: 50%; bottom: calc(90px + var(--safe-bottom)); transform: translate(-50%, 18px); opacity: 0; pointer-events: none; background: #142733; color: #fff; border-radius: 999px; padding: 9px 14px; font-size: .8rem; font-weight: 700; transition: .2s ease; box-shadow: 0 8px 25px rgba(0,0,0,.18); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 430px) {
  .app-header { padding-left: 16px; padding-right: 16px; }
  .section-card { padding: 16px; }
  .action-dock .button { font-size: .78rem; padding: 0 9px; }
  .section-heading > div:first-child { padding-left: 42px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Polished in-app editors replace browser prompt/confirm UI. */
.editor-sheet { display: grid; gap: 18px; }
.editor-sheet textarea {
  width: 100%; resize: vertical; min-height: 112px; border: 1px solid var(--line);
  border-radius: 13px; padding: 12px; background: #fff; color: var(--ink); outline: 0;
  font-size: 1rem; line-height: 1.4;
}
.editor-fieldset { display: grid; gap: 8px; }
.edit-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.edit-segmented label { display: block; cursor: pointer; }
.edit-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.edit-segmented span {
  min-height: 42px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 11px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 850;
}
.edit-segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.edit-segmented input:focus-visible + span { outline: 3px solid rgba(44,123,130,.18); outline-offset: 2px; }
.editor-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9px; }
.task-text { cursor: text; }
.button:disabled, .add-button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 430px) {
  .editor-sheet { gap: 15px; }
  .editor-actions { grid-template-columns: .72fr 1.28fr; }
}

.settings-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }

/* Public signup and sign-in gateway. The private planner keeps its compact UI. */
.skip-link{position:absolute;left:18px;top:-80px;z-index:100;background:var(--navy);color:white;padding:12px;border-radius:8px}.skip-link:focus{top:12px}
.gateway{padding:0 24px;overflow:hidden}.gateway-nav,.gateway-main,.gateway-footer{max-width:1120px;margin:auto}
.gateway-nav{display:flex;justify-content:space-between;align-items:center;padding:26px 0;border-bottom:1px solid var(--line)}
.gateway-brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:1.4rem;font-weight:850;letter-spacing:-.05em;color:var(--navy)}
.gateway-brand .brand-mark{width:36px;height:36px;border-radius:10px;font-size:.7rem;margin:0}.gateway-signin{font-size:.85rem;padding:12px 0 12px 20px}.gateway-signin span{margin-left:12px}
.gateway-main{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.85fr);gap:44px 64px;padding:72px 0 32px;align-items:start}
.gateway-hero>.eyebrow{margin-bottom:22px}.gateway-hero h1{font-size:clamp(2.8rem,4.8vw,4.7rem);line-height:1.02;letter-spacing:-.065em;margin:0 0 26px;color:var(--navy);font-weight:760}.gateway-hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--teal)}
.gateway-lead{font-size:1.25rem;line-height:1.55;letter-spacing:-.02em;max-width:480px;margin:0 0 16px}.gateway-detail{color:#566873;line-height:1.7;max-width:490px;font-size:.94rem;margin:0}
.gateway-tags{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0 34px}.gateway-tags span{font-size:.68rem;font-weight:750;border:1px solid #cbd6d5;border-radius:20px;padding:7px 10px;color:var(--navy)}
.gateway-outline{border-top:1px solid #c7d2d2}.gateway-outline>div{display:grid;grid-template-columns:25px 90px 1fr;gap:12px;border-bottom:1px solid #d9dfdc;padding:17px 0;align-items:baseline}.gateway-outline span{font-size:.66rem;color:var(--teal);font-weight:850}.gateway-outline strong{font-size:.9rem;color:var(--navy)}.gateway-outline p{font-size:.8rem;line-height:1.55;color:#566873;margin:0}
.gateway-account{background:var(--surface);border:1px solid #cdd8d7;border-radius:22px;padding:30px;box-shadow:0 18px 48px #17384f0c;position:relative;margin-top:6px}.account-topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:36px}.account-dot{width:7px;height:7px;border-radius:50%;background:var(--teal)}
.gateway-account h2{font-size:2.1rem;line-height:1.05;letter-spacing:-.05em;max-width:300px;margin:0 0 16px}.gateway-account>.muted{font-size:.9rem;line-height:1.65;margin:0 0 24px}.gateway-account form{display:grid;gap:14px}.gateway-account .setup-fields{display:grid;gap:8px}.gateway-account label{font-size:.76rem;font-weight:750;color:var(--navy)}.gateway-account input{width:100%;min-height:48px;background:#fff;border:1px solid #becbcd;border-radius:10px;padding:12px;color:var(--ink)}.gateway-account input:focus{outline:2px solid var(--teal);outline-offset:2px}.gateway-account .button{font-size:.87rem;min-height:49px}.gateway-account .form-error:empty{display:none}
.account-help{font-size:.72rem;color:#5e707b;line-height:1.65;margin:16px 0 22px}.auth-switch{display:block;width:100%;background:transparent;color:var(--navy);border:0;border-top:1px solid var(--line);padding:18px 0 0;font-size:.78rem;text-decoration:underline;text-underline-offset:4px}.account-bottom{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--line);margin:30px -30px -30px;padding:17px 25px;background:#f6f8f4;border-radius:0 0 22px 22px;font-size:.62rem;color:#566c71}.account-bottom span:first-child{letter-spacing:.1em;font-weight:800}
.gateway-print{grid-column:1/-1;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:32px 0;display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.gateway-print h2{font-size:1.8rem;margin-top:10px}.gateway-print>p{font-size:.9rem;line-height:1.8;color:#566873;margin:0}.gateway-print strong{color:var(--navy);font-weight:650}
.gateway-faq{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.2fr;gap:60px;margin-bottom:20px}.gateway-faq h2{font-size:1.4rem}.gateway-faq details{border-bottom:1px solid var(--line);padding:14px 0}.gateway-faq summary{cursor:pointer;font-size:.87rem;color:var(--navy);font-weight:700;line-height:1.5}.gateway-faq details p{font-size:.83rem;line-height:1.7;color:#566873}.gateway-footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:25px 0 35px;font-size:.72rem;color:var(--muted)}.gateway-footer span:first-child{font-weight:800;color:var(--navy)}.noscript-note{max-width:700px;margin:20px auto;line-height:1.6}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--teal);outline-offset:4px}
@media(max-width:760px){.gateway{padding:0 20px}.gateway-nav{padding:18px 0}.gateway-main{grid-template-columns:1fr;gap:32px;padding-top:38px}.gateway-hero h1{font-size:clamp(2.8rem,10vw,4rem)}.gateway-hero>.eyebrow{font-size:.6rem;letter-spacing:.1em}.gateway-lead{font-size:1.1rem}.gateway-outline{margin-bottom:0}.gateway-outline>div{grid-template-columns:22px 80px 1fr;gap:7px;padding:13px 0}.gateway-account{margin:0;padding:25px}.account-topline{margin-bottom:24px}.account-bottom{margin:26px -25px -25px;padding:17px 22px}.gateway-print,.gateway-faq{grid-template-columns:1fr;gap:18px}.gateway-print{padding:26px 0}.gateway-faq{margin-bottom:0}.gateway-footer{font-size:.65rem;gap:20px}}

@media(max-width:760px){.gateway-hero .gateway-detail,.gateway-hero .gateway-outline{display:none}.gateway-tags{margin:18px 0 0}.gateway-main{gap:26px}}

.sample-link{display:inline-block;margin-top:13px;font-weight:750;text-underline-offset:4px;color:var(--navy)}

/* Planner refinements from the editable Figma desktop and mobile layouts. */
#app .app-header { max-width: 1120px; padding: 32px 32px 24px; align-items: center; }
#app .app-header h1 { font-size: 2.4rem; letter-spacing: -.055em; }
#app main { max-width: 1120px; padding: 0 32px 24px; }
#app .card { box-shadow: none; border-color: #dfe4e1; border-radius: 20px; }
#app .section-card { padding: 24px; margin: 20px 0; }
#app .section-heading { align-items: center; }
#app .learning-card { background: #edf4f2; border-color: #d0e1dc; }
#app .domain-pill { max-width: 55%; font-size: .61rem; line-height: 1.5; text-align: right; border: 0; background: transparent; padding: 0; }
#app .science-fact { font-size: 1.25rem; line-height: 1.6; font-weight: 500; letter-spacing: -.015em; }
#app .science-source { font-size: .78rem; line-height: 1.5; }
.learning-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #d0e1dc; padding-top: 18px; margin-top: 22px; }
.learning-footer > span { font-size: .8rem; color: #526b67; }
.learning-footer .button { min-height: 44px; white-space: nowrap; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .65; }
.learning-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(900px, calc(100dvh - 40px)); }
.learning-sheet { padding: 28px; }
.learning-sheet h2 { font-size: 1.7rem; line-height: 1.15; }
.picker-intro { color: #526673; line-height: 1.6; margin: 0 0 20px; }
.learning-filters { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: #edf1ef; }
.learning-filters button { flex: 1; border: 0; border-radius: 9px; background: transparent; min-height: 44px; font-weight: 700; color: #526673; }
.learning-filters button[aria-pressed="true"] { color: white; background: var(--navy); }
.picker-note { font-size: .78rem; line-height: 1.5; color: #526673; margin: 14px 0 20px; }
#learning-status { font-size: .9rem; color: var(--navy); line-height: 1.5; }
#learning-status:empty { display: none; }
.learning-options { display: grid; gap: 16px; }
.fact-option { padding: 22px; border: 1px solid #d9e2dd; border-radius: 16px; background: #faf9f4; }
.fact-option.is-selected { background: #edf4f2; border: 2px solid var(--teal); padding: 21px; }
.fact-option .eyebrow { font-size: .62rem; line-height: 1.6; text-transform: uppercase; }
.fact-option-text { font-size: 1.13rem; line-height: 1.6; margin: 12px 0 20px; letter-spacing: -.015em; }
.fact-option-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fact-option-footer a { font-size: .78rem; line-height: 1.5; color: var(--teal); text-underline-offset: 3px; }
.fact-option-footer button { flex-shrink: 0; min-height: 44px; font-size: .8rem; }
#learning-more { margin-top: 20px; }
@media (min-width: 920px) {
  #app main { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  #app .date-strip, #app .carry-banner { grid-column: 1 / -1; margin: 0; }
  #app .section-card { margin: 0; min-width: 0; }
  #app .section-card[aria-labelledby="tasks-title"] { grid-column: 1; grid-row: span 2; min-height: 500px; }
  #app .section-card[aria-labelledby="perspective-title"], #app .learning-card { grid-column: 2; }
  #app .learning-card .section-heading { flex-wrap: wrap; }
  #app .domain-pill { max-width: 100%; text-align: left; }
  #app .learning-footer > span { display: none; }
}
@media (max-width: 600px) {
  #app .app-header { padding: calc(24px + env(safe-area-inset-top)) 20px 20px; }
  #app main { padding: 0 16px 24px; }
  #app .section-card { padding: 20px; margin: 16px 0; }
  #app .learning-card .section-heading { flex-wrap: wrap; }
  #app .learning-card .domain-pill { max-width: 100%; text-align: left; padding-left: 45px; }
  .learning-dialog { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100dvh - 20px); border-radius: 24px 24px 0 0; }
  .learning-sheet { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .fact-option { padding: 18px; }
  .fact-option.is-selected { padding: 17px; }
  .fact-option-footer { align-items: flex-start; flex-direction: column; gap: 16px; }
  .fact-option-footer button { width: 100%; }
}
.learning-dialog { height: auto; padding: 0; margin: auto; background: var(--surface); border-radius: 24px; }
.learning-dialog .learning-sheet { position: relative; width: 100%; max-height: min(900px, calc(100dvh - 40px)); margin: 0; bottom: auto; padding: 28px; }
@media (max-width: 600px) {
  .learning-dialog { margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .learning-dialog .learning-sheet { max-height: calc(100dvh - 20px); padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
}
#app .science-fact { font-family: inherit; }
#app .add-button { width: 44px; height: 44px; min-height: 44px; }

/* Shared vector brand, including install icons and the on-screen wordmark. */
.gateway-brand .brand-mark { display: block; object-fit: cover; padding: 0; border-radius: 10px; }
#app .app-header h1 { display: flex; align-items: center; gap: 10px; }
.planner-logo { display: block; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; }

.auth-progress { margin: 0; font-size: .8rem; line-height: 1.5; color: #355e61; }
.auth-progress:empty { display: none; }
