:root {
  --navy: #12264A; --navy-deep: #0C1B36; --teal: #0E7470; --teal-text: #0E6E6A; --teal-light: #8FD3CC;
  --mist: #E8F3F2; --ground: #F4F7F9; --ink: #1A1F2B; --muted: #4B5565; --rule: #DCE3EA;
  --warn: #8A5A00; --warn-bg: #FFF6E0; --ok-bg: #E3F4EC; --ok: #146C43; --danger: #A12B2B;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: var(--teal-text); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 12px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 38px); }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { font: 700 24px var(--sans); color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--teal-light); font-style: italic; margin-left: 1px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1; }
.top nav a { color: #D6DEE8; text-decoration: none; padding: 6px 0; font-weight: 500; }
.top nav a[aria-current] { color: #fff; border-bottom: 2px solid var(--teal-light); }
.who { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.who span { display: flex; flex-direction: column; text-align: right; font-weight: 600; }
.who small { font-weight: 400; color: #AEB9C8; }
button.link { background: none; border: 1px solid #47597A; color: #fff; border-radius: 6px; padding: 6px 12px; cursor: pointer; font: inherit; }

main.wrap { padding-top: 28px; padding-bottom: 56px; }
.foot { color: var(--muted); font-size: 13px; padding: 24px 0 40px; border-top: 1px solid var(--rule); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--teal-text); margin-bottom: 8px; }
.hero-card, .panel, .pinned, .entry, .step, .checkbox { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 24px; margin-bottom: 20px; }
.crumb { font-size: 14px; color: var(--muted); }
.flash { background: var(--ok-bg); color: var(--ok); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.flash.warn { background: var(--warn-bg); color: var(--warn); }

.btn { display: inline-block; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 6px; padding: 10px 18px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--navy-deep); }
.btn.ghost { background: #fff; color: var(--navy); }
.btn.danger { background: #fff; color: var(--danger); border-color: #E2B4B4; }
.btn.small { padding: 6px 12px; font-size: 14px; min-height: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.actions.sticky { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--rule); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--ground); color: var(--muted); border: 1px solid var(--rule); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: #BFE3CF; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: #F0D9A6; }
.error { color: var(--danger); font-weight: 600; font-size: 14px; margin: 6px 0 0; }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.person { width: 100%; text-align: left; background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; cursor: pointer; font: inherit; display: flex; flex-direction: column; }
.person:hover { border-color: var(--teal); }
.person span { color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.step { margin: 0; display: flex; flex-direction: column; }
.step .num { font: 20px var(--serif); color: var(--teal); margin: 0 0 4px; }
.step .status { font-weight: 600; font-size: 14px; }
.step .btn { margin-top: auto; align-self: flex-start; }

.field { display: block; margin: 0 0 18px; border: 0; padding: 0; }
.field > span, .field > legend { display: block; margin-bottom: 6px; color: var(--ink); }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; font: inherit; color: var(--ink); border: 1px solid #B9C4D0; border-radius: 6px; padding: 10px 12px; background: #fff; }
textarea { resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.row > .field { flex: 1 1 220px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; background: var(--ground); font-size: 14px; cursor: pointer; }
.chip.focus { border-color: var(--teal); background: var(--mist); }
.chip input { accent-color: var(--teal); }
.action-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 8px; }
.action-grid > span { font-size: 13px; font-weight: 700; color: var(--muted); }
a.comp { white-space: nowrap; font-weight: 600; }
.small a.comp { margin-right: 8px; }

.scale-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 0; }
.scale-key b { color: var(--navy); }
.comp-block { border: 1px solid var(--rule); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.comp-block legend { font-size: 17px; padding: 0 6px; }
.elements { font-size: 13px; color: var(--muted); background: var(--mist); padding: 6px 10px; border-radius: 6px; }
.rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.rate p { flex: 1 1 380px; margin: 0; }
.scale { display: flex; gap: 6px; }
.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid #B9C4D0; border-radius: 50%; font-weight: 600; color: var(--navy); background: #fff; }
.scale input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.scale input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

.table-wrap { overflow-x: auto; padding: 0; }
.roster { width: 100%; border-collapse: collapse; min-width: 760px; }
.roster th, .roster td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.roster th { font-size: 13px; color: var(--muted); background: var(--ground); }
.roster tr.due td { background: #FFFCF3; }
.coverage { background: var(--mist); border-radius: 8px; padding: 10px 14px; margin: 0; }

.pinned { border-left: 4px solid var(--teal); }
.pinned.empty { border-left-color: var(--rule); }
.pinned h2 { font-size: 18px; }
.pinned dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; margin: 0; }
.pinned dt { font-weight: 700; color: var(--navy); font-size: 14px; }
.pinned dd { margin: 0; }
.pinned ol { margin: 0; padding-left: 20px; }
.warnbox { background: var(--warn-bg); border: 1px solid #F0D9A6; border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; color: var(--warn); }
.warnbox .field { margin: 10px 0 0; }
.section-title { margin-top: 32px; }

.entry header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.entry .date { font-weight: 700; color: var(--navy); }
.entry .kind { background: var(--mist); color: var(--teal-text); font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.entry .by { color: var(--muted); }
.entry.draft { border-style: dashed; }
.entry .notes { white-space: normal; }
.entry .next { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.entry .next.empty { color: var(--muted); }

.checkbox.has-flags { border-left: 4px solid #E0A526; }
.checkbox.clear { border-left: 4px solid var(--ok); }
#opinion-check { scroll-margin-top: 120px; }
.checkbox h2 small { font-weight: 400; color: var(--muted); font-size: 14px; }
.flags { padding-left: 0; margin: 0; list-style: none; }
.flags > li { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.flags > li:last-child { border-bottom: 0; padding-bottom: 0; }
.flags .flagged { font-size: 17px; margin-bottom: 8px; }
.flags ul { margin: 0; padding-left: 18px; color: var(--muted); }
.flags ul li { margin-bottom: 4px; }
.flags ul strong { color: var(--ink); }
mark { background: #FCE7B2; padding: 0 3px; border-radius: 3px; }

@media (max-width: 640px) {
  .pinned dl { grid-template-columns: 1fr; }
  .action-grid { grid-template-columns: 1fr; }
  .action-grid > span { display: none; }
  .who { margin-left: 0; width: 100%; justify-content: space-between; }
  .who span { text-align: left; }
  a.comp { white-space: normal; }
  .hero-card, .panel, .pinned, .entry, .step, .checkbox { padding: 18px; }
}

/* ---- schedules, availability, visits ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tab { padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; background: #fff; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 14px; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E0A526; margin-left: 4px; vertical-align: middle; }
.blocks { display: grid; gap: 8px; }
.blocks-head, .block-row { display: grid; grid-template-columns: 150px 150px 210px 1fr 150px; gap: 8px; align-items: center; }
.blocks-head.two, .block-row.two { grid-template-columns: 150px 150px 1fr; }
.block-row input[type=time] { padding-right: 6px; }
.blocks-head span { font-size: 13px; font-weight: 700; color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.inline-form input:not([type=checkbox]):not([type=radio]) { width: auto; flex: 1 1 160px; }
form.inline { display: inline; }
.link-btn { background: none; border: 0; color: var(--danger); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
.radio { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.radio input { margin-top: 4px; accent-color: var(--teal); }
.check { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; font-weight: 600; }
.check input { accent-color: var(--teal); width: 18px; height: 18px; }
.weekly, .rot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 12px; margin: 6px 0 6px 28px; }
.rotation { margin-left: 28px; }
.rotation .rot-list { margin-left: 0; }
.rotation > .field { max-width: 360px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain > li { padding: 8px 0; border-bottom: 1px solid var(--rule); }
ul.plain > li:last-child { border-bottom: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.sw-teaching { background: #0E7470; } .sw-plc { background: #2E4A7D; } .sw-planning { background: #CDEBE7; } .sw-lunch { background: #ECE6D8; }
.sw-duty { background: #F6E3B4; } .sw-other { background: #DCE3EA; } .sw-visit { border: 3px solid #E0A526; }
.timeline-wrap { overflow-x: auto; }
.timeline { width: 100%; min-width: 820px; height: auto; display: block; font-family: var(--sans); }
.timeline a rect { cursor: pointer; }
.timeline a:hover rect, .timeline a:focus rect { opacity: 0.85; }
.visits > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.visits > li.missed { background: #FFFCF3; padding-left: 8px; padding-right: 8px; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.visit-actions .inline-form { margin: 0; }
.visit-actions .inline-form input:not([type=checkbox]):not([type=radio]) { padding: 6px 8px; flex: 0 0 150px; width: 150px; }
.visit-actions .inline-form { flex-wrap: nowrap; }
.visits > li.missed .visit-actions { width: 100%; }
details.mail { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
details.mail summary { cursor: pointer; }
details.mail pre { white-space: pre-wrap; font: 14px/1.5 var(--sans); margin: 12px 0 0; }
@media (max-width: 640px) {
  .blocks-head { display: none; }
  .block-row, .block-row.two { grid-template-columns: 1fr 1fr; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
  .block-row select[name=b_activity], .block-row input[name=b_label] { grid-column: 1 / -1; }
  .weekly, .rotation { margin-left: 0; }
  .visit-actions .inline-form { flex-wrap: wrap; }
  .visit-actions .inline-form input:not([type=checkbox]):not([type=radio]) { flex: 1 1 130px; width: auto; }
}

/* ---- coaching conversation planner ---- */
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stage { border: 1px solid var(--rule); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.stage legend { font-weight: 700; color: var(--navy); font-size: 17px; padding: 0 6px; }
.stage legend small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
.stage-num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; font-size: 13px; margin-right: 4px; }
.q { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.q-pick { padding-top: 10px; }
.q-pick input { width: 20px; height: 20px; accent-color: var(--teal); }
.q textarea { flex: 1; }
.print-plan h2 { margin-top: 20px; font-size: 18px; }
.print-plan h2 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.print-plan ul { margin: 0; padding-left: 20px; }
.print-plan li { margin-bottom: 8px; }
@media print {
  .top, .foot, .no-print, .crumb { display: none; }
  body { background: #fff; }
  .hero-card, .panel, .pinned { border: 0; padding: 0; }
}

/* ---- year-end and district ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 16px; }
.stat { background: var(--mist); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; }
.stat strong { font: 500 30px var(--serif); color: var(--navy); }
.stat span { font-size: 13px; color: var(--muted); }
.summary p { margin-bottom: 10px; }
.summary ul { margin: 0 0 12px; padding-left: 20px; }
.bars { width: 100%; min-width: 640px; height: auto; display: block; font-family: var(--sans); }
section.panel:has(.bars) { overflow-x: auto; }

details.mail .summary { margin-top: 10px; }
details.mail ul { padding-left: 24px; }

/* ---- quick capture (phone-first) ---- */
.capture { max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 20px; }
.capture h1 { font-size: 26px; }
.capture select, .capture input:not([type=checkbox]), .capture textarea { font-size: 17px; }
.capture .chip { padding: 8px 14px; font-size: 15px; }
.capture .chip input { width: 18px; height: 18px; }
.cap-notes > span:not(.no-names) { display: flex !important; justify-content: space-between; align-items: center; gap: 8px; }
.cap-notes textarea { min-height: 220px; }
.cap-save { width: 100%; font-size: 17px; min-height: 52px; }
@media (max-width: 640px) {
  main.wrap:has(.capture) { padding-top: 12px; }
  .capture { border: 0; padding: 4px 0; background: transparent; }
}

.phase { font: 600 13px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-text); margin: 22px 0 8px; }

/* Where I'm starting / Where the framework connects */
details > summary { cursor: pointer; color: var(--teal-text); font-weight: 600; }
details.field { margin: 8px 0 18px; }
.connect { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; margin: 14px 0 0; background: #fff; cursor: pointer; }
.connect.suggested { border-color: var(--teal); background: var(--mist); }
.connect input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.connect-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.connect .why { color: var(--ink); }
.looklike-wrap { margin: 6px 0 4px 34px; }
.looklike { padding: 8px 0 4px; }
.looklike ul { margin: 0 0 8px; padding-left: 18px; list-style: disc; }
.looklike li { margin-bottom: 4px; }
.h-small { font-size: 16px; margin: 14px 0 4px; }
.field small { font-weight: 400; }
.sparks { background: var(--mist); border-radius: 10px; padding: 16px 20px; margin: 4px 0 20px; }
.sparks ul { margin: 6px 0 8px; padding-left: 20px; columns: 2 280px; column-gap: 32px; }
.sparks li { margin-bottom: 4px; break-inside: avoid; }
.sparks p { margin: 0; }
.pinned .note { margin: 10px 0 0; color: var(--teal-text); }
.bridge { border: 1px dashed var(--teal); border-radius: 10px; padding: 14px 18px; margin: 18px 0 8px; background: #fff; }
.field > label { display: block; margin-bottom: 6px; color: var(--ink); }
.field > .sparks { margin: 4px 0 10px; }

/* Sign-in and account setup */
.hero-card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.stack .field { width: 100%; }
.error-box { border-color: var(--danger); }
.error-box ul { margin: 6px 0 0; padding-left: 20px; color: var(--danger); }
tr.inactive td { color: var(--muted); }
.row { align-items: flex-end; }

/* Coaching */
.agreement { background: var(--ground); border: 1px solid var(--rule); border-radius: 8px; padding: 14px 18px; margin: 8px 0 14px; font-size: 15px; }
.row-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0; }
.row-inline p, .row-inline span { margin: 0; flex: 1 1 260px; }
label.check { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
.shared-note { background: var(--mist); border-radius: 8px; padding: 10px 14px; margin-top: 8px; }
.stamp-field > span:not(.no-names) { display: flex !important; justify-content: space-between; align-items: center; gap: 8px; }

/* ---- evaluation evidence the teacher chooses to include ---- */
.include-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.include-row.on { border-color: var(--teal); background: var(--mist); }
.include-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.ack { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-weight: 600; }
.ack input { width: 20px; height: 20px; accent-color: var(--teal); flex: none; }
.include-banner p { margin: 0 0 8px; }
.notice-eval { border-left: 4px solid var(--teal); }
.notice-eval ul { margin: 0 0 8px; padding-left: 20px; }
.packet h2 { margin-top: 26px; font-size: 18px; }
.packet-head { border-bottom: 2px solid var(--navy); padding-bottom: 10px; }
.form-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.form-table th, .form-table td { border: 1px solid #c9d2dc; padding: 8px 10px; vertical-align: top; text-align: left; }
.form-table th { width: 30%; background: var(--mist); font-weight: 600; }
.form-table hr { border: 0; border-top: 1px dashed #c9d2dc; margin: 8px 0; }
@media print { .packet .tag { border: 1px solid #999; } .form-table th { background: #f1f4f7; } .packet h2 { break-after: avoid; } .form-table tr { break-inside: avoid; } }

/* No student names reminder (privacy policy and data agreement) */
.no-names { display: block; margin: 0 0 8px; padding: 8px 12px; border-left: 4px solid #E0A526; background: var(--warn-bg); color: var(--ink); font-size: 14px; font-weight: 400; border-radius: 4px; }
