:root {
  --bg: #f6f7f9;
  --white: #fff;
  --ink: #202b32;
  --muted: #78828a;
  --line: #e8ecec;
  --green: #204f3e;
  --mint: #edf5ee;
  --lime: #d6ecaa;
  --sidebar: 246px;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #89b68e;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  background: white;
  z-index: 20;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 34px 20px 18px;
  z-index: 4;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.7px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 600;
}
.brand-mark {
  width: 43px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border-radius: 12px;
  color: white;
  font-size: 25px;
  position: relative;
  letter-spacing: -3px;
  padding-right: 4px;
}
.brand-mark span {
  color: var(--lime);
}
.brand-mark i {
  position: absolute;
  right: -3px;
  top: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid white;
  border-radius: 50%;
  background: #c8df9c;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #929a9e;
  font-weight: 700;
  margin: 42px 14px 12px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  padding: 13px 15px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  color: #657179;
  font-weight: 550;
  gap: 13px;
}
nav a:hover {
  background: #f7f9f7;
}
nav a.active {
  background: var(--mint);
  color: var(--green);
  font-weight: 700;
}
.nav-icon {
  width: 20px;
  font-size: 21px;
  line-height: 1;
  font-weight: 400;
}
.count {
  margin-left: auto;
  background: white;
  border-radius: 5px;
  font-size: 10px;
  padding: 1px 6px;
}
.count:empty {
  display: none;
}
.school-links > a {
  display: flex;
  justify-content: space-between;
  color: #7b858b;
  padding: 9px 15px;
  font-size: 12px;
}
.school-links > a:hover {
  color: var(--green);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.class-card {
  background: #f7f9f6;
  border: 1px solid #edf0e9;
  border-radius: 11px;
  padding: 16px 13px;
}
.class-card strong {
  display: block;
  font-size: 11px;
  margin: 7px 0 4px;
}
.class-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7eac6d;
  border-radius: 50%;
}
.login-link {
  border: 0;
  background: transparent;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #65716d;
  padding: 23px 7px 4px;
}
.login-link > span:first-child {
  font-size: 19px;
}
.workspace {
  margin-left: var(--sidebar);
}
.topbar {
  height: 84px;
  background: #ffffffb0;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  padding: 0 13px;
  color: #b2babd;
}
.breadcrumb strong {
  font-weight: 550;
  color: #3a464b;
}
.top-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #7e888c;
}
.year-badge {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
  letter-spacing: 1px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eaf1e7;
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 700;
}
main {
  max-width: 1530px;
  margin: auto;
  padding: 35px 42px 20px;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 20px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--muted);
  margin: 0 0 6px;
}
h1 {
  font-size: 33px;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin: 0 0 9px;
  font-weight: 680;
}
.page-heading p:not(.eyebrow) {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.wave {
  color: #b3c975;
  font-size: 33px;
  vertical-align: 2px;
  margin-left: 6px;
}
.live-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #89938c;
}
.hero {
  background: #193f33;
  border-radius: var(--radius);
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 261px;
  color: white;
  padding: 30px 34px;
  justify-content: space-between;
}
.hero-chip {
  display: inline-block;
  border: 1px solid #ffffff27;
  background: #ffffff08;
  border-radius: 5px;
  color: #caddbc;
  font-size: 8px;
  letter-spacing: 1.5px;
  padding: 5px 9px;
}
.hero h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin: 17px 0 10px;
}
.hero p {
  font-size: 11px;
  line-height: 1.7;
  color: #b6c9c0;
  margin: 0 0 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--green);
  color: white;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 11px;
  font-weight: 650;
  min-height: 38px;
}
.button:hover {
  filter: brightness(1.08);
}
.button.light {
  background: var(--lime);
  color: #24432e;
}
.button.secondary {
  background: white;
  color: #52635b;
  border-color: #dfe5e1;
}
.button.small {
  padding: 7px 11px;
  min-height: 32px;
  font-size: 10px;
}
.hero-art {
  position: relative;
  width: 320px;
  min-width: 245px;
  align-self: stretch;
}
.art-grid {
  position: absolute;
  inset: -30px -34px -30px 0;
  background-image:
    linear-gradient(#ffffff07 1px, transparent 1px),
    linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 30px 30px;
  transform: rotate(-12deg);
}
.art-note {
  position: absolute;
  top: 20px;
  right: 55px;
  background: #eff5df;
  color: #284535;
  border-radius: 10px;
  width: 169px;
  height: 189px;
  padding: 19px 19px;
  box-shadow: 10px 13px 0 #142f2860;
  transform: rotate(10deg);
}
.art-note > span {
  font-size: 8px;
  letter-spacing: 2px;
}
.art-note strong {
  display: block;
  font-size: 75px;
  line-height: 1.25;
  letter-spacing: -7px;
}
.art-note strong span {
  font-size: 27px;
  vertical-align: top;
  margin-left: 11px;
  letter-spacing: 0;
}
.art-note small {
  font-size: 9px;
  letter-spacing: 2px;
}
.art-line {
  height: 1px;
  background: #b7c6a5;
  margin: 7px 0 12px;
}
.art-check {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #cce69b;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #2b4c30;
  transform: rotate(-9deg);
  border: 5px solid #193f33;
}
.art-spark {
  position: absolute;
  top: -5px;
  left: 20px;
  font-size: 53px;
  color: #c7df9c;
  transform: rotate(12deg);
}
.art-caption {
  position: absolute;
  left: 0;
  bottom: -8px;
  color: #a3c095;
  font-size: 10px;
  transform: rotate(-8deg);
  font-style: italic;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 23px 0;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
  min-height: 120px;
}
.stat-label {
  font-size: 11px;
  color: #79858a;
}
.stat-value {
  font-size: 28px;
  letter-spacing: -1px;
  font-weight: 650;
  margin: 10px 0 3px;
  line-height: 1.2;
}
.stat-foot {
  font-size: 10px;
  color: #929a9e;
}
.stat-icon {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eff5ec;
  color: #688858;
  font-size: 18px;
}
.stat-card:nth-child(2) .stat-icon {
  background: #f0f2fa;
  color: #7c85a4;
}
.stat-card:nth-child(3) .stat-icon {
  background: #faf3e8;
  color: #b0935e;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.panel-heading {
  padding: 23px 23px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.3px;
}
.text-link {
  font-size: 10px;
  font-weight: 650;
  color: #477357;
  white-space: nowrap;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 23px;
  border-top: 1px solid #f0f2f2;
  min-height: 74px;
}
.lesson-time {
  font-size: 12px;
  font-weight: 600;
  min-width: 40px;
  align-self: flex-start;
  padding-top: 2px;
}
.lesson-time small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #929da0;
  margin-top: 3px;
}
.lesson-items {
  flex: 1;
  min-width: 0;
}
.lesson-item {
  padding: 3px 0;
}
.lesson-item strong {
  font-size: 12px;
  font-weight: 550;
}
.lesson-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: #8c979b;
  font-size: 10px;
  margin-top: 3px;
}
.group-chip {
  color: #708368;
  background: #f2f6ef;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 8px;
}
.room {
  font-size: 10px;
  color: #7a858b;
  white-space: nowrap;
}
.lesson-number {
  font-size: 10px;
  color: #a2aaad;
  min-width: 14px;
}
.panel-footer {
  padding: 12px 23px;
  border-top: 1px solid var(--line);
  color: #8b9698;
  font-size: 9px;
  background: #fcfdfc;
}
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: #87918e;
}
.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border: 1px solid #e6ece3;
  border-radius: 15px;
  background: #f6f9f3;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #7c996b;
}
.empty-state h3 {
  font-size: 14px;
  font-weight: 600;
  color: #45524a;
  margin: 0 0 7px;
}
.empty-state p {
  max-width: 310px;
  font-size: 11px;
  line-height: 1.8;
  margin: 0 auto;
}
.empty-state .button {
  margin-top: 18px;
}
.transparency {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid #e1e8dd;
  border-radius: 12px;
  background: #f0f4eb;
  padding: 20px 23px;
  margin-top: 23px;
}
.transparency-icon {
  font-size: 30px;
  color: #7e9a67;
}
.transparency h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 4px;
}
.transparency p {
  font-size: 10px;
  color: #89927f;
  margin: 0;
}
.transparency > a {
  margin-left: auto;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #a0a8ac;
  font-size: 9px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer strong {
  font-weight: 600;
  color: #78868a;
}
.tiny-spark {
  color: #99af82;
  font-size: 14px;
  margin-left: 8px;
}
.plan-toolbar,
.ledger-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 24px 0 18px;
}
.segmented {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  background: #ecf0ed;
  border-radius: 8px;
  gap: 2px;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 15px;
  font-size: 11px;
  color: #7b8780;
  border-radius: 5px;
}
.segmented button.selected {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 4px #20382710;
  font-weight: 650;
}
.view-select {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
select,
input,
textarea {
  background: white;
  border: 1px solid #dce2de;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  max-width: 100%;
}
.day-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.day-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: #7c8781;
  padding: 14px 8px;
  font-size: 12px;
}
.day-tabs button.selected {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.day-tabs button small {
  display: block;
  font-size: 8px;
  opacity: 0.65;
}
.plan-panel .lesson-row {
  padding: 17px 24px;
}
.plan-panel .lesson-item strong {
  font-size: 14px;
}
.plan-panel .lesson-meta {
  font-size: 11px;
}
.plan-panel .lesson-time {
  min-width: 56px;
  font-size: 14px;
}
.source-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #7e8e82;
  margin-top: 18px;
}
.source-note a {
  color: #477357;
}
.fineprint {
  color: #8d9794;
  font-size: 10px;
  line-height: 1.7;
  margin: 14px 0;
  max-width: 900px;
}
.week-wrap,
.table-wrap {
  overflow: auto;
}
.week-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  table-layout: fixed;
}
.week-table th {
  background: #f5f8f3;
  font-weight: 600;
  font-size: 11px;
  padding: 15px;
}
.week-table th:first-child {
  width: 86px;
}
.week-table td {
  border: 1px solid var(--line);
  padding: 12px 9px;
  vertical-align: top;
  font-size: 10px;
}
.week-table td:first-child {
  text-align: center;
  color: var(--muted);
}
.week-table .lesson-item + .lesson-item {
  border-top: 1px dashed #e6eae5;
  margin-top: 8px;
  padding-top: 8px;
}
.week-table .lesson-item strong {
  font-size: 10px;
}
.week-table .lesson-meta {
  font-size: 9px;
}
.notice {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  position: relative;
}
.notices-list {
  display: grid;
  gap: 15px;
}
.notice h3 {
  font-size: 16px;
  margin: 12px 0 8px;
}
.notice p {
  white-space: pre-wrap;
  color: #78827e;
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.notice-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9aa19e;
  gap: 12px;
}
.tag {
  font-size: 9px;
  padding: 4px 8px;
  background: #eff5e9;
  color: #6e8656;
  border-radius: 5px;
}
.recent-notice {
  padding: 20px 23px;
  border-top: 1px solid var(--line);
}
.recent-notice h3 {
  font-size: 13px;
  margin: 9px 0 5px;
}
.recent-notice p {
  font-size: 11px;
  color: #8b9590;
  line-height: 1.7;
  margin: 0;
}
.school-banner {
  background: #edf2e9;
  border: 1px solid #e0e7da;
  border-radius: 12px;
  padding: 25px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.school-banner h2 {
  margin: 4px 0;
  font-size: 18px;
}
.school-banner p {
  font-size: 11px;
  color: #89927f;
  margin: 0;
}
.ledger-toolbar {
  padding: 0 23px;
  margin-top: 3px;
}
.ledger-toolbar input {
  font-size: 11px;
  max-width: 230px;
}
.ledger {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}
.ledger th {
  text-align: left;
  background: #f9faf8;
  color: #8e9893;
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.5px;
  padding: 12px 22px;
  border-block: 1px solid var(--line);
}
.ledger td {
  padding: 17px 22px;
  border-bottom: 1px solid #f0f2ef;
  font-size: 11px;
}
.ledger td strong {
  font-weight: 550;
}
.ledger td small {
  display: block;
  font-size: 9px;
  color: #9aa29e;
  margin-top: 4px;
}
.positive {
  color: #517e4c;
}
.negative {
  color: #b37660;
}
.money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
}
.receipt-link {
  border: 0;
  color: #50735b;
  background: #f1f6ed;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 5px;
}
.delete-button {
  border: 0;
  background: transparent;
  color: #ae8476;
  font-size: 10px;
  padding: 6px;
  margin-left: 8px;
}
.receipts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.receipts-grid > .empty-state {
  grid-column: 1/-1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 70px 24px;
}
.receipt-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.receipt-preview {
  width: 100%;
  height: 185px;
  object-fit: contain;
  background: #eff2eb;
  padding: 15px;
  display: grid;
  place-items: center;
  font-size: 45px;
  color: #8ca076;
  cursor: pointer;
}
.receipt-card-content {
  padding: 20px;
}
.receipt-card h3 {
  font-size: 13px;
  margin: 0 0 6px;
}
.receipt-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.receipt-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.receipt-card-bottom strong {
  font-size: 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 24px 100px #102b3440;
  padding: 28px;
  width: 480px;
  max-width: calc(100vw - 30px);
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
}
dialog::backdrop {
  background: #132d285c;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
  margin: 0;
}
.dialog-heading .close-dialog {
  border: 0;
  background: #f2f5ef;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  font-size: 22px;
  color: #6e7e71;
}
form label {
  font-size: 11px;
  color: #6e7c75;
  display: block;
  margin-bottom: 14px;
}
form label input,
form label textarea,
form label select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
form textarea {
  resize: vertical;
  min-height: 100px;
}
form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.form-error {
  color: #b15d4b;
  font-size: 12px;
}
.form-hint {
  font-size: 10px;
  color: #8b9690;
  line-height: 1.7;
}
.alert {
  background: #fff5df;
  border: 1px solid #eee0ba;
  color: #8b7444;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 12px;
  margin-bottom: 22px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 80px);
  transform: translateX(-50%);
  background: #244d38;
  color: white;
  border-radius: 9px;
  box-shadow: 0 5px 25px #203c2520;
  padding: 13px 22px;
  z-index: 30;
  font-size: 12px;
}
#receipt-view {
  width: 620px;
}
#receipt-image {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  object-fit: contain;
  margin: 0 auto 20px;
}
@media (min-width: 1500px) {
  main {
    padding: 42px 55px;
  }
  .hero {
    min-height: 280px;
  }
  .hero-art {
    margin-right: 65px;
  }
  .hero h2 {
    font-size: 34px;
  }
  .hero p {
    font-size: 12px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 210px;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .topbar {
    padding-inline: 27px;
  }
  main {
    padding: 29px 27px 20px;
  }
  .live-label {
    display: none;
  }
  .hero-art {
    width: 245px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero {
    padding: 26px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-icon {
    right: 15px;
  }
  .stat-value {
    font-size: 25px;
  }
  .transparency {
    gap: 13px;
  }
  .transparency p {
    max-width: 320px;
  }
  .school-links > a {
    font-size: 11px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 180px;
  }
  .brand {
    font-size: 18px;
    padding: 0 4px;
  }
  .brand-mark {
    width: 36px;
    height: 39px;
    font-size: 22px;
  }
  .sidebar {
    padding-inline: 11px;
  }
  nav a {
    padding: 12px 9px;
    font-size: 12px;
    gap: 8px;
  }
  .nav-label {
    font-size: 8px;
    margin-left: 9px;
  }
  .class-card {
    padding: 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    min-width: 180px;
    width: 190px;
  }
  .art-note {
    right: 20px;
    width: 140px;
    height: 173px;
  }
  .art-note strong {
    font-size: 65px;
  }
  .art-check {
    right: 0;
  }
  .art-spark {
    left: 0;
    top: -12px;
  }
  .art-caption {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-icon {
    display: none;
  }
  .stat-value {
    font-size: 23px;
  }
  .receipts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .date {
    display: none;
  }
}
@media (max-width: 680px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    inset: auto 0 0;
    width: 100%;
    height: 70px;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 5px 5px max(5px, env(safe-area-inset-bottom));
    background: #fffffffa;
  }
  .sidebar .brand,
  .sidebar .nav-label,
  .school-links,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 0;
  }
  .sidebar nav a {
    font-size: 9px;
    padding: 7px 6px;
    flex-direction: column;
    gap: 5px;
    min-width: 58px;
    border-radius: 8px;
    line-height: 1.2;
  }
  .nav-icon {
    font-size: 21px;
    text-align: center;
  }
  .count {
    display: none;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .top-meta {
    gap: 9px;
  }
  .year-badge {
    font-size: 8px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .breadcrumb span {
    padding: 0 6px;
  }
  main {
    padding: 25px 18px 95px;
  }
  .page-heading {
    margin-bottom: 20px;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 11px;
    max-width: 260px;
  }
  .page-heading > .button {
    font-size: 9px;
    padding: 9px;
    gap: 4px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  .hero {
    min-height: 265px;
    padding: 24px;
    isolation: isolate;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero p {
    font-size: 11px;
    max-width: 240px;
  }
  .hero-art {
    position: absolute;
    right: -30px;
    bottom: 8px;
    opacity: 0.14;
    width: 190px;
    height: 200px;
    z-index: -1;
  }
  .hero-copy {
    width: 100%;
  }
  .stats {
    gap: 8px;
    margin: 18px 0;
  }
  .stat-card {
    padding: 15px 10px;
    min-height: 110px;
    border-radius: 10px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-value {
    font-size: 20px;
    margin-top: 13px;
    letter-spacing: -0.7px;
  }
  .stat-foot {
    font-size: 8px;
    line-height: 1.5;
  }
  .dashboard-grid {
    gap: 18px;
  }
  .panel-heading {
    padding: 20px 19px 15px;
  }
  .lesson-row {
    padding: 13px 19px;
  }
  .transparency {
    padding: 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .transparency-icon {
    font-size: 24px;
  }
  .transparency > div:nth-child(2) {
    flex: 1;
  }
  .transparency > a {
    margin-left: 34px;
    font-size: 10px;
  }
  .transparency p {
    font-size: 9px;
  }
  .footer {
    font-size: 8px;
    align-items: flex-start;
    margin-top: 25px;
  }
  .footer > span:last-child {
    max-width: 145px;
    text-align: right;
  }
  .plan-toolbar {
    gap: 8px;
    align-items: flex-start;
  }
  .segmented button {
    padding: 8px 9px;
    font-size: 10px;
  }
  .view-select {
    font-size: 0;
    gap: 0;
  }
  .view-select select {
    font-size: 10px;
    padding: 9px 7px;
    width: 100px;
  }
  .day-tabs {
    gap: 5px;
  }
  .day-tabs button {
    font-size: 10px;
    padding: 13px 3px;
    overflow: hidden;
  }
  .source-note {
    flex-direction: column;
    gap: 6px;
    font-size: 9px;
  }
  .fineprint {
    font-size: 9px;
  }
  .ledger-toolbar {
    padding: 0 15px;
    flex-wrap: wrap;
  }
  .ledger-toolbar input {
    width: 100%;
    max-width: none;
  }
  .school-banner {
    padding: 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .receipts-grid {
    grid-template-columns: 1fr;
  }
  .notice {
    padding: 19px;
  }
  #toast {
    left: 50%;
    bottom: 90px;
    max-width: 90vw;
    width: max-content;
  }
  dialog {
    padding: 22px;
  }
  .mobile-admin {
    border: 0;
    background: var(--mint);
    color: var(--green);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 10px;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-heading > .button,
  .footer,
  .plan-toolbar,
  .day-tabs,
  .source-note a,
  #toast {
    display: none !important;
  }
  .workspace {
    margin: 0;
  }
  main {
    padding: 0;
  }
  .page {
    display: none !important;
  }
  #page-plan {
    display: block !important;
  }
  .week-wrap {
    overflow: visible;
  }
  .week-table {
    min-width: 0;
  }
  .week-table td {
    padding: 6px;
  }
  .plan-panel {
    border-radius: 0;
  }
  .page-heading h1 {
    font-size: 22px;
  }
}

.short-day {
  display: none;
}
.receipt-preview {
  border: 0;
}
.receipt-preview img {
  max-width: 100%;
  max-height: 155px;
  object-fit: contain;
}
.mobile-admin {
  border: 1px solid #dfe5e1;
  background: white;
  color: #52715e;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 10px;
  cursor: pointer;
}
@media (max-width: 680px) {
  .full-day {
    display: none;
  }
  .short-day {
    display: inline;
  }
}

.theme-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.theme-toggle:hover {
  border-color: #8aaa81;
}
@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101713;
    --white: #19221d;
    --ink: #e5ece6;
    --muted: #a4b1a8;
    --line: #303f35;
    --green: #b1d399;
    --mint: #2b3b2c;
    --lime: #d6ecaa;
  }
  html[data-theme="dark"]
    :is(
      .sidebar,
      .stat-card,
      .panel,
      .notice,
      .receipt-card,
      dialog,
      .day-tabs button,
      .count,
      .skip
    ) {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
  }
  html[data-theme="dark"] .topbar {
    background: #141d19;
  }
  html[data-theme="dark"]
    :is(
      .class-card,
      .transparency,
      .school-banner,
      .empty-state,
      .receipt-preview,
      .panel-footer,
      .week-table th,
      .ledger th
    ) {
    background: #1c291f;
    border-color: var(--line);
  }
  html[data-theme="dark"]
    :is(
      .avatar,
      .empty-icon,
      .group-chip,
      .tag,
      .receipt-link,
      .stat-icon,
      .dialog-heading .close-dialog
    ) {
    background: #2b3d2c;
    color: #c0dba9;
    border-color: var(--line);
  }
  html[data-theme="dark"] :is(.brand-mark, .button, .day-tabs button.selected) {
    background: #3a5f3e;
    color: #f1f6eb;
    border-color: #4f7150;
  }
  html[data-theme="dark"] .brand-mark i {
    border-color: var(--white);
  }
  html[data-theme="dark"] .button.light {
    background: var(--lime);
    color: #24432e;
  }
  html[data-theme="dark"]
    :is(.button.secondary, .mobile-admin, input, select, textarea) {
    background: #202d24;
    border-color: #405344;
    color: #dbe6da;
  }
  html[data-theme="dark"] :is(.segmented, nav a:hover) {
    background: #142019;
  }
  html[data-theme="dark"] .segmented button.selected {
    background: #34472f;
    color: #e0efcf;
  }
  html[data-theme="dark"]
    :is(
      .segmented button,
      nav a,
      .school-links > a,
      .login-link,
      .top-meta,
      .stat-label,
      .stat-foot,
      .lesson-meta,
      .lesson-time small,
      .lesson-number,
      .room,
      .notice p,
      .recent-notice p,
      .notice-top,
      .footer,
      .footer strong,
      .transparency p,
      .school-banner p,
      .fineprint,
      .source-note,
      .form-hint,
      form label,
      .ledger td small,
      .ledger th,
      .nav-label,
      .live-label,
      .panel-footer
    ) {
    color: #a7b6a9;
  }
  html[data-theme="dark"] :is(.breadcrumb strong, .empty-state h3) {
    color: #e0e9de;
  }
  html[data-theme="dark"] :is(.text-link, .source-note a, .positive) {
    color: #b4d69c;
  }
  html[data-theme="dark"] :is(.negative, .delete-button, .form-error) {
    color: #efb096;
  }
  html[data-theme="dark"]
    :is(
      .lesson-row,
      .ledger td,
      .week-table td,
      .week-table .lesson-item + .lesson-item
    ) {
    border-color: var(--line);
  }
  html[data-theme="dark"] .stat-card:nth-child(2) .stat-icon {
    background: #2d3349;
    color: #c2c9ed;
  }
  html[data-theme="dark"] .stat-card:nth-child(3) .stat-icon {
    background: #413625;
    color: #e4cd9b;
  }
  html[data-theme="dark"] .alert {
    background: #3e3420;
    border-color: #625439;
    color: #efdcac;
  }
  html[data-theme="dark"] input::placeholder,
  html[data-theme="dark"] textarea::placeholder {
    color: #97a69a;
  }
  html[data-theme="dark"] dialog::backdrop {
    background: #050a08b8;
  }
  html[data-theme="dark"] #toast {
    background: #395f3a;
    color: #f3f8ef;
  }
}
@media (max-width: 680px) {
  .top-meta {
    gap: 7px;
  }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .top-meta .year-badge {
    display: none;
  }
}

.notes-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.notes-toolbar > label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.notes-toolbar select {
  min-width: 190px;
}
.note-card {
  overflow-wrap: anywhere;
}
.note-card > p {
  white-space: pre-wrap;
}
.note-card .note-approved {
  color: #668654;
  margin-top: 18px;
  font-size: 10px;
}
.note-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
.note-actions > .fineprint {
  margin-right: auto;
}
@media screen {
  html[data-theme="dark"] .note-approved {
    color: #b4d69c;
  }
}
@media (max-width: 680px) {
  .sidebar nav a {
    flex: 1;
    min-width: 0;
    font-size: 8px;
    padding-inline: 3px;
  }
  .notes-toolbar {
    align-items: stretch;
  }
  .notes-toolbar > label {
    width: 100%;
  }
  .notes-toolbar select {
    flex: 1;
    min-width: 0;
  }
  #notes-tabs {
    width: 100%;
  }
  #notes-tabs button {
    flex: 1;
  }
  .note-actions .fineprint {
    width: 100%;
    margin: 0;
  }
  .note-actions .button {
    flex: 1;
  }
}

.footer {
  flex-wrap: wrap;
  align-items: center;
}
.gpt-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #dfe6db;
  border-radius: 10px;
  background: #f0f4eb;
  color: #35523e;
  flex-shrink: 0;
}
.gpt-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: #e0ebd8;
  color: #426a40;
}
.gpt-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.gpt-word {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.5px;
  line-height: 1.25;
}
.gpt-caption {
  font-size: 9px;
  line-height: 1.4;
  color: #596b57;
}
.gpt-arrow {
  font-size: 13px;
  margin-left: 3px;
}
.gpt-badge:hover {
  border-color: #8ca97b;
  background: #e9f0e2;
}
@media screen {
  html[data-theme="dark"] .gpt-badge {
    background: #1c291f;
    border-color: #354936;
    color: #d8e7cd;
  }
  html[data-theme="dark"] .gpt-mark {
    background: #2b3d2c;
    color: #c0dba9;
  }
  html[data-theme="dark"] .gpt-caption {
    color: #abbba4;
  }
  html[data-theme="dark"] .gpt-badge:hover {
    background: #283a2a;
    border-color: #8ca97b;
  }
}
@media (max-width: 680px) {
  .footer > span:nth-child(2) {
    max-width: 145px;
    text-align: right;
  }
  .gpt-badge {
    margin-top: 6px;
  }
}

#toast:empty {
  display: none;
}
