@font-face {
  font-family: Rubik;
  src: url("./fonts/rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
:root {
  --ink: #15234c;
  --blue: #193592;
  --rail: #142e84;
  --red: #c31f3b;
  --muted: #536078;
  --line: #d8deea;
  --pale: #f2f5fb;
  --rail-width: 70px;
  --page-width: 1040px;
  color-scheme: light;
  font-family: Rubik, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { color: #717d94; background: #e9ecf2; cursor: default; }
:focus-visible { outline: 3px solid #d03350; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: 1.42rem; font-weight: 600; letter-spacing: -.045em; }
h3 { font-size: 1.13rem; font-weight: 560; letter-spacing: -.025em; }
svg { flex-shrink: 0; stroke-width: 1.8; }
.site { min-height: 100svh; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail-width); background: var(--rail); color: #fff; z-index: 4; display: flex; flex-direction: column; align-items: center; }
.railBadge { display: grid; place-items: center; width: 100%; min-height: 77px; background: white; border-bottom: 3px solid var(--red); }
.railBadge img, .mobileBadge, .coverBadge { object-fit: contain; }
.rail nav { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 0 15px; gap: 9px; }
.rail nav button { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 6px; position: relative; color: #fff; }
.rail nav button:hover { background: #28479d; }
.rail nav button[aria-current] { color: var(--blue); background: white; }
.railGuide { margin-top: auto; }
.railTip { display: none; position: absolute; left: calc(100% + 10px); white-space: nowrap; background: var(--ink); color: white; padding: 7px 10px; border-radius: 4px; font-size: .84rem; }
.rail nav button:is(:hover,:focus-visible) .railTip { display: block; }
.sheet { margin-left: var(--rail-width); }
.masthead { border-bottom: 1px solid var(--line); background: white; }
.mastInner, main { width: min(calc(100% - 100px), var(--page-width)); margin-inline: auto; }
.mastInner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.schoolName { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.18rem; font-weight: 650; letter-spacing: -.045em; text-align: left; }
.schoolName b { font-weight: 450; }
.mobileBadge, .mobileNav { display: none; }
.headActions, .topDate, .toolsToggle, .primary, .secondary, .danger, .textBtn, .backHome, .iconBtn, .testBadge, .positive, .toast, .alert, .panelHead, .bottomActions, .inline { display: flex; align-items: center; }
.headActions { gap: 20px; }
.topDate { font-size: .86rem; color: var(--muted); }
.toolsToggle { gap: 8px; border: 1px solid var(--line); padding: 8px 13px; min-height: 38px; border-radius: 5px; color: var(--blue); font-weight: 520; font-size: .9rem; }
.toolsToggle:hover, .secondary:hover, .iconBtn:hover { background: var(--pale); }
.menuWrap { position: relative; }
.scrim { position: fixed; inset: 0; z-index: 6; cursor: default; }
.dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 7; border: 1px solid #9aa9c8; border-radius: 6px; min-width: 216px; padding: 5px; background: white; }
.dropdown button, .guideTools button { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 40px; padding: 9px 11px; border-radius: 3px; width: 100%; font-size: .9rem; }
.dropdown button:hover, .guideTools button:hover { background: var(--pale); color: var(--blue); }
.dropdown svg, .guideTools svg { width: 17px; height: 17px; }
main { padding-bottom: 44px; }
.cover { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--blue); padding: clamp(48px, 6.5vw, 90px) 2px clamp(42px, 5.7vw, 77px); }
.cover::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 68px; height: 3px; background: var(--red); }
.councilName { color: var(--blue); font-size: .94rem; font-weight: 550; }
.cover h1 { margin-top: 10px; line-height: 1.06; color: var(--ink); font-weight: 620; font-size: clamp(4rem, 7.7vw, 7.25rem); letter-spacing: -.073em; }
.cover h1 em { font: italic 400 1.16em/.95 "Instrument Serif", Georgia, serif; color: var(--red); letter-spacing: -.055em; }
.intro { font-size: 1.06rem; color: var(--muted); line-height: 1.55; margin-top: 12px; }
.coverBadge { width: clamp(115px, 13.5vw, 178px); height: auto; margin: 0 4% 0 0; flex-shrink: 0; }
.primary, .secondary, .danger { justify-content: center; gap: 8px; min-height: 42px; border-radius: 5px; padding: 10px 17px; font-size: .94rem; font-weight: 550; }
.primary { background: var(--blue); color: white; }
.primary:hover:enabled { background: #112770; }
.secondary { border: 1px solid #9daac3; color: var(--blue); background: white; }
.danger { background: var(--red); color: white; }
.start { margin-top: 25px; font-size: 1rem; padding: 12px 19px; }
.directory { margin-top: 32px; }
.directory h2 { padding-bottom: 13px; }
.directoryRow { display: grid; grid-template-columns: 28px minmax(160px,1fr) minmax(190px,.85fr) 18px; align-items: center; gap: 16px; width: 100%; text-align: left; min-height: 68px; border-bottom: 1px solid var(--line); padding: 10px 5px; }
.directoryRow:hover { background: var(--pale); }
.directoryRow strong { font-size: 1.06rem; font-weight: 520; letter-spacing: -.02em; }
.directoryRow span { color: var(--muted); font-size: .9rem; }
.directoryIcon, .rowEnd { color: var(--blue); }
.backHome, .textBtn { gap: 6px; color: var(--blue); font-weight: 530; font-size: .9rem; }
.backHome:hover, .textBtn:hover { text-decoration: underline; }
.pageHead { padding: 37px 0 27px; border-bottom: 2px solid var(--blue); }
.pageHead h1 { font-size: clamp(2.1rem,4vw,3.4rem); font-weight: 590; letter-spacing: -.06em; line-height: 1.1; margin: 9px 0; }
.pageHead p, .muted, .empty p, .modal p, .guidePanel p { line-height: 1.55; color: var(--muted); }
.panel { padding: 23px 0 26px; border-bottom: 1px solid var(--line); }
.panelHead { gap: 9px; margin-bottom: 17px; }
.panelHead > svg { width: 20px; color: var(--blue); }
.panelHead .pill { margin-left: auto; }
.formBlock, .filters { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: .9rem; font-weight: 520; }
input, select { min-height: 43px; border: 1px solid #aeb9ce; border-radius: 4px; padding: 9px 11px; color: var(--ink); background-color: white; max-width: 100%; min-width: 0; font-size: 1rem; }
input[readonly] { background-color: var(--pale); }
select { padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23193592' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.gradeRow { display: flex; flex-wrap: wrap; gap: 6px; }
.grade { border: 1px solid #aeb9ce; background: white; font-size: .88rem; border-radius: 4px; padding: 10px 13px; min-height: 42px; }
.grade:hover { background: var(--pale); }
.grade.selected { background: var(--blue); color: white; border-color: var(--blue); }
.bottomActions { gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.inline { gap: 10px; }
.iconBtn { justify-content: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 4px; }
.pill, .testBadge, .flag, .status { display: inline-flex; align-items: center; gap: 5px; background: #eaf0fc; color: var(--blue); border-radius: 4px; font-size: .83rem; padding: 5px 8px; font-weight: 500; }
.testBadge, .absent, .urgent { background: #fbecf0; color: #a31936; }
.excused, .flag:not(.urgent) { background: #eff1f5; color: #404c63; }
.empty { padding: 24px 0 4px; display: grid; justify-items: start; gap: 8px; }
.emptyIcon { color: var(--blue); }
.empty h3 { font-size: 1.16rem; }
.empty button { margin-top: 4px; }
.groupTitle { margin: 20px 0 0; padding: 9px 11px; font-size: .96rem; background: var(--pale); color: var(--blue); font-weight: 550; }
.groupHead, .attRow, .dataRow, .reportRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.groupHead h3 { font-size: .96rem; }
.attRow, .dataRow, .reportRow { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.attRow b, .dataRow b, .reportRow b { font-weight: 520; overflow-wrap: anywhere; }
.attRow select { width: min(225px,55%); }
.dataRow small, .reportRow small { display: block; margin-top: 3px; color: var(--muted); font-size: .87rem; }
.reportRow { width: 100%; text-align: left; }
.reportRow .pill { margin-left: auto; }
.summary { display: grid; grid-template-columns: repeat(4,1fr); margin: 18px 0; border-block: 1px solid var(--line); }
.stat { padding: 12px 10px; }
.stat span { display: block; color: var(--muted); font-size: .88rem; }
.stat b { display: block; font-size: 1.9rem; font-weight: 560; letter-spacing: -.05em; }
.stat.s3 b { color: var(--red); }
.filters { margin-bottom: 12px; }
.filters .field { min-width: 150px; }
.tableWrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin-bottom: 12px; text-align: left; font-size: .9rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { font-weight: 550; }
thead th { background: var(--pale); }
tbody th { white-space: nowrap; }
.positive { gap: 7px; color: var(--blue); margin-top: 12px; }
.rosterForm { margin-top: 14px; }
.rosterForm .field { flex: 1; min-width: 170px; }
.guideGrid { display: grid; grid-template-columns: minmax(0,2fr) minmax(215px,.85fr); align-items: start; gap: 40px; }
.guidePanel details { border-top: 1px solid var(--line); padding: 14px 0; }
.guidePanel summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 520; }
.guidePanel details[open] summary svg { transform: rotate(180deg); }
.guidePanel p, .guideTools h3 { margin: 8px 0; }
.overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #e9edf6; }
.modal { width: min(100%,430px); max-height: 95svh; overflow: auto; position: relative; padding: 28px; background: white; border: 1px solid #aeb9ce; border-top: 3px solid var(--blue); border-radius: 5px; }
.modalClose { position: absolute; right: 12px; top: 12px; }
.modal h2 { margin: 12px 0 9px; }
.modal p { margin: 9px 0; }
.modal input { width: 100%; }
.modal > .danger { margin-top: 14px; }
.tile { display: inline-flex; color: var(--blue); }
.tile.red { color: var(--red); }
.toast, .alert { gap: 9px; font-size: .9rem; padding: 12px 15px; border-radius: 4px; }
.alert { background: #fbecf0; color: #911432; margin-top: 15px; }
.alert button { text-decoration: underline; margin-left: auto; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 15px; z-index: 9; background: var(--ink); color: white; width: max-content; max-width: 95%; }
.toast button { display: grid; place-items: center; }

@media (max-width: 900px) {
  .mastInner, main { width: calc(100% - 56px); }
  .coverBadge { margin-right: 0; }
}
@media (max-width: 680px) {
  .rail { display: none; }
  .sheet { margin-left: 0; }
  .mastInner, main { width: calc(100% - 36px); }
  .mastInner { min-height: 66px; gap: 8px; }
  .mobileBadge { display: block; }
  .schoolName { font-size: 1rem; gap: 8px; }
  .headActions { gap: 6px; }
  .topDate, .toolsToggle span { display: none; }
  .toolsToggle { min-width: 39px; justify-content: center; padding: 8px; }
  .mobileNav { display: block; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 4px; }
  .cover { padding: 40px 0 30px; gap: 10px; }
  .cover h1 { font-size: clamp(3.2rem,9.4vw,4.4rem); margin-top: 8px; }
  .councilName { font-size: .79rem; }
  .intro { font-size: .95rem; line-height: 1.5; max-width: 29ch; }
  .coverBadge { width: clamp(62px,16vw,100px); align-self: flex-start; margin-top: 22px; }
  .start { margin-top: 17px; }
  .directory { margin-top: 23px; }
  .directory h2 { padding-bottom: 8px; }
  .directoryRow { grid-template-columns: 24px 1fr 15px; gap: 3px 12px; padding: 12px 1px; }
  .directoryIcon { grid-row: 1/3; }
  .directoryRow strong { font-size: 1rem; }
  .directoryRow span { grid-column: 2; font-size: .85rem; }
  .rowEnd { grid-column: 3; grid-row: 1/3; }
  .pageHead { padding: 24px 0 19px; }
  .panel { padding-block: 20px; }
  .formBlock, .filters { gap: 14px; }
  .grade { padding: 8px 10px; min-height: 39px; }
  .summary { grid-template-columns: repeat(2,1fr); }
  .guideGrid { grid-template-columns: 1fr; gap: 0; }
  .rosterForm .field { flex-basis: 100%; }
  .attRow select { font-size: .9rem; }
  .testBadge { font-size: .74rem; }
}
@media (max-width: 390px) {
  .mastInner, main { width: calc(100% - 28px); }
  .coverBadge { width: 55px; }
  .schoolName b { display: block; line-height: 1; font-size: .74rem; }
  .cover h1 { font-size: 2.95rem; }
}
.syncBar { display:flex; align-items:center; flex-wrap:wrap; gap:8px 15px; padding:12px 0; border-bottom:1px solid var(--line); font-size:.86rem; color:var(--muted); }
.syncState { font-weight:600; color:var(--ink); }
.syncBar button { margin-left:auto; }
.clearDay { color:var(--red); }
.conflict { border-left:3px solid var(--red); padding-left:16px; }
.conflict p,.conflict details { margin-top:7px; }
.classPanel summary { cursor:pointer; }

.registerEntry{max-width:35rem;margin:clamp(2rem,12vh,8rem) auto;padding:1rem}.registerEntry h1{font-size:2rem;margin:1rem 0}.registerEntry form{display:grid;gap:1rem}.registerEntry .primary{justify-self:start}
