:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --paper: #fffdf9;
  --ink: #262024;
  --muted: #64575c;
  --line: #e5dcd4;
  --wine: #641d35;
  --wine-dark: #481327;
  --sidebar: #351421;
  --gold: #e5bc78;
  --gold-dark: #7a552c;
  --soft: #f6eaed;
  --amber: #744a14;
  --amber-bg: #f9edda;
  --serif: "Iowan Old Style", Georgia, serif;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
}
* { box-sizing: border-box }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.48 }
a { color: var(--wine); font-weight: 650; text-underline-offset: 3px }
a:hover { color: var(--wine-dark) }
button,input,select,textarea { font: inherit }
button,.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 42px; padding: .55rem .9rem; border: 1px solid var(--wine); border-radius: 8px;
  background: var(--wine); color: white; font-weight: 650; text-decoration: none; cursor: pointer;
}
button:hover,.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: white }
.secondary { background: var(--paper); color: var(--wine); border-color: #d8bfc7 }
.secondary:hover { background: var(--soft); border-color: #bb929f; color: var(--wine-dark) }
.quiet { background: transparent; color: var(--wine); border-color: transparent; padding-inline: 0; min-height: 30px }
.quiet:hover { background: transparent; color: var(--wine-dark); border-color: transparent; text-decoration: underline }
:focus-visible { outline: 2px solid #94601c; outline-offset: 3px }
.sidebar :focus-visible,.school-hero :focus-visible { outline-color: var(--gold) }
.skip-link { position: fixed; inset: .75rem auto auto .75rem; z-index: 5; transform: translateY(-180%); padding: .6rem .9rem; background: white; border-radius: 6px }
.skip-link:focus { transform: none }
.signed-in { display: grid; grid-template-columns: 226px minmax(0,1fr); min-height: 100vh }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: auto;
  display: flex; flex-direction: column; color: #fff7ee;
  background: linear-gradient(155deg,#481a2b,var(--sidebar) 65%);
  padding: 20px 14px 14px;
}
.sidebar-head { padding: 0 5px 18px; border-bottom: 1px solid #ffffff29 }
.sidebar-content { display: flex; flex: 1; flex-direction: column; gap: 16px }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; color: #fff7ee; font: 600 25px/.95 var(--serif) }
.brand:hover { color: white }
.brand-sub { display: block; margin-top: 6px; color: #e3cfd7; font: 550 11px/1.2 Inter,system-ui,sans-serif }
.monogram { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid #d5a96290; border-radius: 10px; color: var(--gold); background: #f2bc7512 }
.book-mark { position: relative; width: 23px; height: 16px }
.book-mark::before,.book-mark::after { content: ""; position: absolute; top: 0; width: 50%; height: 100%; border: 1px solid currentColor; background: repeating-linear-gradient(transparent 0 4px,#e5bc7840 4px 5px) }
.book-mark::before { left: 0; border-radius: 2px 3px 0 2px; transform: skewY(12deg) }
.book-mark::after { right: 0; border-radius: 3px 2px 2px 0; transform: skewY(-12deg) }
.menu-toggle { display: none }
.eyebrow,.nav-label { text-transform: uppercase; font-weight: 750; font-size: 10px; letter-spacing: .13em }
nav { display: grid; gap: 2px; padding-top: 10px }
.nav-label { color: var(--gold); margin: 11px 0 4px 11px }
nav a { text-decoration: none; color: #f1dfe5; font-weight: 500; font-size: 13px; padding: 7px 11px; border-radius: 6px }
nav a.active,nav a:hover { background: #ffffff13; color: white }
nav a.active { box-shadow: inset 3px 0 var(--gold); font-weight: 700 }
.sidebar-user { margin: auto 5px 0; padding: 13px 6px 0; border-top: 1px solid #ffffff29; display: grid; gap: 2px }
.sidebar-user span { color: #e3cfd7; font-size: 12px }
.signout { background: transparent; border: 0; padding: 4px 0; min-height: 30px; color: var(--gold); font-size: 12px }
.signout:hover { background: transparent; text-decoration: underline }
main { min-width: 0; padding: 0 clamp(20px,3.5vw,56px) 60px; max-width: 1640px; width: 100%; margin-inline: auto }
.workspace-bar { min-height: 64px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 24px; color: var(--muted); font-size: 12px }
.workspace-year { align-items: center }
.workspace-year label { display: flex; gap: 8px; align-items: center }
.workspace-year select { width: auto }
.demo-label { color: var(--gold-dark); background: #f1e7d8; padding: 4px 9px; border-radius: 999px; font-weight: 650 }
.page-head { margin: 0 0 23px }
.page-head .eyebrow,.auth-form .eyebrow { color: var(--wine); margin-bottom: 6px }
h1,h2,p { margin: 0 0 .48em }
h1,h2 { font-family: var(--serif); font-weight: 650 }
h1 { font-size: clamp(34px,4vw,54px); letter-spacing: -.04em; line-height: 1.04 }
h2 { font-size: 23px; letter-spacing: -.025em; line-height: 1.13 }
p { color: var(--muted) }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px,2vw,24px); margin: 0 0 18px; box-shadow: 0 2px 5px #47172a06 }
.section-head,.actions,.mini { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.section-head { justify-content: space-between; margin-bottom: 14px }
.section-head p { margin-bottom: 0; font-size: 13px }
.above { margin-bottom: 17px }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 19px }
.metrics > * { display: grid; gap: 12px; align-content: space-between; min-height: 114px; padding: 16px 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 550 }
.metrics > :first-child { background: #f3e6ea; border-color: #ead2d9 }
.metrics > a:hover { border-color: #b7929f }
.metrics span { font-size: 13px; color: var(--muted) }
.metrics strong { color: var(--wine); font-size: 35px; font-variant-numeric: tabular-nums; letter-spacing: -.05em; line-height: 1 }
.metrics small { font-size: 18px; color: var(--muted) }
.two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(175px,100%),1fr)); gap: 13px; align-items: end }
.form-stack { display: grid; gap: 12px; justify-items: stretch }
.form-stack > button { justify-self: start }
form + form, details + details { margin-top: 9px }
label { display: grid; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 650 }
input:not([type=hidden]):not([type=checkbox]),select,textarea {
  width: 100%; min-width: 0; min-height: 42px; padding: 7px 10px; color: var(--ink);
  background: #fffcf7; border: 1px solid #cbbdb5; border-radius: 7px;
}
textarea { resize: vertical }
.checkbox { display: flex; align-items: center }
.mini input[type=number] { width: 88px }
.mini input[type=email] { width: min(260px,100%) }
details { margin-block: 9px }
summary { font-weight: 650; cursor: pointer; color: var(--wine) }
details[open] > summary { margin-bottom: 12px }
.scroll { overflow-x: auto }
table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums }
th { text-align: left; padding: 11px 10px; background: #f4eee7; color: #59494f; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.3 }
td { padding: 12px 10px; border-bottom: 1px solid #eee6df; vertical-align: top }
tbody tr:hover { background: #faf5ee }
tr:last-child td { border-bottom: 0 }
td strong { font-weight: 700 }
td small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px }
.empty { color: var(--muted); padding: 20px 10px }
.badge { display: inline-block; border-radius: 999px; background: #efe9e7; color: #56454e; padding: 4px 9px; font-size: 11px; font-weight: 730; white-space: nowrap }
.badge.good { background: #e3eee5; color: #27593e }
.badge.warn { background: var(--amber-bg); color: var(--amber) }
.hint,.source,.muted { color: var(--muted) }
.hint { font-size: 12px; margin: 0 }
.source { max-width: 360px; overflow-wrap: anywhere }
.wrap { white-space: pre-wrap; max-width: 36ch; overflow-wrap: anywhere }
.flash { border: 1px solid #a7c6af; background: #e7f2e9; border-radius: 8px; padding: 11px 14px; margin: 12px 0 16px; color: #254a33 }
.flash.error { background: #fff0ec; border-color: #e6bcb3; color: #873b30 }
.timeline { list-style: none; padding: 0; margin: 0 }
.timeline li { padding: 10px 0; border-bottom: 1px solid var(--line) }
.timeline li:last-child { border-bottom: 0 }
.timeline li span { font-size: 12px; margin-left: 11px; color: var(--muted) }
.timeline li p { margin: 4px 0 0 }
dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 5px 15px }
dt { font-weight: 700 } dd { margin: 0; white-space: pre-line }
.message { white-space: pre-wrap }
.total { font-size: 26px; letter-spacing: -.03em }
.table-search { max-width: 290px; margin: 0 0 12px }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 18px; align-items: start }
.attention { border-top: 3px solid #b4894e }
.attention-list { list-style: none; margin: 0; padding: 0 }
.attention-list li { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line) }
.attention-list .empty { display: block }
.attention-list li:last-child { border-bottom: 0 }
.attention-list strong { color: var(--ink); font-size: 14px }
.attention-list p { margin: 2px 0 0; font-size: 13px }
.board-returns { list-style: none; padding: 0; margin: 0; display: grid; gap: 17px }
.board-returns li > div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px }
.board-returns span { color: var(--muted); font-variant-numeric: tabular-nums }
.board-returns progress { display: block; width: 100%; height: 7px; margin-top: 6px; accent-color: var(--wine) }
.attention-count { background: var(--amber-bg); color: var(--amber); border-radius: 7px; text-align: center; padding: 5px 2px; font-weight: 750; font-variant-numeric: tabular-nums }
.school-hero,.auth-brand {
  background: radial-gradient(ellipse at right top,#713146 0%,transparent 68%),linear-gradient(140deg,#541c31,var(--sidebar));
  color: #fff7ee;
}
.school-hero { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 15px; padding: clamp(20px,3vw,33px); border-radius: 14px; margin-bottom: 19px }
.school-hero .eyebrow,.auth-brand .eyebrow { color: var(--gold) }
.school-hero h1 { margin-top: 6px; margin-bottom: 8px }
.school-hero p,.auth-brand p { color: #f0dce3 }
.school-hero .school-action { display: grid; justify-items: start; gap: 9px }
.school-hero button { background: #f2cf96; color: #382120; border-color: #f2cf96 }
.school-hero button:hover { background: #ffe3b6 }
.signed-out main { padding-top: 30px; padding-bottom: 30px }
.auth-wrap { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 1.05fr 1fr; max-width: 980px; margin: auto; align-content: center }
.auth-brand,.auth-form { padding: clamp(28px,4.5vw,62px) }
.auth-brand { border-radius: 18px 0 0 18px; display: flex; flex-direction: column; justify-content: center; border: 1px solid #5a263a }
.auth-brand .large { width: 60px; height: 60px; margin-bottom: 23px }
.auth-brand .large .book-mark { transform: scale(1.35) }
.auth-brand h1 { font-size: clamp(42px,5.4vw,74px); max-width: 7ch; margin-top: 11px }
.auth-brand p { max-width: 29ch }
.auth-form { background: var(--paper); border: 1px solid var(--line); border-radius: 0 18px 18px 0 }
.auth-form h2 { font-size: clamp(27px,3vw,39px); margin-top: 8px }
.auth-form p { margin-bottom: 18px }
.role-choices { display: grid; gap: 9px }
.role-choices button { justify-content: space-between; text-align: left; min-height: 62px; padding: 9px 13px }
.role-choices small { display: block; color: var(--muted); font-size: 12px; font-weight: 500 }
@media(max-width: 1000px) {
  .signed-in { grid-template-columns: 194px minmax(0,1fr) }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .two,.overview-grid { grid-template-columns: 1fr; gap: 0 }
}
@media(max-width: 700px) {
  .signed-in { display: block }
  .sidebar { position: static; height: auto; padding: 11px 14px; overflow: visible }
  .sidebar-head { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 0 }
  .brand { font-size: 22px }
  .monogram { width: 36px; height: 36px }
  .menu-toggle:not([hidden]) { display: inline-flex; background: transparent; color: #fff7ee; border-color: #ffffff45; min-height: 38px }
  .sidebar:has(.menu-toggle:not([hidden])):not(.menu-open) .sidebar-content { display: none }
  .sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 10px }
  .sidebar .nav-label { grid-column: 1 / -1 }
  .sidebar-user { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 6px }
  main { padding: 0 14px 36px }
  .workspace-bar { min-height: 47px; margin-bottom: 19px }
  .metrics > * { min-height: 95px }
  .auth-wrap { display: block; min-height: auto }
  .auth-brand { border-radius: 14px 14px 0 0 }
  .auth-brand h1 { max-width: 100% }
  .auth-form { border-radius: 0 0 14px 14px }
}

.procurement-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); column-gap: 18px }
.procurement-links { display: grid; gap: 11px; list-style: none; margin: 0; padding: 0 }
.procurement-links li { border-top: 1px solid var(--line); padding-top: 11px }
.procurement-links p { margin: 4px 0 0; font-size: 13px }

.phase-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); gap: .6rem }
.phase-list li { padding: .75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; border: 1px solid var(--line); border-radius: .6rem }
.phase-list li.priority { border-color: var(--wine); background: #fcf6f7 }
.phase-list li .badge { flex-shrink: 0 }
.phase-list li small { display: block; color: var(--muted); margin-top: .22rem }
.line-edit form { min-width: 10.5rem; margin-top: .5rem }
.line-edit input[type=number], .inline-count { max-width: 8rem }
.table-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin: .8rem 0 }
.table-controls label { min-width: 9rem }
.source summary { color: var(--muted) }
tr:target td { background: #fcf6f7 }

/* Navigation is grouped by the work each role can perform. */
.nav-group { border-block-end: 1px solid #ffffff26; margin-block-end: .65rem; padding-block-end: .65rem; display: grid; gap: .18rem; }
.nav-group:last-child { border-block-end: 0; }
.owner-readonly form[method="post"]:not(.workspace-year):not([data-finance-action]), .owner-readonly [data-write-action] { display: none; }
body.signed-in { background-color: #f4f2ee; background-image: radial-gradient(ellipse at 100% 0%, #d5dfd66b, transparent 44%), radial-gradient(ellipse at 0% 80%, #f2d9bc4d, transparent 48%); }
.workspace-bar { border-bottom: 1px solid #dbd4c7; }
.panel { box-shadow: 0 1px 2px #20181308, 0 9px 28px #20181308; }

th button.table-sort {
  display: inline-flex; align-items: baseline; gap: .35em; justify-content: flex-start;
  min-height: 28px; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 2px;
  color: inherit; background: transparent; box-shadow: none; font: inherit;
  letter-spacing: inherit; text-transform: inherit; text-align: inherit;
}
th button.table-sort:hover { color: inherit; background: transparent; text-decoration: underline }
th button.table-sort:focus-visible { outline: 2px solid currentColor; outline-offset: 2px }
th .table-sort::after { content: '↕' / ''; opacity: .7 }
th[aria-sort="ascending"] .table-sort::after { content: '↑' / ''; opacity: 1 }
th[aria-sort="descending"] .table-sort::after { content: '↓' / ''; opacity: 1 }

.book-filter { min-width: 0; margin: 0; align-self: start }
.book-filter summary { cursor: pointer; min-height: 32px; overflow-wrap: anywhere }
.filter-choices { max-height: 13rem; overflow-y: auto; padding: .35rem }
.filter-choices label { display: flex; flex-direction: row; align-items: baseline; gap: .5rem; padding: .2rem }
.filter-choices input { width: auto; flex: none; min-height: 0 }
td[data-archive-field] input { min-width: 7rem; max-width: 22rem }
[data-archive-editor][hidden], [data-archive-delete][hidden], [data-edit-archive][hidden] { display: none }
