:root {
  --paper: #f5efe4;
  --card: #fffcf6;
  --ink: #2b1d12;
  --text: #4d3c2e;
  --muted: #8a7764;
  --line: #e3d6c2;
  --brown: #7a4520;
  --brown-soft: #f1e2cc;
  --green: #3f7d4e;
  --shadow: 0 1px 2px rgba(70, 40, 15, 0.07), 0 8px 22px rgba(70, 40, 15, 0.08);
  --serif: "Nunito", ui-rounded, system-ui, sans-serif;
  --sans: "Nunito", ui-rounded, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --accent: #f08a24;
  --accent-dark: #b8620f;
  --accent-soft: #feeedd;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, select, input, textarea { font: inherit; color: inherit; }
.oc-wrap { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 20px 0 40px; }
.oc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.oc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.oc-brand svg { width: 46px; height: 46px; flex: none; }
.oc-brand b { display: block; color: var(--ink); font: 700 clamp(22px, 3.2vw, 30px)/1.05 var(--serif); letter-spacing: 0.01em; }
.oc-brand small { display: block; color: var(--muted); font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.oc-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; text-decoration: none; }
.oc-back:hover { color: var(--ink); }
.oc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 20px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.oc-chip select { border: 0; background: none; font-weight: 600; cursor: pointer; padding: 4px 2px; }
.oc-chip-add { color: var(--brown); }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); }
.oc-lead { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 22px; }
.oc-subject { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 172px; padding: 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line); text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; overflow: hidden; }
.oc-subject::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tint); }
.oc-subject:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(70, 40, 15, 0.08), 0 14px 28px rgba(70, 40, 15, 0.12), 0 0 0 1px var(--line); }
.oc-subject .oc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--wash); font-size: 28px; }
.oc-subject h2 { font-size: 24px; }
.oc-subject p { margin: 0; color: var(--muted); font-size: 14.5px; }
.oc-subject .oc-meta { margin-top: auto; color: var(--tint); font-size: 13.5px; font-weight: 700; }
.oc-panel { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.oc-panel h2 { font-size: 21px; }
.oc-panel p { margin: 2px 0 0; color: var(--muted); }
.oc-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--brown); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.oc-button.ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.oc-button:disabled { opacity: 0.45; cursor: default; }
.oc-button:focus-visible, .oc-subject:focus-visible, .oc-chip select:focus-visible { outline: 3px solid #e0a96d; outline-offset: 2px; }
.oc-learners { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oc-learner { min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-weight: 650; cursor: pointer; }
.oc-learner[aria-pressed="true"] { background: var(--brown); color: #fff; box-shadow: none; }
.oc-learner.add { color: var(--brown); }
.oc-activities { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 22px; }
.oc-activity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-content: start; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.oc-activity .oc-icon { grid-row: span 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--wash, var(--brown-soft)); font-size: 27px; }
.oc-activity h3 { font-size: 20px; }
.oc-activity p { margin: 0; color: var(--muted); font-size: 14.5px; }
.oc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.oc-tag { padding: 2px 8px; border-radius: 9px; background: var(--brown-soft); color: #6a3b17; font-size: 12px; font-weight: 650; }
.oc-tag.soon { background: #ece7df; color: var(--muted); }
.oc-activity .oc-go { grid-column: 2; justify-self: start; margin-top: 10px; }
.oc-foot { margin-top: 30px; color: var(--muted); font-size: 13px; text-align: center; }
dialog.oc-dialog { width: min(420px, 92vw); border: 0; border-radius: 18px; padding: 20px; background: var(--card); color: var(--text); box-shadow: 0 20px 60px rgba(40, 20, 5, 0.3); }
dialog.oc-dialog::backdrop { background: rgba(40, 25, 10, 0.35); }
.oc-dialog h2 { font-size: 22px; margin-bottom: 8px; }
.oc-field { display: grid; gap: 4px; margin: 10px 0; font-size: 14px; color: var(--muted); }
.oc-field input, .oc-field select, .oc-field textarea { min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 16px; }
.oc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oc-note { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .oc-subject { transition: none; } }
.oc-progress { grid-column: 2; margin: 6px 0 0 !important; display: flex; align-items: center; gap: 8px; color: var(--text) !important; font-size: 13.5px !important; font-weight: 600; }
.oc-meter { width: 90px; height: 8px; border-radius: 4px; background: #ece2d3; overflow: hidden; flex: none; }
.oc-meter span { display: block; height: 100%; background: var(--green); border-radius: 4px; }

body[data-subject="math"] { --accent: #f08a24; --accent-dark: #b8620f; --accent-soft: #feeedd; }
body[data-subject="music"] { --accent: #8b5cf6; --accent-dark: #6234cf; --accent-soft: #efe7fe; }
body[data-subject="arts"] { --accent: #ec4899; --accent-dark: #b8236d; --accent-soft: #fde4f1; }
body[data-subject="science"] { --accent: #16a34a; --accent-dark: #0d7434; --accent-soft: #dcf5e4; }
body[data-subject="tech"] { --accent: #3b82f6; --accent-dark: #1d5bc9; --accent-soft: #e0ecfe; }
body { font-family: var(--sans); font-weight: 600; }
h1 { font-weight: 900; letter-spacing: -0.02em; }
h2, h3 { font-weight: 900; }
.oc-brand b { font-weight: 900; font-family: var(--sans); }
.oc-subject { min-height: 200px; padding: 20px; border-radius: 26px; background: linear-gradient(180deg, #fff 0%, var(--wash) 100%); box-shadow: 0 6px 0 color-mix(in srgb, var(--tint) 35%, #e3d6c2), 0 14px 26px rgba(70, 40, 15, 0.08); }
.oc-subject::before { display: none; }
.oc-subject:hover { transform: translateY(-3px); }
.oc-subject:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--tint) 35%, #e3d6c2); }
.oc-subject .oc-icon { width: 76px; height: 76px; border-radius: 50%; background: #fff; font-size: 42px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.oc-subject h2 { font-size: 27px; color: var(--ink); }
.oc-subject p { font-size: 15px; font-weight: 600; }
.oc-subject .oc-meta { display: inline-block; align-self: flex-start; padding: 4px 10px; border-radius: 12px; background: #fff; color: var(--tint); font-weight: 900; }
.oc-button { min-height: 52px; border-radius: 18px; background: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); font-weight: 900; font-size: 17px; transition: transform 0.1s ease; }
.oc-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.oc-button.ghost { box-shadow: 0 4px 0 #e2d6c4; }
.oc-panel, .oc-activity { border-radius: 24px; box-shadow: 0 5px 0 #e6dccd, 0 12px 24px rgba(70, 40, 15, 0.06); }
.oc-activity .oc-icon { width: 64px; height: 64px; border-radius: 50%; font-size: 32px; background: var(--accent-soft); }
.oc-activity h3 { font-size: 21px; }
.oc-tag { background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
.oc-learner { min-height: 48px; padding: 0 18px; border-radius: 24px; box-shadow: 0 3px 0 #e2d6c4; font-weight: 900; font-size: 16px; }
.oc-learner[aria-pressed="true"] { background: var(--accent); box-shadow: 0 3px 0 var(--accent-dark); }
.oc-back { font-weight: 800; color: var(--accent-dark); }
.oc-chip { font-weight: 800; }

/* subject pages: intro, strands, equal cards */
.oc-why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 20px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: 0 5px 0 #e6dccd, 0 12px 24px rgba(70, 40, 15, 0.06); }
.oc-why h2 { margin: 0 0 6px; font-size: 22px; }
.oc-why p { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.5; }
.oc-everyday { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.oc-everyday li { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 12px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1.25; }
.oc-everyday li span { font-size: 28px; flex: none; }
.oc-strand { margin: 28px 0 0; font-size: 20px; color: var(--accent-dark); }
.oc-strand + .oc-activities { margin-top: 12px; }
.oc-activities { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.oc-activity { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; box-sizing: border-box; padding: 18px; color: inherit; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
a.oc-activity:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent), 0 7px 0 var(--accent-dark), 0 14px 28px rgba(70, 40, 15, 0.1); }
a.oc-activity:active { transform: translateY(2px); }
.oc-activity .oc-icon { grid-row: auto; }
.oc-activity h3 { margin: 4px 0 0; }
.oc-activity p { flex: 0 0 auto; }
.oc-activity .oc-progress { margin: 0; }
.oc-activity.soon { opacity: 0.6; }
.oc-start { margin-top: auto; align-self: stretch; display: grid; place-items: center; min-height: 52px; border-radius: 18px; background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-dark); font: 900 19px/1 var(--sans); }
.oc-tags { margin-bottom: 4px; }
@media (max-width: 760px) { .oc-why { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .oc-everyday { grid-template-columns: minmax(0, 1fr); } }

/* month plan */
.pl-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-top: 18px; }
.pl-tracks { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-tracks button { display: flex; flex-direction: column; align-items: flex-start; min-height: 56px; padding: 8px 18px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 #e2d6c4; color: var(--ink); font: 900 17px/1.2 var(--sans); cursor: pointer; }
.pl-tracks button small { font-weight: 700; font-size: 12.5px; color: var(--muted); }
.pl-tracks button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 4px 0 var(--accent-dark); }
.pl-tracks button[aria-pressed="true"] small { color: #fff; opacity: 0.9; }
.pl-start input { min-height: 46px; border: 0; border-radius: 14px; box-shadow: 0 0 0 2px var(--line); padding: 0 10px; font: 800 15px var(--sans); background: #fff; }
.pl-today { margin-top: 18px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 6px 0 var(--accent-dark), 0 14px 28px rgba(70, 40, 15, 0.08); }
.pl-today h2 { margin: 0; font-size: 23px; }
.pl-theme { margin: 4px 0 10px; color: var(--accent-dark); font-weight: 800; }
.pl-meter { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 800; color: var(--ink); }
.pl-meter .oc-meter { width: min(260px, 40vw); height: 12px; border-radius: 6px; }
.pl-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; margin-top: 12px; }
.pl-day { padding: 14px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #e6dccd; }
.pl-day.today { box-shadow: 0 0 0 3px var(--accent), 0 4px 0 var(--accent-dark); }
.pl-day.complete { background: linear-gradient(180deg, #fff, #f1faf3); }
.pl-day h3 { margin: 0 0 8px; font-size: 18px; }
.pl-day h3 span { color: var(--muted); font-weight: 700; font-size: 14px; }
.pl-items { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pl-item { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; border-radius: 14px; background: var(--paper); }
.pl-item.done .pl-what { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, 0.25); }
.pl-tick { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px var(--line); color: #fff; font: 900 18px/1 var(--sans); cursor: pointer; }
.pl-tick[aria-pressed="true"] { background: #22a05a; box-shadow: none; }
.pl-icon { font-size: 20px; }
.pl-what { display: flex; flex-direction: column; font-weight: 800; font-size: 14.5px; line-height: 1.25; color: var(--ink); }
.pl-what small { font-weight: 700; color: var(--muted); font-size: 12px; }
.pl-go { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; text-decoration: none; font-size: 16px; box-shadow: 0 3px 0 var(--accent-dark); }
.pl-items.big .pl-item { padding: 10px; gap: 12px; }
.pl-items.big .pl-what { font-size: 17px; }
.pl-items.big .pl-tick, .pl-items.big .pl-go { width: 48px; height: 48px; font-size: 20px; }
body[data-subject="reading"] { --accent: #0d9488; --accent-dark: #0a6b63; --accent-soft: #d5f3ef; }
body[data-subject="history"] { --accent: #c2710c; --accent-dark: #8f520a; --accent-soft: #fbe9cf; }

/* accounts and profiles */
.oc-account[hidden] { display: none; }
.oc-account [data-signin] span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 900; }
.oc-learner small { display: block; font-size: 11px; font-weight: 800; opacity: 0.75; }
dialog.oc-dialog:has(.oc-person) { width: min(560px, 94vw); }
.oc-person { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; padding: 14px; margin-top: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.oc-person .oc-name { grid-column: 1 / -1; }
.oc-person .oc-input { width: 100%; box-sizing: border-box; min-width: 0; min-height: 44px; font-size: 16px; }
.oc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.oc-remove { position: absolute; top: 10px; right: 10px; border: 0; background: none; color: #b42318; font: 800 14px var(--sans); cursor: pointer; padding: 4px 6px; }
.oc-person .oc-field { margin: 0; }
.oc-sub { margin: 14px 0 0; font-size: 16px; }
@media (max-width: 480px) { .oc-person { grid-template-columns: minmax(0, 1fr); } }
.oc-fit { position: absolute; top: 12px; right: 12px; padding: 3px 9px; border-radius: 10px; background: #e3f4e7; color: #2e7d46; font-size: 12px; font-weight: 900; }
.oc-activity { position: relative; }
.oc-activity.far { opacity: 0.6; }
body[data-subject="character"] { --accent: #4f46e5; --accent-dark: #3730a3; --accent-soft: #e5e7ff; }

/* year plan */
.yr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.yr-nav { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.yr-arrow { width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 0 #e2d6c4; font-size: 20px; cursor: pointer; }
.yr-arrow:disabled { opacity: 0.35; cursor: default; }
.yr-when { display: flex; flex-direction: column; min-width: 170px; }
.yr-when b { font-size: 20px; color: var(--ink); }
.yr-when span { color: var(--muted); font-weight: 700; font-size: 14px; }
.yr-now { min-height: 44px; }
.yr-card { margin-top: 12px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 6px 0 var(--accent-dark); }
.yr-card h2 { margin: 6px 0 4px; font-size: 26px; }
.yr-why { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.5; }
.yr-type { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.yr-type.learn { background: #feeedd; color: #b8620f; }
.yr-type.review { background: #e0ecfe; color: #1d5bc9; }
.yr-type.light { background: #fef3c7; color: #92400e; }
.yr-type.break { background: #ece7df; color: #6b5b4b; }
.yr-type.summer { background: #dcf5e4; color: #0d7434; }
.yr-check { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--paper); }
.yr-check p { margin: 0 0 8px; }
.yr-check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.yr-skills h3 { margin-top: 16px; font-size: 19px; }
.yr-skill { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.yr-skill p { margin: 0 0 6px; }
.yr-skill-name small { color: var(--muted); font-weight: 600; }
.yr-skill details { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.yr-skill details ul { margin: 4px 0 0; padding-left: 20px; }
.yr-check-row button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 #e2d6c4; font: 800 15px var(--sans); cursor: pointer; }
.yr-check-row button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 3px 0 var(--accent-dark); }
.yr-note { width: 100%; box-sizing: border-box; margin-top: 8px; min-height: 52px; border: 0; border-radius: 12px; box-shadow: 0 0 0 2px var(--line); padding: 8px 10px; font: 600 15px var(--sans); background: #fff; resize: vertical; }
.yr-tabs { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.yr-tab { display: flex; flex-direction: column; align-items: center; min-width: 84px; padding: 8px 12px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 #e2d6c4; cursor: pointer; font-family: var(--sans); color: var(--ink); }
.yr-tab b { font-size: 16px; }
.yr-tab span { font-size: 13px; color: var(--muted); font-weight: 700; }
.yr-tab small { font-size: 12px; font-weight: 900; color: var(--accent-dark); }
.yr-tab[aria-pressed="true"] { background: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); }
.yr-tab[aria-pressed="true"] b, .yr-tab[aria-pressed="true"] span, .yr-tab[aria-pressed="true"] small { color: #fff; }
.yr-tab.today { outline: 3px dashed var(--accent); outline-offset: 2px; }
.yr-day { margin-top: 12px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #e6dccd; }
.yr-day h3 { margin: 0; font-size: 21px; }
.yr-item .pl-what b { display: block; font-size: 15px; }
.yr-item .pl-what { font-weight: 600; }
.yr-item.optional { opacity: 0.7; }
.yr-item.screen { background: #eef4ff; }
.yr-book { display: grid; place-items: center; width: 40px; height: 40px; font-size: 20px; }
.yr-glance { margin-top: 16px; padding: 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #e6dccd; }
.yr-glance summary, .yr-settings summary { cursor: pointer; font-weight: 900; font-size: 17px; color: var(--ink); }
.yr-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 14.5px; }
.yr-table th { width: 170px; text-align: left; vertical-align: top; padding: 8px 8px 8px 0; color: var(--accent-dark); }
.yr-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .yr-table th { width: 110px; } }
.yr-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.yr-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 74px; padding: 8px 10px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 #e6dccd; text-align: left; cursor: pointer; overflow: hidden; font-family: var(--sans); color: var(--ink); }
.yr-cell b { font-size: 13px; color: var(--muted); }
.yr-cell span { font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.yr-cell i { position: absolute; left: 0; bottom: 0; height: 5px; background: #22a05a; }
.yr-cell em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 13px; }
.yr-cell.review { background: #eef4ff; }
.yr-cell.light { background: #fff8e1; }
.yr-cell.break { background: #f1ece4; }
.yr-cell.summer { background: #eaf8ee; }
.yr-cell.on { box-shadow: 0 0 0 3px var(--accent), 0 3px 0 var(--accent-dark); }
.yr-cell.now b::after { content: " · now"; color: var(--accent-dark); }
.yr-settings { margin-top: 16px; padding: 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #e6dccd; }
.yr-daypick { display: flex; flex-wrap: wrap; gap: 6px; }
.yr-daypick button { min-width: 52px; min-height: 42px; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font: 800 14px var(--sans); cursor: pointer; }
.yr-daypick button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.yr-check-line { display: flex; align-items: center; gap: 8px; }

/* curriculum */
.cu-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cu-principles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin-top: 18px; }
.cu-principles div { padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 #e6dccd; }
.cu-principles b { color: var(--accent-dark); }
.cu-principles p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink); }
.cu-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cu-toc a { padding: 6px 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 0 #e6dccd; color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none; }
.cu-mod { margin-top: 18px; padding: 18px 20px; border-radius: 24px; background: #fff; box-shadow: 0 5px 0 #e6dccd; break-inside: avoid; }
.cu-mod header { display: flex; align-items: center; gap: 12px; }
.cu-mod header .oc-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); font-size: 26px; flex: none; }
.cu-mod h2 { margin: 0; font-size: 22px; }
.cu-mod header small { color: var(--muted); font-weight: 700; }
.cu-dl { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 16px; margin: 14px 0 0; }
.cu-dl dt { font-weight: 900; color: var(--accent-dark); }
.cu-dl dd { margin: 0; color: var(--ink); line-height: 1.5; }
.cu-dl ul { margin: 0; padding-left: 18px; }
.cu-goals li::marker { content: "✓ "; color: #22a05a; }
.cu-seq { width: 100%; border-collapse: collapse; }
.cu-seq th { width: 150px; text-align: left; vertical-align: top; padding: 6px 10px 6px 0; color: var(--ink); }
.cu-seq td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cu-web { display: flex; flex-wrap: wrap; gap: 6px; }
.cu-web a { text-decoration: none; }
@media (max-width: 640px) { .cu-dl { grid-template-columns: minmax(0, 1fr); } .cu-dl dt { margin-top: 6px; } .cu-seq th { width: 96px; } }
@media print { .no-print { display: none !important; } .cu-mod { box-shadow: none; border: 1px solid #ccc; } body { background: #fff; } }
.yr-day { position: relative; }
.yr-kid { position: absolute; top: 12px; right: 12px; min-height: 40px; font-size: 14px; }
.yr-day.kid .pl-what { font-size: 0; }
.yr-day.kid .pl-what b { font-size: 20px; }
.yr-day.kid .pl-icon { font-size: 34px; }
.yr-day.kid .pl-item { padding: 12px; }
.yr-day.kid .pl-tick { width: 58px; height: 58px; font-size: 26px; }
.yr-day.kid .oc-note, .yr-day.kid .yr-item.optional { display: none; }
@media (max-width: 560px) { .yr-kid { position: static; margin-bottom: 8px; } }

/* how it works */
.hw { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.hw-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.hw-bar b { font-size: 19px; color: var(--ink); flex: 1; min-width: 0; }
.hw-back { color: var(--accent-dark); font-weight: 800; text-decoration: none; }
.hw-say { min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px; background: var(--accent); color: #fff; font: 800 15px var(--sans); cursor: pointer; box-shadow: 0 3px 0 var(--accent-dark); }
.hw-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; padding: 0 12px 12px; min-height: 0; }
.hw-fig { width: 100%; height: 100%; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 10px 30px rgba(70,40,15,.08); }
.hw-side { overflow: auto; padding: 16px 18px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #e6dccd; }
.hw-side h2 { margin: 0 0 8px; font-size: 21px; }
.hw-side h3 { margin: 14px 0 4px; font-size: 16px; color: var(--accent-dark); }
.hw-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.hw-words { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 14.5px; }
.hw-words dt { font-weight: 900; }
.hw-words dd { margin: 0; color: var(--muted); }
.hw-tell { margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); font-weight: 800; }
@media (max-width: 860px) { .hw { height: auto; } .hw-main { grid-template-columns: minmax(0, 1fr); } .hw-fig { height: 70vh; } }
body[data-subject="life"] { --accent: #0891b2; --accent-dark: #0e6680; --accent-soft: #d6f2f8; }

/* "What your child is learning" summaries (subject pages) */
.oc-learning { margin-top: 16px; padding: 18px 22px; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.oc-learning h2 { font-size: 21px; margin-bottom: 4px; }
.oc-learning p { margin: 8px 0 0; line-height: 1.5; }
.oc-learning details { margin-top: 8px; color: var(--ink); }
.oc-learning summary { color: var(--muted); font-weight: 700; cursor: pointer; }
