/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .visible {
    visibility: visible;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
  }
  .fixed {
    position: fixed;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .table {
    display: table;
  }
  .grow {
    flex-grow: 1;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
}
:root {
  color-scheme: light;
  --school-navy: #102c47;
  --school-gold: #efcb7d;
  --school-white: #ffffff;
  --brand-ink: #192e42;
  --brand-green: #285645;
  --brand-red: #a22e31;
  --brand-muted: #626e75;
  --brand-cream: #f7f5ee;
  --brand-line: #e3e7df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.school-location-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #80948680;
  text-underline-offset: 3px;
}
.school-location-link:hover {
  text-decoration-color: currentColor;
}
.school-location-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
button {
  font: inherit;
}
dialog:modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  overscroll-behavior: contain;
}
label:has(> input:required, > select:required, > textarea:required)::before {
  content: "* ";
  color: #c62032;
  font-weight: 700;
}
label:has(> input:required, > select:required, > textarea:required) {
  display: block;
}
label > input:required, label > select:required, label > textarea:required {
  display: block;
  margin-top: 6px;
}
.required-fields-note {
  margin: 12px 0;
  color: #657184;
  font-size: .85rem;
}
.required-fields-note span {
  color: #c62032;
  font-weight: 700;
}
.dialog-heading {
  position: sticky;
  top: -2rem;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  background: white;
}
.dialog-close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #dce2e8;
  border-radius: 50%;
  background: white;
  color: #192e42;
  font-size: 1.65rem;
  cursor: pointer;
}
.dialog-close:focus-visible {
  outline: 2px solid #285645;
  outline-offset: 3px;
}
.dialog-close:disabled {
  cursor: wait;
  opacity: .5;
}
a, button {
  -webkit-tap-highlight-color: transparent;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  color: var(--brand-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.7;
}
.eyebrow-line {
  width: 1.75rem;
  height: 1px;
  flex-shrink: 0;
  background: var(--brand-green);
}
.eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.09em;
}
.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
}
.gallery-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #edf2e9;
}
.admin-page, .admin-login-page {
  color: var(--brand-ink);
  background: #f5f6f2;
  font: 0.9rem/1.6 Arial, "Kohinoor Devanagari", sans-serif;
}
.admin-page {
  display: grid;
  min-height: 100svh;
  grid-template-columns: 15rem minmax(0, 1fr);
}
.admin-page a, .admin-login-page a {
  color: var(--brand-green);
  text-decoration: none;
}
.admin-page button, .admin-login-page button {
  cursor: pointer;
}
.admin-page button:disabled, .admin-login-page button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.admin-page :is(button,a,input,select,textarea):focus-visible, .admin-login-page :is(button,a,input):focus-visible {
  outline: 3px solid #7eaa88;
  outline-offset: 3px;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: 100svh;
  padding: 2rem 1.15rem;
  border-right: 1px solid var(--brand-line);
  background: #fff;
}
.admin-brand {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-inline: 0.5rem;
  color: var(--brand-ink) !important;
  font: 700 1.7rem/1.3 Georgia, serif;
  letter-spacing: 0.045em;
}
.admin-brand span {
  font: 0.7rem/1.6 Arial, sans-serif;
  letter-spacing: 0;
  color: var(--brand-muted);
}
.admin-sidebar nav {
  display: grid;
  gap: 0.5rem;
  margin-top: 3rem;
}
.admin-sidebar nav button {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 0.4rem;
  color: var(--brand-muted);
  background: transparent;
  text-align: left;
  font-size: 0.85rem;
}
.admin-sidebar nav button[aria-current="page"] {
  color: var(--brand-green);
  background: #edf2e9;
  font-weight: 600;
}
.admin-sidebar nav span {
  font-size: 1.2rem;
}
.admin-preview-link {
  margin-top: auto;
  padding: 1rem 0.5rem 0;
  font-size: 0.8rem;
}
.admin-sidebar-note {
  margin: 0.5rem 0.5rem 0;
  font-size: 0.7rem;
  color: var(--brand-muted);
}
.admin-main {
  min-width: 0;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
  padding: 1rem 2.5rem;
  border-bottom: 1px solid var(--brand-line);
  background: #fff;
}
.admin-preview-badge {
  color: var(--brand-green);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.admin-topbar > div {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--brand-muted);
  font-size: 0.8rem;
}
.admin-topbar button {
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.3rem;
  color: var(--brand-ink);
  background: white;
}
.admin-section {
  max-width: 85rem;
  margin-inline: auto;
  padding: 2.5rem;
}
.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.admin-section-heading h1 {
  margin: 0.5rem 0;
  font: 400 clamp(1.75rem, 2.6vw, 2.35rem)/1.3 Georgia, serif;
}
.admin-section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--brand-muted);
}
.admin-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brand-green);
  border-radius: 0.35rem;
  color: #fff;
  background: var(--brand-green);
  font-size: 0.8rem;
  font-weight: 600;
}
.admin-button:hover {
  background: #1c4233;
}
.admin-button-secondary {
  color: var(--brand-green);
  background: white;
  border-color: #cbd7c9;
}
.admin-button-secondary:hover {
  background: #edf2e9;
}
.admin-page label, .admin-login-page label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.admin-page :is(input,textarea,select), .admin-login-page input {
  width: 100%;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid #cfd6cc;
  border-radius: 0.3rem;
  background: #fff;
  color: var(--brand-ink);
  font: 0.85rem/1.5 Arial, "Kohinoor Devanagari", sans-serif;
}
.admin-page input.sr-only {
  width: 1px;
  padding: 0;
  border: 0;
}
.admin-page textarea {
  resize: vertical;
}
.admin-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.admin-toolbar label {
  min-width: 10rem;
}
.admin-toolbar select {
  min-height: 2.75rem;
  padding-block: 0.6rem;
}
.analytics-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.analytics-kpis article {
  padding: 1.5rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.5rem;
  background: white;
}
.analytics-kpis p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--brand-muted);
}
.analytics-kpis strong {
  display: block;
  margin-block: 0.5rem;
  font: 400 3rem/1.2 Georgia, serif;
  color: var(--brand-green);
}
.analytics-kpis span {
  display: block;
  color: var(--brand-muted);
  font-size: 0.7rem;
}
.admin-panel {
  min-width: 0;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.5rem;
  background: white;
}
.admin-panel h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}
.admin-panel h3 {
  font-size: 0.95rem;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.panel-heading h2, .panel-heading h3 {
  margin: 0;
}
.panel-heading > span {
  color: var(--brand-muted);
  font-size: 0.75rem;
}
.analytics-chart svg {
  display: block;
  width: 100%;
  min-height: 10rem;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  color: var(--brand-muted);
  font-size: 0.75rem;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chart-legend i {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
}
.legend-visits {
  background: #d0dfce;
}
.legend-unique {
  background: var(--brand-green);
}
.admin-note {
  color: var(--brand-muted);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.7;
}
.analytics-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.admin-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.admin-page table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}
.admin-page :is(th,td) {
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid #eef0eb;
  vertical-align: top;
}
.admin-page th {
  color: var(--brand-muted);
  font-size: 0.7rem;
  font-weight: 600;
}
.admin-page td small {
  display: block;
  color: var(--brand-muted);
  font-size: 0.65rem;
  margin-top: 0.2rem;
}
.admin-page tbody tr:last-child td {
  border-bottom: 0;
}
.activity-table {
  min-width: 42rem;
}
.activity-table td {
  max-width: 15rem;
  overflow-wrap: anywhere;
}
.flow-arrow {
  display: block;
  color: var(--brand-green);
  line-height: 1.5;
}
.visitor-id {
  font-weight: 600;
}
.analytics-retention a {
  text-decoration: underline;
}
.analytics-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  font-size: 0.75rem;
  border-bottom: 1px solid #eef0eb;
  overflow-wrap: anywhere;
}
.analytics-summary-row strong {
  flex-shrink: 0;
  font-weight: 600;
}
.admin-empty {
  color: var(--brand-muted);
  padding-block: 1rem;
  font-size: 0.85rem;
}
.admin-message {
  padding: 0.9rem 1rem;
  margin-block: 1rem;
  border-radius: 0.3rem;
  color: var(--brand-muted);
  background: #edf2e9;
  font-size: 0.8rem;
}
.admin-message.is-error {
  color: #8a292c;
  background: #f9edeb;
}
.admin-message.is-success {
  color: var(--brand-green);
  background: #edf2e9;
}
.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.admin-category-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-height: 5rem;
  padding: 1rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.4rem;
  background: white;
  color: var(--brand-ink);
}
.admin-category-grid button[aria-pressed="true"] {
  border-color: var(--brand-green);
  background: #edf2e9;
}
.admin-category-grid strong {
  font-size: 0.85rem;
}
.admin-category-grid span {
  color: var(--brand-muted);
  font-size: 0.7rem;
}
.album-manager-grid {
  display: grid;
  grid-template-columns: 15rem minmax(0,1fr);
  align-items: start;
  gap: 1.25rem;
}
.album-list h2 {
  font-size: 0.85rem;
}
.album-list {
  padding: 1.15rem;
}
.album-list button {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--brand-ink);
  text-align: left;
}
.album-list button.is-selected {
  background: #edf2e9;
  border-color: #dbe5d7;
}
.album-list button strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.album-list button span {
  color: var(--brand-muted);
  font-size: 0.7rem;
}
.album-status {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  background: #f4f0e5;
  color: #7b6033;
  font-size: 0.65rem;
}
.album-status.is-published {
  background: #edf2e9;
  color: var(--brand-green);
}
.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.album-details-form {
  padding-block: 1rem 1.5rem;
  border-bottom: 1px solid var(--brand-line);
}
.upload-zone {
  text-align: center;
  padding: 2rem 1rem;
  margin-block: 1.75rem;
  border: 1px dashed #a6bda8;
  border-radius: 0.5rem;
  background: #fafcf7;
}
.upload-zone.is-dragging {
  background: #e4eddf;
  border-color: var(--brand-green);
}
.upload-zone h3 {
  margin: 0.5rem 0;
}
.upload-zone p {
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--brand-muted);
}
.upload-zone .upload-symbol {
  color: var(--brand-green);
  font-size: 2rem;
  margin: 0;
  line-height: 1;
}
.upload-zone .admin-button {
  margin-top: 0.75rem;
}
.upload-progress {
  overflow-wrap: anywhere;
}
.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0.75rem;
}
.admin-photo-grid .gallery-image {
  height: auto;
  aspect-ratio: 4/3;
}
.admin-photo-grid .gallery-image img {
  height: 100%;
}
.admin-photo-grid figure {
  margin: 0;
}
.admin-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.3rem;
}
.admin-photo-grid figcaption {
  margin-top: 0.4rem;
  color: var(--brand-muted);
  font-size: 0.65rem;
}
.admin-gallery-start {
  text-align: center;
  padding: 4rem 2rem;
}
.admin-gallery-start > span {
  color: var(--brand-green);
  font-size: 3rem;
}
.admin-gallery-start p {
  max-width: 27rem;
  margin: 1rem auto 1.5rem;
  color: var(--brand-muted);
}
.admin-text-link {
  color: var(--brand-green);
  font-size: 0.8rem;
}
.admin-dialog {
  width: min(32rem,100% - 2rem);
  padding: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: white;
  color: var(--brand-ink);
  font-family: Arial, sans-serif;
}
.admin-dialog::backdrop {
  background: #122a3dc0;
}
.admin-dialog h2 {
  margin: 0;
  font: 1.7rem Georgia, serif;
}
.admin-dialog p {
  color: var(--brand-muted);
  font-size: 0.85rem;
}
.admin-dialog label {
  margin-top: 1rem;
}
.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.admin-login-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem 1.25rem;
}
.admin-login-card {
  width: min(100%,28rem);
  padding: 2.5rem;
  border: 1px solid var(--brand-line);
  border-radius: 0.75rem;
  background: white;
  box-shadow: 0 8px 36px #192e4208;
}
.admin-login-card .admin-brand {
  padding: 0;
}
.admin-login-card h1 {
  margin: 2rem 0 0.5rem;
  font: 400 2rem Georgia, serif;
}
.admin-login-card > p {
  margin: 0 0 1.75rem;
  color: var(--brand-muted);
  font-size: 0.85rem;
}
.admin-login-card label {
  margin-bottom: 1.25rem;
}
.admin-login-card form > button {
  width: 100%;
  margin-bottom: 1.5rem;
}
@media (max-width:1100px) {
  .admin-page {
    grid-template-columns: 12rem minmax(0,1fr);
  }
  .admin-section {
    padding: 2rem;
  }
  .admin-topbar {
    padding-inline: 2rem;
  }
  .album-manager-grid {
    grid-template-columns: 12rem minmax(0,1fr);
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-form-grid > div:empty {
    display: none;
  }
  .admin-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width:767px) {
  .admin-page {
    display: block;
  }
  .admin-sidebar {
    position: static;
    height: auto;
    padding: 1.25rem;
    border-right: 0;
    border-bottom: 1px solid var(--brand-line);
  }
  .admin-brand {
    font-size: 1.45rem;
  }
  .admin-sidebar nav {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .admin-sidebar nav button {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
    gap: 0.4rem;
  }
  .admin-preview-link {
    margin-top: 0;
    padding-top: 0.6rem;
  }
  .admin-sidebar-note {
    display: none;
  }
  .admin-topbar {
    min-height: 3.75rem;
    padding: 0.75rem 1.25rem;
  }
  .admin-preview-badge {
    font-size: 0.55rem;
    letter-spacing: 0.04em;
  }
  .admin-topbar > div {
    font-size: 0.7rem;
    gap: 0.5rem;
  }
  .admin-section {
    padding: 1.75rem 1.25rem;
  }
  .admin-toolbar {
    gap: 0.75rem;
  }
  .admin-toolbar label {
    min-width: 0;
    flex: 1 1 7rem;
  }
  .admin-toolbar button {
    flex: 1 1 100%;
  }
  .analytics-kpis {
    gap: 0.75rem;
  }
  .analytics-kpis article {
    padding: 1rem;
  }
  .analytics-kpis strong {
    font-size: 2.5rem;
  }
  .analytics-kpis span {
    font-size: 0.65rem;
  }
  .analytics-two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-panel {
    padding: 1.15rem;
  }
  .analytics-chart {
    overflow-x: auto;
  }
  .analytics-chart svg {
    min-width: 28rem;
  }
  .admin-category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .album-manager-grid {
    grid-template-columns: 1fr;
  }
  .admin-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-dialog {
    padding: 1.5rem;
  }
  .admin-login-card {
    padding: 1.75rem;
  }
}
.admin-delete-photo {
  float: right;
  border: 0;
  background: none;
  color: #8a292c;
  font-size: 0.7rem;
  text-decoration: underline;
  min-height: 2rem;
  padding: 0.2rem 0.4rem;
}
.admin-button-danger {
  background: #8a292c;
  border-color: #8a292c;
}
.admin-button-danger:hover {
  background: #6d1c20;
}
.notice-editor fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.admin-page .notice-never {
  flex-direction: row;
  align-items: center;
  margin: 1rem 0;
}
.admin-page .notice-never input {
  width: 1rem;
  height: 1rem;
  padding: 0;
}
.notice-expiry-input {
  max-width: 24rem;
  margin-bottom: 1.5rem;
}
.notice-editor-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.admin-notice-list {
  display: grid;
  gap: 1rem;
}
.admin-notice-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--brand-line);
}
.admin-notice-card:last-child {
  border-bottom: 0;
}
.admin-notice-card h3 {
  margin: 0 0 0.75rem;
  overflow-wrap: anywhere;
}
.admin-notice-card > div:first-child {
  min-width: 0;
  flex: 1 1 15rem;
}
.notice-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  color: var(--brand-green);
  background: #edf2e9;
  font-size: 0.7rem;
}
.notice-status.is-expired {
  color: #805928;
  background: #fbf1dd;
}
.appearance-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.appearance-panel-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.appearance-panel-heading h2, .appearance-panel-heading h3 {
  margin: 0;
}
.appearance-schedule {
  padding-block: 1.25rem 0.5rem;
  border-top: 1px solid var(--brand-line);
}
.appearance-help {
  color: var(--brand-muted);
  font-size: 0.72rem;
  font-weight: 400;
}
.admin-page label.appearance-check {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
}
.admin-page .appearance-check input {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
}
.appearance-published {
  font-size: 0.85rem;
  margin-block: 0 1.25rem;
}
.appearance-editor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.appearance-editor button.admin-text-link {
  border: 0;
  background: transparent;
  padding: 0.6rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.appearance-preview-dialog {
  width: min(85rem,calc(100% - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 1px solid var(--brand-line);
  border-radius: 0.65rem;
  background: white;
  color: var(--brand-ink);
}
.appearance-preview-dialog::backdrop {
  background: #102c4780;
}
.appearance-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--brand-line);
  background: white;
}
.appearance-preview-toolbar h2 {
  margin: 0;
  align-self: center;
  font: 400 1.3rem Georgia,serif;
  margin-right: auto;
}
.appearance-preview-toolbar label {
  flex: 0 1 14rem;
}
.appearance-preview-site .school-site {
  min-height: 0;
}
.appearance-colours {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.appearance-colours input[type="color"] {
  min-height: 2.75rem;
  padding: 0.25rem;
  cursor: pointer;
}
.appearance-colours span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--brand-muted);
}
@media (max-width:600px) {
  .appearance-colours {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .appearance-preview-toolbar {
    align-items: stretch;
  }
  .appearance-preview-toolbar label {
    flex: 1 1 100%;
  }
}
.academic {
  --bh-bg: light-dark(#f4f7fa,#13202e);
  --bh-panel: light-dark(#ffffff,#1b2b3d);
  --bh-ink: light-dark(#17304d,#e7eef6);
  --bh-muted: light-dark(#5e7187,#aabbd0);
  --bh-line: light-dark(#e0e7ef,#35465a);
  --bh-brand: light-dark(#173d67,#b2d1f5);
  --bh-on-brand: light-dark(#ffffff,#132b46);
  --bh-soft: light-dark(#edf3fa,#223b54);
  --bh-p: light-dark(#14694b,#9be7c8);
  --bh-p-bg: light-dark(#e5f4ed,#183c32);
  --bh-a: light-dark(#a73535,#ffb4b4);
  --bh-a-bg: light-dark(#fcecec,#46292d);
  --bh-v: light-dark(#7250a3,#cfb8fb);
  --bh-v-bg: light-dark(#f0eafb,#382c4c);
  --bh-t: light-dark(#875914,#f5d08a);
  --bh-t-bg: light-dark(#fff3dd,#413520);
  font-family: system-ui,-apple-system,"Segoe UI",sans-serif;
  color: var(--bh-ink);
  font-size: 14px;
}
.academic * {
  box-sizing: border-box;
}
.academic button, .academic input, .academic select, .academic textarea {
  font: inherit;
}
.academic [hidden] {
  display: none !important;
}
.academic .bh-app {
  background: var(--bh-bg);
  border: 1px solid var(--bh-line);
  border-radius: 14px;
  overflow: hidden;
}
.academic .bh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bh-panel);
  border-bottom: 1px solid var(--bh-line);
}
.academic .bh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.academic .bh-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}
.academic .bh-brand strong {
  display: block;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 19px;
}
.academic .bh-sub {
  font-size: 12px;
  color: var(--bh-muted);
}
.academic .bh-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 12px;
  background: var(--bh-soft);
  color: var(--bh-brand);
}
.academic .bh-layout {
  display: grid;
  grid-template-columns: 174px minmax(0,1fr);
}
.academic .bh-sidebar {
  padding: 24px 14px;
  border-right: 1px solid var(--bh-line);
  background: var(--bh-panel);
}
.academic .bh-side-title {
  color: var(--bh-muted);
  font-size: 11px;
  letter-spacing: 1px;
  margin: 0 8px 12px;
  text-transform: uppercase;
}
.academic .bh-nav {
  display: grid;
  gap: 6px;
}
.academic .bh-nav button {
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--bh-muted);
  padding: 11px 10px;
}
.academic .bh-nav button[aria-current="page"] {
  color: var(--bh-brand);
  background: var(--bh-soft);
  font-weight: 500;
}
.academic .bh-person {
  margin: 28px 8px 0;
  border-top: 1px solid var(--bh-line);
  padding-top: 16px;
}
.academic .bh-person strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
}
.academic .bh-main {
  padding: 26px;
  min-width: 0;
}
.academic h1 {
  font-size: 23px;
  margin: 0 0 6px;
  font-weight: 500;
}
.academic h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
.academic p {
  margin: 0;
}
.academic .bh-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.academic .bh-panel {
  background: var(--bh-panel);
  border: 1px solid var(--bh-line);
  border-radius: 11px;
  padding: 20px;
}
.academic .bh-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.academic .bh-stat {
  background: var(--bh-panel);
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  padding: 16px;
}
.academic .bh-stat span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--bh-muted);
  font-size: 12px;
}
.academic .bh-stat strong {
  display: block;
  font-size: 29px;
  font-weight: 500;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.academic .bh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--bh-muted);
}
.academic .bh-dot[data-s="P"] {
  background: var(--bh-p);
}
.academic .bh-dot[data-s="A"] {
  background: var(--bh-a);
}
.academic .bh-dot[data-s="V"] {
  background: var(--bh-v);
}
.academic .bh-dot[data-s="T"] {
  background: var(--bh-t);
}
.academic .bh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.academic .bh-rate {
  font-size: 27px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.academic .bh-progress {
  height: 7px;
  background: var(--bh-line);
  border-radius: 6px;
  overflow: hidden;
  margin: 14px 0 10px;
}
.academic .bh-progress div {
  background: var(--bh-brand);
  height: 100%;
}
.academic .bh-calendar {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 7px;
  margin-top: 18px;
}
.academic .bh-weekday {
  text-align: center;
  color: var(--bh-muted);
  font-size: 12px;
  padding: 5px 0;
}
.academic .bh-day {
  min-height: 59px;
  padding: 9px;
  border: 1px solid var(--bh-line);
  border-radius: 7px;
  background: var(--bh-bg);
  color: var(--bh-muted);
}
.academic .bh-day b {
  font-weight: 500;
  display: block;
  font-variant-numeric: tabular-nums;
}
.academic .bh-day small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.academic .bh-day[data-s="P"] {
  background: var(--bh-p-bg);
  color: var(--bh-p);
  border-color: transparent;
}
.academic .bh-day[data-s="A"] {
  background: var(--bh-a-bg);
  color: var(--bh-a);
  border-color: transparent;
}
.academic .bh-day[data-s="V"] {
  background: var(--bh-v-bg);
  color: var(--bh-v);
  border-color: transparent;
}
.academic .bh-day[data-s="T"] {
  background: var(--bh-t-bg);
  color: var(--bh-t);
  border-color: transparent;
}
.academic .bh-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  color: var(--bh-muted);
  font-size: 12px;
  margin-top: 18px;
}
.academic .bh-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.academic .bh-message {
  padding: 12px 15px;
  border-radius: 8px;
  background: var(--bh-soft);
  color: var(--bh-brand);
  margin-bottom: 18px;
  font-size: 13px;
}
.academic .bh-message[data-kind="error"] {
  background: var(--bh-a-bg);
  color: var(--bh-a);
}
.academic .bh-message[data-kind="success"] {
  background: var(--bh-p-bg);
  color: var(--bh-p);
}
.academic .bh-button {
  border: 1px solid var(--bh-line);
  background: var(--bh-panel);
  color: var(--bh-ink);
  border-radius: 7px;
  padding: 10px 14px;
}
.academic .bh-button.bh-primary {
  background: var(--bh-brand);
  border-color: var(--bh-brand);
  color: var(--bh-on-brand);
}
.academic button:disabled {
  opacity: .55;
  cursor: default;
}
.academic label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  min-width: 0;
}
.academic input, .academic select, .academic textarea {
  width: 100%;
  min-width: 0;
  background: var(--bh-panel);
  color: var(--bh-ink);
  border: 1px solid var(--bh-line);
  border-radius: 6px;
  padding: 10px 11px;
}
.academic .bh-form {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 17px;
  margin-top: 20px;
}
.academic .bh-form .bh-full {
  grid-column: 1/-1;
}
.academic .bh-field-note {
  font-size: 11px;
  color: var(--bh-muted);
}
.academic .bh-roster {
  margin-top: 18px;
}
.academic .bh-roster-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--bh-line);
}
.academic .bh-student-name strong {
  font-weight: 500;
  display: block;
}
.academic .bh-student-name small {
  display: block;
  color: var(--bh-muted);
  font-size: 12px;
  margin-top: 4px;
}
.academic .bh-statuses {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 5px;
}
.academic .bh-statuses button {
  padding: 9px 11px;
  border: 1px solid var(--bh-line);
  border-radius: 6px;
  color: var(--bh-muted);
  background: var(--bh-panel);
  font-size: 12px;
}
.academic .bh-statuses button[aria-pressed="true"][data-s="P"] {
  background: var(--bh-p-bg);
  color: var(--bh-p);
  border-color: var(--bh-p);
}
.academic .bh-statuses button[aria-pressed="true"][data-s="A"] {
  background: var(--bh-a-bg);
  color: var(--bh-a);
  border-color: var(--bh-a);
}
.academic .bh-statuses button[aria-pressed="true"][data-s="V"] {
  background: var(--bh-v-bg);
  color: var(--bh-v);
  border-color: var(--bh-v);
}
.academic .bh-statuses button[aria-pressed="true"][data-s="T"] {
  background: var(--bh-t-bg);
  color: var(--bh-t);
  border-color: var(--bh-t);
}
.academic .bh-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--bh-line);
  color: var(--bh-muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.academic a {
  color: var(--bh-brand);
}
.academic .bh-save-state {
  display: block;
  margin-top: 8px;
  color: var(--bh-muted);
  font-size: 12px;
}
.academic .bh-save-state[data-kind="saved"] {
  color: var(--bh-p);
}
.academic .bh-save-state[data-kind="failed"] {
  color: var(--bh-a);
}
.academic .bh-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.academic .bh-form-heading {
  grid-column: 1/-1;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--bh-line);
}
.academic .bh-choice {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.academic .bh-choice button[aria-pressed="true"] {
  background: var(--bh-brand);
  color: var(--bh-on-brand);
}
.academic .bh-main.bh-login-main {
  padding: 28px 18px;
}
.academic .bh-address {
  overflow-wrap: anywhere;
}
.academic .bh-progress-detail {
  margin: 12px 0;
}
.academic .bh-password {
  font-family: ui-monospace,monospace;
  overflow-wrap: anywhere;
  display: block;
  margin: 12px 0;
  font-size: 17px;
}
.academic .bh-signin {
  max-width: 430px;
  margin: 8px auto 26px;
}
.academic .bh-signin .bh-form {
  grid-template-columns: 1fr;
}
.academic .bh-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.academic .bh-history-item {
  border-left: 3px solid var(--bh-line);
  padding-left: 12px;
}
.academic .bh-history-item small {
  display: block;
  color: var(--bh-muted);
  margin-top: 4px;
}
@media (max-width:800px) {
  .academic .bh-layout {
    grid-template-columns: 1fr;
  }
  .academic .bh-sidebar {
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--bh-line);
  }
  .academic .bh-nav {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  }
  .academic .bh-person,.academic .bh-side-title {
    display: none;
  }
  .academic .bh-main {
    padding: 20px;
  }
}
@media (pointer:coarse) {
  .academic button {
    min-height: 44px;
  }
}
.academic-portal {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
}
.academic-admin {
  padding-bottom: 24px;
}
.academic .bh-choice {
  margin-top: 20px;
}
.academic .bh-login-main {
  padding: 28px 18px;
}
.academic-logo-fallback {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  color: var(--bh-brand);
  background: var(--bh-soft);
  font-weight: 600;
}
.academic-language {
  display: flex;
  gap: 2px;
  align-items: center;
}
.academic-language button {
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--bh-muted);
}
.academic-language button[aria-pressed="true"] {
  background: var(--bh-soft);
  color: var(--bh-brand);
}
.academic .bh-title .bh-pill {
  font-variant-numeric: tabular-nums;
}
.academic .bh-roster-row > div:last-child {
  min-width: 0;
}
.academic .bh-save-state .bh-button {
  margin-left: 8px;
  padding: 4px 9px;
}
.academic .bh-field-note {
  overflow-wrap: anywhere;
}
.academic .academic-block {
  display: block;
  margin-top: 4px;
}
.academic .academic-account-list {
  margin-top: 22px;
}
.academic .academic-table {
  margin-top: 16px;
  overflow: auto;
}
.academic table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.academic th,.academic td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--bh-line);
  overflow-wrap: anywhere;
}
.academic th {
  font-weight: 500;
  color: var(--bh-muted);
}
.academic .bh-progress-detail {
  margin-top: 16px;
}
.academic-idle::backdrop,.academic-credential-dialog::backdrop {
  background: #102c4780;
}
.academic .sd-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.academic .sd-header {
  flex-wrap: wrap;
}
.academic .sd-header .bh-actions {
  justify-content: flex-end;
}
.academic .sd-layout {
  grid-template-columns: 190px minmax(0,1fr);
}
.academic .sd-sidebar .bh-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
}
.academic .sd-eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--bh-muted);
  margin-bottom: 8px;
}
.academic .sd-welcome {
  margin-bottom: 24px;
}
.academic .sd-student-line {
  margin: 6px 0 4px;
}
.academic .sd-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.academic .sd-stat {
  min-width: 0;
  text-align: left;
  background: var(--bh-panel);
  border: 1px solid var(--bh-line);
  border-radius: 12px;
  padding: 19px;
  color: var(--bh-ink);
}
.academic .sd-stat>span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--bh-muted);
  font-size: 12px;
}
.academic .sd-stat strong {
  display: block;
  font-size: 30px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  margin: 13px 0 6px;
}
.academic .sd-stat small {
  display: block;
  font-size: 12px;
  color: var(--bh-muted);
  margin-top: 3px;
}
.academic .sd-progress {
  height: 5px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--bh-line);
  margin-top: 13px;
}
.academic .sd-progress div {
  height: 100%;
  background: var(--bh-brand);
}
.sd-text-button {
  border: 0;
  background: transparent;
  color: light-dark(#173d67,#b2d1f5);
  font: inherit;
  font-size: 12px;
  padding: 5px 0;
}
.academic .sd-empty {
  color: var(--bh-muted);
  padding: 16px 0;
  font-size: 13px;
}
.academic .sd-full-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
}
.sd-tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  background: light-dark(#edf3fa,#223b54);
  color: light-dark(#173d67,#b2d1f5);
}
.sd-important-tag {
  background: light-dark(#fcecec,#46292d);
  color: light-dark(#a73535,#ffb4b4);
}
.academic .sd-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--bh-line);
  padding: 16px 0;
  background: transparent;
  color: var(--bh-ink);
}
.academic .sd-message:last-child {
  border-bottom: 0;
}
.academic .sd-message-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--bh-soft);
  color: var(--bh-brand);
}
.academic .sd-message-icon[data-important="true"] {
  background: var(--bh-a-bg);
  color: var(--bh-a);
}
.academic .sd-message-body {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.academic .sd-message-body strong {
  display: block;
  font-weight: 500;
  margin: 0 0 7px;
}
.academic .sd-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--bh-muted);
  font-size: 11px;
}
.academic .sd-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bh-brand);
  margin-top: 7px;
  flex-shrink: 0;
}
.academic .sd-count {
  margin-top: 15px;
}
.academic .sd-important-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 24px;
  background: var(--bh-a-bg);
  color: var(--bh-a);
  border-block: 1px solid var(--bh-a);
  @supports (color: color-mix(in lab, red, red)) {
    border-block: 1px solid color-mix(in srgb,var(--bh-a) 14%,transparent);
  }
}
.academic .sd-important-strip>strong {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
}
.academic .sd-ticker-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.academic .sd-ticker-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: sd-announcement 22s linear infinite;
}
.academic .sd-ticker-track button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 2px 0;
  white-space: nowrap;
}
.academic .sd-pause {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 5px 0;
  font-size: 12px;
}
.academic .sd-important-strip[data-paused="true"] .sd-ticker-track {
  animation: none;
  transform: none;
  width: auto;
  flex-wrap: wrap;
}
.academic .sd-important-strip[data-paused="true"] .sd-ticker-track button {
  white-space: normal;
  text-align: left;
}
@keyframes sd-announcement {
  0%,12% {
    transform: translateX(5px);
  }
  85%,100% {
    transform: translateX(-40%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .academic .sd-ticker-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }
  .academic .sd-ticker-track button {
    white-space: normal;
    text-align: left;
  }
}
.student-notification-dialog {
  color: light-dark(#17304d,#e7eef6);
  background: light-dark(#fff,#1b2b3d);
  border: 1px solid light-dark(#e0e7ef,#35465a);
  border-radius: 15px;
  width: min(540px,calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  position: fixed;
  inset: 0;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 22px 75px #102c472a;
}
.student-notification-dialog::backdrop {
  background: #102c4777;
}
.sd-dialog-layout {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 34px);
}
.sd-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 16px;
  flex-shrink: 0;
}
.sd-dialog-header h2 {
  margin: 9px 0 0;
  font-size: 23px;
  font-weight: 500;
}
.sd-close {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px !important;
}
.sd-dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 0 24px 12px;
}
.sd-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 24px 22px;
  flex-shrink: 0;
  border-top: 1px solid light-dark(#e0e7ef,#35465a);
}
.academic .sd-detail-text,.sd-detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 18px 0;
  font-size: 14px;
}
.notification-stage-note {
  margin: 0 0 20px;
}
.notification-editor {
  margin-bottom: 22px;
}
.notification-editor fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.notification-student-picker {
  margin: 20px 0;
}
.notification-recipient-list {
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid light-dark(#e0e7ef,#35465a);
  border-radius: 8px;
}
.notification-recipient-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid light-dark(#e0e7ef,#35465a);
}
.notification-recipient-list input {
  width: auto;
  flex-shrink: 0;
}
.notification-recipient-list small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.notification-confirm-dialog .sd-dialog-header h2 {
  margin: 0;
  font-size: 21px;
}
@media (max-width:850px) {
  .academic .sd-layout {
    grid-template-columns: 1fr;
  }
  .academic .sd-sidebar {
    padding: 12px 16px;
  }
  .academic .sd-sidebar .bh-nav {
    display: flex;
    flex-wrap: wrap;
  }
  .academic .sd-sidebar .bh-nav button {
    padding: 10px;
    font-size: 12px;
  }
  .academic .sd-header .bh-actions {
    justify-content: flex-start;
  }
}
@media (max-width:580px) {
  .academic .sd-header {
    padding: 16px;
    gap: 14px;
  }
  .academic .sd-header .bh-actions {
    gap: 8px;
  }
  .academic .sd-header .bh-button {
    font-size: 12px;
  }
  .academic .sd-important-strip {
    padding: 10px 16px;
    gap: 10px;
    font-size: 12px;
  }
  .academic .sd-important-strip>strong .sd-icon {
    display: none;
  }
  .academic .sd-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .academic .sd-stats .sd-stat:first-child:nth-last-child(3) {
    grid-column: 1/-1;
  }
  .academic .sd-stat {
    padding: 16px;
  }
  .academic .sd-main {
    padding: 18px;
  }
  .sd-dialog-header {
    padding: 18px 18px 14px;
  }
  .sd-dialog-body {
    padding: 0 18px 12px;
  }
  .sd-dialog-footer {
    padding: 14px 18px 18px;
  }
  .sd-dialog-footer .bh-button {
    flex: 1;
  }
  .academic .sd-message-meta {
    gap: 6px;
  }
}
.academic-credential-dialog {
  max-width: 600px;
}
.academic-credential-dialog .bh-password {
  display: block;
  font-family: ui-monospace,monospace;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
@media (max-width:500px) {
  .academic-portal {
    padding: 14px 8px;
  }
  .academic .bh-header {
    padding: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .academic .bh-header .bh-actions {
    width: 100%;
  }
  .academic .bh-main {
    padding: 15px;
  }
  .academic .bh-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .academic .bh-panel {
    padding: 14px;
  }
  .academic .bh-calendar {
    gap: 4px;
  }
  .academic .bh-day {
    min-height: 46px;
    padding: 6px 4px;
  }
  .academic .bh-roster-row {
    display: grid;
    gap: 10px;
  }
  .academic .bh-statuses button {
    padding: 11px 4px;
  }
  .academic .bh-form {
    grid-template-columns: 1fr;
  }
  .academic input,.academic select,.academic textarea {
    font-size: 16px;
  }
  .academic .bh-title {
    gap: 10px;
  }
  .academic .bh-footer {
    padding: 14px;
  }
  .academic .bh-rate {
    font-size: 23px;
  }
}
.academic-print-sheet {
  display: none;
}
.academic .academic-home-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.academic .shared-login-roles {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.academic .shared-login-roles button {
  min-width: 0;
}
@media print {
  body:has(> .academic-print-sheet) {
    margin: 0;
    background: white;
  }
  body:has(> .academic-print-sheet) > :not(.academic-print-sheet),
  body:has(> .academic-print-sheet) dialog,
  body:has(> .academic-print-sheet) dialog::backdrop {
    display: none !important;
  }
  .academic-print-sheet {
    display: block;
    padding: 20px;
    color: #111;
    font: 12pt/1.5 Arial,sans-serif;
  }
  .academic-print-sheet h1 {
    font-size: 22pt;
    margin: 0 0 12px;
  }
  .academic-print-sheet h2 {
    font-size: 16pt;
    margin: 0 0 24px;
  }
  .academic-print-sheet p {
    margin: 12px 0;
    overflow-wrap: anywhere;
  }
  .academic-print-sheet .bh-password {
    display: block;
    font: 14pt/1.5 ui-monospace,monospace;
    padding: 8px 0;
    overflow-wrap: anywhere;
  }
}
.student-fieldset {
  border: 0;
  margin: 18px 0;
  padding: 0;
  min-width: 0;
}
.student-fieldset:disabled {
  opacity: .85;
}
.student-record-details {
  margin: 20px 0;
}
.student-record-details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}
.student-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.student-bulk {
  margin: 20px 0;
  gap: 16px;
  align-items: center;
}
.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 340px;
}
.student-state {
  display: inline-block;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: .82rem;
  background: #e4eaf1;
  color: #203047;
}
.student-state[data-state=active] {
  background: #d9f1e2;
  color: #15502e;
}
.student-state[data-state=frozen] {
  background: #fff0cc;
  color: #704d03;
}
.student-state[data-state=transferred] {
  background: #eee;
  color: #555;
}
.student-profile-dialog {
  width: min(900px,94vw);
  max-height: 90vh;
  overflow: auto;
}
.student-profile-dialog .bh-form {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.student-profile-dialog .bh-full {
  grid-column: 1/-1;
}
.student-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.student-check input {
  width: auto !important;
}
.student-credential {
  padding: 14px 0;
  border-bottom: 1px solid #dde3eb;
}
.student-profile-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.student-profile-grid dt {
  color: #657184;
  font-size: .85rem;
}
.student-profile-grid dd {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.student-restricted {
  margin-bottom: 20px;
}
.student-tab {
  margin-top: 10px;
}
@media (max-width:750px) {
  .student-filters {
    grid-template-columns: 1fr 1fr;
  }
  .student-profile-dialog .bh-form,.student-profile-grid {
    grid-template-columns: 1fr;
  }
  .student-bulk {
    align-items: flex-start;
    flex-direction: column;
  }
  .student-actions {
    min-width: 180px;
  }
}
@media print {
  .academic-print-sheet>div {
    break-inside: avoid;
  }
}
.academic-admin {
  padding: 32px clamp(20px,3vw,40px) 40px;
  max-width: 1480px;
  margin-inline: auto;
}
.academic-admin .student-list-title {
  margin-bottom: 28px;
  align-items: center;
  gap: 20px;
}
.academic-admin .student-list-title h1 {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -.5px;
}
.academic-admin .student-list-title .bh-sub {
  max-width: 540px;
  line-height: 1.65;
}
.academic-admin .student-list-title > button {
  flex: none;
  padding: 12px 18px;
  min-height: 46px;
  font-weight: 600;
  white-space: nowrap;
}
.academic-admin .academic-account-list {
  margin-top: 0;
  padding: 24px;
  box-shadow: 0 2px 12px #18304404;
}
.academic-admin .academic-account-list h2 {
  font-size: 17px;
  font-weight: 650;
}
.academic-admin .student-filters {
  gap: 16px;
  margin: 22px 0;
}
.academic-admin .student-filters label {
  font-weight: 550;
  line-height: 1.5;
}
.academic-admin .student-bulk {
  padding: 16px 0;
  margin: 0;
}
.academic-admin .student-bulk > span {
  font-size: 12px;
  color: var(--bh-muted);
}
.academic-admin .student-actions {
  gap: 6px;
}
.academic-admin .student-actions .bh-button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.academic-admin .academic-table {
  margin-top: 12px;
}
.academic-admin th {
  background: #f7f9fb;
  font-size: 11px;
  font-weight: 650;
  padding: 13px 12px;
}
.academic-admin td {
  padding: 16px 12px;
  vertical-align: middle;
}
.academic-admin tbody tr:hover {
  background: #f9fbfd;
}
.student-list-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  font-weight: 550;
}
.student-photo {
  width: 104px;
  height: 124px;
  flex: none;
  overflow: hidden;
  border: 1px solid #dce4eb;
  border-radius: 12px;
  background: #edf2f5;
}
.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.student-photo svg {
  width: 100%;
  height: 100%;
  fill: #9aafbb;
  padding: 12px;
}
.student-list-person .student-photo {
  width: 40px;
  height: 48px;
  border-radius: 8px;
}
.student-list-person .student-photo svg {
  padding: 5px;
}
.student-profile-photo {
  margin-bottom: 24px;
}
dialog.student-profile-dialog:modal {
  width: min(920px,calc(100vw - 48px));
  max-height: min(900px,calc(100dvh - 48px));
  padding: 0;
  border: 1px solid #e3e9ef;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px #102c4733;
  display: flex;
  flex-direction: column;
}
.student-profile-dialog::backdrop {
  background: #10233799;
}
.student-profile-dialog .dialog-heading {
  position: static;
  top: auto;
  padding: 24px 28px;
  border-bottom: 1px solid #e4eaf0;
  background: #fff;
  gap: 20px;
  flex: none;
  align-items: center;
}
.student-profile-dialog .dialog-heading > div {
  min-width: 0;
}
.student-profile-dialog .dialog-heading h2 {
  margin: 0;
  color: #192e42;
  font: 650 22px/1.3 Arial,sans-serif;
  letter-spacing: -.3px;
}
.student-profile-dialog .student-dialog-subtitle {
  margin: 7px 0 0;
  color: #697787;
  font-size: 13px;
  line-height: 1.5;
}
.student-profile-dialog .dialog-close {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font: 400 23px Arial,sans-serif;
  background: #f6f8fa;
  border: 1px solid #e5eaf0;
}
.student-profile-dialog .dialog-close:hover {
  background: #eaf0f5;
}
.student-dialog-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.student-dialog-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 28px;
  flex: 1;
  scrollbar-gutter: stable;
}
.student-profile-dialog .student-fieldset {
  margin: 0;
  padding: 0;
}
.student-profile-dialog .student-form-intro {
  margin-bottom: 18px;
}
.student-profile-dialog .required-fields-note {
  margin: 0;
  font-size: 12px;
}
.student-photo-field {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid #e3eaf0;
  border-radius: 12px;
  background: #f8fafc;
}
.student-photo-field > div:last-child {
  min-width: 0;
  flex: 1;
}
.student-photo-field h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 650;
  color: #233d53;
}
.student-profile-dialog .student-photo-upload {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d7e1e9;
  border-radius: 8px;
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: #214c6e;
  cursor: pointer;
}
.student-photo-upload:hover {
  background: #edf4fa;
}
.student-photo-field:focus-within .student-photo-upload {
  outline: 2px solid #477c9f;
  outline-offset: 3px;
}
.student-photo-field .bh-field-note {
  margin: 0;
  display: block;
  line-height: 1.55;
  font-size: 11px;
}
.student-photo-field .student-photo-filename {
  margin: 7px 0 0;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: #586d7d;
}
.student-form-section + .student-form-section {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #e8edf2;
}
.student-form-section h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: #243e55;
}
.student-profile-dialog .bh-form {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: 24px;
  row-gap: 20px;
  align-items: start;
}
.student-profile-dialog .student-identifiers .bh-form {
  grid-template-columns: repeat(3,minmax(0,1fr));
}
.student-profile-dialog label {
  margin: 0;
  color: #344a5d;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  display: block;
}
.student-profile-dialog input,.student-profile-dialog select,.student-profile-dialog textarea {
  min-height: 44px;
  margin-top: 8px;
  width: 100%;
  font: 400 14px/1.4 Arial,sans-serif;
  border: 1px solid #d5dfe8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 1px 2px #102c4703;
  transition: border-color .15s,box-shadow .15s;
}
.student-profile-dialog input:focus,.student-profile-dialog select:focus,.student-profile-dialog textarea:focus {
  outline: 0;
  border-color: #668eac;
  box-shadow: 0 0 0 3px #537da914;
}
.student-profile-dialog .bh-field-note {
  display: block;
  margin-top: 7px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.5;
}
.student-profile-dialog .student-check input {
  min-height: 0;
  margin: 0;
}
.student-profile-dialog .student-change-reason {
  margin-top: 26px;
}
.student-profile-dialog .student-change-reason textarea {
  min-height: 88px;
  resize: vertical;
}
.student-account-history {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e8edf2;
}
.student-account-history summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #4e6578;
}
.student-profile-dialog .student-account-history p {
  margin: 16px 0 0;
  line-height: 1.6;
}
.student-profile-dialog .admin-dialog-actions {
  position: static;
  bottom: auto;
  margin: 0;
  padding: 18px 28px;
  border-top: 1px solid #e3eaf0;
  background: #f8fafc;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}
.student-profile-dialog .bh-button {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s,box-shadow .15s;
}
.student-profile-dialog .bh-primary {
  background: #193e60;
  border-color: #193e60;
  color: white;
  box-shadow: 0 2px 4px #16365016;
}
.student-profile-dialog .bh-primary:hover {
  background: #13324e;
}
@media (max-width:750px) {
  .academic-admin {
    padding: 24px 20px 32px;
  }
  .academic-admin .academic-account-list {
    padding: 20px;
  }
  .student-profile-dialog .bh-form,.student-profile-dialog .student-identifiers .bh-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width:600px) {
  .academic-admin {
    padding: 24px 16px 32px;
  }
  .academic-admin .student-list-title {
    align-items: flex-start;
    gap: 16px;
  }
  .academic-admin .student-list-title > button {
    width: 100%;
  }
  .academic-admin .student-filters {
    grid-template-columns: 1fr;
  }
  .academic-admin .academic-account-list {
    padding: 16px;
  }
  dialog.student-profile-dialog:modal {
    width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    border-radius: 14px;
  }
  .student-profile-dialog .dialog-heading {
    padding: 20px 22px;
    gap: 14px;
  }
  .student-profile-dialog .dialog-heading h2 {
    font-size: 20px;
  }
  .student-profile-dialog .student-dialog-subtitle {
    font-size: 12px;
  }
  .student-dialog-body {
    padding: 20px 22px 24px;
    scrollbar-gutter: auto;
  }
  .student-photo-field {
    gap: 16px;
    padding: 16px;
  }
  .student-photo-field .student-photo {
    width: 76px;
    height: 92px;
  }
  .student-profile-dialog .admin-dialog-actions {
    padding: 16px 22px;
    gap: 10px;
  }
  .student-profile-dialog .admin-dialog-actions .bh-button {
    flex: 1;
    padding-inline: 12px;
  }
  .student-profile-dialog input,.student-profile-dialog select,.student-profile-dialog textarea {
    font-size: 16px;
  }
  .student-form-section + .student-form-section {
    margin-top: 24px;
    padding-top: 22px;
  }
}
.push-setup {
  width: min(560px,calc(100% - 32px));
  margin: 48px auto;
  padding: 32px;
  min-width: 0;
  text-align: center;
}
.push-setup h1 {
  font-size: clamp(1.4rem,4vw,1.9rem);
  line-height: 1.25;
  margin: 18px 0;
}
.push-setup p {
  line-height: 1.65;
  margin: 16px 0;
}
.push-setup-icon {
  display: inline-grid;
  place-items: center;
  background: #e8f2ec;
  color: #245747;
  width: 64px;
  height: 64px;
  border-radius: 20px;
}
.push-setup-icon svg {
  width: 32px;
  height: 32px;
}
.push-setup .bh-button {
  margin-top: 16px;
  white-space: normal;
  min-height: 46px;
}
@media (max-width:600px) {
  .push-setup {
    margin: 24px auto;
    padding: 24px;
  }
}
.fee-title {
  align-items: center;
  gap: 20px;
}
.fee-toolbar,.fee-session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.fee-toolbar {
  padding-bottom: 24px;
}
.academic .fee-toolbar label {
  display: grid;
  gap: 8px;
  min-width: 260px;
  font-size: 13px;
  font-weight: 600;
}
.fee-session-summary {
  border-top: 1px solid #e4eaf0;
  padding: 22px 0 12px;
}
.fee-session-summary p {
  margin: 6px 0 0;
  max-width: 680px;
  line-height: 1.65;
}
.academic .fee-admin-table table {
  min-width: 1000px;
}
.academic .fee-admin-table th,.academic .fee-admin-table td {
  padding: 16px 14px;
  vertical-align: middle;
  text-align: left;
}
.fee-admin-table thead th {
  font-size: 12px;
  background: #f3f6f9;
  color: #526477;
}
.fee-admin-table th:nth-child(2) {
  min-width: 115px;
}
.fee-admin-table td small {
  display: block;
  margin-top: 5px;
  color: #607080;
  font-size: 11px;
  line-height: 1.5;
}
.fee-unset {
  color: #91a0ac;
}
.fee-table-help {
  font-size: 12px;
  line-height: 1.7;
  color: #677788;
  margin: 18px 0 0;
}
.fee-empty {
  padding: 32px 0;
  color: #657384;
}
.fee-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0;
  border: 1px solid #e2e8ef;
  border-radius: 18px;
  width: min(780px,calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  background: #fff;
  color: #193047;
  box-shadow: 0 24px 80px #102c4733;
}
.fee-dialog[open] {
  display: flex;
  flex-direction: column;
}
.fee-dialog::backdrop {
  background: #10233799;
}
.fee-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid #e4eaf0;
  flex: none;
}
.fee-dialog-header h2 {
  font: 650 23px/1.3 Arial,sans-serif;
  letter-spacing: -.3px;
  margin: 0;
}
.fee-dialog-header p {
  color: #687888;
  font-size: 13px;
  margin: 8px 0 0;
}
.fee-close {
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid #e4eaf0;
  background: #f4f7fa;
  border-radius: 10px;
  font-size: 24px;
  cursor: pointer;
}
.fee-dialog-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.fee-dialog-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px 28px;
  min-height: 0;
}
.fee-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid #e4eaf0;
  flex: none;
  background: #fafcfd;
}
.fee-dialog-footer>span {
  margin-right: auto;
  color: #687888;
  font-size: 12px;
  max-width: 190px;
  line-height: 1.5;
}
.fee-fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.fee-dialog label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.fee-dialog input,.fee-dialog select,.fee-dialog textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4dee7;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  color: #193047;
  font: 400 14px/1.5 Arial,sans-serif;
  margin-top: 8px;
}
.fee-dialog :is(input,select,textarea):focus-visible {
  outline: 3px solid #397b602b;
  border-color: #397b60;
}
.fee-intro {
  font-size: 13px;
  color: #667788;
  margin: 0 0 22px;
  line-height: 1.7;
}
.fee-category {
  padding: 20px 0;
  border-top: 1px solid #e7ecf1;
}
.fee-category-heading {
  margin-bottom: 14px;
}
.fee-category-heading h3 {
  margin: 0;
  font: 600 15px Arial,sans-serif;
}
.fee-category-heading small {
  display: block;
  margin-top: 6px;
  color: #677788;
  font-size: 12px;
}
.fee-category-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fee-bilingual {
  margin-top: 20px !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fee-bilingual .bh-full {
  grid-column: 1/-1;
}
.fee-required {
  color: #c22635;
}
.fee-label {
  font-size: 13px;
  font-weight: 600;
}
.fee-dialog .bh-message {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #fff1f1;
  color: #962432;
}
.fee-dialog .translation-help {
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  margin-top: 6px;
  color: #687888;
}
.fee-dialog .translation-retry {
  font-size: 11px;
  padding: 4px 0;
  color: #245747;
  background: none;
  border: 0;
  cursor: pointer;
}
.fee-dialog .bh-button {
  padding: 10px 16px;
  border: 1px solid #d4dee7;
  border-radius: 8px;
  background: #fff;
  color: #193047;
  font-size: 13px;
  cursor: pointer;
}
.fee-dialog .bh-primary {
  background: #245747;
  color: #fff;
  border-color: #245747;
}
.fee-dialog button:disabled {
  opacity: .5;
  cursor: wait;
}
.fee-dialog .bh-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fee-dialog .bh-full {
  grid-column: 1/-1;
}
@media (max-width:650px) {
  .fee-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .fee-title>.bh-button {
    align-self: flex-start;
  }
  .fee-toolbar label {
    min-width: 0 !important;
    width: 100%;
  }
  .fee-toolbar>.bh-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .fee-session-summary {
    align-items: flex-start;
  }
  .fee-dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .fee-dialog-header {
    padding: 20px;
  }
  .fee-dialog-body {
    padding: 20px;
  }
  .fee-dialog-footer {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  .fee-dialog-footer>span {
    flex-basis: 100%;
    max-width: none;
  }
  .fee-category-inputs,.fee-dialog .bh-form,.fee-bilingual {
    grid-template-columns: 1fr;
  }
  .fee-dialog-header h2 {
    font-size: 20px;
  }
}
.teacher-time-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 18px;
  align-items: end;
}
.teacher-time-filters label {
  min-width: 0;
}
.teacher-time-filters select,.teacher-time-filters input {
  width: 100%;
}
.teacher-time-table table {
  min-width: 680px;
  width: 100%;
}
.teacher-time-table td {
  font-variant-numeric: tabular-nums;
}
.teacher-time-table small,.teacher-holiday-list small {
  display: block;
  margin-top: 5px;
  color: var(--bh-muted);
  font-size: 12px;
}
.teacher-time-status {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 10px;
  background: #eef1f5;
  color: #4c5c6b;
  font-size: 12px;
  white-space: nowrap;
}
.teacher-time-status[data-state=present] {
  background: #e3f3e9;
  color: #1e603b;
}
.teacher-time-status[data-state=absent] {
  background: #fce9e9;
  color: #a12b31;
}
.teacher-time-status[data-state=incomplete] {
  background: #fff2d1;
  color: #805d13;
}
.teacher-time-status[data-state=upcoming] {
  background: #e9f1fb;
  color: #315f93;
}
.academic .teacher-time-totals {
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 20px 0;
}
.academic .teacher-time-totals strong {
  font-size: 28px;
}
.teacher-time-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--bh-muted);
  margin: 18px 0 0;
}
.teacher-time-empty {
  padding: 24px 0;
}
.teacher-time-pagination {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--bh-line);
}
.teacher-time-incomplete {
  margin: 16px 0;
}
.teacher-holiday-list>div {
  padding: 14px 0;
  border-bottom: 1px solid #e5ebef;
}
.teacher-push-setup {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.teacher-push-setup p {
  margin-top: 6px;
}
.teacher-push-setup button {
  flex: none;
}
.teacher-holiday-dialog small {
  font-size: 12px;
  color: #617283;
}
@media (max-width:600px) {
  .teacher-time-filters {
    grid-template-columns: 1fr;
  }
  .teacher-time-admin .bh-title>.bh-actions {
    flex-wrap: wrap;
  }
  .academic .teacher-time-totals {
    gap: 8px;
  }
  .academic .teacher-time-totals .bh-stat {
    padding: 12px;
  }
  .academic .teacher-time-totals strong {
    font-size: 20px;
  }
  .teacher-push-setup {
    align-items: flex-start;
    flex-direction: column;
  }
  .teacher-push-setup button {
    width: 100%;
  }
}
.student-family-summary {
  display: grid;
  gap: 5px;
  margin-top: 6px;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.45;
  min-width: 190px;
  white-space: normal;
}
.student-family-summary>span {
  display: block;
}
.student-family-summary b {
  font-weight: 550;
}
.student-family-phone {
  white-space: nowrap;
}
.student-search-address {
  min-width: 150px;
  max-width: 270px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  font-size: .85rem;
  line-height: 1.5;
}
.teacher-account-filters {
  display: grid;
  grid-template-columns: minmax(200px,2fr) minmax(170px,1fr);
  gap: 16px;
  margin: 20px 0;
}
.teacher-accounts .student-actions {
  max-width: 420px;
}
.teacher-accounts .teacher-delete,.teacher-action-dialog .teacher-delete {
  color: #a82d35;
  border-color: #dcb7bc;
  background: #fff7f7;
}
.teacher-status-reason {
  margin-top: 10px;
  font-size: 12px;
  max-width: 260px;
  overflow-wrap: anywhere;
}
.teacher-status-reason summary {
  cursor: pointer;
  color: #566a7d;
}
.teacher-status-reason p {
  white-space: pre-wrap;
  margin: 8px 0;
}
.student-state[data-state=disabled] {
  background: #fff0cc;
  color: #704d03;
}
.student-state[data-state=deleted] {
  background: #eee;
  color: #555;
}
.teacher-action-dialog:modal,.password-change-dialog:modal {
  width: min(560px,calc(100vw - 32px));
}
.password-change-notice {
  margin: 16px 24px;
}
@media (max-width:600px) {
  .teacher-account-filters {
    grid-template-columns: 1fr;
  }
  .teacher-accounts .student-actions {
    min-width: 200px;
  }
}
.academic-admin .teacher-accounts {
  margin-top: 24px;
}
.password-control {
  position: relative;
  display: block;
  width: 100%;
}
.password-control input {
  padding-right: 50px !important;
}
.password-eye {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #57715d;
  display: grid;
  place-items: center;
  padding: 9px;
  cursor: pointer;
}
.password-eye:hover {
  background: #eef3eb;
}
.password-eye svg {
  width: 20px;
  height: 20px;
}
.password-eye:focus-visible {
  outline: 2px solid #779e7f;
  outline-offset: 2px;
}
.student-profile-dialog .password-control .password-eye {
  top: calc(50% + 4px);
}
.grouped-admin.admin-page {
  grid-template-columns: 218px minmax(0,1fr);
}
.grouped-admin .admin-sidebar {
  padding: 26px 16px;
}
.grouped-admin .admin-brand {
  font-size: 27px;
}
.grouped-admin .admin-sidebar nav {
  margin-top: 28px;
  gap: 6px;
}
.grouped-admin .admin-sidebar nav button {
  min-height: 44px;
  padding: 12px;
  font-size: 13px;
  gap: 11px;
}
.grouped-admin .admin-sidebar .admin-nav-icon {
  width: 20px;
  font-size: 20px;
  text-align: center;
}
.admin-section-tabs {
  padding: 26px 32px 0;
}
.admin-section-tabs h1 {
  margin: 0 0 20px;
  font: 650 27px Arial,sans-serif;
}
.admin-section-tabs nav {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid #dce4d9;
  overflow-x: auto;
}
.admin-section-tabs nav button {
  padding: 0 2px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: #71816f;
  white-space: nowrap;
  font-size: 13px;
}
.admin-section-tabs nav button[aria-selected=true] {
  color: #285945;
  border-bottom-color: #285945;
  font-weight: 650;
}
.admin-menu-toggle,.admin-menu-backdrop {
  display: none;
}
.dashboard.academic-admin {
  padding: 28px 32px;
}
.dashboard .bh-title {
  align-items: flex-start;
}
.dashboard .bh-title h1 {
  font-size: 27px;
}
.dashboard .bh-title .bh-actions {
  align-items: end;
}
.dashboard label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #647761;
}
.dashboard-updated {
  font-size: 11px;
  color: #778674;
  text-align: right;
  margin: 8px 0 0;
}
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  margin: 18px 0 22px;
}
.dashboard-card {
  text-align: left;
  border: 1px solid #e0e6dc;
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  display: grid;
  gap: 7px;
  color: #647761;
  min-width: 0;
}
.dashboard-card strong {
  font-size: 29px;
  letter-spacing: -.7px;
  color: #285744;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.dashboard-card small {
  font-size: 10px;
  color: #81907b;
}
.dashboard-card span {
  font-size: 12px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr);
  gap: 20px;
}
.dashboard .bh-panel {
  padding: 20px 22px;
  margin-bottom: 20px;
  min-width: 0;
  border-radius: 12px;
}
.dashboard .bh-panel h2 {
  font-size: 15px;
}
.dashboard .bh-sub {
  font-size: 11px;
}
.dashboard-period {
  display: flex;
  gap: 10px;
  align-items: end;
  margin: 18px 0;
  flex-wrap: wrap;
}
.dashboard-period label {
  flex: 1;
  min-width: 105px;
}
.dashboard input,.dashboard select {
  padding: 8px 10px;
  min-height: 35px;
  font-size: 11px;
  border-color: #dce4d8;
  min-width: 0;
}
.dashboard-class-filter {
  max-width: 320px;
  margin-top: 18px;
}
.dashboard-chart-scroll {
  overflow: auto;
}
.dashboard-bars {
  display: block;
  width: 100%;
  min-width: 520px;
  max-height: 240px;
}
.dashboard-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  color: #7b8a77;
}
.dashboard-legend span,.dashboard-fee-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dashboard-legend i,.dashboard-fee-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dashboard-note,.dashboard-data {
  font-size: 10px;
  color: #7b8b77;
  line-height: 1.7;
  margin: 14px 0 0;
}
.dashboard-data summary {
  cursor: pointer;
  color: #426c4c;
}
.dashboard-data table {
  font-size: 11px;
}
.dashboard-empty {
  padding: 24px 0;
  color: #7a8b74;
  font-size: 12px;
  line-height: 1.7;
}
.dashboard-link {
  border: 0;
  background: none;
  color: #2d6450;
  font-size: 11px;
  padding: 4px 0;
  white-space: nowrap;
}
.dashboard-fee-chart {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
}
.dashboard-donut {
  height: 132px;
  width: 132px;
  flex: none;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
}
.dashboard-donut:before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: white;
}
.dashboard-donut strong {
  z-index: 1;
  font-size: 24px;
  text-align: center;
  color: #2b4736;
}
.dashboard-donut small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #819079;
}
.dashboard-fee-legend {
  display: grid;
  gap: 13px;
  flex: 1;
  font-size: 11px;
  color: #6c7e68;
}
.dashboard-fee-legend>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.dashboard-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e8eee3;
  padding: 12px 0;
  font-size: 11px;
  color: #73836c;
}
.dashboard-money-row strong {
  color: #3b5941;
  font-size: 13px;
}
.dashboard-attention button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid #e8eee3;
  background: none;
  width: 100%;
  text-align: left;
  color: #3b5941;
}
.dashboard-attention button strong {
  background: #f9f0db;
  border-radius: 7px;
  padding: 7px;
  min-width: 32px;
  text-align: center;
  color: #987434;
}
.dashboard-attention button span:nth-child(2) {
  flex: 1;
  font-size: 12px;
}
.dashboard-attention button small {
  display: block;
  font-size: 10px;
  color: #87917e;
  line-height: 1.6;
}
.dashboard-collection-range {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #7a8974;
}
.dashboard-collection-range>span {
  padding-bottom: 8px;
}
.dashboard-collection-range input {
  width: 145px;
}
.dashboard-collection-range label {
  margin: 0;
}
.password-control:has(input:required)::before {
  display: none !important;
}
@media (max-width:1150px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .dashboard-fee-chart {
    max-width: 400px;
    margin: 24px auto;
  }
  .dashboard-cards {
    gap: 10px;
  }
  .dashboard-card {
    padding: 15px;
  }
  .dashboard-card strong {
    font-size: 24px;
  }
}
@media (max-width:750px) {
  .grouped-admin.admin-page {
    display: block;
  }
  .grouped-admin .admin-sidebar {
    display: none;
    position: fixed;
    inset: 0 50px 0 0;
    z-index: 100;
    height: 100dvh;
    padding: 24px 18px;
    box-shadow: 10px 0 40px #17382333;
  }
  .grouped-admin .admin-sidebar[data-open=true] {
    display: flex;
  }
  .grouped-admin .admin-sidebar nav {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .grouped-admin .admin-sidebar .admin-preview-link {
    margin-top: auto;
  }
  .grouped-admin .admin-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: #17382355;
    border: 0;
  }
  .grouped-admin .admin-menu-toggle {
    display: inline-block;
    font-size: 19px;
    border: 0;
    min-height: 36px;
    padding: 4px 8px;
  }
  .admin-section-tabs {
    padding: 22px 18px 0;
  }
  .admin-section-tabs h1 {
    font-size: 24px;
  }
  .admin-section-tabs nav {
    gap: 20px;
  }
  .admin-section-tabs nav button {
    font-size: 12px;
  }
  .dashboard.academic-admin {
    padding: 24px 16px;
  }
  .dashboard .bh-title {
    display: block;
  }
  .dashboard .bh-title>div+div {
    margin-top: 16px;
  }
  .dashboard-updated {
    text-align: left;
  }
  .dashboard-cards {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-card strong {
    font-size: 25px;
  }
  .dashboard .bh-panel {
    padding: 18px 16px;
  }
  .dashboard-period label {
    flex: 1 1 calc(50% - 10px);
  }
  .dashboard .bh-title .bh-actions {
    flex-wrap: wrap;
  }
  .dashboard .bh-panel .bh-row {
    align-items: start;
    gap: 12px;
  }
  .dashboard .bh-panel .dashboard-link {
    white-space: normal;
  }
  .dashboard-bars {
    min-width: 480px;
  }
}
.grouped-admin .admin-sidebar .admin-nav-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.dashboard-columns>div {
  min-width: 0;
}
.teacher-policy-form {
  margin: 20px 0;
}
.teacher-policy-rules {
  padding-left: 22px;
  line-height: 1.8;
  color: #52615c;
}
.teacher-employment .bh-panel+.bh-panel {
  margin-top: 20px;
}
.teacher-leave-filters {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}
.teacher-leave-balance {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.teacher-leave-balance span {
  display: grid;
  gap: 5px;
  color: #60716b;
}
.teacher-leave-balance strong {
  color: #244c3d;
}
.teacher-leave-reason {
  max-width: 300px;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
.teacher-deduction-detail {
  font-size: .8rem;
  margin-top: 5px;
  max-width: 220px;
  white-space: normal;
}
.teacher-deduction-detail span {
  display: block;
  margin-top: 5px;
}
.teacher-time-table table {
  min-width: 1020px;
}
.teacher-time-totals {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.teacher-salary-history {
  margin-top: 16px;
}
.teacher-employment .bh-form textarea {
  min-height: 90px;
}
.student-photo-actions {
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.student-photo-actions .student-photo-upload {
  margin: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}
.student-state[data-state=approved] {
  background: #e8f3eb;
  color: #24523c;
}
.student-state[data-state=rejected] {
  background: #fbecec;
  color: #8a2929;
}
.student-state[data-state=pending] {
  background: #fff4d8;
  color: #805600;
}
.teacher-time-status[data-state=late] {
  background: #fff4d8;
  color: #805600;
}
.teacher-time-status[data-state=leave] {
  background: #e7eef9;
  color: #2b4c7d;
}
@media (max-width:680px) {
  .teacher-leave-filters {
    grid-template-columns: 1fr;
  }
  .teacher-time-totals {
    grid-template-columns: 1fr 1fr;
  }
  .teacher-leave-balance {
    gap: 16px;
  }
  .student-photo-field .student-photo {
    flex-shrink: 0;
  }
}
.academic .bh-stats.teacher-time-totals {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.teacher-time-filters+.teacher-time-note {
  margin-top: 14px;
}
.teacher-edit-dialog .student-form-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e3e9e4;
}
.teacher-current-salary {
  display: grid;
  gap: 4px;
  margin: 14px 0;
}
.teacher-current-salary span {
  font-size: .8rem;
  color: #61736a;
}
@media (max-width:1000px) {
  .academic .bh-stats.teacher-time-totals {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
.student-attendance-filters {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.student-attendance-search {
  grid-column: 1/-1;
}
.academic .student-attendance-totals {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 12px;
}
.student-attendance-pagination {
  margin: 20px 0;
}
.student-attendance-empty {
  padding: 20px 0;
}
.student-attendance-admin .academic-table table {
  min-width: 880px;
}
.student-attendance-admin .student-state,.student-attendance-admin td:first-child,.student-attendance-admin td:nth-last-child(-n+2) {
  white-space: nowrap;
}
.student-attendance-admin td:nth-child(2) {
  min-width: 200px;
}
.academic .student-attendance-totals {
  margin: 18px 0;
}
@media (max-width:1100px) {
  .academic .student-attendance-totals {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .student-attendance-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width:580px) {
  .academic .student-attendance-totals {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .student-attendance-filters {
    grid-template-columns: 1fr;
  }
}
.fc-collection-modes {
  margin: 14px 0 20px;
  gap: 8px;
}
.fc-collection-modes [aria-pressed=true] {
  background: #173f68;
  color: #fff;
}
.fc-quick-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}
.fc-quick-totals>div {
  display: grid;
  gap: 7px;
  align-content: start;
}
.fc-quick-totals span {
  font-size: .82rem;
  color: #536078;
}
.fc-quick-totals strong {
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  color: #24344b;
}
.fc-allocation-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.fc-allocation-table th,.fc-allocation-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #dfe5ed;
  text-align: right;
}
.fc-allocation-table th:first-child {
  text-align: left;
}
.fc-month-table[data-quick=true] th:first-child,.fc-month-table[data-quick=true] td:first-child {
  width: auto;
}
.fc-payment-form fieldset:disabled {
  opacity: .6;
}
@media (max-width:420px) {
  .fc-quick-totals {
    grid-template-columns: 1fr;
  }
  .fc-collection-modes {
    align-items: stretch;
  }
  .fc-collection-modes .bh-button {
    flex: 1;
  }
  .fc-allocation-table th,.fc-allocation-table td {
    padding: 9px 5px;
    font-size: .82rem;
  }
}
.fc-search-empty {
  text-align: center;
  padding: 58px 16px 66px;
}
.fc-search-empty h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.fc-search-empty p {
  margin: 0;
}
.fc-search-status {
  padding: 20px 0;
  margin: 0;
}
.fc-search-results {
  margin-top: 22px;
}
.fc-search label {
  min-width: 0;
}
.fc-back-link {
  padding: 0;
  margin: 0 0 20px;
  background: none;
  border: 0;
  color: #173f68;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.fc-back-link:disabled {
  opacity: .5;
  cursor: default;
}
.fc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.fc-student-table,.fc-month-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.fc-student-table th,.fc-student-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #dfe5ed;
  vertical-align: middle;
}
.fc-student-table thead th,.fc-month-table thead th {
  color: #596577;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.fc-student-table th:first-child,.fc-student-table td:first-child {
  padding-left: 0;
}
.fc-student-table th:last-child,.fc-student-table td:last-child {
  padding-right: 0;
  text-align: right;
}
.fc-student-table td:first-child {
  overflow-wrap: anywhere;
}
.fc-student-table strong {
  display: block;
  font-weight: 600;
}
.fc-student-meta {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: #5b6678;
  overflow-wrap: anywhere;
}
.fc-student-mobile {
  display: none;
}
.fc-student-table .bh-button {
  white-space: normal;
}
.fc-results-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: .85rem;
}
.fc-month-table-wrap {
  margin: 16px 0;
}
.fc-month-table th,.fc-month-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #dfe5ed;
  vertical-align: middle;
  font-size: .85rem;
}
.fc-month-table tbody th {
  font-weight: 500;
}
.fc-month-table th:first-child,.fc-month-table td:first-child {
  width: 30px;
  padding-left: 0;
}
.fc-month-table th:last-child,.fc-month-table td:last-child {
  text-align: right;
  padding-right: 0;
}
.fc-month-table td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}
.fc-month-table tr[data-selected=true] {
  background: #eef3f9;
}
.fc-month-check {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  cursor: pointer;
}
.fc-portal .fc-month-check input,.academic-portal .fc-month-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  accent-color: #173f68;
}
.fc-month-state {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: .73rem;
  line-height: 1.3;
  background: #edf0f5;
  color: #596577;
}
.fc-month-state[data-tone=green] {
  background: #e6f4ec;
  color: #1d6849;
}
.fc-month-state[data-tone=yellow] {
  background: #fff5ce;
  color: #785b10;
}
.fc-month-state[data-tone=red] {
  background: #fceced;
  color: #a42f3d;
}
.fc-month-state[data-tone=blue] {
  background: #e9f1ff;
  color: #255b96;
}
.fc-month-note {
  display: block;
  font-size: .72rem;
  font-weight: 400;
  color: #596577;
  margin-top: 3px;
}
.fc-agreement summary,.fc-adjustment summary {
  cursor: pointer;
  color: #173f68;
  font-size: .9rem;
}
.fc-adjustment>.fc-discount-row {
  margin-top: 14px;
}
.fc-adjustment>label {
  margin-top: 14px;
}
.fc-student-table-wrap {
  min-width: 0;
}
@media (max-width:700px) {
  .fc-student-class,.fc-student-state {
    display: none;
  }
  .fc-student-mobile {
    display: inline;
  }
  .fc-month-received {
    display: none;
  }
  .fc-student-table th,.fc-student-table td {
    padding: 12px 8px;
  }
  .fc-month-table th,.fc-month-table td {
    padding: 9px 5px;
  }
  .fc-results-footer {
    align-items: start;
    flex-direction: column;
  }
  .fc-legend {
    gap: 9px;
  }
  .fc-find.bh-panel {
    padding: 18px;
  }
  .fc-month-table .fc-month-state {
    max-width: 100px;
  }
  .fc-month-note {
    max-width: 95px;
  }
}
@media (pointer:coarse) {
  .fc-month-check {
    min-height: 44px;
    min-width: 36px;
  }
}
@media (max-width:400px) {
  .fc-month-table th,.fc-month-table td {
    font-size: .78rem;
  }
  .fc-month-state {
    font-size: .7rem;
    padding: 4px 5px;
  }
  .fc-student-table .bh-button {
    padding: 8px 10px;
    font-size: .85rem;
  }
  .fc-student-table th:last-child,.fc-student-table td:last-child {
    width: 95px;
  }
  .fc-month-table .fc-month-state {
    max-width: 86px;
  }
}
.fc-portal .bh-app {
  max-width: 1440px;
}
.fc-portal .bh-main {
  padding: 28px;
}
.fc-user {
  display: grid;
  gap: 3px;
  text-align: right;
}
.fc-user small {
  color: #536078;
}
.fc-find,.fc-person {
  margin-bottom: 20px;
}
.fc-search {
  display: flex;
  gap: 12px;
  align-items: end;
}
.fc-search label {
  flex: 1;
}
.fc-search input {
  width: 100%;
}
.fc-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.fc-columns {
  display: grid;
  grid-template-columns: minmax(0,1.55fr) minmax(300px,1fr);
  align-items: start;
  gap: 20px;
}
.fc-stack {
  display: grid;
  gap: 20px;
}
.fc-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .75rem;
  color: #697080;
}
.fc-legend [data-tone=green] {
  color: #1d6849;
}
.fc-legend [data-tone=yellow] {
  color: #826310;
}
.fc-legend [data-tone=red] {
  color: #b23142;
}
.fc-legend [data-tone=blue] {
  color: #255b96;
}
.fc-agreement {
  border-top: 1px solid #dfe3ea;
  margin-top: 18px;
  padding-top: 18px;
}
.fc-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin: 9px 0;
}
.fc-line>span:last-child,.fc-line>strong:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fc-plan-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  margin: 12px 0;
  border-top: 1px solid #dfe3ea;
}
.fc-plan-total strong {
  font-size: 1.3rem;
  font-variant-numeric: tabular-nums;
}
.fc-payment-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.fc-payment-form fieldset {
  border: 0;
  border-bottom: 1px solid #dfe3ea;
  padding: 0 0 18px;
  min-width: 0;
  display: grid;
  gap: 13px;
}
.fc-payment-form legend {
  font-weight: 600;
  margin-bottom: 12px;
}
.fc-required {
  color: #b22e3e;
}
.fc-discount-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fc-extra-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 8px;
  align-items: end;
}
.fc-extra-row input {
  min-width: 0;
  width: 100%;
}
.fc-wide {
  width: 100%;
}
.fc-empty {
  padding: 24px 0;
}
.fc-dialog {
  width: min(760px,calc(100vw - 32px));
  padding: 0;
  max-height: 90vh;
}
.fc-dialog-header {
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e6ed;
  z-index: 2;
}
.fc-dialog-body {
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}
.fc-dialog .admin-dialog-actions {
  position: sticky;
  bottom: 0;
  margin: 0;
  background: #fff;
  padding: 16px 22px;
  border-top: 1px solid #e2e6ed;
}
.fc-plan-fields {
  border: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.fc-plan-fields legend {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.fc-enable-months {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.fc-enable-months label {
  display: flex;
  gap: 7px;
  align-items: center;
}
.fc-enable-months input[type=checkbox] {
  width: auto;
}
.fc-once-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 9px;
  align-items: end;
}
.fc-once-row input,.fc-once-row select {
  width: 100%;
  min-width: 0;
}
.fc-reason {
  display: grid;
  gap: 7px;
}
.fc-admin-columns {
  grid-template-columns: 1fr;
}
.fc-admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e7eaf0;
}
.fc-admin-tabs {
  margin-bottom: 20px;
}
.fc-admin-tabs button[aria-pressed=true] {
  background: #173f68;
  color: #fff;
}
.fc-registration {
  border-top: 1px solid #dde4ee;
  margin-top: 22px;
  padding-top: 22px;
}
.fc-registration>.student-check {
  margin: 14px 0 20px;
}
.fc-review-row {
  padding: 14px 0;
  border-bottom: 1px solid #dce3ec;
}
.fc-receipt-id {
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.fc-receipt-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #dce3ec;
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.fc-receipt-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.fc-history {
  margin-top: 20px;
}
.fc-history p {
  padding: 10px 0;
  border-bottom: 1px solid #e7eaf0;
}
.fc-portal label,.fc-dialog label {
  display: grid;
  gap: 6px;
}
.fc-portal input,.fc-portal select,.fc-portal textarea,.fc-dialog input:not([type=checkbox]),.fc-dialog select,.fc-dialog textarea {
  max-width: 100%;
  border: 1px solid #d4dce6;
  border-radius: 7px;
  padding: 10px;
  background: white;
  color: #24344b;
  min-height: 42px;
}
.fc-portal textarea,.fc-dialog textarea {
  min-height: 80px;
}
.fc-portal .bh-sub,.fc-dialog .bh-sub {
  color: #5b6678;
}
.fc-portal button:disabled {
  cursor: default;
}
.fc-receipt p {
  margin: 10px 0;
}
.fc-dialog fieldset:disabled {
  opacity: .7;
}
@media (max-width:1000px) {
  .fc-columns {
    grid-template-columns: 1fr;
  }
  .fc-once-row {
    grid-template-columns: 1fr 1fr;
  }
  .fc-person {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width:600px) {
  .fc-portal .bh-main {
    padding: 16px;
  }
  .fc-portal .bh-header {
    padding: 14px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .fc-portal .bh-title {
    gap: 14px;
    align-items: start;
    flex-direction: column;
  }
  .fc-portal .bh-title select {
    width: 100%;
  }
  .fc-portal .bh-title>label {
    width: 100%;
  }
  .fc-search {
    align-items: stretch;
    flex-direction: column;
  }
  .fc-extra-row,.fc-once-row {
    grid-template-columns: 1fr 1fr;
  }
  .fc-extra-row>label:first-child,.fc-once-row>label:first-child {
    grid-column: 1/-1;
  }
  .fc-enable-months {
    grid-template-columns: repeat(3,1fr);
  }
  .fc-dialog-body,.fc-dialog-header {
    padding: 16px;
  }
  .fc-admin-row {
    align-items: start;
    flex-direction: column;
  }
  .fc-portal input,.fc-portal select,.fc-portal textarea,.fc-dialog input,.fc-dialog select,.fc-dialog textarea {
    font-size: 16px;
  }
  .fc-portal .bh-header .bh-actions {
    width: 100%;
    justify-content: space-between;
  }
  .fc-user {
    text-align: left;
  }
}
@media print {
  .fc-receipt {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }
  .fc-receipt-brand img {
    width: 60px;
    height: 60px;
  }
  .fc-review-row {
    break-inside: avoid;
  }
  .fc-receipt-id {
    font-size: 10pt;
  }
  .fc-plan-total {
    padding: 8px 0;
  }
}
.fc-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  background: #fff;
  color: #24344b;
  border: 1px solid #d4dce6;
  border-radius: 16px;
  overflow: auto;
  box-shadow: 0 20px 70px #173f6833;
}
.fc-dialog::backdrop {
  background: #102c4780;
}
.fc-dialog form {
  margin: 0;
}
.fc-dialog .bh-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fc-dialog .bh-full {
  grid-column: 1/-1;
}
.fc-portal .bh-primary,.fc-dialog .bh-primary {
  background: #173f68;
  border-color: #173f68;
  color: #fff;
}
.fc-portal label:has(> .fc-required)::before,.fc-dialog label:has(> .fc-required)::before,.fc-registration label:has(> .fc-required)::before {
  content: none;
}
.fc-enable-months input[type=checkbox] {
  display: inline-block;
  width: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.fc-dialog .fc-dialog-body {
  overflow: visible;
}
.fc-dialog :is(input,select,textarea) {
  box-sizing: border-box;
  font: inherit;
}
.fc-dialog textarea {
  width: 100%;
}
.fc-portal .bh-title select {
  min-width: 145px;
}
.fc-portal .bh-panel {
  min-width: 0;
}
.fc-admin-tabs {
  margin-top: 8px;
}
@media (max-width:600px) {
  .fc-dialog .bh-form {
    grid-template-columns: 1fr;
  }
  .fc-dialog .admin-dialog-actions {
    flex-wrap: wrap;
  }
  .fc-dialog .bh-button {
    min-height: 42px;
  }
}
.fc-dialog h2,.fc-dialog h3 {
  font-family: Arial,sans-serif;
  font-weight: 600;
  line-height: 1.35;
}
.fc-dialog h2 {
  font-size: 21px;
}
.fc-dialog h3 {
  font-size: 16px;
}
.fc-receipt-brand h2 {
  margin: 0;
}
.fc-once-row input[type=checkbox] {
  width: auto;
}
.fc-counter-tabs {
  margin-bottom: 24px;
}
.fc-counter-tabs [aria-pressed=true] {
  background: #173f68;
  color: #fff;
}
.fc-register-filters {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr)) auto;
  gap: 12px;
  align-items: end;
}
.fc-register-filters input,.fc-register-filters select {
  min-width: 0;
  width: 100%;
}
.fc-register-actions {
  flex-wrap: wrap;
}
.fc-register-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0;
}
.fc-register-totals span {
  display: grid;
  gap: 5px;
  color: #536078;
}
.fc-register-totals strong {
  color: #24344b;
  font-size: 1.2rem;
}
@media (max-width:1100px) {
  .fc-register-filters {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .fc-register-actions {
    justify-content: flex-end;
  }
}
@media (max-width:900px) {
  .fc-register-filters {
    grid-template-columns: 1fr 1fr;
  }
  .fc-register-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
}
@media (max-width:520px) {
  .fc-register-filters {
    grid-template-columns: 1fr;
  }
  .fc-register-totals {
    gap: 16px;
  }
  .fc-portal .academic-table {
    max-width: 100%;
    overflow: auto;
  }
}
.fc-student-table:has(.student-family-summary) {
  min-width: 860px;
}
.fc-student-table-wrap {
  overflow-x: auto;
}
.idle-dialog::backdrop {
  background: #102c4780;
}
.idle-counter {
  font-size: 2rem;
  color: #a22e31;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}