@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --ink: #17231f;
  --muted: #68736f;
  --paper: #f4f0e7;
  --panel: #fffdf8;
  --line: #dcd7cc;
  --green: #234c3d;
  --green-soft: #dbe8df;
  --coral: #ec765d;
  --yellow: #f0c862;
  --blue: #4e7193;
  --shadow: 0 20px 60px rgba(31, 42, 37, .08);
  --radius: 5px;
  --display: "DM Serif Display", Georgia, serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: var(--body); min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.paper-noise { position: fixed; inset: 0; pointer-events: none; opacity: .28; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E"); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px 1fr; }
.sidebar { height: 100vh; position: sticky; top: 0; padding: 34px 25px 26px; display: flex; flex-direction: column; background: var(--green); color: #f8f5ec; overflow: hidden; }
.sidebar::after { content: ""; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; position: absolute; left: -95px; bottom: 95px; box-shadow: 0 0 0 34px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.025); }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; position: relative; z-index: 1; }
.brand-mark { width: 39px; height: 39px; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font: 26px/1 var(--display); border-radius: 50% 50% 50% 7px; }
.brand strong, .brand small, .profile strong, .profile small { display: block; }
.brand strong { font: 20px/1 var(--display); letter-spacing: .2px; }
.brand small { opacity: .65; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px; }
.primary-nav { display: grid; gap: 7px; margin-top: 70px; position: relative; z-index: 1; }
.mobile-nav-wrap { display: none; }
.mobile-nav-item { border: 0; background: transparent; color: rgba(255,255,255,.72); cursor: pointer; font: 600 11px var(--body); }
.mobile-nav-item.active, .mobile-nav-item:hover { color: var(--yellow); }
.mobile-other-menu { position: relative; }
.mobile-other-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; }
.mobile-other-toggle b { font-size: 10px; font-weight: 400; }
.mobile-other-options { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 9px); display: grid; gap: 3px; min-width: 145px; padding: 7px; background: var(--green); border: 1px solid rgba(255,255,255,.2); box-shadow: 5px 5px 0 rgba(0,0,0,.16); }
.mobile-other-options[hidden] { display: none; }
.mobile-other-option { border: 0; background: transparent; color: rgba(255,255,255,.78); cursor: pointer; padding: 9px 10px; text-align: left; font: 600 11px var(--body); }
.mobile-other-option:hover, .mobile-other-option.selected { color: var(--ink); background: var(--yellow); }
.other-menu { position: relative; }
.other-toggle { width: 100%; }
.other-toggle b { margin-left: auto; font-size: 13px; font-weight: 400; line-height: 1; }
.other-options { position: absolute; z-index: 10; left: 14px; right: -8px; top: calc(100% + 3px); display: grid; gap: 3px; padding: 7px; background: var(--green); border: 1px solid rgba(255,255,255,.2); box-shadow: 5px 5px 0 rgba(0,0,0,.16); }
.other-options[hidden] { display: none; }
.other-menu:hover .other-options, .other-menu:focus-within .other-options { display: grid; }
.other-option { border: 0; background: transparent; color: rgba(255,255,255,.72); cursor: pointer; padding: 9px 10px; text-align: left; font: 600 11px var(--body); }
.other-option:hover, .other-option.selected { color: var(--ink); background: var(--yellow); }
.nav-item { border: 0; background: transparent; color: rgba(255,255,255,.64); padding: 12px 10px; text-align: left; border-radius: var(--radius); cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 14px; transition: .2s ease; }
.nav-item span { font-size: 9px; opacity: .6; letter-spacing: 1px; }
.nav-item:hover { color: white; transform: translateX(3px); }
.nav-item.active { color: var(--ink); background: var(--yellow); box-shadow: 5px 5px 0 rgba(0,0,0,.14); }
.sidebar-bottom { margin-top: auto; position: relative; z-index: 1; }
.term-progress { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.62); }
.term-progress > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.term-progress strong { color: white; font-size: 9px; }
.progress-track { height: 3px; background: rgba(255,255,255,.15); margin: 10px 0 24px; }
.progress-track i { display: block; width: 22%; height: 100%; background: var(--yellow); }
.profile { border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.05); width: 100%; color: white; padding: 10px; display: flex; gap: 10px; align-items: center; text-align: left; cursor: pointer; }
.profile > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; background: var(--coral); border-radius: 50%; font-size: 10px; font-weight: 700; }
.profile strong { font-size: 11px; }
.profile small { color: rgba(255,255,255,.55); font-size: 9px; margin-top: 2px; }

.main-panel { min-width: 0; padding: 42px clamp(28px, 4vw, 66px) 110px; max-width: 1500px; width: 100%; margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 35px; animation: rise .45s ease both; position: relative; z-index: 35; }
.eyebrow { margin: 0 0 7px; color: var(--coral); text-transform: uppercase; font-size: 10px; letter-spacing: 1.6px; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: clamp(34px, 4vw, 52px)/1 var(--display); margin-bottom: 0; font-weight: 400; letter-spacing: -.6px; }
h2 { font: 26px/1.1 var(--display); font-weight: 400; margin: 0; }
.top-actions { display: flex; align-items: center; gap: 7px; }
.icon-button, .date-pill, .add-button { border: 1px solid var(--line); min-height: 39px; background: var(--panel); cursor: pointer; transition: .18s ease; }
.icon-button { width: 39px; }
.icon-button:hover { background: var(--yellow); transform: translateY(-2px); }
.date-pill { padding: 0 15px; font-size: 10px; letter-spacing: 1px; font-weight: 700; }
.date-picker-wrap { position: relative; }
.date-picker { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; width: 280px; padding: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: 8px 8px 0 rgba(52,76,117,.14); }
.date-picker-head { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 6px; margin-bottom: 12px; }
.date-picker-head strong { text-align: center; font: 18px/1 var(--display); }
.date-picker-head button { border: 1px solid var(--line); background: transparent; cursor: pointer; height: 29px; }
.week-picker { display: grid; gap: 8px; }
.week-picker label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.week-picker select { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); padding: 10px; outline: none; }
.week-picker select:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.date-picker-head button:hover { background: var(--yellow); }
.date-weekdays, .date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.date-weekdays { margin-bottom: 5px; color: var(--muted); font-size: 8px; text-align: center; text-transform: uppercase; }
.date-cell { min-height: 30px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; font-size: 10px; }
button.date-cell:hover, .date-cell.selected { border-color: var(--green); background: var(--green-soft); }
.date-cell.today { box-shadow: inset 0 -2px 0 var(--coral); }
.date-cell.holiday { background: #f4dcd1; color: #8b4637; }
.date-cell.empty { cursor: default; }
.add-button { border-color: var(--green); background: var(--green); color: white; padding: 0 16px; margin-left: 7px; font-size: 11px; font-weight: 700; box-shadow: 4px 4px 0 var(--yellow); }
.add-button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--yellow); }
.add-button span { color: var(--yellow); font-size: 16px; margin-right: 6px; }
.view-root { animation: rise .5s .06s ease both; }
.today-grid { display: grid; grid-template-columns: minmax(500px, 1.45fr) minmax(300px, .72fr); gap: 22px; align-items: start; }
.card { background: rgba(255,253,248,.86); border: 1px solid var(--line); box-shadow: var(--shadow); }
.schedule-card { padding: 27px 30px 13px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading.compact { padding: 21px 22px 17px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.today-title-row { display: flex; align-items: baseline; gap: 13px; }
.title-separator { color: var(--ink); font: 26px/1.1 var(--display); font-weight: 400; }
.today-weekday { color: var(--blue); font: 26px/1.1 var(--display); font-weight: 400; }
.lesson-count { font-size: 9px; font-weight: 700; padding: 7px 9px; background: var(--green-soft); color: var(--green); letter-spacing: .7px; text-transform: uppercase; }
.timeline { padding-top: 10px; }
.lesson { display: grid; grid-template-columns: 52px 16px 1fr; min-height: 66px; position: relative; cursor: pointer; }
.lesson:focus-visible .lesson-body { outline: 2px solid var(--coral); outline-offset: 2px; }
.lesson.break { min-height: 55px; }
.lesson.combined { min-height: 132px; }
.lesson.combined .lesson-body { border-color: var(--yellow); background: #fffaf0; min-height: 94px; align-items: flex-start; }
.lesson.combined .tag { letter-spacing: .45px; }
.lesson time { font-size: 10px; color: var(--muted); padding-top: 22px; font-weight: 600; }
.line-dot { position: relative; }
.line-dot::before { content: ""; position: absolute; width: 1px; background: var(--line); top: 0; bottom: 0; left: 5px; }
.line-dot::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--panel); border: 2px solid #aab2ae; border-radius: 50%; left: 0; top: 20px; z-index: 1; }
.lesson:first-child .line-dot::before { top: 22px; }
.lesson:last-child .line-dot::before { bottom: calc(100% - 23px); }
.lesson-body { margin: 8px 0 7px 13px; padding: 11px 13px; display: flex; justify-content: space-between; align-items: center; border: 1px solid transparent; transition: .18s ease; }
.lesson-copy { min-width: 0; flex: 1; }
.lesson-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.lesson-room { min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.lesson:not(.break):hover .lesson-body { background: white; border-color: var(--line); transform: translateX(3px); }
.lesson h3 { font-size: 13px; margin: 5px 0 3px; }
.lesson p { margin-bottom: 0; font-size: 10px; color: var(--muted); }
.lesson-plan-preview { display: grid; gap: 2px; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.lesson-plan-preview span { display: block; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.lesson-plan-preview b { font-weight: 700; }
.lesson-plan-preview a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.lesson-plan-preview .unit-plan-inside { color: var(--green); font-weight: 700; }
.lesson .lesson-plan-preview { margin-top: 6px; color: var(--ink); }
.lesson.current .lesson-plan-preview { color: rgba(255,255,255,.78); }
.tag { display: inline-block; font-size: 7px; line-height: 1; padding: 4px 5px; letter-spacing: .8px; font-weight: 700; }
.tag.english { color: #684337; background: #f4dcd1; }
.tag.media { color: #314e6b; background: #dce7f0; }
.tag.admin { color: #385446; background: #dce8de; }
.tag.neutral { color: #6d6658; background: #eae5d8; }
.lesson-action { width: 27px; height: 27px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.lesson.current .lesson-body { background: var(--green); color: white; box-shadow: 5px 5px 0 var(--yellow); }
.lesson.current p { color: rgba(255,255,255,.62); }
.lesson.current .line-dot::after { border-color: var(--coral); background: var(--coral); box-shadow: 0 0 0 4px rgba(236,118,93,.2); }
.now-label { font-size: 8px; color: var(--yellow); font-weight: 700; letter-spacing: 1px; }
.lesson.done { opacity: .62; }
.lesson.done h3 { text-decoration: line-through; }
.lesson.break .lesson-body { padding-top: 7px; }
.lesson.break { color: var(--muted); }

.right-rail { display: grid; gap: 18px; }
.priority-card, .support-card { overflow: hidden; }
.section-heading.compact h2 { font-size: 21px; }
.section-heading.compact > span { font-size: 9px; font-weight: 700; background: var(--yellow); padding: 5px 7px; }
.tasks { padding: 7px 22px 12px; }
.task { display: grid; grid-template-columns: 18px 1fr; gap: 8px; position: relative; cursor: pointer; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.task:last-child { border: 0; }
.task input { position: absolute; opacity: 0; }
.task i { width: 15px; height: 15px; border: 1px solid #a4ada8; margin-top: 2px; position: relative; }
.task input:checked + i { background: var(--green); border-color: var(--green); }
.task input:checked + i::after { content: "✓"; position: absolute; color: white; font-size: 10px; left: 2px; top: -1px; }
.task strong, .task small { display: block; }
.task strong { font-size: 11px; line-height: 1.35; }
.task small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.task.checked strong { color: var(--muted); text-decoration: line-through; }
.support-card { padding-bottom: 8px; }
.text-button { border: 0; background: transparent; color: var(--coral); font-size: 9px; font-weight: 700; cursor: pointer; }
.support-note { display: grid; grid-template-columns: 31px 1fr; gap: 11px; margin: 15px 21px; }
.support-note > span { width: 31px; height: 31px; background: var(--blue); color: white; display: grid; place-items: center; font-size: 8px; font-weight: 700; border-radius: 50%; }
.support-note strong { font-size: 11px; }
.support-note p { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 2px 0 0; }
.planning-day-card { width: 100%; min-width: 0; max-width: 100%; padding: 20px 21px 16px; border-top: 3px solid #c89424; background: #fffaf0; }
.today-planning-day-card { margin-top: 22px; }
.planning-day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid #eadfbe; }
.planning-day-head h2 { margin: 4px 0 3px; font: 24px/1 var(--display); color: var(--ink); }
.planning-day-head small, .planning-entry small, .planning-entry em { display: block; color: var(--muted); font-size: 9px; line-height: 1.4; }
.planning-day-head .secondary-button { padding: 9px 10px; white-space: nowrap; }
.planning-entry-list { display: grid; gap: 8px; padding: 14px 0 11px; }
.planning-entry { display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: start; gap: 10px; width: 100%; min-width: 0; max-width: 100%; padding: 10px 8px; border: 1px solid #eadfbe; border-left: 3px solid #c89424; background: rgba(255,255,255,.7); color: var(--ink); text-align: left; cursor: pointer; }
.planning-day-card .planning-entry { display: block; position: relative; padding: 10px 30px 10px 8px; }
.planning-entry:hover { background: #fff; transform: translateX(2px); }
.planning-entry time { display: block; font-size: 10px; font-weight: 700; color: #9a6f14; line-height: 1.2; }
.planning-entry time span { color: var(--muted); font-weight: 500; }
.planning-entry > span { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.planning-day-card .planning-entry > span { display: block; }
.planning-entry strong { display: block; min-width: 0; font-size: 11px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.planning-day-card .planning-entry strong { margin-top: 3px; }
.planning-entry em { margin-top: 4px; font-style: normal; white-space: pre-wrap; }
.planning-entry > b { color: #9a6f14; }
.planning-day-card .planning-entry > b { position: absolute; top: 10px; right: 9px; }
.planning-empty { padding: 18px 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.week-calendar-label { border: 0; width: 100%; min-width: 0; max-width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.week-calendar-label:hover { filter: brightness(.98); }
.planning-entry-dialog { width: min(680px, calc(100% - 30px)); }
.planning-entry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.planning-entry-fields label { margin-bottom: 16px; }
.planning-entry-fields .planning-location-field { align-self: start; }
.planning-entry-fields .planning-location-field input { height: 48px; resize: none; }

/* Additional views */
.yearly-intro { display: flex; align-items: center; justify-content: space-between; padding: 27px 30px; margin-bottom: 18px; }
.yearly-intro h2 { margin: 7px 0 5px; font: 30px/1 var(--display); }
.yearly-intro p:not(.eyebrow) { color: var(--muted); font-size: 11px; }
.yearly-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 17px; }
.yearly-card { padding: 22px; min-height: 250px; }
.yearly-card-head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.yearly-card h3 { margin: 12px 0 0; font: 25px/1 var(--display); }
.yearly-number { color: var(--coral); font: 22px/1 var(--display); opacity: .7; }
.yearly-focus { color: var(--muted); font-size: 11px; line-height: 1.5; min-height: 50px; margin: 16px 0; }
.yearly-notes-label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.yearly-notes-label textarea { width: 100%; min-height: 70px; resize: vertical; }
.yearly-save { margin-top: 11px; padding: 10px 13px; font-size: 9px; }
.week-board { --week-slot-height: 74px; --week-break-height: calc(var(--week-slot-height) * .7); display: grid; grid-template-columns: 48px repeat(5, minmax(145px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.slot-rail { display: grid; grid-template-rows: 35px repeat(3, var(--week-slot-height)) var(--week-break-height) repeat(2, var(--week-slot-height)) repeat(2, var(--week-break-height)) repeat(3, var(--week-slot-height)); gap: 8px; padding-top: 16px; color: var(--muted); text-align: center; }
.slot-rail-head { align-self: stretch; }
.slot-rail > span:not(.slot-rail-head) { grid-row: var(--slot-row); align-self: stretch; display: grid; place-items: center; background: var(--panel); font: 700 16px/1 var(--body); color: var(--ink); }
.slot-rail > span.slot-rail-break { background: #e8eee7; color: var(--muted); font-size: 8px; }
.slot-rail > span.slot-rail-lunch,
.slot-rail > span.slot-rail-after-lunch { background: #f3e7d4; color: var(--muted); font-size: 8px; }
.day-column { background: var(--panel); border: 1px solid var(--line); min-height: 520px; min-width: 0; padding: 16px 12px; }
.day-column.today { border-top: 4px solid var(--coral); padding-top: 12px; }
.day-head { display: flex; height: 35px; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 8px; }
.week-slots { display: grid; grid-template-rows: repeat(3, var(--week-slot-height)) var(--week-break-height) repeat(2, var(--week-slot-height)) repeat(2, var(--week-break-height)) repeat(3, var(--week-slot-height)); gap: 8px; align-items: start; }
.week-slots .week-lesson { grid-row: var(--slot-row); margin: 0; min-width: 0; height: var(--week-slot-height); overflow: hidden; position: relative; z-index: 1; box-sizing: border-box; transition: height .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease; }
.week-slots .week-lesson.break-slot,
.week-slots .week-lesson.lunch-slot { height: var(--week-break-height); min-height: var(--week-break-height); }
.week-slots .week-lesson.break-slot:hover,
.week-slots .week-lesson.break-slot:focus-within,
.week-slots .week-lesson.lunch-slot:hover,
.week-slots .week-lesson.lunch-slot:focus-within { height: var(--week-break-height); min-height: var(--week-break-height); }
.week-slots .week-lesson:hover,
.week-slots .week-lesson:focus-within { height: max-content; min-height: var(--week-slot-height); max-height: 260px; overflow: visible; z-index: 20; box-shadow: 0 10px 24px rgba(36, 48, 41, .16); }
.week-slots .week-lesson.double-lesson:hover,
.week-slots .week-lesson.double-lesson:focus-within { min-height: 140px; }
.week-slots .week-lesson.double-lesson { grid-row: var(--slot-row) / span 2; }
.day-head strong { font: 19px/1 var(--display); white-space: nowrap; }
.day-head span { color: var(--muted); font-size: 9px; }
.week-year-group { margin: 16px 0 20px; }
.week-year-group h3 { font: 28px/1 var(--display); margin: 0 0 9px; color: var(--green); border-bottom: 2px solid var(--yellow); padding-bottom: 7px; }
.week-year-group .week-lesson { margin: 6px 0; }
.day-open { color: var(--muted); font-size: 10px; padding: 22px 0; font-style: italic; }
.week-lesson { padding: 5px 10px 10px; margin: 8px 0; background: var(--green-soft); border-left: 3px solid var(--green); cursor: pointer; transition: .18s ease; }
.week-lesson.non-interactive { cursor: default; }
.week-lesson:hover { background: white; transform: translateX(3px); }
.week-lesson:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.week-lesson.double-lesson { height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; box-shadow: inset 0 -4px 0 rgba(255,255,255,.5); }
.week-lesson.alt { background: #f3e0d7; border-color: var(--coral); }
.week-lesson.pattern-0 { background: #dce8de; border-color: #4f8065; }
.week-lesson.pattern-1 { background: #dce7f0; border-color: #4e7193; }
.week-lesson.pattern-2 { background: #f4dcd1; border-color: #c06b53; }
.week-lesson.pattern-3 { background: #eee4bd; border-color: #a8872d; }
.week-lesson.pattern-4 { background: #e7dded; border-color: #85659a; }
.week-lesson.pattern-5 { background: #dce5e2; border-color: #4c7b76; }
.week-lesson.meeting-slot { background: #f7edc9; border: 1px solid #c89424; }
.week-lesson.meeting-slot:hover { background: #fff7dc; }
.meeting-file-links { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 6px; }
.meeting-file-links a, .meeting-file-links span { color: var(--green); font-size: 9px; font-weight: 700; }
.meeting-file-links a { text-decoration: underline; text-underline-offset: 2px; }
.meeting-file-links a:hover { color: var(--blue); }
.week-lesson.out-of-hours-slot { border-top: 4px solid var(--ink); }
.week-lesson.meeting-slot.out-of-hours-slot { border-top-color: #c89424; }
.week-lesson.duty-slot { padding: 6px 10px; background: #eee9dc; border-left-color: transparent; }
.week-lesson.duty-slot strong { margin: 2px 0; }
.week-lesson.duty-slot small { font-size: 7px; }
.week-lesson.break-slot { background: #e8eee7; border-left-color: transparent; color: var(--muted); }
.week-lesson.lunch-slot { background: #f3e7d4; border-left-color: transparent; color: var(--muted); }
.week-lesson.break-slot:not(.free),
.week-lesson.lunch-slot:not(.free) { color: var(--ink); }
.week-lesson.duty-slot:hover { background: white; }
.week-lesson.free { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.week-lesson.duty-slot.free { border-style: solid; }
.week-lesson.break-slot.free { background: #e8eee7; }
.week-lesson.lunch-slot.free { background: #f3e7d4; }
.week-slot-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.week-lesson time, .week-lesson small, .week-room { display: block; font-size: 8px; }
.week-lesson time.week-slot-time-different { color: #111; font-weight: 800; }
.week-room { color: var(--muted); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week-lesson strong { display: block; font-size: 10px; margin: 4px 0; }
.week-lesson small { color: var(--muted); }
.week-lesson .lesson-plan-preview { color: var(--ink); margin-top: 4px; line-height: 1.35; }
.setup-card { padding: 27px 30px 30px; margin-bottom: 18px; }
.setup-form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; padding-top: 22px; }
.calendar-card { padding: 0; margin-bottom: 18px; }
.calendar-summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.calendar-summary::-webkit-details-marker { display: none; }
.calendar-summary:hover { background: #fbfaf5; }
.calendar-summary .section-heading { flex: 1; margin: 0; }
.calendar-summary .section-heading h2 { font-size: 22px; }
.calendar-chevron { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 15px; line-height: 1; transition: transform .2s; }
.calendar-card:not([open]) .calendar-chevron { transform: rotate(-90deg); }
.calendar-details { border-top: 1px solid var(--line); padding: 0 30px 22px; }
.calendar-form { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1fr auto; gap: 12px; align-items: end; padding-top: 22px; }
.calendar-form label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.calendar-form input, .calendar-form select { min-width: 0; border: 1px solid var(--line); background: white; padding: 12px; color: var(--ink); outline: none; }
.calendar-form input:focus, .calendar-form select:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.calendar-form .submit-button { width: auto; white-space: nowrap; padding: 13px 16px; box-shadow: 4px 4px 0 var(--yellow); }
.calendar-list { display: grid; gap: 8px; padding-top: 18px; }
.calendar-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 20px; }
.calendar-column { min-width: 0; padding: 12px; background: #f4f7f4; border: 1px solid var(--line); }
.calendar-column.holiday-column { background: #fbf0eb; border-color: #e9c8bc; }
.calendar-column.planning-column { background: #fbf5df; border-color: #e7d59a; }
.calendar-column-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.calendar-column-head .eyebrow { margin-bottom: 5px; }
.calendar-column-head h3 { margin: 0; font: 18px/1 var(--display); }
.calendar-column-head > span { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.72); color: var(--muted); font-size: 10px; font-weight: 700; }
.calendar-add { margin: 11px 0 8px; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 10px; font-weight: 700; padding: 0; }
.holiday-column .calendar-add { color: var(--coral); }.planning-column .calendar-add { color: #9a6f14; }
.calendar-column-list { display: grid; gap: 7px; }
.calendar-column .calendar-entry { padding: 8px; gap: 7px; }
.calendar-column .calendar-entry-mark { flex: 0 0 21px; width: 21px; height: 21px; font-size: 8px; }
.calendar-column .calendar-entry strong { font-size: 10px; overflow-wrap: anywhere; }
.calendar-column .calendar-entry small { font-size: 8px; }
.calendar-column .calendar-entry .calendar-edit { font-size: 9px; }
.calendar-column .calendar-entry .calendar-remove { width: 17px; font-size: 15px; }
.calendar-column .calendar-empty { margin: 4px 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
@media (max-width: 760px) {
  .calendar-summary { padding: 15px 14px; }
  .calendar-summary .section-heading h2 { font-size: 19px; }
  .calendar-details { padding: 0 14px 16px; }
  .calendar-columns { grid-template-columns: 1fr; }
}

.calendar-entry { display: flex; align-items: center; gap: 11px; padding: 10px 12px; background: var(--green-soft); border-left: 3px solid var(--green); }
.calendar-entry.holiday-entry { background: #f4dcd1; border-color: var(--coral); }
.calendar-entry.planning-entry { background: #f7edc9; border-color: #c89424; }
.calendar-entry-mark { width: 24px; height: 24px; display: grid; place-items: center; background: var(--green); color: white; font-size: 9px; font-weight: 700; }
.holiday-entry .calendar-entry-mark { background: var(--coral); }
.planning-entry .calendar-entry-mark { background: #c89424; }
.calendar-entry strong, .calendar-entry small { display: block; }
.calendar-entry strong { font-size: 11px; }
.calendar-entry small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.calendar-entry button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.calendar-entry .calendar-edit { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--green); padding: 5px 3px; }
.calendar-entry .calendar-edit:hover { color: var(--coral); }
.calendar-entry .calendar-remove { width: 24px; padding: 0; font-size: 18px; line-height: 1; }
.calendar-entry .calendar-remove:hover { color: var(--coral); }
.calendar-empty { color: var(--muted); font-size: 10px; margin: 0; }
.calendar-notice { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; margin-bottom: 18px; background: var(--green-soft); border-left: 4px solid var(--green); }
.calendar-notice strong { font-size: 12px; }
.calendar-notice span { color: var(--muted); font-size: 10px; }
.holiday-notice { background: #f4dcd1; border-color: var(--coral); }
.week-calendar-label { padding: 9px; margin-bottom: 8px; background: var(--green-soft); border-left: 3px solid var(--green); }
.week-calendar-label.holiday-label { background: #f4dcd1; border-color: var(--coral); }
.week-calendar-label.planning-label { background: #f7edc9; border-color: #c89424; }
.week-calendar-label strong, .week-calendar-label small { display: block; }
.week-calendar-label strong { font-size: 10px; }
.week-calendar-label small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.planning-day-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.week-planning-entries { display: grid; gap: 4px; margin-top: 8px; }
.week-planning-entry { display: block; width: 100%; min-width: 0; max-width: 100%; padding: 5px 6px; border: 1px solid #eadfbe; background: rgba(255,255,255,.72); color: var(--ink); text-align: left; cursor: pointer; }
.week-planning-entry:hover { background: #fff; }
.week-planning-entry time { display: block; color: #9a6f14; font-size: 8px; font-weight: 700; white-space: nowrap; }
.week-planning-entry strong { display: block; min-width: 0; max-width: 100%; margin-top: 2px; font-size: 9px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.week-planning-entry small, .week-planning-empty { display: block; margin-top: 2px; font-size: 8px; }
.week-break-note { color: var(--muted); font-size: 10px; line-height: 1.5; padding: 25px 7px; font-style: italic; }
.day-column.calendar-break { background: #fffaf6; }
.setup-form label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.setup-form label[hidden] { display: none; }
.setup-form input, .setup-form select { min-width: 0; border: 1px solid var(--line); background: white; padding: 12px; color: var(--ink); outline: none; }
.setup-form input:focus, .setup-form select:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.setup-form .submit-button { width: auto; white-space: nowrap; padding: 13px 16px; box-shadow: 4px 4px 0 var(--yellow); }
.timetable-upload { align-self: center; justify-self: start; display: inline-flex !important; align-items: center; gap: 7px; color: var(--green) !important; font-size: 9px !important; letter-spacing: .7px !important; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.timetable-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.timetable-upload span { border-bottom: 1px solid var(--green); padding-bottom: 2px; }
.timetable-upload:hover { color: var(--blue) !important; }
.timetable-upload:hover span { border-color: var(--blue); }
.assignment-list { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 18px; }
.classes-heading { color: var(--ink); font: 32px/1 var(--display); letter-spacing: -.3px; text-transform: none; }
.class-year-group { border-bottom: 1px solid var(--line); }
.class-year-group:last-child { border-bottom: 0; }
.class-year-group[hidden] { display: none; }
.class-year-group summary { display: flex; align-items: center; gap: 12px; padding: 15px 22px; cursor: pointer; list-style: none; }
.class-year-group summary::-webkit-details-marker { display: none; }
.class-year-group summary:hover { background: #fbfaf5; }
.class-year-chevron { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 15px; line-height: 1; transition: transform .2s; }
.class-year-group:not([open]) .class-year-chevron { transform: rotate(-90deg); }
.class-year-name { font: 23px/1 var(--display); }
.class-year-meta { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.class-subject-list { border-top: 1px solid var(--line); padding: 0 22px 4px 52px; }
.class-subject-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(220px, 1.8fr) auto; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.class-subject-row:last-child { border-bottom: 0; }
.class-subject-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.class-subject-dot { display: none; }
.class-subject-main h3 { margin: 0; color: var(--green); font: 18px/1 var(--display); }
.class-subject-main p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.class-slot-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.class-slot-chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 7px; background: var(--green-soft); color: var(--green); font-size: 9px; white-space: nowrap; }
.class-slot-chip b { font-size: 9px; }
.class-slot-chip button { border: 0; padding: 0 0 0 3px; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.class-slot-chip button:hover { color: var(--coral); }
.class-add-slot { white-space: nowrap; }
@media (max-width: 760px) {
  .class-year-group summary { padding: 13px 14px; }
  .class-year-name { font-size: 21px; }
  .class-year-meta { font-size: 8px; }
  .class-subject-list { padding: 0 14px 3px 26px; }
  .class-subject-row { grid-template-columns: 1fr auto; gap: 8px; }
  .class-slot-chips { grid-column: 1 / -1; }
  .class-add-slot { grid-column: 2; grid-row: 1; }
}

.assignment-list .section-heading.compact h2 { font-size: 15px; }
.assignment-list .pattern-year-title h3 { font-size: 27px; }
.assignment-list .pattern-subject-title h3 { font-size: 20px; }
.assignment-list .pattern-title h3 { font-size: 21px; }
.pattern-group { padding: 20px 22px 17px; border-bottom: 1px dashed var(--line); }
.pattern-group:last-child { border-bottom: 0; }
.pattern-year-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; }
.pattern-year-title h3 { margin: 0; color: var(--ink); font: 30px/1 var(--display); }
.pattern-subject + .pattern-subject { margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(220,215,204,.7); }
.pattern-subject-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 0 0 4px; }
.pattern-subject-title h3 { margin: 0; color: var(--green); font: 21px/1 var(--display); }
.pattern-subject-actions { display: flex; align-items: center; gap: 12px; }
.pattern-subject-actions .text-button { white-space: nowrap; }
.pattern-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 13px; }
.pattern-title h3 { display: inline-block; font: 23px/1 var(--display); margin: 9px 0 0 8px; }
.pattern-count { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.pattern-day { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(220,215,204,.7); }
.pattern-day > strong { font-size: 11px; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.slot-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 8px; background: var(--green-soft); color: var(--green); font-size: 9px; }
.slot-chip b { font-size: 9px; }
.slot-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 0 0 3px; }
.slot-chip button:hover { color: var(--coral); }
.lesson.open-slot { opacity: .68; }

.class-grid, .notebook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.class-card { background: var(--panel); border: 1px solid var(--line); padding: 22px; min-height: 200px; cursor: pointer; transition: .2s ease; position: relative; overflow: hidden; }
.class-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.class-card::after { content: attr(data-year); position: absolute; right: -8px; bottom: -25px; font: 90px/1 var(--display); color: var(--green); opacity: .06; }
.class-card .class-meta { display: flex; justify-content: space-between; }
.class-card h3 { font: 26px/1 var(--display); margin: 28px 0 7px; }
.class-card p { font-size: 10px; color: var(--muted); }
.metric-row { display: flex; gap: 18px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 20px; }
.metric-row strong, .metric-row small { display: block; }
.metric-row strong { font-size: 16px; }
.metric-row small { font-size: 8px; color: var(--muted); text-transform: uppercase; }
.notebook-grid { grid-template-columns: 1.2fr .8fr .8fr; }
.unit-plans-view { display: grid; gap: 22px; }
.unit-plans-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.unit-plans-head h2 { font: 27px/1.05 var(--display); margin-top: 9px; max-width: 390px; }
.unit-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.unit-plan-card { min-height: 190px; padding: 21px; }
.unit-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.unit-status { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .7px; text-align: right; }
.unit-class { color: var(--muted); font-size: 9px; font-weight: 700; margin: 28px 0 0; text-transform: uppercase; letter-spacing: .7px; }
.unit-plan-card h3 { font: 25px/1 var(--display); margin: 8px 0; }
.unit-focus { color: var(--muted); font-size: 10px; line-height: 1.5; min-height: 30px; }
.unit-plan-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 13px; color: var(--ink); font-size: 9px; font-weight: 700; }
.note-tile { min-height: 230px; padding: 23px; background: var(--panel); border: 1px solid var(--line); position: relative; cursor: grab; transition: box-shadow .2s ease, transform .2s ease, opacity .2s ease; }
.note-tile:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.note-tile:active, .note-tile.is-dragging { cursor: grabbing; }
.note-tile.is-dragging { opacity: .48; transform: rotate(1deg) scale(.98); }
.note-tile.is-drop-target { outline: 2px dashed var(--coral); outline-offset: 5px; box-shadow: 7px 7px 0 rgba(214,95,76,.18); }
.note-tile h3 { font: 24px/1 var(--display); margin-top: 26px; }
.note-tile p, .note-tile li { color: var(--muted); font-size: 10px; line-height: 1.6; }
.note-tile ul { padding-left: 17px; }
.note-tile.featured { background: var(--green); color: white; }
.note-tile.featured p { color: rgba(255,255,255,.65); }
.empty-state { padding: 70px; text-align: center; background: var(--panel); border: 1px dashed var(--line); }
.tasks-connect { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; min-height: 90px; }
.tasks-connect-copy { max-width: 590px; }
.tasks-connect-copy h2 { font: 22px/1 var(--display); margin: 5px 0 6px; }
.tasks-connect-copy p:not(.eyebrow) { color: var(--muted); font-size: 9px; line-height: 1.45; max-width: 500px; }
.tasks-connect-action { display: grid; justify-items: end; gap: 5px; min-width: 150px; text-align: right; }
.tasks-connect-action small { color: var(--muted); font-size: 8px; line-height: 1.35; max-width: 180px; }
.tasks-connect-action .submit-button, .tasks-connect-action .secondary-button { width: auto; }
.connection-status { color: var(--coral); font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.connection-status.connected { color: var(--green); }
.google-task-board { display: grid; grid-template-columns: 175px minmax(0, 1fr); gap: 13px; margin-top: 14px; min-width: 0; }
.google-task-filter { align-self: start; position: sticky; top: 22px; padding: 15px; background: #dce7f0; border: 1px solid #b9cad8; }
.google-task-filter h3 { font: 20px/1 var(--display); margin: 6px 0 0; }
.google-task-filter-actions { display: flex; gap: 10px; margin: 14px 0 10px; }
.google-task-sort { display: grid; gap: 6px; margin: 0 0 7px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.google-task-sort select { width: 100%; border: 1px solid var(--line); background: white; color: var(--ink); padding: 7px 6px; font-size: 8.5px; outline: none; }
.google-task-reorder-hint { margin: 0 0 10px; color: var(--muted); font-size: 7.5px; line-height: 1.35; }
.google-task-filter-list { display: grid; gap: 8px; max-height: 62vh; overflow-y: auto; padding-right: 3px; }
.google-task-filter-list label { display: flex; align-items: start; gap: 7px; color: var(--ink); font-size: 9px; line-height: 1.3; cursor: grab; }
.google-task-filter-list label:active { cursor: grabbing; }
.google-task-filter-list label.is-dragging { opacity: .4; }
.google-task-filter-list label.is-drop-target { outline: 1px dashed var(--coral); outline-offset: 3px; }
.google-task-filter-list label[draggable="false"] { cursor: default; }
.google-task-filter-list input { accent-color: var(--coral); margin: 1px 0 0; }
.google-task-drag { margin-left: auto; color: var(--muted); font-size: 12px; line-height: 10px; font-weight: 400; }
.google-task-columns { display: flex; align-items: flex-start; gap: 13px; min-width: 0; overflow-x: auto; padding: 0 2px 5px 0; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
 .google-task-columns::-webkit-scrollbar { display: none; width: 0; height: 0; }
.google-task-section { flex: 0 0 250px; align-self: flex-start; width: 250px; min-width: 250px; min-height: 0; padding: 18px; cursor: default; scroll-snap-align: start; overflow-wrap: anywhere; }
.google-task-section:hover { transform: none; }
.google-task-section[hidden] { display: none; }
.google-task-section-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.google-task-section-head > div { min-width: 0; }
.google-task-section-head h3 { font: 21px/1 var(--display); margin: 6px 0 0; overflow-wrap: anywhere; word-break: break-word; }
.google-task-section-head .google-task-count { flex: 0 0 auto; }
.google-task-count { white-space: nowrap; color: var(--muted); font-size: 7.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.google-task-section.featured .google-task-count { color: rgba(255,255,255,.68); }
.google-task-items { display: grid; gap: 9px; margin-top: 20px; }
.google-task-item { display: grid; grid-template-columns: 15px 1fr; gap: 8px; align-items: start; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.google-task-item:last-child { border-bottom: 0; padding-bottom: 0; }
.google-task-check { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid currentColor; color: var(--coral); font-size: 11px; font-weight: 700; }
.google-task-item > div { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.google-task-item strong { display: block; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word; }
.google-task-item p { margin: 3px 0 0; color: var(--muted); font-size: 8.5px; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; }
.google-task-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 7.5px; text-transform: uppercase; letter-spacing: .45px; overflow-wrap: anywhere; word-break: break-word; }
.google-task-section.featured .google-task-item { border-color: rgba(255,255,255,.2); }
.google-task-section.featured .google-task-item p, .google-task-section.featured .google-task-item small { color: rgba(255,255,255,.65); }
.google-task-section.featured .google-task-check { color: var(--yellow); }
.google-task-item.completed strong { text-decoration: line-through; opacity: .55; }
.google-task-empty { color: var(--muted); font-size: 10px; }
.google-task-section.featured .google-task-empty { color: rgba(255,255,255,.65); }
.google-task-completed { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 11px; }
.google-task-completed summary { cursor: pointer; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.google-task-completed summary span { margin-left: 4px; color: var(--coral); }
.google-task-completed .google-task-items { margin-top: 14px; }
.google-task-section.featured .google-task-completed { border-color: rgba(255,255,255,.2); }
.google-task-section.featured .google-task-completed summary { color: rgba(255,255,255,.68); }
.google-task-section.featured .google-task-completed summary span { color: var(--yellow); }

dialog { width: min(480px, calc(100% - 30px)); padding: 0; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(19,34,29,.64); backdrop-filter: blur(4px); }
dialog form { padding: 28px; }
.modal-head { display: flex; justify-content: space-between; margin-bottom: 28px; }
.modal-head h2 { font-size: 30px; }
.close-button { width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 20px; }
dialog label { display: grid; gap: 7px; font-size: 9px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
dialog input, dialog select, dialog textarea { width: 100%; border: 1px solid var(--line); background: white; padding: 13px; color: var(--ink); outline: none; resize: vertical; }
dialog input:focus, dialog select:focus, dialog textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.detail-grid div, .detail-grid label { padding: 13px; background: var(--green-soft); }
.detail-grid label { margin-bottom: 0; }
.meeting-detail-fields { display: grid; gap: 10px; }
.meeting-detail-fields[hidden] { display: none; }
.meeting-detail-fields .plan-section-label { margin-top: 2px; }
.meeting-detail-fields label { margin-bottom: 0; }
.meeting-detail-fields input, .meeting-detail-fields textarea { font-family: var(--body); }
.meeting-detail-dialog > form > .plan-section-label, .meeting-detail-dialog .plan-fields, .meeting-detail-dialog #exportLessonPlan { display: none; }
.detail-grid span { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .9px; margin-bottom: 6px; }
.detail-grid strong { display: block; font-size: 11px; line-height: 1.35; }
.lesson-dialog { width: min(70vw, 900px); max-width: calc(100% - 30px); max-height: 82vh; overflow: auto; }
.lesson-dialog form { padding: 30px; }
.modal-lesson-name { margin: 7px 0 0; font: 28px/1.05 var(--display); color: var(--ink); }
.lesson-dialog label { margin-bottom: 14px; }
.unit-plan-link-fields { margin-bottom: 14px; }
.unit-plan-link-empty, .unit-plan-link-saved { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.unit-plan-link-saved a { color: var(--green); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.unit-plan-link-saved a:hover { color: var(--blue); }
.link-delete-button { border: 0; background: transparent; color: #c94f45; padding: 3px 5px; font-size: 20px; line-height: 1; font-weight: 700; cursor: pointer; }
.link-delete-button:hover { color: #9f2f28; }
.unit-plan-link-editor { display: grid; gap: 9px; }
.unit-plan-link-editor label { margin-bottom: 0; }
.unit-plan-url-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.unit-plan-url-row label { margin-bottom: 0; }
.unit-plan-url-row .secondary-button { min-height: 42px; white-space: nowrap; }
.unit-plan-cancel { justify-self: end; min-height: 38px; }
.period-note-fields { display: none; }
.period-note-dialog .period-note-fields { display: block; }
.note-tools { display: flex; align-items: center; gap: 9px; margin-top: -13px; margin-bottom: 14px; }
.note-tools input { min-width: 0; flex: 1; border: 1px solid var(--line); background: white; color: var(--ink); padding: 7px 9px; font-size: 9px; outline: none; }
.note-tools input:focus { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.note-link-button { border: 1px solid var(--green); background: var(--panel); color: var(--green); padding: 7px 10px; font-size: 9px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.note-link-button:hover { background: var(--green-soft); }
.note-tools small { color: var(--muted); font-size: 9px; }
.note-preview { margin-top: -8px; padding: 11px 13px; background: var(--green-soft); color: var(--muted); font-size: 10px; line-height: 1.5; }
.note-preview span { display: block; margin-bottom: 5px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.note-preview p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.note-preview a { color: var(--blue); font-weight: 700; }
.lesson-dialog .submit-button { margin-top: 0; }
.period-note-dialog .detail-grid, .period-note-dialog .plan-section-label, .period-note-dialog .plan-fields, .period-note-dialog .unit-plan-link-fields, .period-note-dialog .note-tools, .period-note-dialog .note-preview, .period-note-dialog #exportLessonPlan { display: none; }
.period-note-dialog #detailNotes { min-height: 150px; }
.week-lesson .period-note-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; line-height: 1.35; }
.week-lesson.free.open-slot, .week-lesson.free.open-slot strong { color: var(--muted); }
.plan-section-label { margin: 2px 0 7px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.plan-fields { display: grid; gap: 10px; margin-bottom: 14px; }
.plan-fields label { margin-bottom: 0; }
.detail-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 22px; align-items: stretch; }
.secondary-button { border: 1px solid var(--green); background: transparent; color: var(--green); padding: 0 15px; font-size: 10px; font-weight: 700; cursor: pointer; }
.secondary-button:hover { background: var(--green-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 24px; }
.submit-button { width: 100%; border: 0; background: var(--green); color: white; padding: 14px; font-weight: 700; cursor: pointer; box-shadow: 5px 5px 0 var(--yellow); }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--green); color: white; padding: 13px 18px; font-size: 11px; z-index: 50; animation: toast 2.8s ease both; }
/* Prototype variations */
body.style-notebook { --paper: #ece7db; --panel: #fffef9; --green: #344c75; --green-soft: #e0e7f0; --coral: #d65f4c; --yellow: #efc75e; --radius: 0; }
body.style-notebook .main-panel { background-image: linear-gradient(rgba(74,95,127,.08) 1px, transparent 1px); background-size: 100% 28px; }
body.style-notebook .card, body.style-notebook .class-card, body.style-notebook .note-tile { box-shadow: 5px 5px 0 rgba(52,76,117,.14); }
body.style-notebook .sidebar { background: #344c75; }
body.style-notebook .schedule-card { transform: rotate(-.12deg); }
body.style-notebook h1 { text-decoration: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toast { 0%,100% { opacity: 0; transform: translateY(8px); } 12%,85% { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 82px 1fr; }
  .sidebar { padding-inline: 15px; }
  .brand > span:last-child, .nav-item:not(.active) { font-size: 0; }
  .nav-item { justify-content: center; }
  .nav-item span { font-size: 9px; }
  .nav-item.active { font-size: 0; }
  .sidebar-bottom { display: none; }
  .today-grid { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: 1fr 1fr; }
  .class-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; height: 64px; width: 100%; left: 0; bottom: 0; top: auto; z-index: 25; flex-direction: row; padding: 8px 10px; align-items: center; }
  .brand, .sidebar-bottom { display: none; }
  .primary-nav { display: none; }
  .mobile-nav-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 4px; width: 100%; }
  .mobile-nav-item { min-width: 0; padding: 10px 3px; font-size: 9px; white-space: nowrap; }
  .mobile-other-menu { position: relative; }
  .mobile-other-options { position: fixed; right: 10px; bottom: 70px; min-width: 145px; }
  .mobile-other-toggle b { margin: 0; font-size: 10px; }
  .main-panel { padding: 25px 16px 135px; }
  .topbar { display: block; }
  h1 { font-size: 38px; }
  .top-actions { position: relative; margin-top: 20px; }
  .add-button { margin-left: auto; }
  .date-picker-wrap { position: static; }
  .date-picker {
    left: 50%;
    right: auto;
    width: min(280px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
  }
  .today-grid { display: block; }
  .right-rail { display: grid; grid-template-columns: 1fr; margin-top: 16px; }
  .schedule-card { min-width: 0; padding: 22px 16px 10px; }
  .planning-day-card { padding: 16px 12px 12px; }
  .planning-day-head { flex-wrap: wrap; align-items: center; }
  .planning-day-head h2 { font-size: 22px; }
  .planning-day-head .secondary-button { margin-left: auto; }
  .planning-entry { grid-template-columns: 43px minmax(0, 1fr) 14px; gap: 7px; padding: 9px 6px; }
  .planning-entry > b { font-size: 12px; }
  .lesson { grid-template-columns: 42px 14px 1fr; }
  .detail-grid, .planning-entry-fields { grid-template-columns: 1fr; }
  .detail-actions { grid-template-columns: 1fr; }
  .secondary-button { padding: 13px; }
  .tasks-connect { align-items: start; flex-direction: column; }
  .tasks-connect-action { justify-items: start; text-align: left; }
  .lesson-body { margin-left: 7px; }
  .lesson .lesson-plan-preview, .week-lesson .lesson-plan-preview { font-size: 8px; line-height: 1.25; gap: 1px; }
  .class-grid, .notebook-grid, .yearly-grid, .unit-plan-grid { grid-template-columns: 1fr; }
   .tasks-connect { padding: 12px 14px; min-height: 82px; }
   .google-task-board { display: block; }
   .google-task-filter { position: static; margin-bottom: 17px; }
   .google-task-filter-list { max-height: none; }
   .google-task-columns { margin-inline: -2px; }
   .google-task-section { min-height: 0; }
  .unit-plans-head { align-items: start; flex-direction: column; }
  .setup-form { grid-template-columns: 1fr 1fr; }
  .setup-form .submit-button { grid-column: 1 / -1; }
  .setup-form .timetable-upload { grid-column: 1 / -1; justify-self: start; }
  .calendar-form { grid-template-columns: 1fr 1fr; }
  .calendar-form .submit-button { grid-column: 1 / -1; }
  .assignment-row { align-items: flex-start; }
  .pattern-day { grid-template-columns: 1fr; gap: 6px; }
  .week-board { margin-right: -16px; }
  .slot-rail { min-width: 48px; }
}
