/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #faf7f2; --ink: #2b2320; --sub: #8a7d74; --faint: #b7a99d;
  --line: #eee4da; --card: #ffffff; --accent: #5b46c8; --accent-soft: #ece9fb;
  --good: #2e7d4f; --good-soft: #e3f2e8; --warn: #b3261e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Albert Sans', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Albert Sans', system-ui, sans-serif; margin: 0; letter-spacing: -0.02em; }
a { color: var(--accent); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border: none; border-radius: 14px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
.btn:hover { background: #4a37ab; }
.btn-ghost { background: #f3ece4; color: #6b5f56; }
.btn-ghost:hover { background: #ece2d6; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: var(--sub); }
.field input, .field select, .field textarea { height: 50px; border: 1.5px solid var(--line); border-radius: 13px; padding: 0 14px; background: #fff; }
.field textarea { height: auto; padding: 12px 14px; }
.field .hint { font-size: 12.5px; color: var(--faint); }
.muted { color: var(--sub); }

.shell { display: flex; min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 4px; width: 240px; background: #fff; border-right: 1px solid var(--line); padding: 20px 12px; flex-shrink: 0; transition: width 0.15s ease; }
.sidebar.collapsed { width: 72px; align-items: center; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 16px 10px; }
.sidebar.collapsed .brand { padding: 0 0 16px 0; }
.sidebar .brand span { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 17px; }
.mi { display: flex; align-items: center; gap: 12px; height: 44px; border-radius: 12px; padding: 0 13px; font-size: 14.5px; font-weight: 600; color: #6b5f56; text-decoration: none; }
.mi:hover { background: #faf5ee; color: #4c4038; }
.mi.active { background: var(--accent-soft); color: var(--accent); }
.sidebar.collapsed .mi { width: 44px; padding: 0; justify-content: center; }
.sidebar.collapsed .mi .lbl { display: none; }
.sidebar.collapsed .brand span { display: none; }
.spacer { flex-grow: 1; }
.acct { display: flex; align-items: center; gap: 10px; padding: 12px 10px 0 10px; border-top: 1px solid #f3ece4; font-size: 13px; }
.acct .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.main { flex-grow: 1; padding: 32px 40px; max-width: 1100px; }

/* ---- Mobile: sidebar becomes a bottom icon bar ---- */
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .sidebar, .sidebar.collapsed {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    width: 100%; height: 62px;
    flex-direction: row; align-items: center; justify-content: space-around;
    padding: 0 6px; gap: 0;
    border-right: none; border-top: 1px solid var(--line);
  }
  .sidebar .brand, .sidebar .spacer, .sidebar .acct, .sidebar button.mi { display: none; }
  .sidebar .mi { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .sidebar .mi .lbl { display: none; }
  .main { padding: 20px 14px 86px 14px; max-width: 100%; }
  h1 { font-size: 24px !important; }
  .table-scroll { overflow-x: auto; }
}

/* Buttons never wrap their label */
.btn { white-space: nowrap; }

/* Assignment rows: on phones the buttons drop below the text */
@media (max-width: 760px) {
  .arow { flex-wrap: wrap; }
  .arow form { flex-basis: 100%; justify-content: flex-start; }
}

/* Ladder chips — click to include a reminder step */
.chipbox { position: relative; display: inline-flex; }
.chipbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.chipbox span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--sub);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; min-height: 38px;
}
.chipbox span::before {
  content: '+'; font-weight: 700; font-size: 14px; line-height: 1; color: var(--faint);
}
.chipbox input:checked + span {
  color: #6b3fa0; background: #f1e8f8; border-color: #d9c2ea;
}
.chipbox input:checked + span::before { content: '✓'; color: #6b3fa0; }
.chipbox input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- Classitz additions ---- */
.pagehead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pagehead h1 { font-size: 27px; }
.pagehead .sub { color: var(--sub); font-size: 14px; margin-top: 5px; }
.stack { display: grid; grid-gap: 14px; gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-gap: 14px; gap: 14px; }
.stat { padding: 16px 18px; }
.stat .k { font-size: 12.5px; font-weight: 700; color: var(--sub); text-transform: uppercase; letter-spacing: 0.04em; }
.stat .v { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 27px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.stat .n { font-size: 13px; color: var(--faint); margin-top: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--sub); padding: 0 14px 10px; font-weight: 700; }
.tbl td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fdfbf8; }
.tbl a { font-weight: 700; text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f3ece4; color: #6b5f56; }
.pill.due { background: #fdeceb; color: var(--warn); }
.pill.paid { background: var(--good-soft); color: var(--good); }
.pill.soft { background: var(--accent-soft); color: var(--accent); }
.btn-sm { height: 38px; padding: 0 15px; border-radius: 11px; font-size: 13.5px; }
.empty { padding: 40px 22px; text-align: center; color: var(--sub); }
.empty h3 { font-size: 18px; margin-bottom: 7px; color: var(--ink); }
.sec { padding: 20px 22px; }
.sec h2 { font-size: 17px; margin-bottom: 14px; }
.inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.daybox { display: flex; gap: 7px; flex-wrap: wrap; }
.daybox label { position: relative; }
.daybox input { position: absolute; opacity: 0; width: 0; height: 0; }
.daybox span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 38px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--sub); background: #fff; }
.daybox input:checked + span { background: var(--accent-soft); border-color: #cfc6f2; color: var(--accent); }
.linkrow { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }

/* ---- app shell: used by the school site and by every signed-out page ---- */
.app { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.appbar {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line);
  padding-top: max(12px, env(safe-area-inset-top));
}
.appbar .who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.appbar h1 { font-size: 17px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar .sub { font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schoolmark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--brand, var(--accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.appbody { flex: 1 1 auto; width: 100%; max-width: 680px; margin: 0 auto; padding: 22px 18px 40px; }
.appbody.wide { max-width: 940px; }
.apptabs {
  position: -webkit-sticky;
  position: sticky; bottom: 0; z-index: 20; display: flex; background: #fff;
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.apptabs a {
  flex: 1 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px; font-size: 11.5px; font-weight: 700; color: var(--sub); text-decoration: none;
}
.apptabs a.on { color: var(--brand, var(--accent)); }
.apptabs svg { width: 21px; height: 21px; }

/* one column, one width — forms and cards stop sprawling */
.pane { width: 100%; max-width: 460px; margin: 0 auto; }
.pane.mid { max-width: 560px; }
.appbody .card { width: 100%; }
.appbody form.card, .pane form.card { display: grid; grid-gap: 16px; gap: 16px; }

.hero { padding: 26px 0 22px; }
.hero h2 { font-size: clamp(26px, 6vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.hero p { color: var(--sub); font-size: 16.5px; line-height: 1.6; margin: 14px 0 0; }
.brandbtn { background: var(--brand, var(--accent)); }
.brandbtn:hover { filter: brightness(0.92); background: var(--brand, var(--accent)); }
.brandpill { background: color-mix(in srgb, var(--brand, var(--accent)) 12%, #fff); color: var(--brand, var(--accent)); }
.offer { display: grid; grid-gap: 13px; gap: 13px; }
.offer .card { padding: 18px 20px; }
.offer h3 { font-size: 17.5px; margin-bottom: 4px; }
.offer .meta { color: var(--sub); font-size: 13.5px; }
.price { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 700; font-size: 19px; white-space: nowrap; }
.sectitle { font-size: 13px; font-weight: 700; color: var(--sub); text-transform: uppercase;
  letter-spacing: 0.05em; margin: 26px 0 12px; }

@media (max-width: 560px) {
  .appbody { padding: 16px 14px 30px; }
  .card.sec { padding: 16px 16px; }
  .tbl th { display: none; }
  .tbl td { padding: 10px 12px; }
}

/* nothing may push the page sideways — a long option label used to widen the whole app */
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; }
.field select { text-overflow: ellipsis; }
.inline > * { min-width: 0; }
.appbody, .pane, .card { min-width: 0; }
.appbody table { display: block; overflow-x: auto; }
code { max-width: 100%; display: inline-block; overflow-wrap: anywhere; }

/* ---- the dashboard on a phone: the teacher marks attendance standing up ---- */
@media (max-width: 700px) {
  .main { padding: 16px 14px 84px; max-width: 100%; }
  .pagehead { margin-bottom: 16px; }
  .pagehead h1 { font-size: 23px; }
  .grid2 { grid-template-columns: 1fr; }
  /* a table scrolls inside its own card rather than dragging the page sideways */
  .card .tbl, .sec .tbl { display: block; width: 100%; overflow-x: auto; }
  .card .tbl thead, .card .tbl tbody, .sec .tbl thead, .sec .tbl tbody { display: table; width: 100%; min-width: 460px; }
  .stat .v { font-size: 24px; }
  .inline { gap: 8px; }
  code { font-size: 11px; }
}

