@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

:root {
  --red: #ff2026;
  --blue: #35acd7;
  --blue-soft: #dff5ff;
  --green: #31b94d;
  --yellow: #f8d348;
  --ink: #26323d;
  --muted: #66717c;
  --paper: #fffdf6;
  --soft: #f0f2f4;
  --line: #d5d7da;
}

/* Zero-credit restart billing */
.manual-restart-invoice-control {
  display: grid;
  gap: 7px;
  margin: 12px 0 14px;
  border-left: 4px solid #e5a800;
  background: #fff8d9;
  padding: 12px;
}

.class-array-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.class-array-heading h3 {
  margin: 0;
}

.class-array-panel > .class-assign-panel {
  margin: 10px 0 14px;
}

.manual-restart-invoice-control > button {
  justify-self: start;
}

.manual-restart-invoice-control > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #146b3a;
}

.manual-restart-invoice-control > a {
  justify-self: start;
}

.manual-restart-invoice-control small {
  color: var(--muted);
  font-weight: 750;
}

.manual-restart-invoice-control.is-newly-available {
  animation: restartInvoiceReady 1.15s ease-out 1;
}

@keyframes restartInvoiceReady {
  0%, 45% { box-shadow: 0 0 0 0 rgba(229, 168, 0, .42); }
  75% { box-shadow: 0 0 0 8px rgba(229, 168, 0, 0); }
  100% { box-shadow: none; }
}

.manual-restart-invoice-form {
  display: grid;
  gap: 16px;
}

.manual-restart-invoice-modal .student-detail {
  width: min(860px, 100%);
  padding: 24px;
}

.manual-restart-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #dfe5e9;
  padding-bottom: 18px;
}

.manual-restart-heading > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e6f7fd;
  color: #087ca7;
  font-size: 1.25rem;
}

.manual-restart-heading h2,
.manual-restart-heading p {
  margin: 0;
}

.manual-restart-heading h2 {
  font-size: 2.1rem;
  line-height: 1.05;
}

.restart-invoice-selections {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, .55fr);
  gap: 12px;
}

.restart-invoice-selections label {
  display: grid;
  gap: 7px;
  color: #536171;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.restart-invoice-selections select {
  min-height: 48px;
  border: 1px solid #cbd5dc;
  border-radius: 6px;
  background-color: #fff;
  color: #26323d;
  font-size: .95rem;
  font-weight: 900;
}

.restart-invoice-evidence,
.zero-credit-import-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-block: 1px solid #dfe5e9;
  background: #f8fafb;
}

.restart-invoice-evidence > div,
.zero-credit-import-evidence > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-right: 1px solid #dfe5e9;
  background: transparent;
  padding: 13px 15px;
}

.restart-invoice-evidence > div:last-child {
  border-right: 0;
}

.restart-invoice-evidence span,
.zero-credit-import-evidence span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.restart-invoice-evidence strong,
.zero-credit-import-evidence strong {
  overflow-wrap: anywhere;
}

.restart-invoice-status p {
  margin: 0;
  border-left: 4px solid var(--line);
  padding: 11px 12px;
}

.restart-invoice-status p > button {
  margin-top: 10px;
}

.restart-pricing-panel {
  display: grid;
  gap: 12px;
  border: 1px solid #cbdce4;
  border-radius: 8px;
  background: #f8fcfd;
  padding: 16px;
}

.restart-pricing-panel > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.restart-pricing-panel > header > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #dff5ff;
  color: #087ca7;
}

.restart-pricing-panel > header > div,
.restart-pricing-choice > span,
.restart-current-price-confirm > span,
.restart-invoice-price-check p > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.restart-pricing-panel small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.restart-pricing-options {
  display: grid;
  gap: 8px;
}

.restart-pricing-options > p {
  margin: 0;
  padding: 10px 12px;
}

.restart-pricing-evidence {
  border-left: 4px solid #e5a800;
  background: #fff8d9;
}

.restart-pricing-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  border: 1px solid #cfd9df;
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  cursor: pointer;
}

.restart-pricing-choice.is-selected {
  border: 2px solid #24a45a;
  background: #edfbf2;
}

.restart-pricing-choice.is-blocked {
  border-color: #e3b1b5;
  background: #fff5f5;
}

.restart-pricing-choice input,
.restart-current-price-confirm input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.restart-pricing-choice em {
  border-radius: 999px;
  background: #dff5e7;
  color: #146b3a;
  padding: 5px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.restart-current-price-confirm {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-left: 4px solid #d1242f;
  background: #fff0f1;
  padding: 12px;
}

.restart-pricing-block {
  border-left: 4px solid #d1242f;
  background: #fff0f1;
  color: #9e1821;
}

.restart-invoice-price-check:empty {
  display: none;
}

.restart-invoice-price-check p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 9px;
  margin: 0;
  border-left: 4px solid #e5a800;
  background: #fff8d9;
  padding: 10px 12px;
}

.restart-invoice-price-check p.is-success {
  border-left-color: #27a85c;
  background: #eaf9f0;
  color: #146b3a;
}

.restart-invoice-price-check a,
.restart-invoice-price-check button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
}

.restart-welcome-email-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid #cddce3;
  border-radius: 6px;
  background: #f6fafc;
  padding: 12px;
}

.restart-welcome-email-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.restart-welcome-email-option span {
  display: grid;
  gap: 4px;
}

.restart-welcome-email-option small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.restart-welcome-email-option:has(input:disabled) {
  border-color: var(--line);
  background: #f4f5f6;
  color: var(--muted);
}

.restart-welcome-status p {
  margin: 0;
  border-left: 4px solid var(--line);
  padding: 11px 12px;
}

.restart-welcome-status .is-success {
  border-left-color: #27a85c;
  background: #eaf9f0;
  color: #146b3a;
}

.restart-welcome-status .is-warning {
  border-left-color: #e5a800;
  background: #fff8d9;
}

[data-restart-welcome-retry] {
  justify-self: start;
}

[data-restart-welcome-retry][hidden] {
  display: none !important;
}

.manual-restart-invoice-modal [hidden] {
  display: none !important;
}

.restart-invoice-submit-row {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 2px -24px -24px;
  border-top: 1px solid #d5dfe5;
  background: rgba(255, 255, 255, .97);
  padding: 14px 24px;
}

.restart-invoice-submit-row > span {
  color: #66717c;
  font-size: .78rem;
  font-weight: 800;
}

.restart-invoice-submit-row > button {
  min-height: 46px;
  border-radius: 6px;
  padding-inline: 18px;
}

.restart-invoice-status .is-success {
  border-left-color: #27a85c;
  background: #eaf9f0;
  color: #146b3a;
}

.restart-invoice-status .is-warning {
  border-left-color: #e5a800;
  background: #fff8d9;
}

.restart-invoice-status .is-error {
  border-left-color: #d1242f;
  background: #fff0f1;
  color: #9e1821;
}

.zero-credit-import-modal .student-detail {
  width: min(760px, 100%);
  margin-inline: auto;
}

.zero-credit-import-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 620px) {
  .manual-restart-heading h2 {
    font-size: 1.65rem;
  }
  .restart-invoice-evidence,
  .zero-credit-import-evidence {
    grid-template-columns: 1fr;
  }

  .restart-invoice-evidence > div {
    border-right: 0;
    border-bottom: 1px solid #dfe5e9;
  }

  .restart-invoice-evidence > div:last-child {
    border-bottom: 0;
  }

  .restart-invoice-selections {
    grid-template-columns: 1fr;
  }

  .restart-invoice-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .restart-invoice-submit-row > button {
    width: 100%;
  }

  .zero-credit-import-actions > button {
    width: 100%;
  }

  .restart-pricing-choice {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .restart-pricing-choice em {
    grid-column: 2;
    justify-self: start;
  }

  .restart-invoice-price-check p {
    grid-template-columns: 22px minmax(0, 1fr) 38px 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .manual-restart-invoice-control.is-newly-available {
    animation: none;
  }
}

.teacher-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  color: #243047;
  background: #f7fbfd;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
body.is-teacher-loading { overflow: hidden; }
body.is-teacher-loading .teacher-loading-screen { opacity: 1; visibility: visible; }
body.is-teacher-loading [data-staff-protected] { visibility: hidden; }
.teacher-loading-screen > span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 4px solid #76cee2;
  border-radius: 50%;
  color: #087f9d;
  background: #e8f8fc;
  font-size: 1.85rem;
}
.teacher-loading-screen > div { display: grid; gap: 5px; max-width: 460px; }
.teacher-loading-screen p,
.teacher-loading-screen strong,
.teacher-loading-screen small { margin: 0; }
.teacher-loading-screen p { color: #ff2733; font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.teacher-loading-screen strong { font-size: clamp(1.4rem, 4vw, 2.05rem); }
.teacher-loading-screen small { color: #667085; font-weight: 750; line-height: 1.45; }
.teacher-loading-screen .teacher-loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d9edf3;
  border-top-color: #16a5c7;
  border-radius: 50%;
  animation: admin-loading-spin .75s linear infinite;
}
.teacher-loading-screen.is-error > span { border-color: #f09aa1; color: #c62836; background: #fff0f1; }
.teacher-loading-screen.is-error .teacher-loading-spinner { display: none; }

.game-mask-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.game-mask-toolbar article {
  display: grid;
  gap: 4px;
  color: #667085;
  font-weight: 850;
}

.game-mask-toolbar strong {
  color: #243047;
  font-size: 1.1rem;
}

.game-mask-toolbar button {
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: #35b7d4;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(15, 109, 131, .18);
  cursor: pointer;
}

.game-mask-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.game-mask-library {
  display: grid;
  gap: 22px;
}

.mask-month-section {
  display: grid;
  gap: 12px;
}

.mask-month-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #d7e1ea;
  border-radius: 8px;
  background: #f5f9fc;
}

.mask-month-header > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #dff4fa;
  color: #006b82;
}

.mask-month-header h3,
.mask-month-header p {
  margin: 0;
}

.mask-month-header > b {
  margin-left: auto;
  color: #586779;
}

.game-mask-card {
  display: grid;
  gap: 10px;
  border: 2px solid #d7e2ec;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(36, 48, 71, .08);
}

.game-mask-card.is-disabled {
  opacity: .62;
}

.game-mask-card.is-archived {
  background: #f5f7f9;
  border-style: dashed;
}

.game-mask-card.is-locked {
  position: relative;
  border-color: #d8e2ea;
  background: #f8fbfd;
}

.locked-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  border-radius: 999px;
  background: #eff3f7;
  color: #5c6878;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.game-mask-card > img {
  width: 100%;
  height: 130px;
  border: 2px solid #edf2f7;
  border-radius: 12px;
  background: #f8fbff;
  object-fit: contain;
}

.game-mask-card label {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.game-mask-card input,
.game-mask-card select {
  width: 100%;
  border: 2px solid #d7e2ec;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: #243047;
  font: inherit;
  font-weight: 850;
  text-transform: none;
}

.mask-admin-page .owner-panel {
  margin-top: 16px;
}

.mask-admin-rules,
.teacher-mask-override-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mask-admin-rules article {
  display: grid;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #f8fbfd;
  padding: 14px;
}

.mask-admin-rules span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e8f8fc;
  color: #00627a;
}

.mask-admin-rules strong,
.mask-admin-rules p {
  margin: 0;
}

.mask-admin-rules p {
  color: var(--muted);
  font-weight: 850;
}

.teacher-mask-tools {
  margin-bottom: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ededed;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a,
button {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 9px 10px;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 34px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.92;
  margin-bottom: 12px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
}

.aq-admin {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px;
}

.admin-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 240px auto minmax(420px, 2fr);
  align-items: end;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 20;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.16);
}

.admin-bar strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.admin-bar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-bar a,
.admin-bar button {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 12px;
}

.admin-bar a {
  background: #5c6874;
}

.admin-bar a:nth-child(1) {
  background: var(--red);
}

.admin-bar .is-locked {
  opacity: 0.7;
}

.owner-hero,
.page-hero,
.panel,
.owner-tile,
.staff-card {
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.owner-hero,
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--paper);
}

.owner-hero p:not(.kicker),
.page-hero p:not(.kicker) {
  max-width: 820px;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 0;
}

.kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-actions .icon-action {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #6b7682;
}

.top-actions a:nth-child(1) {
  background: var(--red);
}

.owner-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.owner-panel {
  margin-top: 18px;
}

.owner-collapse {
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.owner-collapse > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px;
}

.owner-collapse > summary::-webkit-details-marker {
  display: none;
}

.owner-collapse > summary::after {
  content: "\f078";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #eef7fb;
  color: #00627a;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.owner-collapse[open] > summary::after {
  content: "\f077";
}

.mask-admin-page .owner-collapse[open] > summary.section-heading {
  margin-bottom: 14px;
}

.mask-admin-page .owner-collapse > .game-mask-grid,
.mask-admin-page .owner-collapse > .game-mask-library {
  margin-top: 18px;
}

.owner-collapse > :not(summary) {
  margin: 0 18px 18px;
}

.owner-pulse {
  display: grid;
  gap: 14px;
}

.schedule-integrity-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.schedule-integrity-card,
.schedule-integrity-empty {
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.schedule-integrity-card.is-danger {
  border-color: #ff2a32;
  background: #fff6f6;
}

.schedule-integrity-card header,
.schedule-integrity-empty {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.schedule-integrity-card header > span,
.schedule-integrity-empty > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f8fc;
  color: #00627a;
  font-size: 20px;
}

.schedule-integrity-card.is-danger header > span {
  background: #ffe5e7;
  color: #c41220;
}

.schedule-integrity-card h3,
.schedule-integrity-card p,
.schedule-integrity-empty p {
  margin: 0;
}

.schedule-integrity-card p,
.schedule-integrity-empty p {
  color: var(--muted);
  font-weight: 850;
}

.schedule-integrity-card dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  padding: 10px;
}

.schedule-integrity-card dt,
.schedule-integrity-card dd {
  margin: 0;
  font-weight: 900;
}

.schedule-integrity-card dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.schedule-integrity-card dd {
  overflow-wrap: anywhere;
}

.schedule-integrity-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-integrity-card footer button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .14);
}

.schedule-integrity-card footer button:disabled {
  background: #8b96a3;
  cursor: default;
}

.student-integrity-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.student-integrity-card,
.student-integrity-empty {
  border: 1px solid #cfdce7;
  border-left: 4px solid #e7a614;
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.student-integrity-card header,
.student-integrity-empty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-integrity-card header > span,
.student-integrity-empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #fff3cf;
  color: #956300;
}

.student-integrity-card h3,
.student-integrity-card p,
.student-integrity-card small,
.student-integrity-empty p {
  margin: 0;
}

.student-integrity-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.student-integrity-facts span,
.student-integrity-issues span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #dbe5ed;
  padding: 9px;
}

.student-integrity-issues {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.student-integrity-issues span {
  flex-direction: row;
  align-items: center;
  color: #884b00;
  background: #fff8e8;
}

.student-integrity-card footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.student-integrity-card.is-reconciliation {
  border-left-color: #16a765;
  background: #f4fff9;
}

.student-integrity-card.is-reconciliation header > span {
  background: #dff8eb;
  color: #087643;
}

.student-integrity-card.is-reconciliation footer button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #16a765;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.student-integrity-card.is-reconciliation footer button:disabled {
  background: #8b96a3;
  cursor: default;
}

.student-integrity-card.is-reconciliation footer button.is-confirming {
  background: #c77800;
}

.placement-shadow-panel[open]:has(.placement-shadow-card) {
  border-color: #e0a12a;
}

.placement-shadow-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.placement-shadow-card,
.placement-shadow-empty {
  border: 1px solid #d7e1e9;
  border-left: 4px solid #e0a12a;
  border-radius: 6px;
  background: #fff;
  padding: 14px;
}

.placement-shadow-card header,
.placement-shadow-empty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.placement-shadow-card header > span,
.placement-shadow-empty > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  color: #8b5900;
  background: #fff2cf;
}

.placement-shadow-card h3,
.placement-shadow-card p,
.placement-shadow-card small,
.placement-shadow-empty p {
  margin: 0;
}

.placement-shadow-card > p {
  margin-top: 10px;
  color: #536173;
}

.placement-shadow-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.placement-shadow-card.is-critical {
  border-left-color: #d72f3f;
  background: #fff6f7;
}

.placement-shadow-card.is-critical header > span {
  color: #a91e2b;
  background: #ffe0e4;
}

.placement-shadow-empty {
  grid-column: 1 / -1;
  border-left-color: #16a765;
  background: #f4fff9;
}

.placement-shadow-empty > span {
  color: #087643;
  background: #dff8eb;
}

.placement-shadow-empty > button {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #087643;
  background: #dff8eb;
  cursor: pointer;
}

.placement-shadow-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.placement-shadow-actions button,
.placement-shadow-queue > button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  background: #169dca;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 640px) {
  .student-integrity-queue,
  .student-integrity-facts,
  .placement-shadow-queue { grid-template-columns: 1fr; }
  .student-integrity-card footer { justify-content: flex-start; flex-wrap: wrap; }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.section-heading h2 {
  margin-bottom: 0;
}

.small-heading {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 12px;
}

.small-heading h2 {
  font-size: 24px;
}

.pulse-filters {
  margin-bottom: 0;
}

.owner-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 136px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 15px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 0.95;
}

.metric-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.metric-card.live {
  border-color: var(--blue);
}

.metric-card.money {
  border-color: var(--green);
}

.metric-card.warning {
  border-color: var(--yellow);
}

.metric-card.awaiting {
  background: #f7f7f7;
}

.metric-card.awaiting strong {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 25px);
}

.owner-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(320px, 0.85fr);
  gap: 14px;
}

.compact-panel {
  padding: 16px;
}

.bar-chart,
.exception-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-row header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.bar-row header span {
  color: var(--muted);
  font-weight: 950;
}

.bar-track {
  height: 15px;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #f0f2f4;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.exception-row {
  display: grid;
  justify-content: stretch;
  min-height: auto;
  border: 2px solid var(--line);
  background: #fff7cd;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
  text-transform: none;
}

.exception-row strong,
.exception-row span {
  display: block;
}

.exception-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-tile {
  display: block;
  min-height: 230px;
  color: var(--ink);
  padding: 20px;
  text-decoration: none;
}

.owner-tile span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  margin-bottom: 14px;
}

.owner-tile.hot span {
  background: var(--red);
}

.owner-tile h2 {
  margin-bottom: 8px;
}

.owner-tile p {
  color: var(--muted);
  margin-bottom: 0;
}

.split-work {
  display: grid;
  grid-template-columns: minmax(380px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#rosterEditSyncStatus {
  margin: 0 0 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

#rosterEditSyncStatus[data-sync-mode="saved"],
#rosterEditSyncStatus[data-sync-mode="loaded"] {
  border-color: var(--green);
  background: #edfff1;
  color: #0b6b29;
}

#rosterEditSyncStatus[data-sync-mode="saving"] {
  border-color: var(--blue);
  background: #eefaff;
  color: var(--blue-dark);
}

#rosterEditSyncStatus[data-sync-mode="warning"] {
  border-color: var(--yellow);
  background: #fff7cd;
  color: #6b4d00;
}

.editor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.date-pair-field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.date-pair-field label {
  display: grid;
  gap: 6px;
}

.check-line {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 42px;
}

.check-line input {
  width: 18px;
  min-height: 18px;
}

.preview-box {
  grid-column: 1 / -1;
  border-radius: 8px;
  background: #fff7cd;
  color: #6b4d00;
  font-weight: 900;
  margin: 0;
  padding: 12px;
}

.editor-form button {
  grid-column: 1 / -1;
  background: var(--green);
}

.wide-field {
  grid-column: 1 / -1;
}

.template-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.template-list-panel {
  align-self: start;
  position: sticky;
  top: 112px;
}

.template-list {
  display: grid;
  gap: 9px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.template-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: auto;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  text-transform: none;
}

.template-list-item.is-active {
  border-color: var(--red);
  background: #fff7cd;
}

.template-list-item strong,
.template-list-item small,
.template-list-item em {
  display: block;
}

.template-list-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.template-list-item em {
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0a6078;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  padding: 5px 7px;
  text-transform: uppercase;
}

.template-editor {
  display: grid;
  gap: 16px;
}

.template-editor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.template-meta-grid article,
.email-preview-card {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.variable-list button {
  min-height: 30px;
  border-radius: 999px;
  background: #5c6874;
  padding: 6px 9px;
  font-size: 12px;
  text-transform: none;
}

.template-preview {
  display: grid;
  gap: 12px;
}

.email-preview-card {
  display: grid;
  gap: 10px;
  overflow: hidden;
  border-color: #b9deec;
  background:
    linear-gradient(180deg, #effaff 0, #ffffff 88px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.email-preview-card::before {
  content: "ArtQuest by OAM Studios";
  display: block;
  margin: -14px -14px 4px;
  padding: 14px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.email-preview-card strong {
  display: block;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
}

.email-preview-card pre {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.55;
  white-space: pre-wrap;
}

.class-list,
.staff-grid {
  display: grid;
  gap: 12px;
}

.staff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.staff-rules {
  margin-top: 18px;
}

.staff-compliance-panel {
  margin-top: 18px;
}

.staff-square-import {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.staff-square-import > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.staff-square-import > summary::-webkit-details-marker {
  display: none;
}

.staff-square-import > summary p,
.staff-square-import > summary h2 {
  margin: 0;
}

.staff-square-import > summary > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  transition: transform .18s ease;
}

.staff-square-import[open] > summary > span {
  transform: rotate(180deg);
}

.staff-square-import > header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.staff-square-import > header p,
.staff-square-import > header h2 {
  margin: 0;
}

.staff-square-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.staff-avatar-draft-field {
  grid-row: span 2;
  display: grid;
  align-content: start;
}

.staff-avatar-upload {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 260px);
  min-height: 166px;
  border: 3px dashed rgba(53, 183, 212, .45);
  border-radius: 18px;
  background: linear-gradient(180deg, #f2fbff, #fff);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .08);
}

.staff-avatar-upload > span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: 2.2rem;
  box-shadow: 0 8px 18px rgba(15, 109, 131, .16);
}

.staff-avatar-upload > span img,
.staff-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-avatar-upload strong,
.staff-avatar-upload small {
  display: block;
  margin: 0;
  font-weight: 950;
}

.staff-avatar-upload small {
  color: var(--muted);
  font-size: 12px;
}

.staff-square-grid fieldset {
  grid-column: 2 / 4;
  display: grid;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  margin: 0;
  padding: 10px;
}

.staff-square-grid legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.staff-square-location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staff-location-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-height: 42px;
  min-width: 116px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .08);
}

.staff-location-chip:has(input:checked) {
  border-color: var(--blue);
  background: #eaf9ff;
  color: #08718d;
}

.staff-location-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.staff-location-chip span {
  pointer-events: none;
}

.staff-location-chip:has(input:checked)::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.staff-location-chip:has(input:focus-visible) {
  outline: 3px solid rgba(53, 183, 212, .35);
  outline-offset: 2px;
}

.staff-square-grid > button {
  grid-column: 3 / 4;
  align-self: end;
  margin-top: 18px;
  min-height: 42px;
}

.staff-shared-square-editor {
  align-items: end;
}

.staff-shared-square-editor .staff-square-location-list {
  margin-bottom: 4px;
}

.staff-card-avatar,
.staff-avatar-fallback {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 3px solid rgba(53, 183, 212, .4);
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  flex: 0 0 auto;
}

.staff-card-avatar {
  padding: 0;
  cursor: pointer;
}

.staff-card-avatar:hover,
.staff-card-avatar:focus-visible {
  border-color: #ff2733;
  box-shadow: 0 0 0 4px rgba(255, 39, 51, .12);
  outline: none;
}

.staff-card-avatar .staff-avatar-fallback {
  width: 100%;
  height: 100%;
  border: 0;
}

.staff-avatar-modal form {
  max-width: 640px;
}

.staff-avatar-cropper {
  display: grid;
  place-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #f7fbff;
}

.staff-avatar-cropper canvas {
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 999px;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 8px 22px rgba(31, 42, 68, .18);
}

.staff-avatar-cropper canvas:active {
  cursor: grabbing;
}

.staff-avatar-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.staff-avatar-controls button {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 12px 14px;
  font-weight: 950;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .15);
}

.staff-square-status {
  margin-top: 0;
}

.staff-square-status[data-status="draft"] {
  border-color: #f0c93d;
  background: #fff8d8;
  color: #755600;
}

.staff-square-status[data-status="saved"] {
  border-color: #2cc35b;
  background: #eaffef;
  color: #08702c;
}

.staff-compliance-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.compliance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.compliance-summary article,
.staff-compliance-card,
.compliance-chip {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.compliance-summary article > strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
}

.compliance-summary article > span,
.compliance-summary article > small,
.compliance-chip span,
.compliance-chip small,
.compliance-ok {
  display: block;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.25;
}

.compliance-summary-card,
.compliance-chip {
  background: #fff7cd !important;
  color: #674900;
}

.compliance-summary-card.is-high,
.compliance-chip.is-high {
  border-color: var(--red);
  background: #fff0f0 !important;
}

.compliance-chip-list {
  display: grid;
  gap: 8px;
}

.compliance-ok {
  margin: 0;
  color: #087c45;
}

.intake-summary {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.intake-summary .intake-live-unlock {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 2px solid #f0b21b;
  border-radius: 8px;
  background: #fff8dc;
}

.intake-unlock-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1aa85b;
  color: #fff;
}

.intake-live-unlock h3,
.intake-live-unlock p {
  margin: 0;
}

.intake-live-unlock form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.intake-live-unlock > .mini-action {
  justify-self: end;
}

.intake-live-unlock label {
  display: grid;
  gap: 4px;
}

@media (max-width: 820px) {
  .intake-summary .intake-live-unlock,
  .intake-live-unlock form {
    grid-template-columns: 1fr;
  }
}

.data-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff7cd;
  color: #6b4d00;
  font-weight: 900;
  margin-top: 18px;
  padding: 12px 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.data-status span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7d5c00;
}

.inline-unlock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.inline-unlock-button:hover,
.inline-unlock-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}

.intake-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.filter-drawer {
  margin-bottom: 18px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.filter-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  background: #5c6874;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 12px 16px;
  text-transform: uppercase;
  list-style: none;
}

.filter-drawer > summary::-webkit-details-marker {
  display: none;
}

.filter-drawer > summary span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.filter-drawer-chevron {
  transition: transform 160ms ease;
}

.filter-drawer[open] .filter-drawer-chevron {
  transform: rotate(180deg);
}

.filter-drawer[open] {
  overflow: visible;
}

.filter-drawer .intake-filters {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 16px;
}

.intake-filters button {
  align-self: end;
  background: #777;
}

.intake-filters .wide-field {
  grid-column: span 3;
}

.multi-filter {
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  min-width: 0;
}

.multi-filter > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.teacher-multi-filter details {
  position: relative;
  min-width: 0;
}

.teacher-multi-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
  padding: 10px 13px;
}

.teacher-multi-filter summary::-webkit-details-marker {
  display: none;
}

.teacher-multi-filter summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-multi-filter details[open] summary {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 173, 211, 0.14);
}

.teacher-multi-filter details[open] summary i {
  transform: rotate(180deg);
}

.teacher-filter-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 7px);
  left: 0;
  display: grid;
  gap: 5px;
  width: max(100%, 260px);
  max-height: 330px;
  overflow: auto;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 38, 51, 0.2);
  padding: 8px;
}

.teacher-filter-choice {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 6px;
  cursor: pointer;
  padding: 7px 9px;
}

.teacher-filter-choice:hover {
  background: var(--blue-soft);
}

.teacher-filter-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.teacher-filter-choice > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #9aa8b5;
  border-radius: 5px;
  background: #fff;
  color: transparent;
  font-size: 0.72rem;
}

.teacher-filter-choice input:checked + span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.teacher-filter-choice input:focus-visible + span {
  outline: 3px solid rgba(46, 173, 211, 0.28);
  outline-offset: 2px;
}

.teacher-filter-choice strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intake-filters .teacher-filter-clear {
  min-height: 38px;
  margin-top: 3px;
  border-radius: 6px;
  background: #edf1f4;
  color: #455463;
  box-shadow: none;
}

.intake-filters .teacher-filter-clear:hover,
.intake-filters .teacher-filter-clear:focus-visible {
  transform: none;
  background: #e3e9ed;
  box-shadow: none;
}

.intake-archive {
  margin: 0 0 18px;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.intake-archive > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 950;
}

.intake-archive > label {
  display: grid;
  gap: 6px;
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.intake-archive-list {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.intake-archive-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.intake-archive-list article span {
  display: grid;
  gap: 3px;
}

.intake-archive-list article > em {
  border-radius: 999px;
  padding: 6px 9px;
  color: #6b4d00;
  background: #fff1b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.intake-history-note {
  display: flex;
  gap: 7px;
  align-items: center;
  border-radius: 7px;
  padding: 8px 10px;
  color: #6b4d00;
  background: #fff8d8;
  font-size: 12px;
  font-weight: 850;
}

.calendar-teacher-chip-filter,
.calendar-owner-stats {
  grid-column: 1 / -1;
}

.calendar-teacher-chip-filter {
  display: grid;
  gap: 8px;
}

.calendar-teacher-chip-filter > strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-teacher-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-teacher-chip-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 5px 12px 5px 6px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .1);
}

.calendar-teacher-chip-row button.is-active {
  border-color: var(--red);
  background: #fff4f5;
  color: var(--red);
}

.calendar-teacher-chip-row .teacher-calendar-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
}

.calendar-owner-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.calendar-owner-stats article {
  border: 2px solid #d7e2ec;
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px;
}

.calendar-owner-stats strong,
.calendar-owner-stats span {
  display: block;
}

.calendar-owner-stats strong {
  color: var(--ink);
  font-size: 20px;
}

.calendar-owner-stats span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.intake-filters .is-locked {
  opacity: 0.72;
}

.intake-summary article {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.intake-summary .summary-drill {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.intake-summary .summary-drill:hover,
.intake-summary .summary-drill:focus-visible {
  outline: 0;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .14);
}

.intake-summary .summary-drill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.intake-summary .summary-digital {
  border-color: var(--red);
  background: #fff5f5;
}

.intake-summary .summary-atelier {
  border-color: #111;
  background: #f7f7f7;
}

.intake-summary strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.intake-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-student-list {
  display: grid;
  gap: 10px;
}

.summary-student-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.summary-student-card .roster-avatar {
  width: 58px;
  height: 58px;
}

.summary-student-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.summary-student-card strong,
.summary-student-card span,
.summary-student-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-student-card > button {
  min-height: 38px;
  padding: 8px 11px;
}

.intake-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.return-trial-column {
  border-color: #9d77bd;
  background: #fbf7ff;
}

.trial-return-modal {
  width: min(760px, calc(100vw - 28px));
}

.trial-return-modal > form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
}

.trial-return-modal header,
.trial-return-modal .wide-field,
.trial-return-modal .return-trial-toggle,
.trial-return-modal .trial-return-timeline,
.trial-return-modal .trial-return-actions,
.trial-return-modal .field-note {
  grid-column: 1 / -1;
}

.trial-return-modal header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 48px;
}

.trial-return-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: #efe4fa;
  color: #71418f;
  font-size: 20px;
}

.return-trial-toggle {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 2px 10px;
  border: 2px solid #cdb7df;
  border-radius: 8px;
  padding: 12px;
  background: #fbf7ff;
}

.return-trial-toggle input {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
}

.return-trial-toggle > span {
  display: none;
}

.return-trial-toggle small {
  grid-column: 2;
}

.trial-return-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trial-return-timeline article {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.trial-return-timeline article > i {
  color: var(--red);
  font-size: 18px;
}

.trial-return-timeline article span {
  display: grid;
  gap: 4px;
}

.trial-return-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.teacher-return-reason {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(240px, 1.25fr) auto;
  gap: 8px;
  align-items: center;
  border: 2px solid #e0b64c;
  border-radius: 8px;
  padding: 12px;
  background: #fff9df;
}

.teacher-return-reason > strong,
.teacher-return-reason > small,
.teacher-return-reason > span {
  grid-column: 1 / -1;
}

.teacher-return-reason textarea {
  min-height: 42px;
  resize: vertical;
}

@media (max-width: 760px) {
  .teacher-return-reason {
    grid-template-columns: 1fr;
  }

  .teacher-return-reason > * {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .trial-return-modal > form,
  .trial-return-timeline {
    grid-template-columns: 1fr;
  }

  .trial-return-modal > form > label,
  .trial-return-timeline {
    grid-column: 1;
  }
}

.intake-column {
  min-height: 520px;
  border: 3px dashed var(--line);
  border-radius: 12px;
  background: #f8f8f8;
  padding: 12px;
}

.intake-column.is-drag-over {
  border-color: var(--blue);
  background: #edf9fd;
}

.intake-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.intake-column h2 {
  font-size: 22px;
  margin-bottom: 0;
}

.intake-column [data-count] {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.intake-card {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}

.intake-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}

.intake-card[draggable="true"] {
  cursor: grab;
}

.intake-card.is-dragging {
  cursor: grabbing;
  opacity: 0.58;
}

.intake-card header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.student-thumb {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 3px dashed var(--line);
  border-radius: 14px;
  background: #f6f7f8;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-transform: uppercase;
}

.student-thumb.is-loading::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(53, 172, 215, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: avatar-spin 0.75s linear infinite;
}

.student-thumb.is-loading img {
  opacity: 0;
}

.student-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-card .student-thumb.has-photo {
  flex-basis: 76px;
  width: 76px;
  height: 76px;
  border-style: solid;
  border-radius: 50%;
  background: #fff;
}

.roster-card .student-thumb.has-photo img {
  border-radius: inherit;
}

.roster-card footer .roster-card-icon-action {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.student-thumb .avatar-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #9aa2aa;
  font-size: 24px;
}

.student-thumb .avatar-fallback i {
  line-height: 1;
}

@keyframes avatar-spin {
  to {
    transform: rotate(360deg);
  }
}

.intake-card h3 {
  margin-bottom: 3px;
}

.intake-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.intake-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 8px;
  margin: 0 0 10px;
}

.intake-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.intake-card dd {
  margin: 0;
  font-weight: 800;
}

.support-note {
  border-radius: 8px;
  background: #fff7cd;
  color: #6b4d00;
  padding: 10px;
  margin-bottom: 10px;
}

.support-note p {
  color: #6b4d00;
}

.quick-edit {
  border-top: 1px solid var(--line);
  margin: 8px 0 10px;
  padding-top: 8px;
}

.quick-edit summary {
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-edit label {
  margin-top: 8px;
}

.quick-edit[open] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-edit[open] summary,
.quick-edit .wide-field {
  grid-column: 1 / -1;
}

.trial-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.trial-edit-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.trial-class-change-modal {
  width: min(760px, calc(100vw - 24px));
}

.trial-class-change-modal > form {
  display: grid;
  gap: 16px;
}

.trial-class-change-modal > form > header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

.trial-class-change-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #e6f8fd;
  color: var(--blue);
  font-size: 20px;
}

.trial-class-change-filters {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.trial-class-change-filters > div > span,
.trial-class-change-filters label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.trial-class-day-options {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.trial-class-day-options button {
  min-height: 42px;
  padding: 6px;
  background: #f4f7fa;
  color: #435066;
}

.trial-class-day-options button.is-active {
  background: var(--blue);
  color: #fff;
}

.trial-class-change-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(440px, 48vh);
  overflow: auto;
  padding: 2px 4px 6px 2px;
}

.trial-class-option {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  min-height: 82px;
  padding: 10px;
  border: 2px solid #d8e1ea;
  background: #fff;
  color: #273449;
  text-align: left;
}

.trial-class-option.is-selected {
  border-color: var(--green);
  background: #edfff2;
  color: #146c35;
}

.trial-class-option.is-full {
  border-color: #e2e5e9;
  background: #f3f4f6;
  color: #87909d;
  box-shadow: none;
  cursor: not-allowed;
}

.trial-class-teacher-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #dce5ec;
  border-radius: 50%;
  background: #eef7fa;
  color: var(--blue);
}

.trial-class-teacher-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trial-class-option > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.trial-class-option strong {
  font-size: 18px;
}

.trial-class-option small,
.trial-class-option em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.trial-class-change-confirmation {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  padding: 14px;
  border-left: 4px solid var(--green);
  background: #effcf3;
}

.trial-class-change-confirmation[hidden] {
  display: none;
}

.trial-class-change-confirmation > div {
  display: grid;
  gap: 2px;
}

.trial-class-change-confirmation small,
.trial-class-change-confirmation span {
  color: var(--muted);
  font-weight: 800;
}

.trial-class-email-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #99dced;
  background: #eefaff;
  color: #17647a;
  font-weight: 800;
}

.trial-class-change-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 680px) {
  .quick-edit[open] {
    grid-template-columns: 1fr;
  }

  .trial-class-change-filters,
  .trial-class-change-confirmation,
  .trial-class-change-options {
    grid-template-columns: 1fr;
  }

  .trial-class-day-options {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
  }

  .trial-class-change-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.intake-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.intake-card footer > :not(.intake-icon-action):not(.intake-compact-actions) {
  flex: 1 1 135px;
}

.intake-card footer .intake-compact-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex: 0 0 auto;
}

.intake-card footer .intake-icon-action {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex: 0 0 44px;
}

.intake-card footer .intake-icon-action i {
  margin: 0;
}

.intake-card footer .intake-icon-action.parent-dashboard {
  background: #d9f4df;
  border-color: #84c997;
  color: #176c37;
}

.intake-card footer .intake-icon-action.message {
  background: #d9eef8;
  border-color: #82bfd9;
  color: #105f82;
}

.intake-card footer .intake-icon-action:disabled {
  background: #c7ced4;
  border-color: #aeb7bf;
  color: #fff;
}

.intake-card footer .intake-action-roster {
  background: #dff4e7;
  border-color: #8bcda3;
  color: #17693a;
}

.intake-card footer .intake-action-invoice {
  background: #dceefb;
  border-color: #8bbddd;
  color: #155d84;
}

.intake-card footer .intake-action-contact {
  background: #eee6fa;
  border-color: #b8a0dc;
  color: #5d3d8d;
}

.intake-card footer .intake-action-danger {
  background: #ffe5df;
  border-color: #e9a396;
  color: #9b382d;
}

.intake-card footer .intake-action-schedule {
  background: #fff1c9;
  border-color: #dfbd63;
  color: #78580d;
}

.intake-card button,
.mini-action {
  min-height: 34px;
  padding: 7px 8px;
  font-size: 12px;
}

.mini-action {
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.intake-card button {
  background: var(--green);
}

.mini-action.message {
  background: #777;
}

.empty-column {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.empty-state {
  border: 3px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  font-weight: 800;
}

.intake-live-unlock {
  border-color: rgba(53, 183, 212, .45);
  background: #f4fcff;
}

.intake-live-unlock form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.intake-live-unlock input {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.notice-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(0, 1.2fr));
  gap: 12px;
  margin-top: 16px;
}

.notice-row article,
.notice-column {
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff7cd;
  color: #6b4d00;
  padding: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.notice-column {
  min-height: 260px;
  background: #fff;
}

.notice-row p:last-child {
  margin-bottom: 0;
}

.fast-game-launch {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.fast-game-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 3px solid var(--red);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.fast-game-card.is-empty {
  border-color: var(--line);
}

.fast-game-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.fast-game-main h2 {
  margin: 0;
}

.fast-game-main p:last-child {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0;
}

.fast-game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fast-game-actions a {
  white-space: nowrap;
}

.fast-game-actions i {
  margin-right: 7px;
}

.teacher-notices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.teacher-notices.message-inbox {
  display: block;
}

.teacher-inbox-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.teacher-inbox-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 4px solid #cdeaf2;
  border-radius: 50%;
  color: #0f6d83;
  background: #eefaff;
  font-size: 1.7rem;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.teacher-inbox-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-inbox-identity h2,
.teacher-inbox-identity p:last-child {
  margin-bottom: 0;
}

.teacher-new-message {
  margin-top: 14px;
}

.teacher-new-message-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 2px solid #9edcf0;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: #eefaff;
  text-align: left;
  cursor: pointer;
}

.teacher-new-message-trigger > i {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

.teacher-new-message-trigger strong,
.teacher-new-message-trigger small {
  display: block;
}

.teacher-new-message-trigger small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.teacher-new-message-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.teacher-new-message-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-new-message-form .wide-field,
.teacher-new-message-form footer,
.teacher-new-message-form .field-note,
.teacher-new-message-form .empty-state {
  grid-column: 1 / -1;
}

.teacher-new-message-form input,
.teacher-new-message-form select,
.teacher-new-message-form textarea {
  width: 100%;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  text-transform: none;
}

.teacher-new-message-form footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-new-message-form footer button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.teacher-new-message-form footer button.secondary-action {
  color: var(--ink);
  background: #e8edf2;
}

.notice-card {
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
  transition: opacity 160ms ease, transform 160ms ease;
}

.notice-card.is-high {
  border-color: var(--red);
}

.notice-card.is-dismissing {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}

.notice-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.notice-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
}

.notice-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.notice-card dd {
  margin: 0;
  font-weight: 800;
}

.teacher-avatar-review {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 14px 0;
  padding: 14px;
  border: 2px solid #bfe8f5;
  border-radius: 8px;
  background: #f4fbfe;
}

.teacher-avatar-review-photo {
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid #28afd2;
  border-radius: 50%;
  background: #fff;
}

.teacher-avatar-review-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.teacher-avatar-review div {
  display: grid;
  gap: 4px;
}

.teacher-avatar-review small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-avatar-review strong {
  font-size: 22px;
}

.teacher-avatar-review p {
  margin: 0;
}

@media (max-width: 620px) {
  .teacher-avatar-review {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .teacher-avatar-review-photo {
    width: 82px;
  }
}

.notice-card footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.message-inbox-filters {
  display: grid;
  gap: 8px;
}

.message-inbox-filters > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.message-inbox-filters button,
.message-thread-card footer button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.message-inbox-filters button.is-active {
  color: #fff;
  background: var(--blue);
}

.message-inbox-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.message-inbox-filters button i {
  font-size: .9rem;
}

.message-student-search {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 4px 2px 8px;
  background: var(--paper, #fff);
}

.message-student-search span {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.message-student-search input {
  width: 100%;
  min-height: 42px;
  border: 2px solid #9edcf0;
  border-radius: 12px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.message-student-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(48, 173, 214, .16);
}

.message-thread-card footer button {
  color: #fff;
  background: var(--green);
}

.message-thread-card footer button.danger-action {
  background: var(--red);
}

.message-thread-card footer .message-dashboard-icon {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
}

.message-thread-card footer .parent-dashboard {
  background: var(--blue);
}

.message-thread-card.is-avatar-approval {
  border-color: #ffd84d;
  background: #fffaf0;
}

.message-thread-card.is-project-proof {
  border-color: #54b8d0;
  background: #f4fcff;
}

.message-thread-card.is-portfolio-comment {
  border-color: #63b882;
  background: #f5fff8;
}

.message-template-source,
.message-email-preview {
  margin-top: 12px;
  border: 2px solid #d9e3ed;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbfd;
}

.message-template-source {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.message-template-source > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #0f6d83;
  background: #e8f8ff;
}

.message-template-source strong,
.message-template-source small {
  display: block;
}

.message-template-source small {
  color: var(--muted);
  font-weight: 850;
}

.message-email-preview {
  border-color: #f5c542;
  background: #fffaf0;
}

.message-email-preview strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.message-email-preview pre {
  overflow: auto;
  white-space: pre-wrap;
  margin: 10px 0 0;
  color: #4b5563;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.5;
}

.message-email-preview small {
  display: block;
  margin-top: 10px;
  border-radius: 999px;
  padding: 7px 10px;
  color: #6b4d00;
  background: #fff1c4;
  font-weight: 950;
}

.message-thread-card footer button:disabled {
  opacity: .72;
  cursor: default;
}

.message-inbox-layout {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.teacher-thread-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.teacher-thread-tabs button {
  min-height: 38px;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}

.teacher-thread-tabs button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.teacher-message-center .parent-message-subjects {
  max-height: 68vh;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.teacher-message-center .teacher-new-message-trigger {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 8px;
  background: #eefaff;
}

.teacher-conversation-composer {
  margin-top: 14px;
}

.teacher-conversation-composer > header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teacher-conversation-composer h3,
.teacher-conversation-composer p {
  margin: 0;
}

.teacher-compose-days {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.teacher-compose-days button {
  width: 42px;
  height: 42px;
  border: 2px solid #b9dce8;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: .7rem;
  font-weight: 950;
  cursor: pointer;
}

.teacher-compose-days button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.teacher-compose-roster {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 2px;
}

.teacher-compose-search {
  grid-column: 1 / -1;
}

.teacher-compose-search > div {
  position: relative;
}

.teacher-compose-search i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #0786a5;
  transform: translateY(-50%);
  pointer-events: none;
}

.teacher-new-message-form .teacher-compose-search input {
  padding-left: 38px;
}

.teacher-compose-no-results {
  grid-column: 1 / -1;
}

.teacher-message-attachment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.teacher-message-attachment button {
  border: 0;
  border-radius: 8px;
  padding: 11px 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.teacher-message-attachment span {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.message-chat-attachment {
  display: block;
  width: min(100%, 560px);
  max-height: 420px;
  margin-top: 9px;
  border-radius: 8px;
  object-fit: contain;
  background: #101827;
}

.teacher-compose-student {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.teacher-compose-student[hidden],
.teacher-compose-no-results[hidden] {
  display: none;
}

.teacher-compose-student.is-selected {
  border-color: var(--blue);
  background: #eefaff;
}

.teacher-compose-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid #b9dce8;
  border-radius: 50%;
  color: #087c99;
  background: #eafaff;
}

.teacher-compose-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-compose-student strong,
.teacher-compose-student small,
.teacher-compose-student em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-compose-student small,
.teacher-compose-student em {
  margin-top: 2px;
  color: var(--muted);
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
}

.teacher-message-center .message-subject-button {
  border-radius: 8px;
  box-shadow: none;
}

.teacher-message-center .parent-thread-card {
  display: grid;
  gap: 12px;
  border: 2px solid #d9e3ed;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.teacher-message-center .parent-thread-card.is-open {
  border-color: #8ed7e9;
  background: #f3fcff;
}

.teacher-message-center .parent-thread-card.is-resolved {
  border-color: #a9dbb8;
  background: #f5fff7;
}

.teacher-message-center .parent-thread-card > header em {
  align-self: start;
  border-radius: 999px;
  padding: 7px 10px;
  color: #0f6d83;
  background: #e4f8fd;
  font-size: .74rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.teacher-message-center .parent-chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
  border: 2px solid #dbe4ee;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.teacher-message-center .parent-chat-bubble {
  align-self: flex-start;
  width: fit-content;
  max-width: min(88%, 72ch);
  border: 2px solid #d9e3ed;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.teacher-message-center .parent-chat-bubble.from-owner,
.teacher-message-center .parent-chat-bubble.from-teacher,
.teacher-message-center .parent-chat-bubble.from-studio {
  align-self: flex-end;
  border-color: #9edcf0;
  background: #eefaff;
}

.teacher-message-center .parent-chat-bubble.from-system {
  align-self: center;
  border-color: #efcf71;
  background: #fff9df;
}

.teacher-message-center .parent-chat-bubble strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .74rem;
}

.teacher-message-center .parent-chat-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.teacher-thread-details {
  border: 1px solid #d9e3ed;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfd;
}

.teacher-thread-details summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 900;
}

.teacher-thread-details dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin: 12px 0 0;
}

.teacher-thread-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .teacher-inbox-identity {
    align-items: flex-start;
  }

  .teacher-inbox-avatar {
    width: 68px;
    height: 68px;
  }

  .teacher-message-center {
    grid-template-columns: 1fr;
  }

  .teacher-message-center .parent-message-subjects {
    max-height: 320px;
  }

  .teacher-new-message-form {
    grid-template-columns: 1fr;
  }
}

.message-subject-list {
  display: grid;
  gap: 8px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.message-subject-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 9px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.message-subject-button.is-active {
  border-color: var(--blue);
  background: #eefbff;
}

.message-subject-button.is-unread strong::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
}

.message-subject-button span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.message-subject-button strong,
.message-subject-button em,
.message-subject-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-subject-button strong {
  font-size: 0.95rem;
  font-style: normal;
  font-weight: 950;
}

.message-subject-button small,
.message-subject-button em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.message-reader {
  min-width: 0;
}

.message-reader-card {
  display: grid;
  gap: 12px;
}

.message-reader-people {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.message-reader-people h2,
.message-reader-people p {
  margin: 0;
}

.message-reader-people p:not(.kicker) {
  color: var(--muted);
  font-weight: 850;
}

.message-student-avatar,
.message-parent-avatar,
.message-subject-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 3px solid #dce6ef;
  border-radius: 50%;
  color: #0f6074;
  background: #e8f9fd;
  font-weight: 950;
}

.message-subject-avatar {
  width: 44px;
  height: 44px;
  border-color: #bfeaf5;
}

.message-parent-avatar {
  color: #785300;
  background: #fff4c9;
}

.message-student-avatar img,
.message-parent-avatar img,
.message-subject-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-approval-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 2px solid #ffe08a;
  border-radius: 10px;
  padding: 10px;
  background: #fff7d1;
}

.avatar-approval-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #7a5200;
  background: #fff;
  font-size: 1.2rem;
}

.avatar-approval-panel p,
.avatar-approval-panel small {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.project-proof-panel {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 2px solid #bfeaf5;
  border-radius: 12px;
  padding: 12px;
  background: #eefbff;
}

.project-proof-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 180px;
  border: 3px solid #fff;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12);
}

.project-proof-image.needs-work {
  border-color: rgba(245, 197, 66, .72);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .9), rgba(255, 241, 173, .72)),
    #fff8d9;
}

.project-proof-image img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.project-proof-image span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: #7a5200;
  background: #fff;
  font-size: 1.8rem;
  box-shadow: 0 6px 0 rgba(70, 18, 24, .12);
}

.project-proof-panel strong,
.project-proof-panel p {
  display: block;
  margin: 0;
}

.project-proof-panel p {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 850;
}

.project-proof-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  margin-top: 12px;
}

.project-proof-meta dt {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.project-proof-meta dd {
  margin: 0;
  font-weight: 900;
}

.portfolio-comment-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 2px solid rgba(99, 184, 130, .45);
  border-radius: 12px;
  padding: 12px;
  background: #f0fff4;
}

.portfolio-comment-panel > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #127838;
  background: #d9f7e3;
  font-size: 1.35rem;
}

.portfolio-comment-panel strong {
  display: block;
}

.portfolio-comment-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  color: #127838;
  background: #d9f7e3;
  font-weight: 950;
  text-transform: uppercase;
}

.portfolio-comment-panel blockquote {
  margin: 8px 0 0;
  border-left: 5px solid #63b882;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.4;
}

.portfolio-comment-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.message-thread-details {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8fbfd;
}

.message-thread-details summary {
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.message-thread-log {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.staff-chat-log {
  max-height: none;
  overflow: visible;
  margin-top: 0;
  padding: 10px;
  border: 2px solid #d9e3ed;
  border-radius: 12px;
  background: #f8fbfd;
}

.staff-chat-log.is-long {
  max-height: 330px;
  overflow-y: auto;
  align-content: end;
}

.message-thread-log article {
  border: 2px solid #e1e7ef;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.staff-chat-bubble {
  max-width: 78%;
}

.staff-chat-bubble.from-owner,
.staff-chat-bubble.from-teacher {
  justify-self: end;
  border-color: #bee9f4;
  background: #edfbff;
}

.staff-chat-bubble.from-parent {
  justify-self: start;
}

.staff-chat-bubble.from-system {
  justify-self: center;
  max-width: 92%;
  border-color: #ffe4a0;
  background: #fff8dc;
}

.message-thread-log p {
  margin-bottom: 0;
}

.message-reply-box {
  display: grid;
  gap: 8px;
  border: 2px solid #d9e3ed;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbfd;
}

.message-reply-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.message-reply-box textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-transform: none;
}

.message-reply-box button {
  width: fit-content;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.message-reply-box .teacher-message-attachment {
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid #d9e3ed;
}

.message-reply-box .teacher-message-attachment button {
  border-radius: 8px;
}

.message-internal-notes {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 2px solid #f1c84b;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9dc, #f5fbff);
}

.message-internal-notes > header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.message-internal-notes > header > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
}

.message-internal-notes header div,
.message-internal-notes label {
  display: grid;
  gap: 3px;
}

.message-internal-notes small,
.message-internal-notes label span,
.message-internal-note-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.message-internal-note-list {
  display: grid;
  gap: 7px;
}

.message-internal-note-list article {
  padding: 9px 11px;
  border: 1px solid #eadb91;
  border-radius: 9px;
  background: rgba(255, 255, 255, .82);
}

.message-internal-note-list article strong {
  color: var(--blue);
  font-size: 11px;
}

.message-internal-note-list article p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.message-internal-notes textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid #d8c46e;
  border-radius: 9px;
  padding: 10px;
  background: #fff;
  font: inherit;
}

.message-internal-notes > button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

@media (max-width: 860px) {
  .message-inbox-layout {
    grid-template-columns: 1fr;
  }

  .message-subject-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 78vw);
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 6px;
  }
}

.class-card,
.staff-card {
  padding: 16px;
}

.class-card header,
.staff-card header,
.roster-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.class-card h3,
.staff-card h3,
.roster-card h3,
.mini-card h3 {
  margin-bottom: 4px;
}

.roster-grid,
.mini-list {
  display: grid;
  gap: 12px;
}

.roster-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.roster-side-tools {
  display: grid;
  gap: 12px;
}

.roster-class-group {
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-left-width: 12px;
  border-radius: 12px;
  background: #f8f8f8;
  padding: 14px;
}

.roster-class-group.location-pleasanton {
  border-left-color: #28a9d2;
}

.roster-class-group.location-tracy {
  border-left-color: #ff2d2d;
}

.roster-class-group.location-pleasanton.path-creatives {
  border-left-color: #08718d;
}

.roster-class-group.location-tracy.path-creatives {
  border-left-color: #b3121c;
}

.roster-class-group.path-private {
  border-left-color: #1f2937;
}

.class-location-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e6f8ff;
  color: #08718d;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.roster-class-group.location-tracy .class-location-badge {
  background: #fff0f0;
  color: #c51f1f;
}

.class-path-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 4px 10px;
  background: #eef8ef;
  color: #157145;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.class-path-header-badge i {
  margin-right: 5px;
}

.class-path-header-badge.path-creatives {
  background: #eef5ff;
  color: #174ea6;
}

.class-path-header-badge.path-private {
  background: #f2f4f7;
  color: #1f2937;
}

.roster-day-group {
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.roster-day-group > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.roster-day-group > header .class-actions {
  align-items: center;
}

.roster-day-group > header h3 {
  font-size: 28px;
  margin-bottom: 0;
}

.roster-day-body,
.roster-class-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 240ms ease, opacity 180ms ease;
}

.roster-day-classes {
  display: grid;
  gap: 12px;
}

.roster-class-group > header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.roster-class-group > header > div:not(.class-actions) {
  flex: 1 1 auto;
  min-width: 0;
}

.roster-class-group > header > .class-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.class-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.class-settings-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: #6b7682;
  padding: 0;
}

.add-student-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--green);
  padding: 0;
}

.remove-class-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--red);
  padding: 0;
}

.select-class-button {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--yellow);
  color: #1f2933;
  padding: 0;
}

.select-class-button.is-active {
  background: var(--green);
  color: #fff;
}

.roster-class-group > header h3 {
  font-size: 24px;
  margin-bottom: 5px;
}

.roster-class-group > header p:last-child {
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0;
}

.class-toggle {
  min-width: 128px;
  background: var(--blue);
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.day-toggle {
  min-width: 128px;
  background: var(--red);
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.day-toggle span,
.class-toggle span {
  font-size: 12px;
}

.roster-day-group.is-open,
.roster-class-group.is-open {
  background: #fff;
}

.roster-class-group.is-search-target {
  outline: 4px solid rgba(53, 172, 210, 0.45);
  box-shadow: 0 0 0 8px rgba(53, 172, 210, 0.12), 0 5px 0 rgba(0, 0, 0, 0.12);
}

.roster-class-group.is-over-capacity {
  border-color: var(--red);
  background: #fff7f7;
}

.roster-class-group.needs-teacher-assignment {
  border-color: #f5c542;
  background: linear-gradient(135deg, #fffdf0, #ffffff);
}

.teacher-assignment-warning {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  border: 2px solid #f5c542;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff9df;
  color: #6b4f00;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.teacher-assignment-warning i {
  color: #d08a00;
}

.roster-class-group.is-teacher-break {
  border-color: #b7c3cc;
  border-right-width: 8px;
  border-right-color: #7d8993;
  background: repeating-linear-gradient(-45deg, #f2f4f6 0 12px, #e8edf1 12px 24px);
  color: #5c6670;
}

.roster-class-group.is-teacher-break .add-student-button {
  background: #9aa5ad;
}

.break-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  color: #0a6078 !important;
  font-weight: 950 !important;
}

.roster-class-group.is-drag-over {
  border-color: var(--green);
  background: #f2fff5;
}

.roster-class-group.is-selecting {
  border-color: var(--green);
  background: #f5fff7;
}

.warning-line {
  color: var(--red) !important;
  font-weight: 900 !important;
}

.roster-day-group.is-open > header,
.roster-class-group.is-open > header {
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.roster-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roster-card,
.mini-card {
  position: relative;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.roster-card.is-removing {
  pointer-events: none;
  animation: card-to-placement 260ms ease forwards;
}

.roster-card.is-selectable {
  cursor: pointer;
  position: relative;
}

.roster-card.is-selected {
  border-color: var(--green);
  background: #f2fff5;
}

.card-select-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: var(--blue);
  padding: 0;
}

.roster-card.is-selected .card-select-button {
  background: var(--green);
}

.temporary-hold-card {
  border-color: var(--yellow);
  background: #fffbe6;
}

.temporary-hold-card.trial-attended-hold-card,
.roster-card.trial-attended-hold-card {
  border-color: #1596b8;
  background: #eefbff;
}

.temporary-hold-card.trial-attended-hold-card .avatar-fallback,
.roster-card.trial-attended-hold-card .avatar-fallback {
  background: #d9f4fb;
  color: #08718d;
}

.status-flag.status-trial-attended {
  border-color: #1596b8;
  background: #d9f4fb;
  color: #075d74;
}

.temporary-hold-card.waitlist-card {
  border-color: var(--yellow);
  background: #fff8d7;
}

.temporary-hold-card.waitlist-card .avatar-fallback {
  background: var(--yellow);
  color: #6b4d00;
}

.waitlist-student-section { border-top-color: #aeb7c0; }
.waitlist-student-section > .kicker { color: #53606d; }
.roster-card.waitlist-card { border-color: #aeb7c0; background: #f1f3f5; }
.roster-card.waitlist-card .avatar-fallback { background: #dde2e7; color: #53606d; }
.waitlist-card .waitlist-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin-top: 8px; }
.waitlist-card .waitlist-contact-grid span { color: var(--muted); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }

.frozen-student-section {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 2px dashed #9ed8ea;
  padding-top: 12px;
}

.frozen-student-section > .kicker {
  color: #0a6078;
  margin: 0;
}

.frozen-student-card {
  border-color: #9ed8ea;
  background: #eefaff;
}

.frozen-student-card .avatar-fallback {
  background: #d5f2fb;
  color: #0a6078;
}

.frozen-student-card .status-frozen {
  background: #dff5ff;
}

.frozen-note {
  background: #dff5ff;
  color: #0a6078;
}

.notice-chip-row {
  display: grid;
  gap: 6px;
  border: 2px solid #ffd86b;
  border-radius: 10px;
  background: #fff7cd;
  color: #674900;
  padding: 10px;
}

.notice-chip-row p,
.notice-chip-row small {
  margin: 0;
  font-weight: 850;
  line-height: 1.2;
}

.notice-chip-row small {
  color: #7a5a00;
  font-size: 12px;
}

.notice-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #ffd23f;
  color: #1f2833;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.notice-chip.is-urgent {
  background: var(--red);
  color: #fff;
}

.classlist-pending-card {
  border-color: var(--blue);
  background: #eefaff;
}

.classlist-pending-card .support-note {
  background: #dff5ff;
}

.temporary-hold-card .support-note {
  background: #fff3bf;
}

.temporary-hold-card footer button {
  background: var(--red);
}

.teacher-hold-tray {
  display: grid;
  gap: 10px;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  background: #fff8d7;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.teacher-student-search-panel {
  display: grid;
  gap: 10px;
  border: 3px solid #35acd2;
  border-radius: 12px;
  background: #effbff;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.teacher-student-search-panel[hidden] {
  display: none;
}

.teacher-student-search-panel header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.teacher-student-search-panel h3,
.teacher-student-search-panel p {
  margin: 0;
}

.teacher-student-search {
  margin: 0;
}

.teacher-student-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.teacher-student-search-results[hidden] { display: none; }
.roster-search-panel { margin-bottom: 0; }

.teacher-student-result {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 2px solid #c8d7df;
  border-radius: 10px;
  background: #fff;
  padding: 10px 8px 8px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.teacher-student-result .roster-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-width: 2px;
}

.teacher-student-result > div {
  min-width: 0;
  padding-right: 60px;
}

.teacher-student-result > .status-flag {
  position: absolute;
  top: 9px;
  right: 8px;
  max-width: 74px;
  padding: 4px 8px;
  font-size: 10px;
  line-height: 1;
  white-space: normal;
  text-align: center;
}

.teacher-student-result.is-hold {
  border-color: #f5c542;
  background: #fffaf0;
}

.teacher-student-result strong,
.teacher-student-result small,
.teacher-student-result em {
  display: block;
}

.teacher-student-result strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.teacher-student-result small,
.teacher-student-result em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.teacher-student-result em {
  font-style: normal;
}

.teacher-student-result footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-student-result footer button,
.teacher-student-result footer .mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #35acd2;
  color: #fff;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.teacher-student-result footer .parent-dashboard {
  background: var(--blue);
}

.teacher-student-result footer .kid-dashboard {
  background: #5b6fd8;
}

.teacher-hold-tray[hidden] {
  display: none;
}

.teacher-hold-tray header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.teacher-hold-tray h3,
.teacher-hold-tray p {
  margin: 0;
}

.teacher-hold-tray p {
  color: #6b4d00;
  font-weight: 850;
  line-height: 1.25;
}

.teacher-hold-chip-list {
  display: grid;
  gap: 8px;
}

.teacher-hold-chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  margin: 0;
  border: 2px solid #f5c542;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  text-align: left;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.teacher-hold-chip .student-thumb {
  width: 40px;
  height: 40px;
}

.teacher-hold-chip strong,
.teacher-hold-chip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-hold-chip strong {
  font-size: 14px;
  font-weight: 950;
}

.teacher-hold-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.teacher-hold-chip > i {
  justify-self: end;
  color: #9a6d00;
}

.teacher-hold-chip:hover,
.teacher-hold-chip:focus-visible {
  border-color: var(--red);
  background: #fff2f2;
}

.billing-review-tray {
  border-color: rgba(245, 197, 66, .85);
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 32, 38, .11), transparent 24%),
    linear-gradient(135deg, #fffdf1, #fff);
}

.billing-review-tray header .kicker {
  color: #9a6a00;
}

.billing-review-chip {
  grid-template-columns: 1fr;
  border-color: rgba(245, 197, 66, .75);
  background: #fff;
}

.billing-review-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  box-shadow: none;
}

.billing-review-open:hover,
.billing-review-open:focus-visible {
  background: #fff7d7;
  box-shadow: 0 0 0 3px rgba(245, 197, 66, .24);
}

.billing-review-open b {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  border-radius: 999px;
  background: #e8f8ee;
  color: #087332;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-review-chip.action-needs_square_pull .billing-review-open b {
  background: #fff2c2;
  color: #7a5700;
}

.billing-review-chip.action-ready_invoice_update .billing-review-open b {
  background: #e8f6ff;
  color: #075d83;
}

.billing-review-chip.action-keep_grandfathered .billing-review-open b {
  background: #f4ebff;
  color: #5c2d91;
}

.billing-review-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.billing-review-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  border-radius: 8px;
  padding: 6px 7px;
  font-size: 10px;
  line-height: 1.1;
}

.billing-review-modal-tools {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 2px solid #f5c542;
  border-radius: 10px;
  background: linear-gradient(135deg, #fffdf1, #fff);
  padding: 10px;
}

.billing-review-modal-tools > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.billing-review-modal-tools > summary::-webkit-details-marker { display: none; }
.billing-review-modal-tools > summary header { min-width: 0; }
.billing-review-chevron { justify-self: center; transition: transform .18s ease; }
.billing-review-modal-tools[open] .billing-review-chevron { transform: rotate(180deg); }

.tuition-token-repair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(180px, .9fr) minmax(170px, .8fr);
  gap: 10px;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 14px 0;
  border: 1px solid #9bd8ea;
  border-radius: 7px;
  padding: 10px;
  background: #f5fcff;
}

.recent-billing-reference {
  display: grid;
  gap: 9px;
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0;
  border: 1px solid #cbd9e5;
  border-radius: 7px;
  padding: 10px;
  background: #f8fbfd;
}
.recent-billing-reference > header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}
.recent-billing-reference > header > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7fc;
  color: #087ea4;
}
.recent-billing-reference > header > div { display: grid; min-width: 0; }
.recent-billing-reference > header strong { color: #233047; font-size: 14px; }
.recent-billing-reference > header small { color: #667085; font-size: 11px; font-weight: 750; }
.recent-billing-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.recent-billing-reference-grid .square-history-row { grid-template-columns: 34px minmax(0, 1fr) auto; align-content: start; }
.recent-billing-reference-grid .square-history-row > a { grid-column: 2 / -1; width: 100%; height: 32px; border-radius: 6px; }
.recent-billing-reference-grid .square-history-row > b { align-self: start; }
@media (max-width: 1050px) {
  .recent-billing-reference-grid { grid-template-columns: 1fr; }
  .recent-billing-reference-grid .square-history-row { grid-template-columns: 34px minmax(0, 1fr) auto 34px; }
  .recent-billing-reference-grid .square-history-row > a { grid-column: auto; width: 34px; height: 34px; border-radius: 50%; }
}
@media (max-width: 700px) {
  .recent-billing-reference-grid .square-history-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .recent-billing-reference-grid .square-history-row > a { grid-column: 2 / -1; width: 100%; border-radius: 6px; }
}

.tuition-token-repair > div,
.tuition-token-repair label { display: grid; gap: 4px; min-width: 0; }
.tuition-token-repair > div:first-child { align-self: center; padding-top: 0; }
.tuition-token-repair label span { color: #667085; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tuition-token-repair input,
.tuition-token-repair select { width: 100%; min-width: 0; min-height: 40px; }
.tuition-token-price-preview { color: #16845b; font-size: 11px; font-weight: 900; text-transform: none; }
.tuition-token-kind {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  min-width: 0;
  color: #17657a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}
.tuition-token-kind i { color: #16a06f; }
.tuition-token-kind.is-grandfathered { color: #775b13; }
.tuition-token-kind.is-grandfathered i { color: #c28a0b; }
.tuition-token-repair > button { align-self: center; width: 100%; min-width: 0; min-height: 40px; margin-top: 0; white-space: nowrap; }
.tuition-token-repair > p { grid-column: 1 / -1; margin: 0; }
.tuition-token-repair > p:empty { display: none; }

.tuition-token-inline-lookup {
  grid-column: 1 / -1;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #cbd9e5;
  border-radius: 7px;
  background: #fff;
}

.tuition-token-inline-lookup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #233047;
  cursor: pointer;
  list-style: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.tuition-token-inline-lookup > summary::-webkit-details-marker { display: none; }
.tuition-token-inline-lookup > summary span { display: flex; align-items: center; gap: 8px; }
.tuition-token-inline-lookup > summary > i { flex: 0 0 18px; width: 18px; margin-left: auto; text-align: center; }
.tuition-token-inline-lookup[open] > summary > i { transform: rotate(180deg); }
.tuition-token-inline-lookup-body { display: grid; gap: 8px; border-top: 1px solid #d7e2eb; padding: 10px; scroll-margin: 20px; }
.tuition-token-inline-lookup-body > label { grid-template-columns: minmax(0, 1fr); }
.tuition-token-inline-results { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.tuition-token-inline-results > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px) 88px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #d7e2eb;
  background: #f8fbfd;
  color: #233047;
  padding: 8px 10px;
  text-align: left;
}
.tuition-token-inline-results > button[hidden] { display: none; }
.tuition-token-inline-results > button > span { display: grid; gap: 2px; }
.tuition-token-inline-results > button small { color: #667085; }
.tuition-token-inline-results > button code { overflow-wrap: anywhere; font-size: 11px; }
.tuition-token-inline-results > button em { display: grid; place-items: center; min-height: 30px; color: #087f9d; font-size: 10px; font-style: normal; font-weight: 950; text-align: center; text-transform: uppercase; white-space: nowrap; }
.tuition-token-refresh-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tuition-token-refresh-row > span { color: #667085; font-size: 11px; font-weight: 850; }
.tuition-token-refresh-row > button { min-height: 36px; padding: 7px 12px; }
@media (max-width: 700px) {
  .tuition-token-inline-results > button { grid-template-columns: minmax(0, 1fr) 78px; }
  .tuition-token-inline-results > button code { grid-column: 1 / -1; grid-row: 2; }
}
.tuition-token-repair input.is-token-selected { animation: tuition-token-selected 700ms ease-out; }
@keyframes tuition-token-selected {
  0% { border-color: #21adcf; box-shadow: 0 0 0 5px rgba(33, 173, 207, .22); }
  100% { box-shadow: 0 0 0 0 rgba(33, 173, 207, 0); }
}

@media (max-width: 1100px) {
  .tuition-token-repair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tuition-token-repair > p,
  .tuition-token-inline-lookup { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .tuition-token-repair { grid-template-columns: 1fr; }
  .tuition-token-repair > p { grid-column: auto; }
  .tuition-token-repair > button { margin-top: 0; }
  .tuition-token-repair > div:first-child { padding-top: 0; }
}

.billing-review-modal-tools header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.billing-review-modal-tools header > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #fff2c2;
  color: #9a6a00;
}

.billing-review-modal-tools strong,
.billing-review-modal-tools p,
.billing-review-modal-tools small {
  display: block;
}

.billing-review-modal-tools p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.billing-review-modal-tools small {
  margin-top: 3px;
  color: #8a94a3;
  font-size: 11px;
  font-weight: 850;
}

.billing-review-modal-tools header b {
  border-radius: 999px;
  background: #fff2c2;
  color: #7a5700;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.billing-review-modal-tools.action-reviewed {
  border-color: #33bf60;
  background: linear-gradient(135deg, #f1fff5, #fff);
}

.billing-review-modal-tools.action-ready_invoice_update {
  border-color: #35acd7;
  background: linear-gradient(135deg, #edf9ff, #fff);
}

.billing-review-modal-tools.action-keep_grandfathered {
  border-color: #a77bd8;
  background: linear-gradient(135deg, #f8f1ff, #fff);
}

.billing-review-modal-tools.is-resolution-target {
  outline: 4px solid rgba(53, 174, 211, .3);
  box-shadow: 0 0 0 7px rgba(53, 174, 211, .12);
}

.billing-review-guidance {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  border: 1px solid #9bd8ea;
  border-radius: 7px;
  padding: 10px;
  background: #eefaff;
  color: #273247;
}

.billing-review-guidance > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #25a9d3;
}

.billing-review-guidance p { margin: 0; line-height: 1.35; }

.square-snapshot-status {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  margin-top: 12px;
}

.square-snapshot-status > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
}

.square-snapshot-status strong,
.square-snapshot-status p,
.square-snapshot-status small {
  display: block;
}

.square-snapshot-status p {
  margin: 2px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.square-snapshot-status small {
  margin-top: 3px;
  color: #09546a;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.square-snapshot-status.status-missing {
  border-color: rgba(255, 32, 38, .34);
  background: #fff7f7;
}

.square-snapshot-status.status-missing > span {
  background: #ffe5e8;
  color: #ff2026;
}

.square-snapshot-status.status-ready_for_pull,
.square-snapshot-status.status-queued_for_square_pull,
.square-snapshot-status.status-missing_square_history {
  border-color: rgba(245, 197, 66, .85);
  background: #fffdf1;
}

.square-snapshot-status.status-ready_for_pull > span,
.square-snapshot-status.status-queued_for_square_pull > span,
.square-snapshot-status.status-missing_square_history > span {
  background: #fff2c2;
  color: #9a6a00;
}

.square-snapshot-status.status-square_api_not_connected {
  border-color: rgba(84, 184, 208, .65);
  background: #f0fbff;
}

.billing-review-chip.status-grandfathered_review {
  background: #fff9df;
}

.billing-review-chip.status-needs_square_history,
.billing-review-chip.status-price_mismatch,
.billing-review-chip.status-catalog_mismatch {
  border-color: rgba(255, 32, 38, .36);
  background: #fff7f7;
}

.billing-review-chip > .fa-file-invoice-dollar {
  color: #9a6a00;
}

.roster-card dl,
.mini-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
}

.roster-card dt,
.mini-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-card dd,
.mini-card dd {
  margin: 0;
  font-weight: 800;
}

.roster-card-account-summary {
  display: grid;
  gap: 10px;
}

.roster-card-balance-line {
  display: grid;
  grid-template-columns: minmax(70px, .35fr) minmax(0, 1.65fr);
  gap: 8px;
}

.roster-card-balance-line > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #dbe5ec;
  border-radius: 6px;
  background: #f8fbfd;
}

.roster-card-account-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.roster-card-balance-line strong,
.roster-card-class-event strong,
.roster-card-quest-summary strong {
  color: #273247;
  overflow-wrap: anywhere;
}

.roster-card-class-events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.roster-card-class-event {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbe5ec;
  border-left: 3px solid #23a873;
  border-radius: 6px;
  background: #fff;
}

.roster-card-class-event.is-next { border-left-color: #26a9d0; }
.roster-card-class-event.is-absence { border-left-color: #e23b43; background: #fff8f8; }
.roster-card-class-event.is-makeup { border-left-color: #d79a16; background: #fffaf0; }
.roster-card-class-event > i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #eaf7f2; color: #16825a; }
.roster-card-attendance-photo { width: 30px; min-height: 30px; height: 30px; margin: 0; padding: 0; overflow: hidden; border: 2px solid #24a9cd; border-radius: 50%; background: #edf7fa; box-shadow: none; }
.roster-card-attendance-photo img { width: 100%; height: 100%; object-fit: cover; }
.roster-card-class-event.is-next > i { background: #eaf7fb; color: #087e9f; }
.roster-card-class-event.is-absence > i { background: #ffe9eb; color: #c72d38; }
.roster-card-class-event.is-makeup > i { background: #fff0c9; color: #9a6500; }
.roster-card-class-event.is-makeup em { color: #845b08; }
.roster-card-class-event > div { display: grid; gap: 1px; min-width: 0; }
.roster-card-class-event span,
.roster-card-class-event em { color: #667386; font-size: 11px; font-style: normal; overflow-wrap: anywhere; }
.roster-card-class-event em { margin-top: 3px; color: #176c46; font-weight: 850; }

.roster-card-billing-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #cfe1ea;
  border-left: 3px solid #25a9cf;
  border-radius: 6px;
  background: #f6fbfd;
}
.roster-card-billing-summary > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e3f5fb; color: #087e9f; }
.roster-card-billing-summary > div { display: grid; gap: 1px; min-width: 0; }
.roster-card-billing-summary strong { color: #273247; overflow-wrap: anywhere; }
.roster-card-billing-summary em { color: #667386; font-size: 11px; font-style: normal; }
.roster-card-billing-summary > b { color: #273247; font-size: 11px; white-space: nowrap; }
.roster-card-billing-summary > a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #23a9cf; color: #fff; }
.roster-card-billing-summary.status-unpaid,
.roster-card-billing-summary.status-sent { border-left-color: #e8aa22; background: #fffaf0; }
.roster-card-billing-summary.status-paid { border-left-color: #26a269; background: #f4fcf7; }

.roster-card-quest-summary {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 58px 58px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 9px;
  border: 1px solid #eadced;
  border-radius: 6px;
  background: #fffafe;
}

.roster-card-quest-summary > div { display: grid; gap: 2px; min-width: 0; }
.roster-card-quest-summary > div span { color: #667386; font-size: 11px; overflow-wrap: anywhere; }
.roster-quest-progress { --ring-color: #9d54b4; position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(var(--ring-color) calc(var(--progress) * 1%), #dfe7ec 0); }
.roster-quest-progress.is-stage { --ring-color: #21a8ce; }
.roster-quest-progress > span { display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #edf4f7; color: #64748b; }
.roster-quest-progress img { width: 100%; height: 100%; object-fit: cover; }
.roster-quest-progress b { position: absolute; right: -4px; bottom: -3px; min-width: 27px; padding: 2px 4px; border: 2px solid #fff; border-radius: 9px; background: #273247; color: #fff; font-size: 9px; line-height: 1; text-align: center; }

.roster-attendance-lightbox { width: min(92vw, 820px); max-height: 92vh; padding: 0; border: 0; border-radius: 8px; background: #fff; }
.roster-attendance-lightbox::backdrop { background: rgba(15, 23, 42, .82); }
.roster-attendance-lightbox > form { display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.roster-attendance-lightbox > section { display: grid; gap: 12px; padding: 0 18px 20px; }
.roster-attendance-lightbox h2 { margin: 0; font-size: 19px; }
.roster-attendance-lightbox img { display: block; width: 100%; max-height: calc(92vh - 100px); object-fit: contain; border-radius: 6px; background: #eef3f6; }

@media (max-width: 620px) {
  .roster-card-balance-line,
  .roster-card-class-events { grid-template-columns: 1fr; }
  .roster-card-billing-summary { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .roster-card-billing-summary > b { grid-column: 2 / -1; white-space: normal; }
}

.roster-invoice-link {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #087f9d;
  font-weight: 800;
  box-shadow: none;
  text-transform: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.roster-invoice-link:hover,
.roster-invoice-link:focus-visible {
  color: #ff2026;
}

.roster-id-chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  border: 1px solid #b9dbe5;
  border-radius: 6px;
  padding: 3px 4px 3px 7px;
  background: #f3fbfd;
}

.roster-id-chip > b {
  color: #4f6570;
  font-size: 9px;
  text-transform: uppercase;
}

.roster-id-chip.is-label-free { padding-left: 7px; }

.roster-id-chip > span,
.roster-id-chip > a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-id-chip > button {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  min-height: 22px;
  border-radius: 50%;
  padding: 0;
  background: #159bc4;
  color: #fff;
  font-size: 10px;
}

.roster-id-chip > button.is-copied { background: #22b957; }

/* Invoice identifiers use the same compact treatment as order identifiers. */
.student-modal .billing-summary-list .roster-id-chip > a.roster-invoice-link {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #273247;
  font: inherit;
  text-decoration: none;
  text-transform: none;
  transform: none;
}

.student-modal .billing-summary-list .roster-id-chip > a.roster-invoice-link:hover,
.student-modal .billing-summary-list .roster-id-chip > a.roster-invoice-link:focus-visible {
  color: #087f9d;
  box-shadow: none;
  transform: none;
}

.email-test-panel {
  max-width: 820px;
  margin: 24px auto;
}

.email-test-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.email-test-form .wide-field,
.email-test-form button,
.email-test-result {
  grid-column: 1 / -1;
}

.email-test-result {
  padding: 18px;
  border: 2px solid #d7e2ec;
  border-radius: 8px;
  background: #f7fbfd;
}

.email-test-result.is-success {
  border-color: #20b958;
  background: #effcf3;
}

.email-test-result.is-error {
  border-color: #ff2026;
  background: #fff4f4;
}

.email-test-config {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 700px) {
  .email-test-form { grid-template-columns: 1fr; }
}

.makeup-credit-conversion-button {
  width: 100%; min-height: 44px; margin: 4px 0 10px; display: flex;
  align-items: center; justify-content: center; gap: 9px; color: #fff; background: #1c7f45;
}
.credit-conversion-modal {
  width: min(760px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border-color: #b9d7e5;
  background: #f7fbfd;
}
.credit-conversion-modal .student-detail { gap: 0; }
.credit-conversion-modal .student-detail > header {
  margin: 0;
  padding: 22px 24px 18px;
  border-bottom: 2px solid #bde5f0;
  background: linear-gradient(120deg, #eaf9fc 0%, #fffbe3 100%);
}
.credit-conversion-modal .student-detail > header h2 { margin: 3px 0 2px; }
.credit-conversion-modal .modal-close {
  top: 14px;
  right: 14px;
  z-index: 3;
}
.credit-conversion-modal .hold-form {
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 20px 24px 24px;
}
.credit-conversion-modal .hold-form > label:not(.credit-conversion-option) { min-width: 0; }
.credit-conversion-modal .hold-form > label:nth-of-type(3),
.credit-conversion-modal .credit-conversion-evidence,
.credit-conversion-modal .credit-conversion-option,
.credit-conversion-modal [data-credit-conversion-status],
.credit-conversion-modal button[type="submit"] { grid-column: 1 / -1; }
.credit-conversion-from { grid-column: 1; }
.credit-conversion-to { grid-column: 3; }
.credit-conversion-to input[readonly] { background: #edf9f1; border-color: #8fd2a7; color: #176f3a; }
.credit-conversion-arrow {
  display: grid; grid-column: 2; place-items: end center; padding-bottom: 11px;
  color: #16924b; font-size: 22px;
}
.credit-conversion-evidence, .credit-conversion-preview {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.credit-conversion-evidence > div, .credit-conversion-preview > span {
  min-width: 0; padding: 12px; border: 1px solid #c5dbe5; border-radius: 9px; background: #fff;
}
.credit-conversion-evidence span, .credit-conversion-preview span { display: grid; gap: 3px; color: #5c6875; }
.credit-conversion-evidence strong, .credit-conversion-preview strong { color: #243145; overflow-wrap: anywhere; line-height: 1.2; }
.credit-conversion-option {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 12px;
  min-height: 72px; padding: 13px 15px; border: 2px solid #cadce6; border-radius: 10px; background: #fff;
  color: #26354a; text-transform: none; cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.credit-conversion-option > input {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}
.credit-conversion-option .styled-check-box {
  width: 34px; height: 34px; border: 3px solid #9eb2bf; border-radius: 9px;
  background: #f7fafc; color: transparent;
}
.credit-conversion-option > span:last-child { display: grid; gap: 3px; min-width: 0; }
.credit-conversion-option strong { font-size: 14px; line-height: 1.2; }
.credit-conversion-option small { display: block; margin: 0; color: #647180; font-size: 12px; line-height: 1.35; text-transform: none; }
.credit-conversion-option:has(input:checked) { border-color: #20aa59; background: #effcf4; box-shadow: 0 5px 14px rgba(32, 170, 89, .12); }
.credit-conversion-option input:checked + .styled-check-box { border-color: #20aa59; background: #20aa59; color: #fff; }
.credit-conversion-option:has(input:focus-visible) { outline: 3px solid rgba(43, 171, 211, .3); outline-offset: 2px; }
.credit-conversion-preview { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credit-conversion-preview-title {
  display: flex; grid-column: 1 / -1; align-items: center; gap: 8px;
  padding: 2px 2px 0; color: #25364b; font-size: 14px;
}
.credit-conversion-preview-title i { color: #15944c; }
.credit-conversion-preview > span { border-width: 2px; background: #eef9fd; font-size: 15px; }
.credit-conversion-preview strong { font-size: 18px; }
.credit-conversion-modal [data-credit-conversion-status] { margin: 0; padding: 10px 12px; border-radius: 8px; background: #edf3f6; }
.credit-conversion-modal button[type="submit"] { min-height: 48px; margin-top: 2px; font-size: 15px; }
@media (max-width: 620px) {
  .credit-conversion-modal .hold-form { grid-template-columns: 1fr; padding: 16px; }
  .credit-conversion-modal .hold-form > label { grid-column: 1 / -1; }
  .credit-conversion-arrow { grid-column: 1; place-items: center; padding: 0; transform: rotate(90deg); }
  .credit-conversion-evidence { grid-template-columns: 1fr; }
  .credit-conversion-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.roster-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roster-card.is-dragging,
.floating-card.is-dragging {
  opacity: 0.55;
}

.danger-action {
  background: var(--red);
}

.roster-avatar {
  box-shadow: none;
  min-height: 78px;
  min-width: 78px;
  padding: 0;
}

.placement-tray {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  border: 3px solid var(--yellow);
  border-radius: 12px;
  background: #fff8cc;
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.14);
  max-height: calc(100vh - 92px);
  min-height: 0;
  overflow: hidden;
}

.placement-tray[hidden] {
  display: none;
}

.placement-tray header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.placement-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.placement-tools button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  background: var(--red);
}

.placement-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.placement-tray h3,
.placement-tray p {
  margin: 0;
}

.placement-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.floating-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: grab;
}

.floating-card .student-thumb {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
}

.floating-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.floating-info > span:not(.floating-actions) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floating-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.floating-actions button {
  justify-self: start;
  min-height: 32px;
  padding: 6px 9px;
}

.floating-actions .dismiss-floating {
  min-width: 32px;
  width: 32px;
  border-radius: 50%;
  background: var(--red);
  padding: 0;
}

@keyframes card-to-placement {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  55% {
    opacity: 0.72;
    transform: translateY(-8px) scale(0.98);
  }

  100% {
    opacity: 0;
    transform: translateX(28px) translateY(-12px) scale(0.92);
  }
}

.student-modal {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.add-student-modal {
  width: min(760px, calc(100vw - 28px));
}

.waitlist-confirm-modal { width: min(680px, calc(100vw - 28px)); }
.waitlist-confirm-modal .student-detail > header { display: flex; align-items: center; gap: 14px; }
.waitlist-confirm-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: #e9edf1; color: #53606d; font-size: 24px; }
.waitlist-confirm-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.waitlist-confirm-evidence > div { display: grid; gap: 3px; min-width: 0; border: 2px solid var(--line); border-radius: 8px; padding: 10px; background: #f7fafc; }
.waitlist-confirm-evidence span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.waitlist-confirm-evidence strong { overflow-wrap: anywhere; }
.waitlist-safety-note { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: start; border-left: 4px solid #7d8791; padding: 12px; background: #f1f3f5; }
.waitlist-safety-note > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #53606d; }
.waitlist-safety-note p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.waitlist-confirm-modal .check-card { grid-template-columns: 34px minmax(0, 1fr) auto; }
.waitlist-confirm-modal .check-card strong small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.waitlist-confirm-modal .check-card em { color: #17844f; font-style: normal; font-weight: 900; }
.waitlist-confirm-modal .field-note.is-error { color: #a0172f; }
@media (max-width: 620px) { .waitlist-confirm-evidence { grid-template-columns: 1fr; } }

.student-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.student-search input {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.student-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
  align-items: start;
  gap: 12px;
  max-height: min(54vh, 520px);
  overflow: auto;
  padding: 4px 8px 8px 4px;
}

.student-chip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100%;
  min-height: 96px;
  height: auto !important;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  overflow: hidden;
  text-align: left;
  text-transform: none;
}

.student-chip > span:last-child {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

.student-modal .student-chip {
  justify-content: stretch;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
  text-transform: none;
}

.student-modal .student-chip.classlist-hold-chip {
  border-color: var(--yellow);
  background: #fffbe6;
}

.student-chip.classlist-hold-chip {
  border-color: var(--yellow);
  background: #fffbe6;
}

.student-chip .student-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
}

.student-chip.is-adding {
  opacity: 0.72;
  cursor: wait;
}

.student-chip.is-adding .student-thumb::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 4;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-top-color: var(--blue);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 0 2px rgba(46, 174, 211, 0.22);
  animation: student-chip-loading-spin 0.72s linear infinite;
}

.student-chip.is-adding > span:last-child::after {
  content: "Adding to class…";
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@keyframes student-chip-loading-spin {
  to { transform: rotate(360deg); }
}

.student-chip strong,
.student-chip small {
  display: block;
  line-height: 1.2;
}

.student-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  .student-chip-grid { grid-template-columns: 1fr; }
}

.hold-creator {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fffbe6;
  padding: 10px;
}

.hold-creator summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.hold-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hold-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.add-student-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.check-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.check-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
}

.waitlist-email-option {
  overflow: hidden;
  max-height: 72px;
  opacity: 1;
  transform-origin: top;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.frozen-return-option {
  grid-column: 1 / -1;
  overflow: hidden;
  max-height: 260px;
  opacity: 1;
  transform-origin: top;
  transition: max-height 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.frozen-return-option .date-select-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
}

.frozen-return-option .date-select-group select {
  width: 100%;
  min-width: 82px;
}

.waitlist-email-option:not(.is-visible),
.frozen-return-option:not(.is-visible) {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scaleY(0.96);
}

.waitlist-email-option[hidden],
.frozen-return-option[hidden] {
  display: none;
}

.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-card span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
}

.check-card strong {
  font-size: 13px;
  line-height: 1.1;
}

.check-card:has(input:checked) {
  border-color: var(--green);
  background: #edfff1;
}

.check-card:has(input:checked) span {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.teacher-placement-notice-option,
.parent-placement-notice-option {
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  cursor: pointer;
}

.teacher-placement-notice-option strong,
.parent-placement-notice-option strong {
  display: grid;
  gap: 3px;
}

.teacher-placement-notice-option small,
.parent-placement-notice-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.teacher-placement-notice-option em,
.parent-placement-notice-option em {
  min-width: 36px;
  border-radius: 999px;
  background: #e8edf1;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.teacher-placement-notice-option:has(input:checked) em,
.parent-placement-notice-option:has(input:checked) em {
  background: var(--green);
  color: #fff;
}

.parent-placement-notice-option:has(input:checked) em::before {
  content: "On";
}

.parent-placement-notice-option:has(input:checked) em {
  font-size: 0;
}

.parent-placement-notice-option:has(input:checked) em::before {
  font-size: 10px;
}

.teacher-chip-grid,
.location-chip-grid,
.weekday-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.teacher-chip,
.location-chip,
.weekday-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 8px 14px;
}

.teacher-chip input,
.location-chip input,
.weekday-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.teacher-chip.is-selected,
.location-chip.is-selected,
.weekday-chip.is-selected {
  border-color: var(--green);
  background: #edfff1;
  color: #0b6b29;
}

.teacher-chip-grid.is-warning,
.location-chip-grid.is-warning {
  border: 2px dashed var(--red);
  border-radius: 12px;
  padding: 8px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.closure-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 104px;
  align-items: start;
  gap: 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
  margin-bottom: 12px;
}

.closure-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.closure-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-self: end;
}

.closure-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.closure-actions .status-flag {
  max-width: 104px;
  text-align: center;
}

.closure-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.closure-thumb-button {
  width: 78px;
  min-width: 78px;
  height: 78px;
  padding: 3px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: #f7f9fb;
  box-shadow: none;
}

.closure-thumb-empty {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 26px;
}

.closure-row span,
.closure-row small {
  color: var(--muted);
  font-weight: 800;
}

.danger-icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--red);
}

.mini-icon-button {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--blue);
}

@media (max-width: 720px) {
  .closure-row {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .closure-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    justify-self: stretch;
  }
}

.teacher-denial-form,
.message-denial-form,
.early-return-review-summary {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  background: #f7f9fb;
}

.teacher-denial-form[hidden],
.message-denial-form[hidden] { display: none; }

.teacher-denial-form label,
.message-denial-form label { display: grid; gap: 6px; }
.teacher-denial-form textarea,
.message-denial-form textarea { width: 100%; min-height: 76px; resize: vertical; }
.teacher-denial-form small,
.message-denial-form small { color: #667684; font-weight: 700; }

.message-class-move-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin: 12px 0;
}

.message-class-move-grid article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #cfdce7;
  border-radius: 8px;
  background: #f5f9fc;
}

.message-class-move-grid article:last-child { background: #edf9f1; border-color: #b9e2c6; }
.message-class-move-grid small { color: #657487; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.message-class-move-grid strong { color: #243247; }
.message-class-move-grid > span { display: grid; place-items: center; color: #159dbf; }

.makeup-confirmation-summary {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #8fd3ad;
  border-left: 5px solid #28ad63;
  border-radius: 8px;
  background: #f1fbf5;
}
.makeup-confirmation-summary.is-waiting { border-color: #efc767; border-left-color: #d69a13; background: #fff9e8; }
.makeup-confirmation-summary > header { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 11px; }
.makeup-confirmation-summary > header > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #d8f4e3; color: #11884a; }
.makeup-confirmation-summary.is-waiting > header > span { background: #ffedb8; color: #9b6900; }
.makeup-confirmation-summary > header > div { min-width: 0; display: grid; gap: 2px; }
.makeup-confirmation-summary > header strong { font-size: 20px; color: #203047; }
.makeup-confirmation-summary > header small { color: #58697a; font-weight: 800; }
.makeup-confirmation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.makeup-confirmation-grid article { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 8px; align-items: center; padding: 12px; border: 1px solid #d5e5dc; border-radius: 7px; background: #fff; }
.makeup-confirmation-grid article > i { grid-row: 1 / 3; color: #159dbf; font-size: 18px; text-align: center; }
.makeup-confirmation-grid small { color: #697687; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.makeup-confirmation-grid strong { min-width: 0; color: #243247; overflow-wrap: anywhere; }
.makeup-confirmation-delivery { display: flex; flex-wrap: wrap; gap: 8px; }
.makeup-confirmation-delivery span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 6px; background: #edf1f5; color: #536172; font-size: 12px; font-weight: 800; }
.makeup-confirmation-delivery .is-good { background: #dff5e7; color: #137440; }
.makeup-confirmation-delivery .is-warning { background: #fff0c7; color: #8a5c00; }
.makeup-resend-result { flex: 1 1 300px; min-height: 38px; display: inline-grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: center; border-radius: 7px; padding: 8px 10px; font-size: 12px; font-weight: 850; }
.makeup-resend-result[hidden] { display: none; }
.makeup-resend-result.is-good { color: #137440; background: #dff5e7; }
.makeup-resend-result.is-warning { color: #875900; background: #fff0c7; }
.makeup-resend-result > i { text-align: center; }
.makeup-resend-result span, .makeup-resend-result small { display: block; }
.makeup-resend-result small { margin-top: 2px; color: inherit; font-size: 11px; font-weight: 750; opacity: .86; }

@media (max-width: 620px) {
  .message-class-move-grid { grid-template-columns: 1fr; }
  .message-class-move-grid > span { transform: rotate(90deg); }
  .makeup-confirmation-grid { grid-template-columns: 1fr; }
  .makeup-confirmation-summary { padding: 13px; }
  .makeup-confirmation-summary > header strong { font-size: 18px; }
}

.early-return-review-summary > header { display: flex; align-items: center; gap: 10px; }
.early-return-review-summary > header > i { color: #b76a00; font-size: 22px; }
.early-return-review-summary > header > div { display: grid; gap: 2px; }
.early-return-review-summary dl { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(0, 1fr); gap: 7px 12px; margin: 0; }
.early-return-review-summary dt { color: #667684; font-weight: 800; }
.early-return-review-summary dd { margin: 0; font-weight: 800; }

.calendar-settings-modal form {
  display: grid;
  gap: 18px;
}

.calendar-settings-modal .detail-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.calendar-settings-drawer > .detail-panel {
  margin: 16px 0;
}

.calendar-settings-drawer > .detail-panel:first-of-type {
  margin-top: 18px;
}

.calendar-settings-modal .editor-form {
  gap: 14px;
}

.calendar-settings-modal .check-card-row {
  margin: 4px 0 8px;
}

.calendar-settings-modal .field-note {
  margin-top: 2px;
}

.closure-media-field {
  display: grid;
  gap: 10px;
}

.calendar-settings-modal button.closure-image-preview {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: #f7f9fb;
  color: var(--ink);
  box-shadow: none;
  text-align: center;
  margin: 0;
}

.calendar-settings-modal button.closure-image-preview.has-image {
  border-style: solid;
  background: #fff;
}

.closure-image-preview img {
  width: 100%;
  max-height: 240px;
  border-radius: 8px;
  object-fit: cover;
}

.closure-image-preview > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #e8f8fc;
  color: var(--blue);
  font-size: 26px;
}

.closure-image-preview strong,
.closure-image-preview small {
  display: block;
}

.closure-image-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}

.closure-library-tile {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.closure-library-tile.is-selected {
  border-color: var(--blue);
  background: #e8f8fc;
}

.closure-library-tile.is-archived {
  opacity: 0.68;
}

.calendar-settings-modal button.closure-library-pick {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.closure-library-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
}

.closure-library-tile span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-settings-modal button.closure-library-archive,
.calendar-settings-modal button.closure-library-restore {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.calendar-settings-modal button.closure-library-restore {
  background: var(--blue);
}

.closure-library-drawer,
.closure-archive-drawer {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.closure-library-drawer summary,
.closure-archive-drawer summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

.closure-library-drawer[open] summary,
.closure-archive-drawer[open] summary {
  margin-bottom: 8px;
}

.closure-email-preview-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.closure-email-preview-panel[hidden] {
  display: none;
}

.closure-email-preview-panel textarea {
  width: 100%;
  min-height: 210px;
}

.private-blackout-impact {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid #e5a51a;
  background: #fff9e8;
  border-radius: 8px;
}

.private-blackout-impact[hidden] { display: none; }
.private-blackout-impact > header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.private-blackout-impact > header > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ffe7a6; color: #815600; }
.private-blackout-impact h3, .private-blackout-impact p { margin: 0; }
.private-blackout-impact-list { display: grid; gap: 8px; }
.private-blackout-impact-list article { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid #edcf83; background: #fff; border-radius: 6px; }
.private-blackout-impact-list article > span { color: #a16a00; }
.private-blackout-impact-list article div { display: grid; min-width: 0; }
.private-blackout-impact-list article small { color: #667085; }
.private-blackout-impact-list article b { color: #7a5200; font-size: .86rem; }
.private-blackout-impact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.canonical-private-panel { grid-column: 1 / -1; }
.canonical-private-loading { display: flex; align-items: center; gap: 10px; min-height: 72px; color: #667085; }
.canonical-private-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.canonical-private-summary > span { display: grid; gap: 3px; padding: 10px; border: 1px solid #d8e4ef; border-radius: 6px; background: #fff; }
.canonical-private-summary small { color: #667085; font-weight: 800; }
.canonical-private-summary .has-roc { border-color: #e2a51c; background: #fff9e9; color: #805600; }
.canonical-private-session-list { display: grid; gap: 7px; }
.canonical-private-session-list article { display: grid; grid-template-columns: 36px minmax(0, 1fr) 38px; align-items: center; gap: 9px; min-height: 58px; padding: 8px 10px; border: 1px solid #d8e4ef; border-radius: 6px; background: #fff; }
.canonical-private-session-list article > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9f8fc; color: #087894; }
.canonical-private-session-list article > div { display: grid; gap: 2px; min-width: 0; }
.canonical-private-session-list article small { color: #667085; }
.canonical-private-session-list article.status-roc_scheduled { border-color: #e8c56e; background: #fffaf0; }
.canonical-private-roc-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) minmax(220px, 1fr) auto; align-items: end; gap: 9px; margin-top: 12px; padding: 12px; border: 2px solid #e2a51c; border-radius: 8px; background: #fff9e9; }
.canonical-private-roc-form > div { align-self: center; }
.canonical-private-roc-form p, .canonical-private-roc-form strong { margin: 0; }
.canonical-private-roc-form label { display: grid; gap: 4px; }
.canonical-private-roc-form .field-note { grid-column: 1 / -1; }
.canonical-private-owner-form { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(150px, .7fr) minmax(220px, 1fr) auto; align-items: end; gap: 9px; margin: 10px 0; padding: 12px; border: 1px solid #b9d8e4; border-radius: 8px; background: #f4fbfd; }
.canonical-private-owner-form > div { align-self: center; }
.canonical-private-owner-form p, .canonical-private-owner-form strong { margin: 0; }
.canonical-private-owner-form label { display: grid; gap: 4px; }
.canonical-private-owner-form .field-note { grid-column: 1 / -1; }
.canonical-private-history { margin-top: 10px; }
.canonical-private-history > span { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e4e9ef; }

@media (max-width: 860px) {
  .canonical-private-summary { grid-template-columns: 1fr; }
  .canonical-private-roc-form { grid-template-columns: 1fr; }
  .canonical-private-roc-form .field-note { grid-column: auto; }
  .canonical-private-owner-form { grid-template-columns: 1fr; }
  .canonical-private-owner-form .field-note { grid-column: auto; }
}

.calendar-settings-drawer {
  margin: 12px 0;
  border: 2px solid #d8e4ef;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.calendar-settings-drawer > summary,
.business-location-drawer > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  color: #243047;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.calendar-settings-drawer > summary::-webkit-details-marker,
.business-location-drawer > summary::-webkit-details-marker {
  display: none;
}

.calendar-settings-drawer[open] > summary,
.business-location-drawer[open] > summary {
  border-bottom: 2px solid #d8e4ef;
  background: #f6fbff;
}

.calendar-settings-drawer > .field-note {
  padding: 14px 18px 0;
}

.business-hours-location-list {
  display: grid;
  gap: 12px;
  padding: 14px 18px 10px;
}

.business-hours-save-row {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.business-hours-save-row button {
  width: auto;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #35b7d4;
  color: #fff;
}

.business-location-drawer {
  border: 2px solid #dce7f1;
  border-radius: 12px;
  background: #fbfdff;
  overflow: hidden;
}

.business-day-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.business-day-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) repeat(2, auto) minmax(120px, 150px) minmax(120px, 150px);
  gap: 8px;
  align-items: center;
  border: 2px solid #e1ebf4;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.business-day-row.is-closed {
  border-color: rgba(255, 39, 51, 0.32);
  background: #fff7f7;
}

.business-toggle,
.business-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 2px solid #cfdbe6;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  color: #26344d;
  font-weight: 900;
  line-height: 1;
}

.business-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.business-toggle.is-selected {
  border-color: #ff2733;
  background: #ff2733;
  color: #fff;
}

.business-time-pill {
  justify-content: flex-start;
  gap: 8px;
  border-radius: 12px;
}

.business-time-pill span {
  color: #68758c;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.business-time-pill input {
  min-width: 82px;
  border: 0;
  background: transparent;
  color: #243047;
  font: inherit;
  font-weight: 900;
}

.business-time-pill input:disabled {
  opacity: 0.35;
}

@media (max-width: 760px) {
  .business-day-row {
    grid-template-columns: 1fr 1fr;
  }

  .business-day-row > strong {
    grid-column: 1 / -1;
  }
}

.inventory-teacher-assignment {
  border: 2px solid #d5e2e9;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 12px;
}

.class-photo-field {
  align-items: center;
  background: #f6fbff;
  border: 2px solid #c8dbe6;
  display: grid;
  gap: 12px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 12px;
}
.class-photo-preview {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 2px dashed #9fc7dc;
  border-radius: 6px;
  color: #168bb5;
  display: flex;
  justify-content: center;
  overflow: hidden;
  width: 112px;
}
.class-photo-preview img { height: 100%; object-fit: cover; width: 100%; }
.class-photo-copy { align-items: start; display: grid; gap: 5px; min-width: 0; }
.class-photo-copy small { color: var(--muted); }
.class-photo-upload {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  justify-self: start;
  margin-top: 3px;
  width: auto;
}
.roster-class-photo { border-radius: 6px; height: 74px; object-fit: cover; width: 96px; }
.class-physical-room { color: var(--muted); font-weight: 900; }
.inventory-load-more {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-self: center;
  margin: 8px 0 2px;
}

.email-template-preview {
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #f3f5f7;
  padding: 12px;
}

.email-preview-shell {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid #d5d9dd;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.email-preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #fff8d9;
  border-bottom: 2px solid #f0c93d;
}

.email-preview-logo {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 950;
}

.email-preview-brand strong,
.email-preview-brand small {
  display: block;
}

.email-preview-brand strong {
  font-size: 20px;
  line-height: 1;
}

.email-preview-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.email-preview-image {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

.email-preview-subject {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 2px solid var(--line);
  background: #fff;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.email-preview-subject strong {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.email-preview-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.email-preview-eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.email-preview-body h4 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
}

.email-preview-body p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.email-preview-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 2px solid var(--red);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--red) !important;
  font-weight: 950;
}

.email-preview-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.email-preview-detail-grid span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f7f9fb;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.email-preview-detail-grid strong {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.email-preview-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
}

.email-preview-footer {
  display: grid;
  gap: 5px;
  padding: 16px 22px 20px;
  background: #f7f9fb;
  border-top: 2px solid var(--line);
}

.email-preview-footer strong {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.email-preview-footer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .email-preview-detail-grid {
    grid-template-columns: 1fr;
  }
}

.email-queued-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #0a6078;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.system-update-note {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 2px solid #b9d8e6;
  border-radius: 10px;
  background: #eefaff;
  color: #0a6078;
  padding: 8px;
}

.system-update-note p {
  margin: 0;
  font-weight: 850;
  line-height: 1.25;
}

.status-system {
  justify-self: start;
  background: #dff5ff;
  color: #0a6078;
}

.match-status {
  display: grid;
  gap: 8px;
}

.match-status article {
  display: grid;
  gap: 4px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #edfff1;
  color: var(--ink);
  padding: 10px;
}

.match-status article.is-warning {
  background: #fff7cd;
  color: #6b4d00;
}

.match-status span {
  display: block;
  font-size: 12px;
  font-weight: 850;
}

.match-no-legacy-confirmation {
  grid-template-columns: 34px minmax(0, 1fr);
}

.match-no-legacy-confirmation .match-no-legacy-copy {
  display: grid;
  width: auto;
  height: auto;
  place-items: initial;
  gap: 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.match-no-legacy-confirmation .match-no-legacy-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-transform: none;
}

.match-no-legacy-confirmation:has(input:checked) .match-no-legacy-copy {
  border: 0;
  background: transparent;
  color: var(--ink);
}

.match-fresh-balances {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(2, minmax(120px, 1fr));
  align-items: end;
  gap: 10px;
  border: 2px solid #9ddfb1;
  border-radius: 8px;
  background: #f3fff6;
  padding: 12px;
}

.match-fresh-balances[hidden] {
  display: none;
}

.match-fresh-balances > div {
  display: grid;
  gap: 3px;
}

.match-fresh-balances p,
.match-fresh-balances strong,
.match-fresh-balances small {
  margin: 0;
}

.match-fresh-plan {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.match-fresh-plan legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-fresh-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.match-fresh-plan-options label { cursor: pointer; }
.match-fresh-plan-options input { position: absolute; opacity: 0; pointer-events: none; }
.match-fresh-plan-options span {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 8px;
  border: 2px solid #ccd7df;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
  color: #273247;
}
.match-fresh-plan-options span strong { font-size: 18px; }
.match-fresh-plan-options span small { text-transform: uppercase; }
.match-fresh-plan-options input:checked + span { border-color: #20a95e; background: #ecfff2; color: #14743f; }
.match-fresh-plan-options input:focus-visible + span { outline: 3px solid rgba(35, 169, 207, .25); outline-offset: 2px; }

.match-fresh-balances small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .match-fresh-balances {
    grid-template-columns: 1fr;
  }
}

.student-modal::backdrop {
  background: rgba(38, 50, 61, 0.55);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--red);
}

.is-owner-locked body {
  overflow: hidden;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: rgba(31, 41, 51, 0.58);
  padding: 18px;
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.login-card h2,
.login-card p {
  margin: 0;
}

.login-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-card input {
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

body.staff-auth-locked [data-staff-protected] {
  display: none !important;
}

.staff-login-card button {
  width: max-content;
}

.student-detail {
  display: grid;
  gap: 14px;
}

.student-detail > header,
.student-detail > footer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.student-detail > header {
  padding-right: 48px;
}

.student-detail > header > .student-thumb {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border: 5px solid var(--student-avatar-path, #cfd5dc);
  border-radius: 50%;
  background: #fff;
  padding: 0;
  box-shadow: 0 3px 0 rgba(31, 42, 55, 0.12);
  overflow: hidden;
}

.student-detail > header > .student-thumb.avatar-path-foundations { --student-avatar-path: #ef5f92; }
.student-detail > header > .student-thumb.avatar-path-creatives { --student-avatar-path: #28b84f; }
.student-detail > header > .student-thumb.avatar-path-atelier { --student-avatar-path: #111; }
.student-detail > header > .student-thumb.avatar-path-digital { --student-avatar-path: #7b3fc6; }

.student-detail > header > .student-thumb img,
.student-detail > header > .student-thumb .avatar-fallback {
  border-radius: inherit;
}

.student-detail > header > .student-thumb img {
  display: block;
  transform: scale(1.18);
}

.student-detail > header h2 {
  margin-bottom: 4px;
}

.student-modal-name-row { display: flex; align-items: center; gap: 8px; }
.student-modal-name-row h2 { min-width: 0; }
.student-modal-name-row .student-name-copy { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; min-width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 50%; background: #edf7fa; color: #087b9c; box-shadow: none; }
.student-modal-name-row .student-name-copy.is-copied { background: #e5f7ec; color: #147044; }

.student-detail > header > div .student-header-badges {
  align-items: flex-start;
  width: max-content;
  margin: 8px 0 0;
}

.student-detail > header .message {
  margin-left: auto;
}

.student-detail > header .parent-dashboard {
  margin-left: auto;
  background: var(--blue);
}

.student-detail > header .kid-dashboard {
  background: #5b6fd8;
}

.student-detail > header .icon-only-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
}

.student-detail > header .parent-dashboard + .kid-dashboard,
.student-detail > header .kid-dashboard + .message {
  margin-left: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-panel,
.account-history {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8f8f8;
  padding: 12px;
}

.detail-grid > .detail-panel-full-row {
  grid-column: 1 / -1;
}

.detail-panel h3 {
  margin-bottom: 10px;
}

.display-name-panel {
  background: #fff;
}

.display-name-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.display-name-panel input {
  color: var(--ink);
  font-size: 18px;
  text-transform: none;
}

.display-name-panel .display-name-save {
  margin-top: 12px;
  justify-self: start;
}

.display-name-panel .display-name-save[hidden] {
  display: none;
}

.display-name-panel .display-name-save.is-visible {
  animation: display-name-save-in 180ms ease-out both;
}

@keyframes display-name-save-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.field-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-panel {
  background: #fff;
}

.billing-summary-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
}

.billing-summary-list > div {
  min-width: 0;
  border: 1px solid #d9e1e8;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fafc;
}

.billing-summary-list dt,
.billing-summary-list dd {
  margin: 0;
}

.billing-summary-list dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #697487;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-summary-list dd {
  margin-top: 5px;
  color: #273247;
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.billing-summary-list dd:has(.billing-square-verify-action) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.billing-square-verify-action {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 50%;
  background: #159bc4;
  color: #fff;
  font-size: 12px;
}

.billing-square-verify-action:disabled {
  opacity: .65;
  cursor: wait;
}

.billing-status-value.status-paid,
.billing-status-value.status-active {
  color: #167642;
}

@media (max-width: 620px) {
  .billing-summary-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.billing-profile-panel {
  background: #f5fcff;
  border-color: #9ed8ea;
}

.class-path-panel {
  background: #fff9fc;
  border-color: #f2b6ce;
}

.class-path-panel h3 {
  margin-bottom: 8px;
}

.plan-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.private-billing-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-profile-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.class-path-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-profile-choice button,
.class-path-choice button {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  text-align: left;
  min-height: 78px;
  padding: 10px;
}

.class-path-choice button {
  grid-template-columns: 30px minmax(0, 1fr);
  min-height: 58px;
  padding: 8px 10px;
  background: #fff;
}

.billing-profile-choice button > i,
.class-path-choice button > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dff6fd;
  color: #0d7d9b;
  font-size: 16px;
}

.class-path-choice button > i {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.class-path-choice button[data-student-class-path="foundations"] > i {
  background: #ffe8f1;
  color: #cf2f66;
}

.class-path-choice button[data-student-class-path="creatives"] > i,
.class-path-choice button[data-student-class-path="skills"] > i {
  background: #e1f8e8;
  color: #168637;
}

.billing-profile-choice button > span,
.class-path-choice button > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.billing-profile-choice button strong,
.class-path-choice button strong {
  font-size: 16px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.class-path-choice button strong {
  font-size: 12px;
  line-height: 1.05;
  white-space: normal;
  overflow-wrap: anywhere;
}

.billing-profile-choice button em,
.class-path-choice button em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.05;
  text-transform: uppercase;
}

.class-path-choice button em {
  font-size: 9px;
  white-space: normal;
}

.billing-profile-choice button.is-active > i,
.class-path-choice button.is-active > i {
  background: #fff;
  color: #13742a;
}

.plan-choice button {
  display: grid;
  gap: 2px;
  min-height: 62px;
  margin: 0;
  border: 2px solid var(--line);
  background: #f8f8f8;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
}

.plan-choice button strong {
  font-size: 10px;
  line-height: 1;
}

.private-billing-choice button strong {
  font-size: 15px;
}

.plan-choice button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.plan-choice button.is-active {
  border-color: var(--green);
  background: #edfff1;
  color: #13742a;
}

.billing-note {
  border: 2px solid #9ed8ea;
  border-radius: 10px;
  background: #eefaff;
  color: #0a6078;
  padding: 10px;
}

.billing-note strong,
.billing-note p {
  margin: 0;
}

.billing-note p {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 850;
}

.billing-audit-notice {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border: 2px solid #d4d9df;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.billing-audit-notice header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.billing-audit-notice header > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #eefaff;
  color: #0a6078;
}

.billing-audit-notice strong,
.billing-audit-notice p {
  margin: 0;
}

.billing-audit-notice p,
.billing-audit-notice li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.billing-audit-notice ul {
  margin: 0;
  padding-left: 20px;
}

.billing-audit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.billing-audit-chips span {
  border-radius: 999px;
  background: #e8f8fe;
  color: #006b82;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-audit-chips .warn {
  background: #fff1f1;
  color: #c71822;
}

.billing-audit-notice.status-looks_safe {
  border-color: rgba(45, 194, 89, .55);
  background: #f3fff6;
}

.billing-audit-notice.status-grandfathered_review {
  border-color: rgba(245, 197, 66, .85);
  background: #fff9df;
}

.billing-audit-notice.status-needs_square_history,
.billing-audit-notice.status-price_mismatch,
.billing-audit-notice.status-catalog_mismatch {
  border-color: rgba(255, 32, 38, .45);
  background: #fff6f6;
}

.private-date-ledger {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.private-date-ledger.compact {
  margin-top: 0;
}

.private-date-ledger article {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  padding: 10px;
}

.private-date-ledger.compact article {
  padding: 9px;
}

.private-date-ledger article > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  margin-bottom: 8px;
}

.private-date-ledger article > strong i {
  color: var(--blue);
}

.future-billing-preview {
  background: #fff7cd !important;
}

.date-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  border: 2px solid #b9deec;
  border-radius: 999px;
  background: #eefaff;
  color: #0a6078;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 950;
}

.date-chip small {
  color: var(--muted);
  font-weight: 900;
}

.date-chip.status-paid,
.date-chip.status-complete {
  border-color: #9bdcac;
  background: #edfff1;
  color: #13742a;
}

.date-chip.status-preview,
.date-chip.status-pending {
  border-color: #f0c93d;
  background: #fff7cd;
  color: #6b4d00;
}

.review-note {
  border-color: #f0c93d;
  background: #fff7cd;
  color: #6d5400;
}

.collapsed-detail-panel {
  display: block;
}

.collapsed-detail-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.collapsed-detail-panel > summary::-webkit-details-marker {
  display: none;
}

.collapsed-detail-panel > summary strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
}

.collapsed-detail-panel > summary > i {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  transition: transform 180ms ease;
}

.collapsed-detail-panel[open] > summary > i {
  transform: rotate(180deg);
}

.family-contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.family-contact-form .family-contact-children,
.family-contact-form .field-note,
.family-contact-form [data-family-contact-status] {
  grid-column: 1 / -1;
}

.family-contact-children {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #cfe4ec;
  border-radius: 8px;
  background: #f2fbfe;
}

.family-contact-form .family-sync-choice {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 14px;
  border: 2px solid #cbdce6;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f3faff 100%);
  color: #26354a;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.family-sync-choice:hover:not(:has(input:disabled)) {
  border-color: var(--blue);
  box-shadow: 0 7px 18px rgba(18, 126, 164, .14);
  transform: translateY(-1px);
}

.family-sync-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.family-sync-check {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #a9bdca;
  border-radius: 10px;
  background: #fff;
  color: transparent;
  font-size: 18px;
  box-shadow: inset 0 0 0 3px #fff;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.family-sync-choice > span:last-child {
  display: grid;
  gap: 3px;
}

.family-sync-choice > span:last-child strong {
  font-size: 15px;
  line-height: 1.2;
}

.family-sync-choice > span:last-child small {
  color: #66758a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.family-sync-choice:has(input:checked) {
  border-color: #24a958;
  background: linear-gradient(135deg, #f3fff7 0%, #e1f9e9 100%);
  box-shadow: 0 8px 20px rgba(36, 169, 88, .15);
}

.family-sync-choice input:checked + .family-sync-check {
  border-color: #24a958;
  background: #24a958;
  color: #fff;
  transform: scale(1.05);
}

.family-sync-choice:has(input:focus-visible) {
  outline: 3px solid rgba(43, 171, 211, .3);
  outline-offset: 2px;
}

.family-sync-choice:has(input:disabled) {
  border-color: #dbe3e8;
  background: #f3f5f7;
  color: #8793a0;
  cursor: not-allowed;
  opacity: .72;
}

.family-sync-choice input:disabled + .family-sync-check {
  border-color: #cbd4da;
  background: #e7ecef;
}

.family-contact-form > button[type="submit"] {
  justify-self: start;
}

.family-contact-save.is-visible {
  animation: family-save-arrive 180ms ease-out both;
}

@keyframes family-save-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .family-contact-save.is-visible { animation: none; }
}

@media (max-width: 760px) {
  .family-contact-form { grid-template-columns: 1fr; }
  .family-contact-form .family-contact-children,
  .family-contact-form .family-sync-choice,
  .family-contact-form .field-note,
  .family-contact-form [data-family-contact-status] { grid-column: 1; }
}

.review-panel .fa-yelp {
  color: var(--red);
}

.review-platform-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-platform-icons .fa-google {
  color: var(--blue);
}

.class-array-panel {
  background: #fff;
}

.class-array-list {
  display: grid;
  gap: 8px;
}

.class-array-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8f8f8;
  padding: 10px;
}

.class-array-row strong,
.class-array-row span,
.class-array-row small,
.class-array-row em {
  display: block;
}

.class-array-row strong {
  font-size: 18px;
}

.class-array-row span,
.class-array-row small {
  color: var(--muted);
  font-weight: 850;
}

.class-array-row em {
  color: #7d5c00;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  margin-top: 5px;
}

.circle-trash {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--red);
  padding: 0;
}

.circle-add {
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: var(--green);
  padding: 0;
}

.class-assign-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  border-top: 2px solid var(--line);
  margin-top: 2px;
  padding-top: 10px;
}

.class-assign-panel[hidden] {
  display: none;
}

.class-assign-panel label {
  margin-bottom: 0;
}

.class-assign-panel button {
  min-height: 42px;
  margin: 0;
  background: var(--green);
}

.detail-panel label {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-panel input,
.detail-panel textarea,
.detail-panel select {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.detail-panel select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  padding-right: 34px;
}

.check-line {
  align-items: center;
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
}

.check-line input {
  width: auto;
}

.detail-panel button {
  margin: 0 8px 8px 0;
}

.quest-placement-panel {
  grid-column: 1 / -1;
}

.project-media-panel {
  grid-column: 1 / -1;
}

.quest-placement-picker fieldset {
  min-width: 0;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.quest-placement-picker legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-placement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 150px));
  gap: 10px;
}

.quest-kingdom-field {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 10px;
}

.quest-kingdom-field legend {
  grid-column: 1 / -1;
}

.quest-kingdom-toggle {
  min-height: 42px;
  white-space: nowrap;
}

.quest-placement-panel .quest-placement-card {
  position: relative;
  display: grid;
  grid-template-rows: 78px auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.quest-placement-panel .quest-placement-card:hover,
.quest-placement-panel .quest-placement-card:focus-visible {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.quest-placement-panel .quest-placement-card.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(35, 160, 106, .18);
}

.quest-placement-image {
  display: grid;
  place-items: center;
  min-height: 78px;
  overflow: hidden;
}

.quest-placement-image img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.quest-placement-image-fallback {
  font-size: 38px;
  color: var(--muted);
}

.quest-placement-card-copy {
  display: grid;
  gap: 2px;
  padding: 9px;
}

.quest-placement-card-copy small,
.quest-placement-card-copy span {
  color: var(--muted);
  font-size: 11px;
}

.quest-placement-card-copy strong {
  font-size: 13px;
  line-height: 1.2;
}

.quest-placement-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: none;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  font-size: 20px;
}

.quest-placement-card.is-selected .quest-placement-check {
  display: block;
}

.quest-placement-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.quest-placement-content {
  padding-top: 16px;
}

.quest-placement-panel .quest-kingdom-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quest-placement-panel .quest-kingdom-choice.is-gateway-bookend {
  grid-column: 1 / -1;
  width: 100%;
}

.quest-placement-panel .quest-stage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.quest-placement-panel .quest-stage-grid .quest-stage-choice {
  flex: 0 1 150px;
  width: 150px;
}

.quest-progress-control {
  display: grid;
  gap: 8px;
}

.quest-progress-control > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-progress-slider-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: center;
  gap: 12px;
}

.quest-progress-slider-row input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quest-progress-slider-row input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border: 2px solid #b8c4cf;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--green) 0 var(--quest-progress), #e7edf1 var(--quest-progress) 100%);
}

.quest-progress-slider-row input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #168cb3, 0 3px 0 rgba(35, 48, 71, .18);
}

.quest-progress-slider-row input[type="range"]::-moz-range-track {
  height: 8px;
  border: 2px solid #b8c4cf;
  border-radius: 5px;
  background: #e7edf1;
}

.quest-progress-slider-row input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 4px;
  background: var(--green);
}

.quest-progress-slider-row input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #168cb3;
}

.quest-progress-slider-row output {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 2px solid #b9e6d0;
  border-radius: 7px;
  background: #eaf9f0;
  color: #13742a;
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 640px) {
  .quest-placement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quest-kingdom-field {
    grid-template-columns: 1fr;
  }
  .quest-placement-panel .quest-kingdom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quest-placement-panel .quest-stage-grid .quest-stage-choice {
    flex-basis: calc(50% - 5px);
    width: calc(50% - 5px);
  }
}

.credit-stepper {
  display: grid;
  grid-template-columns: 1fr 40px 52px 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.credit-stepper span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.credit-stepper input[data-credit-value],
.credit-stepper input[data-reward-value] {
  width: 52px;
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 6px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.credit-stepper input[data-credit-value]::-webkit-inner-spin-button,
.credit-stepper input[data-credit-value]::-webkit-outer-spin-button,
.credit-stepper input[data-reward-value]::-webkit-inner-spin-button,
.credit-stepper input[data-reward-value]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.credit-stepper button {
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
}

.credit-stepper .minus {
  background: var(--red);
}

.credit-stepper .plus {
  background: var(--green);
}

.reward-stepper span b {
  margin-right: 5px;
  font-size: 20px;
}

.credit-adjustment-history {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.square-account-history {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.square-account-history h4 {
  margin: 6px 0 0;
}

.square-account-history > div {
  display: grid;
  gap: 7px;
}

.square-history-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fff;
}

.square-history-row > span,
.square-history-row > a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7fc;
  color: #087ea4;
}

.square-history-row div {
  display: grid;
  min-width: 0;
}

.square-history-row small,
.square-history-row em {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
}

.square-history-row .attendance-credit-transition {
  margin-top: 3px;
  color: #176b45;
  font-size: 12px;
  font-weight: 900;
}

.attendance-history-row.is-absence .attendance-credit-transition,
.account-timeline-row.is-absence .attendance-credit-transition {
  color: #a33a2b;
}

.attendance-history-row.is-absence > span {
  background: #fff0ec;
  color: #b44225;
}

.attendance-history-row.is-attended > span {
  background: #eaf8ef;
  color: #287a43;
}

.grandfathered-price-comparison {
  margin: 12px 0;
  border: 2px solid #9ed8e9;
  border-radius: 8px;
  padding: 12px;
  background: #f5fcff;
}

.square-customer-repair {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin: 10px 0;
  border: 2px solid #e7b94e;
  border-radius: 8px;
  padding: 10px;
  background: #fffaf0;
}

.square-customer-repair label {
  display: grid;
  gap: 4px;
}

.square-customer-repair label span,
.square-customer-repair > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.square-customer-repair input {
  width: 100%;
  min-width: 0;
}

.square-customer-repair > small {
  grid-column: 1 / -1;
}

@media (max-width: 700px) {
  .square-customer-repair { grid-template-columns: 1fr; }
}

.grandfathered-price-comparison.is-grandfathered {
  border-color: #e7b94e;
  background: #fffaf0;
}

.grandfathered-price-comparison > header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.grandfathered-price-comparison > header div {
  display: grid;
}

.price-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.price-comparison-grid article {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fff;
}

.price-comparison-grid article > span,
.price-comparison-grid article > small {
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .price-comparison-grid { grid-template-columns: 1fr; }
  .square-history-row { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .square-history-row > a { grid-column: 2 / -1; width: 100%; border-radius: 6px; }
}

.credit-adjustment-history span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 2px;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(84, 184, 208, .34);
  border-radius: 8px;
  background: #f2fbff;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 900;
}

.credit-adjustment-history span > i {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #dff5fb;
  color: #087f9c;
}

.credit-adjustment-history span > b,
.credit-adjustment-history span > small,
.credit-adjustment-history span > em {
  grid-column: 2;
  min-width: 0;
}

.credit-adjustment-history span.is-absence-conversion > i {
  background: #fff0ec;
  color: #c64d32;
}

.credit-adjustment-history span.is-square-credit {
  border-color: rgba(36, 190, 91, .5);
  background: #f0fff5;
  color: #147a38;
}

.credit-adjustment-history small {
  color: var(--muted);
  font-weight: 800;
}

.credit-adjustment-history em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.square-credit-panel {
  border-color: rgba(44, 190, 92, .55);
  background: #f0fff5;
}

.square-credit-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.square-credit-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid rgba(44, 190, 92, .28);
  border-radius: 999px;
  background: #fff;
  color: #15713a;
  font-size: .76rem;
  font-weight: 900;
  padding: 7px 10px;
  overflow-wrap: anywhere;
}

.square-invoice-activity-panel {
  border-color: rgba(84, 184, 208, .5);
  background: #f2fbff;
}

.square-lifecycle-panel {
  grid-column: 1 / -1;
  border-color: rgba(255, 39, 51, .22);
  background: linear-gradient(180deg, #fff, #fff8f8);
}

.square-lifecycle-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.square-lifecycle-strip article {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 2px solid rgba(104, 117, 137, .2);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.square-lifecycle-strip article.is-done {
  border-color: rgba(44, 190, 92, .48);
  background: #f0fff5;
}

.square-lifecycle-strip article.is-current {
  border-color: rgba(245, 197, 66, .85);
  background: #fff9df;
}

.square-lifecycle-strip span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.square-lifecycle-strip strong,
.square-lifecycle-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.square-lifecycle-strip strong {
  color: var(--ink);
  font-size: .82rem;
}

.square-lifecycle-strip small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-lifecycle-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.square-lifecycle-note span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(84, 184, 208, .25);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 10px;
  font-size: .76rem;
  font-weight: 900;
}

.square-credit-list {
  display: grid;
  gap: 10px;
}

.square-credit-list article {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(44, 190, 92, .45);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.square-credit-list article.needs-review {
  border-color: rgba(245, 197, 66, .85);
  background: #fffdf1;
}

.square-credit-list header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.square-credit-list header span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.square-credit-list header strong,
.square-credit-list header small,
.square-credit-list p {
  display: block;
  margin: 0;
}

.square-credit-list header small,
.square-credit-list p {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 850;
}

.square-credit-list header b {
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 7px 10px;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-credit-list dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.square-credit-list dt,
.square-credit-list dd {
  margin: 0;
}

.square-credit-list dt {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-credit-list dd {
  overflow: hidden;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.square-credit-list footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-history summary {
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.account-history summary strong {
  text-transform: none;
}

.account-history dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin-top: 12px;
}

.account-history dt {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.account-history dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.account-history-view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border: 1px solid #cdd7e2;
  border-radius: 8px;
  background: #edf2f6;
}

.account-history-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 0;
  border-radius: 6px;
  color: #536171;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-weight: 900;
}

.account-history-view-toggle button.is-active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 3px 0 #1688b2;
}

.account-history-timeline {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.account-timeline-row {
  border-left: 4px solid #9aa8b8;
}

.account-timeline-row.is-attendance { border-left-color: var(--green); }
.account-timeline-row.is-absence { border-left-color: var(--red); }
.account-timeline-row.is-invoice { border-left-color: var(--blue); }
.account-timeline-row.is-payment { border-left-color: #8e55b7; }
.account-timeline-row.is-note { border-left-color: #f0b929; }
.account-timeline-row.is-adjustment { border-left-color: #e67e22; }

[data-account-history-panel][hidden] {
  display: none !important;
}

.past-attendance-recovery {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d6dee7;
}

.past-attendance-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.past-attendance-recovery form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cbd8e5;
  border-radius: 8px;
  background: #fff;
}

.past-attendance-recovery form[hidden] { display: none; }
.past-attendance-mode,
.past-attendance-photo-field,
.past-attendance-recovery form > button,
.past-attendance-recovery form > p,
.past-attendance-recovery form > .check-line { grid-column: 1 / -1; }

.past-attendance-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.past-attendance-mode input { position: absolute; opacity: 0; pointer-events: none; }
.past-attendance-mode span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 2px solid #cbd5df;
  border-radius: 7px;
  font-weight: 900;
  cursor: pointer;
}
.past-attendance-mode input:checked + span { border-color: var(--blue); background: #e9f8ff; color: #086889; }

.past-attendance-class-choice {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid #cbd8e5;
  border-radius: 7px;
}
.past-attendance-class-choice legend { padding: 0 6px; font-weight: 900; color: #344454; }
.past-attendance-class-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.past-attendance-class-mode input { position: absolute; opacity: 0; pointer-events: none; }
.past-attendance-class-mode span {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  min-height: 72px;
  padding: 11px;
  align-content: center;
  border: 2px solid #cbd5df;
  border-radius: 7px;
  cursor: pointer;
}
.past-attendance-class-mode i { grid-row: 1 / 3; align-self: center; color: #657585; }
.past-attendance-class-mode b { font-size: 14px; }
.past-attendance-class-mode small { line-height: 1.3; color: #657585; }
.past-attendance-class-mode input:checked + span { border-color: var(--blue); background: #e9f8ff; }
.past-attendance-class-mode input:checked + span i,
.past-attendance-class-mode input:checked + span b { color: #086889; }
.past-attendance-makeup-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.past-attendance-makeup-picker[hidden] { display: none; }
.past-attendance-class-summary {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-left: 4px solid #25a8d2;
  background: #f1f9fc;
  color: #344454;
  font-weight: 750;
  line-height: 1.4;
}
.past-attendance-class-summary i { margin-right: 5px; color: #1682a7; }

.past-attendance-photo-field img {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 12px auto 0;
  border-radius: 7px;
  object-fit: contain;
  background: #eef2f5;
  border: 1px solid #cbd8e5;
}
.past-attendance-photo-field img[hidden] { display: none; }
.past-attendance-photo-placeholder {
  display: flex;
  width: min(100%, 300px);
  min-height: 150px;
  margin: 12px auto 0;
  padding: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  border: 2px dashed #bdcbd8;
  border-radius: 7px;
  background: #f4f8fb;
  color: #5f6e7d;
}
.past-attendance-photo-placeholder[hidden] { display: none; }
.past-attendance-photo-placeholder i { font-size: 34px; color: #239bc3; }
.past-attendance-photo-placeholder strong { font-size: 15px; }
.past-attendance-photo-placeholder small { max-width: 230px; line-height: 1.35; }
.past-attendance-trial-note { color: #6b3e92; font-weight: 850; }

@media (max-width: 720px) {
  .past-attendance-recovery form { grid-template-columns: 1fr; }
  .past-attendance-recovery form > * { grid-column: 1; }
  .past-attendance-class-mode,
  .past-attendance-makeup-picker { grid-template-columns: 1fr; }
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border-radius: 999px;
  background: #e9f7fb;
  color: #0a6078;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
  text-transform: uppercase;
}

.staff-card .pill-row {
  align-items: center;
  gap: 6px;
}

.staff-card .pill {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  min-height: 0;
  line-height: 1;
  padding: 6px 9px;
}

.status-flag {
  align-self: flex-start;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: #0a6078;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
}

.status-flag.status-registered {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-color: #20b85a;
  background: #e8faee;
  color: #117337;
}

.status-flag.status-billing { display: inline-flex; align-items: center; gap: 5px; border-color: #8acfe3; background: #eaf8fc; color: #087895; }
.status-flag.status-billing.status-paid,
.status-flag.status-billing.status-active { border-color: #20b85a; background: #e8faee; color: #117337; }
.status-flag.status-billing.status-canceled,
.status-flag.status-billing.status-cancelled,
.status-flag.status-billing.status-overdue { border-color: #ed9298; background: #fff0f1; color: #a5202b; }

.roster-parent-invite.is-resend {
  opacity: 1;
  border-color: #91cfe1;
  background: #eaf8fc;
  color: #087895;
}

.parent-invite-confirm-modal { width: min(620px, calc(100vw - 28px)); }
.parent-invite-confirm-modal .student-detail > header { display: flex; align-items: center; gap: 14px; }
.parent-invite-confirm-icon { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; background: #eaf8fc; color: #1595b8; font-size: 22px; }
.parent-invite-confirm-copy { margin: 18px 0; padding: 16px; border: 2px solid #d7e7ed; border-radius: 8px; background: #f5fbfd; }
.parent-invite-confirm-copy strong { color: #26364a; }
.parent-invite-confirm-copy p { margin: 5px 0 0; color: #687487; }
.parent-invite-confirm-modal [data-confirm-parent-invite] { width: 100%; }

.student-header-badges {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
}

.roster-card > header .student-header-badges {
  flex: 0 0 auto;
  z-index: 3;
  max-width: 150px;
}

.roster-card > header > div {
  flex: 1;
  min-width: 0;
  padding-right: 0;
}

.billing-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.class-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.class-path-badge i {
  color: #fff;
  font-size: 15px;
}

.class-path-foundations {
  background: #ef5f92;
}

.class-path-creatives {
  background: #28b84f;
}

.billing-type-badge i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.billing-type-digital {
  background: var(--red);
}

.billing-type-atelier {
  background: #111;
}

.status-frozen {
  border-color: var(--blue);
  color: #0a6078;
}

.status-discontinued,
.status-removed,
.status-removed_from_class {
  border-color: var(--red);
  color: var(--red);
}

.status-waitlist {
  border-color: var(--yellow);
  color: #7a5700;
}

.staff-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
}

.staff-editor {
  display: grid;
  gap: 12px;
}

.staff-editor.is-inactive {
  background: #f1f7fb;
  border-color: #35acd2;
}

.staff-status-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.staff-status-actions span,
.staff-inactive-note small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-save-status {
  margin-top: 12px;
}

.staff-save-status[data-status="draft"] {
  border-color: #f0c93d;
  background: #fff8d8;
  color: #755600;
}

.staff-inactive-note {
  border: 2px solid #35acd2;
  border-radius: 10px;
  background: #e9f8ff;
  padding: 10px;
}

.staff-inactive-note p {
  margin: 4px 0;
  color: var(--muted);
  font-weight: 800;
}

.danger-pill {
  border-color: var(--red);
  color: var(--red);
}

.staff-editor-grid {
  display: grid;
  gap: 10px;
}

.staff-card-section {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.staff-card-section > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  list-style: none;
}

.staff-card-section > summary::-webkit-details-marker {
  display: none;
}

.staff-card-section > summary span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.staff-card-section > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.staff-card-section > summary > i {
  color: var(--muted);
  transition: transform .18s ease;
}

.staff-card-section[open] > summary {
  border-bottom: 2px solid var(--line);
  background: #f7fbfd;
}

.staff-card-section[open] > summary > i {
  transform: rotate(180deg);
}

.staff-card-section > .staff-editor-grid,
.staff-card-section > .staff-access-card,
.staff-card-section > .staff-payroll-card,
.staff-card-section > .staff-compliance-card,
.staff-card-section > .json-box {
  margin: 12px;
}

.staff-card-section > .staff-access-card,
.staff-card-section > .staff-payroll-card,
.staff-card-section > .staff-compliance-card,
.staff-card-section > .json-box {
  border-width: 0;
}

.location-editor {
  display: grid;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  margin: 0;
  padding: 10px;
}

.staff-access-card {
  display: grid;
  gap: 12px;
  border: 2px solid #bfeefa;
  border-radius: 10px;
  background: #f3fcff;
  padding: 12px;
}

.staff-access-card.is-login-off {
  border-color: #d9e1e9;
  background: #f7fafc;
}

.staff-access-card h4,
.staff-access-card p {
  margin: 0;
}

.staff-access-card p {
  color: var(--muted);
  font-weight: 800;
}

.staff-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border: 2px solid #d4edf5;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.staff-invite-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.staff-payroll-card {
  display: grid;
  gap: 12px;
  border: 2px solid #efe2bc;
  border-radius: 10px;
  background: #fff9e8;
  padding: 12px;
}

.staff-payroll-card h4,
.staff-payroll-card p {
  margin: 0;
}

.staff-payroll-card p {
  color: var(--muted);
  font-weight: 800;
}

.staff-payroll-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-pay-type-toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 2px solid #ead79b;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.staff-pay-type-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  background: #f1f6fb;
  color: var(--ink);
}

.staff-pay-type-toggle button.is-active {
  background: #ff2a32;
  color: #fff;
}

.staff-payroll-hourly .staff-salary-field,
.staff-payroll-salary .staff-hourly-field {
  display: none;
}

.staff-payroll-note,
.staff-payroll-sync,
.staff-work-schedule {
  grid-column: 1 / -1;
}

.staff-work-schedule {
  display: grid;
  gap: 8px;
  border: 2px solid #ead79b;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.staff-work-schedule > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-work-schedule > header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.staff-work-day {
  display: grid;
  grid-template-columns: 86px repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f7fbfd;
  padding: 8px;
}

.staff-work-day.is-on {
  border-color: rgba(53, 183, 212, .65);
  background: #eaf9fd;
}

.staff-work-toggle {
  display: grid;
  gap: 5px;
  justify-items: start;
  font-weight: 950;
}

.staff-work-toggle input {
  appearance: none;
  width: 46px;
  height: 26px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.staff-work-toggle input:checked {
  border-color: var(--blue);
  background: radial-gradient(circle at 70% 50%, #fff 0 8px, transparent 9px), var(--blue);
}

.staff-work-day input[type="time"] {
  min-height: 42px;
}

.staff-payroll-sync {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  border: 2px solid #ead79b;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.staff-payroll-sync span {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff2bd;
  color: #9a6500;
}

.staff-payroll-sync.is-linked span {
  background: #dff8e8;
  color: #137940;
}

.staff-payroll-sync strong,
.staff-payroll-sync small {
  display: block;
}

.staff-payroll-sync small {
  color: var(--muted);
  font-weight: 850;
}

.staff-invite-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 2px solid #d4edf5;
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
}

.staff-invite-status > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.staff-invite-status strong,
.staff-invite-status small {
  display: block;
  min-width: 0;
  font-weight: 950;
  text-transform: uppercase;
}

.staff-invite-status small {
  color: var(--muted);
  font-size: 10px;
}

.staff-compliance-actions,
.staff-card-final-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 2px solid var(--line);
  padding-top: 12px;
}

.staff-compliance-actions span,
.staff-card-final-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.staff-card-final-actions {
  margin-top: auto;
}

.staff-password-field {
  display: grid;
  gap: 5px;
  min-width: min(280px, 100%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.staff-password-field input {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.invite-action {
  background: #35acd2;
  color: #fff;
}

.staff-page-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 8px;
}

.staff-page-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.staff-page-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-page-chip i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f8fc;
  color: #08718d;
}

.staff-page-chip.is-selected {
  border-color: var(--blue);
  background: #e9f9ff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}

.staff-page-chip:not(.is-selected) {
  color: var(--muted);
  opacity: .78;
}

.staff-page-chip:not(.is-selected) i {
  background: #f0f2f4;
  color: var(--muted);
}

.staff-editor summary {
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.json-box {
  max-height: 230px;
  overflow: auto;
  border-radius: 8px;
  background: #202830;
  color: #d7f7e0;
  font-size: 12px;
  padding: 12px;
}

.selection-bar {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 3px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.selection-bar[hidden] {
  display: none;
}

.selection-bar div:first-child {
  display: grid;
  gap: 3px;
}

.selection-bar strong {
  color: var(--green);
  font-size: 20px;
}

.selection-bar span {
  color: var(--muted);
  font-weight: 800;
}

.selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.selection-actions button[hidden] {
  display: none;
}

.selection-actions [data-selection-action="cancel"] {
  background: #6b7280;
}

.selection-actions [data-selection-action="select-all"] {
  background: var(--blue);
}

.selection-actions [data-selection-action="remove"] {
  background: var(--red);
}

.selection-actions [data-selection-action="keep"] {
  background: var(--green);
}

.calendar-board {
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.calendar-control-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.calendar-control-row strong {
  font-size: 16px;
  white-space: nowrap;
}

.calendar-period-label {
  flex: 0 0 200px;
  text-align: left;
}

.calendar-unified-header {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center !important;
  gap: 22px !important;
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
}

.calendar-unified-header .calendar-date-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
}

.calendar-unified-header .calendar-control-row {
  justify-content: center;
}

body.calendar-week-view .aq-admin {
  width: 100%;
  max-width: none;
}

body.calendar-week-view .calendar-control-panel > header {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 10px;
}

body.calendar-week-view .calendar-control-panel > header > div:first-child {
  text-align: center;
}

body.calendar-week-view .calendar-control-panel .calendar-date-actions {
  width: 100%;
  justify-content: center;
}

body.calendar-week-view .calendar-control-panel .calendar-control-row {
  justify-content: center;
}

body.calendar-week-view .calendar-period-label {
  flex: 0 0 auto;
}

body.calendar-week-view .week-board {
  grid-template-columns: repeat(var(--week-columns, 7), minmax(0, 1fr));
}

body.calendar-month-view .calendar-control-panel > header {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 10px;
}

body.calendar-month-view .calendar-control-panel > header > div:first-child {
  text-align: center;
}

body.calendar-month-view .calendar-control-panel .calendar-date-actions,
body.calendar-month-view .calendar-control-panel .calendar-control-row {
  width: 100%;
  justify-content: center;
}

.calendar-class-count {
  border-radius: 999px;
  background: #eef3f6;
  color: var(--ink);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.calendar-primary-date {
  min-width: 112px;
}

.calendar-primary-date h2 {
  font-size: 36px;
  line-height: 1;
}

.calendar-primary-date p {
  margin: 5px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-closed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-height: 32px;
  padding: 4px 8px 4px 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-closed-toggle input {
  appearance: none;
  position: relative;
  width: 44px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #ccd4dc;
  cursor: pointer;
}

.calendar-closed-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
  transition: transform .18s ease;
}

.calendar-closed-toggle input:checked {
  background: #18a957;
}

.calendar-closed-toggle input:checked::after {
  transform: translateX(18px);
}

.segmented-control,
.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.segmented-control button,
.calendar-nav button {
  min-height: 36px;
  padding: 8px 11px;
  background: #5c6874;
  font-size: 12px;
}

.segmented-control button.is-active,
.calendar-nav button:nth-child(2) {
  background: var(--red);
}

.calendar-nav button:first-child,
.calendar-nav button:last-child {
  width: 38px;
  padding: 8px;
}

.week-board {
  grid-template-columns: repeat(var(--week-columns, 7), minmax(220px, 1fr));
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.month-board {
  grid-template-columns: repeat(7, minmax(118px, 1fr));
}

.calendar-control-panel {
  grid-column: 1 / -1;
}

#calendarDayField {
  display: none !important;
}

.calendar-control-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.calendar-date-panel {
  position: relative;
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.calendar-date-panel > header,
.month-cell header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.calendar-date-panel > header > div,
.calendar-date-panel > header > .calendar-date-heading,
.month-cell header > div {
  min-width: 0;
}

.calendar-date-heading {
  display: block;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 2px 4px;
  color: inherit;
  text-align: left;
}

.calendar-date-heading:hover,
.calendar-date-heading:focus-visible {
  background: #e9f7fc;
  color: var(--ink);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  transform: none;
}

.calendar-date-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.calendar-date-panel > header h2 {
  margin-bottom: 0;
}

.calendar-date-panel.is-compact {
  min-width: 0;
  padding: 14px;
}

.week-board .calendar-date-panel.is-compact {
  align-content: start;
  max-height: calc(100vh - 150px);
  min-height: 680px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.week-board .calendar-date-panel.is-compact > header {
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 2px solid var(--line);
  background: inherit;
  padding-bottom: 8px;
}

.week-board .date-timeline {
  gap: 8px;
}

.calendar-date-panel.is-closed,
.calendar-date-panel.is-empty-day,
.month-cell.is-closed,
.month-cell.is-empty-day {
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,
    #ffffff 12px,
    #eceff3 12px,
    #eceff3 24px
  );
}

.calendar-date-panel.is-closed,
.calendar-date-panel.is-empty-day {
  border-color: #cfd6df;
}

.calendar-date-panel.is-closed .empty-state,
.calendar-date-panel.is-empty-day .empty-state {
  border-style: dashed;
  background: rgba(255, 255, 255, .78);
}

.closed-pill {
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
  text-transform: uppercase;
}

.date-timeline {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 96px;
}

.today-time-line {
  position: absolute;
  left: -6px;
  right: -6px;
  z-index: 2;
  border-top: 3px solid var(--red);
  pointer-events: none;
}

.today-time-line span {
  position: absolute;
  top: -13px;
  left: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  padding: 4px 7px;
}

.current-time-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 2px solid var(--red);
  border-radius: 999px;
  background: #fff;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  padding: 5px 9px;
  text-transform: uppercase;
}

.current-time-banner span {
  color: var(--ink);
}

.closed-banner {
  display: grid;
  gap: 4px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.closed-banner strong {
  color: var(--red);
}

.calendar-class-card {
  display: grid;
  gap: 14px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.calendar-class-card.is-focused {
  border-color: var(--red);
  background: #fffafa;
}

.week-board .calendar-class-card {
  gap: 8px;
  padding: 9px;
}

.week-board .calendar-class-card .calendar-student-grid {
  grid-template-columns: 1fr;
}

.week-board .calendar-class-card > header {
  flex-wrap: wrap;
}

.week-board .calendar-class-card h2 {
  font-size: 21px;
}

.week-board .calendar-class-card .mini-action {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 11px;
}

.calendar-class-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
}

.calendar-class-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.calendar-class-actions .mini-action {
  border: 0;
}

.calendar-class-actions .sick-action {
  background: #ff8a3d;
}

.calendar-class-actions .class-day-action {
  background: #147ea1;
}

.calendar-class-actions .class-day-action.is-pending {
  background: #7b8794;
}

.calendar-class-actions .class-day-action.is-progress {
  background: #147ea1;
}

.calendar-class-actions .class-day-action.is-complete {
  background: #24a653;
}

.calendar-attendance-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 5px;
  padding: 4px 8px;
  border: 1px solid #ccd5de;
  border-radius: 999px;
  background: #f1f4f7;
  color: #556273;
  font-size: 11px;
  font-weight: 800;
}

.calendar-attendance-status.is-complete {
  border-color: #8ed9a5;
  background: #eaf9ef;
  color: #176b34;
}

.calendar-attendance-status.is-attention {
  border-color: #e7a81d;
  background: #fff5d6;
  color: #805500;
}

.calendar-attendance-status.is-progress {
  border-color: #85cde5;
  background: #e9f7fc;
  color: #086985;
}

.class-day-modal form {
  width: min(760px, calc(100vw - 28px));
}

.class-day-modal-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.class-day-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.class-day-overview > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.class-day-overview span,
.class-day-list small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.class-day-list {
  display: grid;
  gap: 7px;
}

.class-day-list p {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.class-day-list p.empty-column {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  white-space: normal;
}

.class-day-credit-balance {
  justify-self: end;
  text-align: right;
}

.class-day-undo-absence {
  justify-self: end;
  border: 1px solid #e0a326;
  border-radius: 8px;
  background: #fff4cc;
  color: #6f4b00;
  font-weight: 800;
  white-space: nowrap;
}

.class-day-undo-absence:disabled {
  border-color: #c9ced5;
  background: #edf0f3;
  color: #737c87;
}

.class-day-student-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.class-day-student-actions button:first-child {
  background: #27b95f;
}

.class-day-action-help {
  display: block;
  margin: 6px 10px 0 42px;
  line-height: 1.45;
}

.class-day-finish-repair {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 2px solid #f2be3f;
  border-radius: 8px;
  background: #fff8df;
}

.class-day-finish-repair small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.class-day-repair-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.class-day-repair-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.class-day-repair-row button:disabled {
  background: #6f7d88;
  cursor: default;
}

@media (max-width: 680px) {
  .class-day-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-day-list p { grid-template-columns: 24px minmax(0, 1fr); }
  .class-day-list small { grid-column: 2; }
  .class-day-credit-balance { justify-self: start; text-align: left; }
  .class-day-undo-absence { grid-column: 2; justify-self: start; white-space: normal; }
  .class-day-student-actions { grid-column: 2; justify-content: flex-start; }
  .class-day-action-help { margin-left: 42px; }
}

.calendar-class-summary-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  justify-content: stretch;
  min-height: auto;
  flex: 1 1 180px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  text-transform: none;
  box-shadow: none;
}

.calendar-class-summary-button:hover,
.calendar-class-summary-button:focus-visible {
  color: var(--red);
}

.teacher-calendar-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  min-width: 42px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #eef8fb;
  color: var(--blue-dark);
  font-size: 18px;
}

.teacher-calendar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-class-image {
  position: relative;
  display: inline-grid;
  width: 48px;
  height: 48px;
  min-width: 48px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.calendar-class-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-class-image.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(53, 172, 215, .25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: avatar-spin .75s linear infinite;
}

.calendar-class-image.is-loading img { opacity: 0; }

.teacher-calendar-avatar.is-loading {
  position: relative;
}

.calendar-class-summary-text,
.calendar-class-summary-text span,
.calendar-class-summary-button strong,
.calendar-class-summary-button small {
  display: block;
}

.calendar-class-summary-button .kicker {
  margin-bottom: 5px;
}

.calendar-class-summary-button strong {
  font-size: 24px;
  line-height: 1;
}

.calendar-class-summary-button .calendar-class-schedule {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  color: #526176;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.calendar-class-summary-button .calendar-class-schedule i {
  color: var(--blue);
}

.calendar-class-summary-button small {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.12;
  margin-top: 5px;
}

.week-board .calendar-class-summary-button strong {
  font-size: 18px;
}

.week-board .teacher-calendar-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 14px;
}

.week-board .calendar-class-image {
  width: 36px;
  height: 36px;
  min-width: 36px;
}

.teacher-calendar-avatar.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(53, 172, 215, 0.25);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: avatar-spin 0.75s linear infinite;
}

.teacher-calendar-avatar.is-loading img {
  opacity: 0;
}

.week-board .calendar-class-summary-button small {
  font-size: 13px;
  line-height: 1.08;
}

.calendar-roster-details {
  display: grid;
  gap: 9px;
}

.calendar-roster-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  border-radius: 8px;
  background: #f4f6f7;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  padding: 7px 9px;
  text-transform: uppercase;
}

.calendar-roster-details summary::after {
  content: "▸";
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.calendar-roster-details[open] summary::after {
  content: "▾";
}

.calendar-roster-details[open] .calendar-student-grid {
  margin-top: 8px;
}

.calendar-work-block-list {
  display: grid;
  gap: 7px;
  border: 2px solid #d8e7ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  padding: 9px;
}

.calendar-work-block-list > strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.calendar-work-block {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--staff-color, #35b7d4) 48%, #dbe6ec);
  border-radius: 8px;
  background: color-mix(in srgb, var(--staff-color, #35b7d4) 12%, #fff);
  padding: 7px;
}

.calendar-work-block > span {
  width: 10px;
  height: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: var(--staff-color, #35b7d4);
}

.calendar-work-block strong,
.calendar-work-block small {
  display: block;
}

.calendar-work-block small {
  color: var(--muted);
  font-weight: 850;
}

.calendar-class-card h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.calendar-class-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.calendar-student-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.calendar-student-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-student {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}

.calendar-student-roster-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.calendar-student-roster-link:hover,
.calendar-student-roster-link:focus-visible {
  border-color: #20a9d5;
  box-shadow: 0 0 0 3px rgba(32, 169, 213, 0.16);
}

.calendar-student .student-thumb {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.calendar-student strong,
.calendar-student small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-student small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendar-student em {
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0a6078;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 7px;
  text-transform: uppercase;
}

.calendar-student.is-absent {
  opacity: 0.42;
  filter: grayscale(1);
}

.calendar-student.is-absent em {
  background: #f7d8dc;
  color: var(--red);
}

.calendar-student.is-pre-absence {
  opacity: 1;
  filter: none;
  border-color: #f7c46a;
  background: #fff8e8;
}

.calendar-student.is-pre-absence em,
.calendar-student.is-pre-absence-makeup em {
  background: #fff0bd;
  color: #8a5b00;
}

.calendar-student.is-makeup {
  border-color: #f19a4b;
  background: #fff0e3;
}

.calendar-student.is-makeup em {
  background: #ffd7b3;
  color: #8a3f00;
}

.calendar-student.is-pre-absence-makeup {
  border-color: #f7c46a;
  background: #fffdf4;
}

.calendar-student.is-canceled-makeup {
  border-color: #aeb8c4;
  background: #f1f4f7;
  color: #66717e;
  opacity: .82;
}

.calendar-student.is-canceled-makeup .student-thumb {
  filter: grayscale(1);
}

.calendar-student.is-canceled-makeup em {
  background: #dbe1e7;
  color: #4f5a66;
}

.calendar-student.is-hold {
  border-color: var(--yellow);
  background: #fffbe6;
}

.calendar-student.is-waitlist {
  border-color: var(--yellow);
  background: #fff8d7;
}

.calendar-student.is-waitlist em {
  background: var(--yellow);
  color: #6b4d00;
}

.calendar-student.is-pending {
  border-color: var(--blue);
  background: #eefaff;
}

.calendar-student.is-trial {
  border-color: #e7bd55;
  background: #fff6cf;
}

.calendar-student.is-upcoming-trial {
  border-style: dashed;
  border-color: #d7ad3d;
  background: #fff7d8;
  opacity: 0.78;
}

.calendar-student.is-upcoming-trial em {
  background: #f8e6a6;
  color: #725510;
}

.roster-card.is-trial-student {
  border-color: #e7bd55;
  background: #fff6cf;
}

.month-cell {
  min-height: 150px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.month-cell.is-outside {
  opacity: 0.48;
}

.month-cell header strong {
  font-size: 22px;
}

.month-date-button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  padding: 5px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.month-cell header[data-calendar-open-date] {
  cursor: pointer;
}

.month-date-button:hover,
.month-date-button:focus-visible {
  background: var(--blue);
  color: #fff;
  outline: 3px solid rgba(53, 183, 212, .24);
  outline-offset: 2px;
  transform: none;
}

.month-cell header span {
  border-radius: 999px;
  background: var(--blue-soft);
  color: #0a6078;
  font-size: 11px;
  font-weight: 950;
  padding: 5px 7px;
  text-transform: uppercase;
}

.month-cell.is-closed header span {
  background: #f7d8dc;
  color: var(--red);
}

.month-cell div {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.month-cell a {
  justify-content: flex-start;
  min-height: 28px;
  border-radius: 7px;
  background: var(--blue);
  padding: 5px 7px;
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
  text-transform: none;
}

.month-cell small {
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .aq-admin {
    max-width: 100%;
    padding: 12px;
  }

  .admin-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bar nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .owner-hero,
  .page-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .owner-map,
  .owner-metrics,
  .owner-graphs,
  .month-board,
  .staff-grid,
  .roster-workspace,
  .roster-card-grid,
  .calendar-student-grid,
  .intake-summary,
  .intake-filters,
  .teacher-notices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-work {
    grid-template-columns: 1fr;
  }

  .template-workspace {
    grid-template-columns: 1fr;
  }

  .template-list-panel {
    position: static;
  }

  .calendar-control-panel > header {
    grid-template-columns: 1fr;
  }

  .calendar-date-panel {
    padding: 14px;
  }

  .week-board {
    grid-template-columns: repeat(7, minmax(168px, 1fr));
    gap: 8px;
  }

  .week-board .calendar-date-panel.is-compact {
    padding: 12px;
  }

  .week-board .calendar-date-panel > header {
    display: grid;
  }

  .week-board .calendar-date-panel > header h2 {
    font-size: 30px;
  }

  .week-board .calendar-date-actions {
    justify-content: flex-start;
  }

  .week-board .calendar-class-card h2 {
    font-size: 18px;
  }

  .week-board .calendar-class-card > header {
    display: grid;
  }

  .week-board .calendar-class-card .mini-action {
    justify-self: flex-start;
  }

  .week-board .calendar-student {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 6px;
  }

  .week-board .calendar-student .student-thumb {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .calendar-control-row {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .calendar-control-row strong {
    width: 100%;
  }

  .calendar-period-label {
    flex-basis: 100%;
  }
}

@media (max-width: 680px) {
  .aq-admin {
    padding: 10px;
  }

  .admin-bar {
    grid-template-columns: 1fr;
    position: static;
  }

  .admin-bar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .owner-map,
  .owner-metrics,
  .owner-graphs,
  .month-board,
  .staff-grid,
  .roster-workspace,
  .roster-card-grid,
  .calendar-student-grid,
  .editor-form,
  .intake-summary,
  .intake-filters,
  .teacher-notices {
    grid-template-columns: 1fr;
  }

  .top-actions a {
    width: 100%;
  }

  .teacher-filter-options {
    position: static;
    width: 100%;
    margin-top: 7px;
    box-shadow: none;
  }

  .selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .selection-actions button {
    flex: 1 1 auto;
  }

  .template-editor-form,
  .template-meta-grid {
    grid-template-columns: 1fr;
  }
}

.homepage-settings-panel {
  display: grid;
  gap: 18px;
}

.registration-hero-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.registration-hero-editor .wide-field,
.registration-hero-preview {
  grid-column: 1 / -1;
}

.registration-hero-preview {
  display: grid;
  gap: 8px;
  margin: 0;
}

.registration-hero-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.registration-hero-preview img:not([src]) {
  display: none;
}

.registration-hero-preview figcaption {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.split-actions {
  justify-content: space-between;
  gap: 12px;
}

.homepage-video-list {
  display: grid;
  gap: 14px;
}

.homepage-location-list {
  display: grid;
  gap: 14px;
}

.homepage-location-card {
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fffdf6;
  padding: 16px;
}

.homepage-location-card .wide-field {
  grid-column: 1 / -1;
}

.homepage-location-card footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.homepage-video-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.homepage-video-preview {
  width: 112px;
  aspect-ratio: 1;
  border: 7px solid #e7656b;
  border-radius: 50%;
  background: #f7f7f7;
  overflow: hidden;
}

.homepage-video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homepage-video-card footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .registration-hero-editor {
    grid-template-columns: 1fr;
  }

  .homepage-video-card {
    grid-template-columns: 1fr;
  }

  .homepage-video-preview {
    margin: 0 auto;
  }
}

.quest-builder-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 189, 73, .24), transparent 28%),
    linear-gradient(135deg, #fff, #edf9ff);
}

.quest-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quest-builder-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#questBuilderStatus[data-type="saving"] {
  border-color: #f5c542;
  background: #fff8d8;
}

#questBuilderStatus[data-type="error"] {
  border-color: #ff1f2d;
  background: #fff0f0;
}

.quest-kingdom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}

.quest-element-map {
  display: grid;
  gap: 12px;
}

.quest-map-board {
  display: grid;
  gap: 14px;
}

.quest-map-row {
  display: grid;
  gap: 10px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
}

.quest-map-row.is-row-drag-ready {
  border-color: #f5c542;
  cursor: grab;
}

.quest-map-row.is-row-dragging {
  opacity: .72;
  transform: scale(.995);
}

.quest-map-row.is-row-drag-over {
  background: #edf9ff;
}

.quest-map-row-handle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-map-row-handle i {
  color: #35add5;
}

.quest-map-row-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 2px dashed #d4d9df;
  border-radius: 8px;
  background: #fff9df;
}

.quest-map-tools,
.quest-rules-drawer {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
  overflow: hidden;
}

.quest-map-tools > summary,
.quest-rules-drawer > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 11px 14px;
  background: #f8fbfd;
  color: #233047;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.quest-map-tools > summary::-webkit-details-marker,
.quest-rules-drawer > summary::-webkit-details-marker {
  display: none;
}

.quest-map-tools > summary span,
.quest-rules-drawer > summary span {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.quest-map-tools > summary .fa-chevron-down,
.quest-rules-drawer > summary .fa-chevron-down {
  transition: transform .18s ease;
}

.quest-map-tools[open] > summary .fa-chevron-down,
.quest-rules-drawer[open] > summary .fa-chevron-down {
  transform: rotate(180deg);
}

.quest-map-tools .quest-element-editor-toolbar,
.quest-map-tools .quest-map-row-controls {
  margin: 12px;
}

.quest-map-row-controls button,
.quest-column-count button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #35add5;
  color: #fff;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .18);
}

.quest-map-row-controls button:disabled,
.quest-column-count button:disabled {
  opacity: .82;
  cursor: not-allowed;
}

.quest-column-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.quest-column-count span {
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-column-count button {
  display: grid;
  place-items: center;
  width: 38px;
  padding: 0;
  background: #6f7f96;
}

.quest-element-map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.quest-element-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.quest-element-editor-toolbar p {
  margin: 0;
  color: #667085;
  font-weight: 850;
}

.apple-toggle {
  display: inline-grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.apple-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.apple-toggle > span {
  position: relative;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: #cfd8e3;
  box-shadow: inset 0 0 0 2px rgba(35, 48, 71, .08);
  transition: background .18s ease;
}

.apple-toggle > span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(35, 48, 71, .22);
  transition: transform .18s ease;
}

.apple-toggle input:checked + span {
  background: #2fbf5f;
}

.apple-toggle input:checked + span::after {
  transform: translateX(24px);
}

.apple-toggle strong {
  font-weight: 950;
}

.next-level-settings-form { gap: 18px; }
.next-level-setting-note { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #cfd9e5; background: #f5f8fb; }
.next-level-setting-note > i { color: #1689a8; font-size: 1.35rem; }
.next-level-setting-note span { display: grid; gap: 3px; }
.next-level-setting-note small { color: #617086; }
.next-level-safety-results { display: grid; gap: 5px; padding: 14px; border: 1px solid #cfd9e5; border-radius: 7px; background: #f7fafc; }
.next-level-safety-results[hidden] { display: none; }
.next-level-safety-results p, .next-level-safety-results ul { margin: 0; }
.next-level-safety-results p { display: flex; align-items: center; gap: 9px; color: #526176; font-weight: 800; }
.next-level-safety-results p.is-good { color: #147344; }
.next-level-safety-results p.is-warning { color: #9a6400; }
.next-level-safety-results small { color: #647287; font-weight: 700; }
.next-level-safety-results ul { padding-left: 20px; color: #9a3b35; font-weight: 750; }

.game-email-copy-settings {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 320px) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 16px;
  border: 2px solid #9fd9ea;
  border-radius: 8px;
  background: #f2fbfe;
}

.game-email-copy-settings p,
.game-email-copy-settings small {
  margin: 4px 0 0;
  color: #5d6979;
  font-weight: 750;
}

.catalog-foundation-app { display: grid; gap: 16px; }
.catalog-mission { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid #6ec7df; background: #eefaff; }
.catalog-mission > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #087b9d; background: #d9f5fc; }
.catalog-mission p, .catalog-mission strong { margin: 0; }
.catalog-mission b { color: #8a5b00; background: #fff3c4; padding: 8px 10px; border-radius: 6px; }
.catalog-foundation-grid { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.4fr); gap: 16px; }
.catalog-foundation-grid > section, .catalog-planning-form, .catalog-readiness-checklist { border: 1px solid #d6dde3; padding: 16px; background: #fff; }
.catalog-foundation-grid header, .catalog-readiness-checklist header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.catalog-foundation-grid h3, .catalog-readiness-checklist h3 { margin: 2px 0 12px; }
.catalog-plan-list { display: grid; gap: 7px; }
.catalog-plan-list article { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(170px, auto) auto; gap: 10px; align-items: center; padding: 9px; background: #f6f8fa; border: 1px solid #e0e5e9; }
.catalog-plan-list small { display: block; }.catalog-plan-list code { font-size: 11px; overflow-wrap: anywhere; }.catalog-plan-list i { color: #1fac58; }
.catalog-planning-form { display: grid; gap: 12px; }.catalog-draft-meta, .catalog-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.catalog-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.catalog-price-grid label span { display: flex; align-items: center; gap: 5px; }.catalog-price-grid input { min-width: 0; width: 100%; }
.catalog-planning-form label { display: grid; gap: 5px; font-weight: 700; }.catalog-planning-actions { display: flex; gap: 10px; flex-wrap: wrap; }.catalog-planning-actions button[disabled] { background: #e8edf0; color: #64727c; box-shadow: none; }
.catalog-readiness-checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }.catalog-readiness-checklist header { grid-column: 1 / -1; }.catalog-readiness-checklist article { display: flex; gap: 10px; padding: 12px; border: 1px solid #dbe2e6; }.catalog-readiness-checklist article i { margin-top: 2px; }.catalog-readiness-checklist article small { display: block; margin-top: 4px; }.catalog-readiness-checklist .is-ready i { color: #1fac58; }.catalog-readiness-checklist .is-future i { color: #b07a00; }
@media (max-width: 900px) { .catalog-foundation-grid { grid-template-columns: 1fr; }.catalog-price-grid, .catalog-readiness-checklist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .catalog-mission { grid-template-columns: auto 1fr; }.catalog-mission b { grid-column: 1 / -1; }.catalog-draft-meta, .catalog-price-grid, .catalog-readiness-checklist { grid-template-columns: 1fr; } }

.game-email-copy-settings label:not(.apple-toggle) {
  display: grid;
  gap: 6px;
  color: #5d6979;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.game-email-copy-settings small {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .game-email-copy-settings { grid-template-columns: 1fr; align-items: stretch; }
  .game-email-copy-settings small { grid-column: auto; }
}

.quest-element-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.quest-element-card header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}

.quest-element-card header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #2fb0d6;
  color: #fff;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-element-card header > span.quest-element-symbol {
  overflow: hidden;
  border: 2px solid rgba(166, 0, 103, .18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.quest-element-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quest-element-card strong,
.quest-element-card small {
  display: block;
}

.quest-element-card small,
.quest-element-card p {
  color: #667085;
  font-weight: 800;
}

.quest-element-card p {
  margin: 0;
}

.quest-element-card.is-outside-element {
  background: #fff9df;
  border-color: #f5c542;
}

.quest-element-card.is-single-kingdom-row {
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1fr);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 249, 223, .95), rgba(255, 255, 255, .95));
  border-color: #f5c542;
}

.quest-element-card.is-single-kingdom-row > p,
.quest-element-card.is-single-kingdom-row > .pill-row {
  grid-column: 1;
}

.quest-element-card.is-single-kingdom-row .quest-element-kingdoms {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.quest-element-card.is-single-kingdom-row .quest-element-kingdom {
  min-height: 96px;
  grid-template-columns: 86px minmax(0, 1fr) 34px auto;
  padding: 10px;
}

.quest-element-card.is-single-kingdom-row .quest-element-kingdom img {
  width: 82px;
  height: 82px;
}

.quest-element-card.element-earth header > span:not(.quest-element-symbol) {
  background: #2fbf5f;
}

.quest-element-card.element-air header > span:not(.quest-element-symbol) {
  background: #6f7f96;
}

.quest-element-card.element-fire header > span:not(.quest-element-symbol) {
  background: #ff2a32;
}

.quest-element-card.element-all_elements header > span:not(.quest-element-symbol),
.quest-element-card.element-beginning header > span:not(.quest-element-symbol) {
  background: #f5c542;
  color: #233047;
}

.quest-element-kingdoms {
  display: grid;
  gap: 8px;
}

.quest-element-kingdom {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, .86);
  font-weight: 900;
}

.quest-open-kingdom {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 999px;
  background: #35add5;
  color: #fff;
  box-shadow: 0 2px 0 rgba(35, 48, 71, .18);
  cursor: pointer;
}

.quest-element-kingdom.is-drag-ready {
  cursor: grab;
  border-color: #f5c542;
}

.quest-element-kingdom i {
  color: #667085;
}

.quest-open-kingdom i {
  color: #fff;
  font-size: .78rem;
}

.quest-element-kingdom img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.quest-progression-policy {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quest-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 12px;
}

.quest-progression-policy article,
.bad-guy-policy-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: start;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.quest-progression-policy article > .pill,
.bad-guy-policy-grid article > .pill {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: 120px;
  text-align: center;
}

.quest-progression-policy article > div,
.bad-guy-policy-grid article > div {
  grid-column: 1 / -1;
}

.quest-progression-policy article strong,
.bad-guy-policy-grid article strong {
  display: block;
  padding-right: 128px;
  line-height: 1.05;
}

.quest-progression-policy p {
  margin: 3px 0 0;
  color: #667085;
  font-weight: 800;
  line-height: 1.25;
}

.policy-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
}

.bad-guy-policy-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  border: 3px solid #ff2a32;
  border-radius: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 96% 8%, rgba(255, 42, 50, .12), transparent 28%),
    linear-gradient(135deg, #fff, #fff7f7);
  box-shadow: 0 5px 0 rgba(35, 48, 71, .14);
}

.bad-guy-policy-group > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.bad-guy-policy-group h3 {
  margin: 0;
  font-size: 1.45rem;
}

.bad-guy-policy-group header p {
  margin: 4px 0 0;
}

.bad-guy-policy-section {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .1);
}

.bad-guy-policy-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.bad-guy-policy-section summary::-webkit-details-marker {
  display: none;
}

.bad-guy-policy-section summary span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bad-guy-policy-section summary > i {
  color: #667085;
  transition: transform .18s ease;
}

.bad-guy-policy-section[open] summary > i {
  transform: rotate(180deg);
}

.bad-guy-policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.bad-guy-policy-grid article,
.bad-guy-rule-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
  box-shadow: none;
}

.bad-guy-policy-grid article {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
}

.bad-guy-policy-grid p {
  margin: 3px 0 0;
  color: #667085;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.25;
}

.bad-guy-rule-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.bad-guy-rule-list article {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
}

.bad-guy-rule-list strong,
.bad-guy-rule-list span,
.bad-guy-rule-list b {
  display: block;
}

.bad-guy-rule-list span {
  color: #667085;
  font-size: .78rem;
  font-weight: 850;
}

.bad-guy-rule-list b {
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff9df;
  color: #665200;
  font-size: .72rem;
  text-align: center;
  text-transform: uppercase;
}

.battle-task-tools {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.battle-task-tools > div:first-child strong,
.battle-task-tools > div:first-child span {
  display: block;
}

.battle-task-tools > div:first-child span {
  color: #667085;
  font-size: .8rem;
  font-weight: 800;
}

.battle-task-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.battle-task-card {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
  overflow: hidden;
}

.battle-task-card > summary {
  display: grid;
  grid-template-columns: 42px minmax(140px, 1fr) auto auto 38px 18px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.battle-task-card > summary::-webkit-details-marker {
  display: none;
}

.battle-task-card[open] > summary {
  border-bottom: 1px solid #e4e7ec;
  background: #f8fbfd;
}

.battle-task-card[open] .battle-task-chevron {
  transform: rotate(180deg);
}

.battle-task-card header .pill {
  position: static;
  justify-self: end;
  max-width: none;
  white-space: normal;
  text-align: center;
}

.battle-task-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
}

.battle-task-card strong,
.battle-task-card small {
  display: block;
  min-width: 0;
}

.battle-task-card strong {
  color: #233047;
  font-size: .96rem;
  line-height: 1.15;
}

.battle-task-summary-dice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  border: 1px solid #d7eef7;
  border-radius: 999px;
  padding: 7px 9px;
  background: #edf9ff;
  color: #09546a;
  font-size: .76rem;
  font-weight: 950;
  white-space: nowrap;
}

.battle-task-summary-dice.boss {
  border-color: #ffd7df;
  background: #fff1f5;
  color: #b3125e;
}

.battle-task-chevron {
  color: #667085;
  transition: transform .18s ease;
}

.battle-task-editor-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.battle-task-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.battle-task-card label span,
.battle-task-description span,
.battle-task-dice-row label span {
  display: block;
  color: #667085;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-task-card input,
.battle-task-card textarea,
.battle-task-card select,
.quest-writing-tools input {
  width: 100%;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  color: #24313f;
  font: inherit;
  font-weight: 800;
  margin-top: 4px;
  outline: 0;
  padding: 9px 10px;
}

.battle-task-card textarea {
  min-height: 86px;
  resize: vertical;
}

.battle-task-card input:focus,
.battle-task-card textarea:focus,
.battle-task-card select:focus,
.quest-writing-tools input:focus {
  border-color: #35acd7;
  box-shadow: 0 0 0 4px rgba(53, 172, 215, .14);
}

.damage-word-tier-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 8px;
}

.damage-word-tier-list span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid #d7eef7;
  border-radius: 8px;
  background: #f8fcff;
  color: #09546a;
  text-align: center;
}

.damage-word-tier-list strong {
  color: #ff2735;
  font-size: .9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.damage-word-tier-list small {
  color: #667085;
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bad-guy-cadence-note {
  display: grid;
  align-content: center;
  min-height: 72px;
  border: 2px solid #d7eef7;
  border-radius: 8px;
  background: #f8fcff;
  padding: 10px;
}

.bad-guy-cadence-note strong,
.bad-guy-cadence-note span {
  display: block;
}

.bad-guy-cadence-note strong {
  color: #09546a;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.bad-guy-cadence-note span {
  color: #667085;
  font-size: .82rem;
  font-weight: 850;
}

.battle-task-card small {
  color: #667085;
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-task-card p {
  margin: 0;
  color: #667085;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
}

.battle-task-dice-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.battle-task-dice-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
  color: #667085;
  font-size: .78rem;
  font-weight: 850;
}

.battle-task-dice-row label,
.battle-task-dice-row span {
  min-width: 0;
}

.battle-task-dice-row label input {
  min-height: 42px;
}

.battle-task-dice-row strong {
  color: #233047;
}

.battle-task-check {
  align-items: center;
  border: 2px solid #e6f7fe;
  border-radius: 999px;
  background: #f8fcff;
  color: #09546a;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 8px 10px;
}

.battle-task-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #ff2735;
}

.battle-task-dice-preview {
  border-radius: 999px;
  background: #fff6d7;
  color: #6a4d00;
  font-size: .82rem;
  font-weight: 900;
  margin: 0;
  padding: 8px 10px;
}

.battle-task-remove {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  background: #ff2a32;
  justify-self: end;
}

.battle-task-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.battle-task-card footer button {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
}

.battle-task-card footer button:last-child {
  display: grid;
  place-items: center;
  width: 38px;
  padding: 0;
  border-radius: 999px;
  background: #ff2a32;
}

.battle-task-drawer {
  margin: 10px 0 0;
}

@media (max-width: 780px) {
  .battle-task-card > summary {
    grid-template-columns: 42px minmax(0, 1fr) 38px 18px;
  }

  .battle-task-summary-dice {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .battle-task-field-row,
  .battle-task-dice-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quest-banner-reference {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.quest-banner-reference summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.quest-banner-reference summary::-webkit-details-marker {
  display: none;
}

.quest-banner-reference summary .kicker {
  margin: 0;
}

.quest-banner-reference summary > i {
  color: #667085;
  transition: transform .18s ease;
}

.quest-banner-reference[open] summary > i {
  transform: rotate(180deg);
}

.quest-kingdom-drawer {
  margin-top: 12px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .1);
  overflow: hidden;
}

.quest-kingdom-drawer > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.quest-kingdom-drawer > summary::-webkit-details-marker {
  display: none;
}

.quest-kingdom-drawer > summary > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-drawer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.quest-drawer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf9ff;
  color: #006477;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.quest-kingdom-drawer > summary > i {
  color: #667085;
  transition: transform .18s ease;
}

.quest-kingdom-drawer[open] > summary > i {
  transform: rotate(180deg);
}

.quest-kingdom-drawer > .quest-writing-tools,
.quest-kingdom-drawer > .quest-kingdom-assets,
.quest-kingdom-drawer > .quest-stage-admin-list,
.bad-guy-body {
  padding: 0 12px 12px;
}

.quest-banner-reference strong,
.quest-banner-reference span {
  display: block;
}

.quest-banner-reference span,
.quest-banner-reference p {
  color: #667085;
  font-weight: 800;
}

.quest-banner-reference-intro {
  margin-top: 8px;
}

.quest-banner-reference-body {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
}

.quest-banner-reference-body img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.quest-banner-reference-body p {
  margin: 0;
}

.quest-kingdom-card,
.quest-rule-list article,
.quest-reward-card,
.quest-leasing-list article {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.quest-kingdom-card {
  position: relative;
  overflow: hidden;
}

.quest-kingdom-card.is-level-target {
  animation: levelTargetPulse 2.2s ease;
}

@keyframes levelTargetPulse {
  0% {
    outline: 0 solid rgba(245, 197, 66, 0);
    transform: translateY(0);
  }
  20% {
    outline: 6px solid rgba(245, 197, 66, .48);
    transform: translateY(-3px);
  }
  100% {
    outline: 0 solid rgba(245, 197, 66, 0);
    transform: translateY(0);
  }
}

.quest-kingdom-card.is-muted {
  opacity: .62;
  filter: grayscale(.7);
}

.quest-card-banner {
  position: relative;
  display: block;
  width: calc(100% + 28px);
  min-height: 0;
  margin: -14px -14px 14px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid #d4d9df;
  background: #f8fbfd;
  box-shadow: none;
  overflow: hidden;
  color: #667085;
}

.quest-card-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center;
}

.quest-card-banner.is-empty {
  display: grid;
  place-items: center;
  min-height: 118px;
  border-bottom-style: dashed;
  background: #fff9df;
}

.quest-card-banner.is-empty > span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #667085;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-card-banner em,
.quest-kingdom-media em {
  position: absolute;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 999px;
  background: rgba(35, 48, 71, .82);
  color: #fff;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
  opacity: .88;
}

.quest-card-banner em {
  right: 12px;
  bottom: 10px;
  padding: 7px 10px;
}

.quest-kingdom-card header {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-right: 58px;
}

.quest-kingdom-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  min-height: 112px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.quest-kingdom-media em {
  right: -6px;
  bottom: -6px;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.quest-gateway-logo {
  display: block;
  width: 112px;
  height: 112px;
  max-width: 100%;
  max-height: 100%;
  border: 3px solid #f5c542;
  border-radius: 8px;
  background: #fff9df;
  object-fit: contain;
}

.quest-banner-empty {
  display: grid;
  place-items: center;
  color: #667085;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.quest-kingdom-focus-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0;
  background: #687789;
}

.quest-stage-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quest-stage-admin-card {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #f8fbfd;
  overflow: hidden;
}

.quest-stage-admin-card[draggable="true"] {
  cursor: grab;
}

.quest-stage-admin-card.is-stage-dragging {
  opacity: .58;
  transform: scale(.985);
}

.quest-stage-admin-card.is-stage-drag-over {
  border-color: #35acd7;
  box-shadow: 0 0 0 4px rgba(53, 172, 215, .18), 0 5px 0 rgba(0, 0, 0, .11);
}

.quest-stage-admin-card summary {
  display: grid;
  grid-template-columns: 26px 64px minmax(0, 1fr) auto 22px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  list-style: none;
}

.quest-stage-admin-card summary::-webkit-details-marker {
  display: none;
}

.quest-stage-drag {
  display: grid;
  place-items: center;
  color: #667085;
  cursor: grab;
}

.quest-stage-image-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  min-height: 64px;
  border: 2px solid #f5c542;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  box-shadow: none;
}

.quest-stage-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quest-stage-image-button em {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(35, 48, 71, .84);
  color: #fff;
  font-size: .72rem;
  font-style: normal;
}

.quest-stage-admin-card summary > .fa-chevron-down {
  transition: transform .18s ease;
}

.quest-stage-admin-card[open] summary > .fa-chevron-down {
  transform: rotate(180deg);
}

.quest-stage-admin-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
  border-top: 1px solid #e4e7ec;
}

.quest-stage-admin-card p {
  margin: 4px 0 6px;
  color: #465668;
  font-weight: 750;
}

.quest-stage-admin-card strong,
.quest-stage-admin-card span,
.quest-stage-admin-card small {
  display: block;
}

.quest-stage-admin-card span,
.quest-stage-admin-card small {
  color: #667085;
  font-weight: 850;
}

.quest-writing-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quest-writing-tools label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-stage-name-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 2px solid rgba(53, 172, 215, .22);
  border-radius: 10px;
  background: #f1fbff;
  padding: 10px;
}

.quest-writing-tools textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #233047;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  text-transform: none;
}

.quest-writing-tools textarea:disabled {
  opacity: 1;
  -webkit-text-fill-color: #233047;
}

.quest-autosave-note {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #007a94;
  font-size: .78rem;
  font-weight: 900;
}

.bad-guy-card {
  margin-top: 12px;
  border: 2px solid #ff2a32;
  border-radius: 8px;
  padding: 0;
  background: #fff7f7;
  overflow: hidden;
}

.bad-guy-card > summary {
  background: #fff7f7;
}

.quest-kingdom-drawer > summary.bad-guy-summary {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.bad-guy-summary-icon {
  position: relative;
  display: grid;
  place-items: center;
  place-self: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 999px;
  background: #ff2a32;
  color: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .18);
  line-height: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: visible;
}

.bad-guy-summary-icon i {
  display: block;
  line-height: 1;
}

.bad-guy-summary-icon.has-image {
  background: #fff;
  border: 2px solid #ff2a32;
}

.bad-guy-summary-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.bad-guy-summary-icon em {
  position: absolute;
  right: -7px;
  bottom: -7px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #687789;
  color: #fff;
  font-size: .62rem;
  font-style: normal;
  box-shadow: 0 2px 0 rgba(35, 48, 71, .18);
}

.bad-guy-summary-icon:hover,
.bad-guy-summary-icon:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 42, 50, .18), 0 4px 0 rgba(35, 48, 71, .18);
}

.bad-guy-summary .kicker {
  margin: 0 0 2px;
}

.bad-guy-card h4 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.bad-guy-name-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(90px, 150px);
  gap: 8px;
  margin: 0 0 8px;
}

.bad-guy-name-editor label {
  display: grid;
  gap: 4px;
}

.bad-guy-name-editor span {
  color: #667085;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bad-guy-name-editor input {
  width: 100%;
  min-height: 38px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .72);
  color: #233047;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 950;
}

.bad-guy-name-editor label:last-child input {
  font-size: .92rem;
  text-transform: uppercase;
}

.bad-guy-name-editor input:hover {
  border-color: rgba(255, 42, 50, .22);
  background: #fff;
}

.bad-guy-name-editor input:focus {
  outline: 0;
  border-color: #33afd6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(51, 175, 214, .18);
}

.bad-guy-description {
  margin: 0 0 10px;
  color: #667085;
  font-weight: 800;
}

.bad-guy-hitpoint-tools {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 12px;
  border: 2px solid rgba(255, 42, 50, .22);
  border-radius: 8px;
  background: #fff;
}

.bad-guy-hitpoint-tools > div:first-child {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.bad-guy-hitpoint-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #ff2a32;
  color: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .16);
}

.bad-guy-hitpoint-tools strong,
.bad-guy-hitpoint-tools p,
.bad-guy-hitpoint-tools span {
  display: block;
}

.bad-guy-hitpoint-tools p {
  margin: 2px 0 0;
  color: #667085;
  font-weight: 800;
}

.sample-battle-tools {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  border: 2px solid #cdbcf1;
  border-left: 8px solid #6a4bb6;
  border-radius: 8px;
  padding: 14px;
  background: #f7f3ff;
}

.sample-battle-tools > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sample-battle-tools > header > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e6dcff;
  color: #573a9f;
}

.sample-battle-tools strong,
.sample-battle-tools p {
  display: block;
  margin: 0;
}

.sample-battle-tools p {
  color: #637083;
  font-size: 12px;
}

.sample-battle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sample-battle-grid label span {
  display: block;
  margin-bottom: 4px;
  color: #596676;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-battle-grid input,
.sample-battle-grid select {
  width: 100%;
}

.sample-battle-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sample-battle-safety span {
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: #573a9f;
  font-size: 10px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .sample-battle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.bad-guy-hitpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bad-guy-hitpoint-grid label {
  display: grid;
  gap: 5px;
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bad-guy-hitpoint-grid input {
  width: 100%;
  min-height: 42px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbfd;
  color: #233047;
  font: inherit;
  font-weight: 900;
}

.bad-guy-hitpoint-grid input:focus {
  outline: 0;
  border-color: #33afd6;
  box-shadow: 0 0 0 3px rgba(51, 175, 214, .18);
}

.quest-kingdom-assets,
.quest-stage-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.quest-image-editor,
.quest-sample-tools,
.quest-point-tools,
.quest-reward-awards,
.quest-video-tools,
.quest-material-tools,
.quest-shop-tools {
  border: 1px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.quest-image-editor {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  align-items: center;
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-image-editor button,
.quest-sample-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
  box-shadow: none;
}

.quest-image-editor img,
.quest-sample-thumb img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.quest-point-tools {
  display: grid;
  grid-template-columns: 1fr 34px 48px 34px;
  gap: 8px;
  align-items: center;
}

.quest-point-tools span {
  color: #667085;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-point-tools button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #2fb0d6;
  box-shadow: none;
}

.quest-point-tools button:first-of-type {
  background: #ff2a32;
}

.quest-point-tools strong {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: #f8fbfd;
}

.quest-reward-awards,
.quest-video-tools,
.quest-material-tools,
.quest-shop-tools {
  display: grid;
  gap: 10px;
}

.quest-reward-awards > div:first-child strong,
.quest-video-tools > div:first-child strong,
.quest-material-tools > div:first-child strong,
.quest-shop-tools > div:first-child strong {
  display: block;
  font-size: .86rem;
}

.quest-reward-awards > div:first-child span,
.quest-video-tools > div:first-child span,
.quest-material-tools > div:first-child span,
.quest-shop-tools > div:first-child span {
  color: #667085;
  font-size: .76rem;
  font-weight: 800;
}

.quest-shop-tools {
  border: 1px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.quest-shop-tools.is-locked-shop {
  border-color: #9aa3ad;
  background: linear-gradient(180deg, #f8fbfd, #eef1f4);
}

.quest-shop-hero {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: #d9dee4;
  box-shadow: 0 4px 0 rgba(36, 49, 63, .14);
}

.quest-shop-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) brightness(.94);
}

.quest-shop-hero em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  border-radius: 999px;
  background: rgba(36, 49, 63, .84);
  color: #fff;
  padding: 7px 10px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-shop-tools > div:first-of-type p {
  margin: 6px 0 0;
  color: #667085;
  font-size: .8rem;
  font-weight: 800;
}

.quest-shop-unlock {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.quest-shop-tools.is-locked-shop .quest-shop-unlock {
  border-color: #c7ccd3;
  background: #fff;
}

.quest-shop-unlock strong,
.quest-shop-unlock small {
  display: block;
}

.quest-shop-unlock small {
  color: #667085;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-material-list {
  display: grid;
  gap: 8px;
}

.quest-material-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.quest-material-link.needs-match {
  border-color: #f5c542;
  background: #fff9df;
}

.quest-material-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
}

.quest-material-link.needs-match .quest-material-icon {
  background: #fff0bc;
  color: #7a5200;
}

.quest-material-link strong,
.quest-material-link small,
.quest-material-link p {
  display: block;
}

.quest-material-link small,
.quest-material-link p {
  margin: 2px 0 0;
  color: #667085;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}

.quest-reward-award-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.quest-reward-tools {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px 34px 30px;
  gap: 7px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.quest-reward-tools .reward-emoji {
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
}

.quest-reward-tools strong,
.quest-reward-tools small {
  display: block;
}

.quest-reward-tools small {
  color: #667085;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
}

.quest-reward-tools button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  background: #2fb0d6;
  box-shadow: none;
}

.quest-reward-tools button:first-of-type {
  background: #ff2a32;
}

.quest-reward-tools b {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 640px) {
  .quest-kingdom-card header {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding-right: 48px;
  }

  .quest-kingdom-media,
  .quest-gateway-logo {
    width: 88px;
    height: 88px;
    min-height: 88px;
  }

  .quest-reward-award-grid {
    grid-template-columns: 1fr;
  }

  .quest-reward-tools {
    grid-template-columns: 34px minmax(0, 1fr) 28px 32px 28px;
    gap: 5px;
    padding: 7px;
  }

  .quest-reward-tools .reward-emoji {
    width: 34px;
    height: 34px;
  }

  .quest-reward-tools button {
    width: 28px;
    height: 28px;
    min-height: 28px;
  }
}

.quest-sample-tools {
  display: grid;
  gap: 8px;
}

.quest-sample-tools strong,
.quest-sample-tools span {
  display: block;
}

.quest-sample-tools strong {
  font-size: .86rem;
}

.quest-sample-tools span {
  color: #667085;
  font-size: .76rem;
  font-weight: 800;
}

.quest-sample-row,
.quest-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quest-sample-row {
  align-items: flex-start;
}

.quest-sample-thumb {
  position: relative;
  width: 70px;
  height: 70px;
  min-height: 70px;
  border-radius: 8px;
  overflow: hidden;
}

.quest-sample-thumb em {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ff1f2d;
  color: #fff;
  font-size: .72rem;
  font-style: normal;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}

.quest-sample-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 4px;
  overflow: hidden;
  background: rgba(35, 48, 71, .78);
  color: #fff;
  font-size: .58rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-video-preview {
  display: grid;
  place-items: center;
  min-height: 122px;
  border: 2px dashed #cdd6e1;
  border-radius: 8px;
  background: #f8fbfd;
  color: #667085;
  box-shadow: none;
}

.quest-video-preview i {
  font-size: 1.5rem;
  color: #2fb0d6;
}

.quest-video-preview img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

.quest-video-preview span {
  font-weight: 950;
  text-transform: uppercase;
}

.quest-sample-empty {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 2px dashed #cdd6e1;
  border-radius: 8px;
  color: #667085;
  font-weight: 900;
}

.quest-editor-actions button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: .74rem;
  background: #687789;
}

.quest-rule-list,
.quest-reward-grid,
.quest-leasing-list {
  display: grid;
  gap: 10px;
}

.quest-rule-list article,
.quest-reward-card,
.quest-leasing-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.quest-rule-list strong,
.quest-rule-list span,
.quest-reward-card strong,
.quest-reward-card span,
.quest-leasing-list strong,
.quest-leasing-list span {
  display: block;
}

.quest-reward-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quest-reward-card {
  align-items: flex-start;
  background:
    linear-gradient(135deg, #fff, #f8fbfd),
    radial-gradient(circle at top right, rgba(84, 184, 208, .16), transparent 42%);
}

.quest-reward-card > div {
  min-width: 0;
}

.quest-reward-card p {
  margin: 4px 0 8px;
  color: #465668;
  font-weight: 750;
}

.quest-reward-admin-card,
.quest-market-list {
  grid-column: 1 / -1;
  border: 2px solid #f5c542;
  border-radius: 8px;
  padding: 14px;
  background: #fff9df;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.quest-reward-admin-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.quest-reward-admin-card h3,
.quest-market-list h3 {
  margin: 0 0 6px;
}

.quest-reward-admin-card p {
  margin: 0 0 8px;
  color: #665200;
  font-weight: 800;
}

.quest-reward-mode {
  display: inline-flex;
  gap: 6px;
  margin: 2px 0 8px;
  padding: 4px;
  border-radius: 999px;
  background: #f0f2f5;
}

.quest-reward-mode button {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #8b96a5;
  color: #fff;
  font-size: .68rem;
  box-shadow: none;
}

.quest-reward-mode button.is-active {
  background: #35add5;
}

.reward-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 2px solid #f5c542;
  border-radius: 999px;
  background: #fff9df;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
}

.reward-emoji-glyph {
  display: block;
  line-height: 1;
  transform: translateY(1px);
}

.reward-emoji.has-image {
  overflow: hidden;
  background: #fff;
}

.reward-emoji.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-system-card .reward-emoji {
  border-color: #2fb0d6;
  background: #edf9ff;
  color: #2fb0d6;
  font-size: 1.2rem;
}

.quest-reward-card > button {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border-radius: 999px;
  background: #687789;
  box-shadow: none;
}

.notice-pill {
  background: #fff1f7;
  color: #b42363;
}

.quest-market-list {
  display: grid;
  gap: 10px;
}

.quest-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.quest-market-card {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(102, 82, 0, .24);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.quest-market-card p {
  grid-column: 1;
  margin: 0;
  color: #667085;
  font-size: .82rem;
  font-weight: 800;
}

.quest-market-card button {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  background: #35add5;
  box-shadow: none;
}

.quest-owner-settings {
  display: grid;
  gap: 12px;
}

.quest-owner-settings-card {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
  overflow: hidden;
}

.quest-owner-settings-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  background: #f8fbfd;
  color: #233047;
  font-size: 1rem;
  font-weight: 950;
}

.quest-owner-settings-card > summary span {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.quest-owner-settings-card > summary .fa-chevron-down {
  transition: transform .18s ease;
}

.quest-owner-settings-card[open] > summary .fa-chevron-down {
  transform: rotate(180deg);
}

.quest-owner-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
  padding: 12px;
}

.quest-owner-toggle,
.quest-owner-field,
.quest-owner-mini-card,
.quest-owner-wide-card {
  border: 1px solid #d4d9df;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.quest-owner-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  cursor: pointer;
}

.quest-owner-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quest-owner-toggle > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #edf9ff;
  color: #35add5;
  font-size: 1.25rem;
}

.quest-owner-toggle:has(input:checked) {
  border-color: #2dbb54;
  background: #f0fff3;
}

.quest-owner-toggle:has(input:checked) > span {
  background: #2dbb54;
  color: #fff;
}

.quest-owner-toggle strong,
.quest-owner-toggle small,
.quest-owner-field span,
.quest-owner-field small,
.quest-owner-mini-card strong,
.quest-owner-mini-card span,
.quest-owner-mini-card small,
.quest-owner-wide-card strong,
.quest-owner-wide-card p {
  display: block;
}

.quest-owner-toggle small,
.quest-owner-field small,
.quest-owner-mini-card span,
.quest-owner-mini-card small,
.quest-owner-wide-card p {
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
}

.quest-owner-toggle small {
  grid-column: 2;
}

.quest-owner-field {
  display: grid;
  gap: 7px;
}

.quest-owner-field.wide,
.quest-owner-wide-card {
  grid-column: 1 / -1;
}

.quest-owner-field span {
  color: #667085;
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.quest-owner-field input,
.quest-owner-field textarea {
  width: 100%;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: #233047;
  font: inherit;
  font-weight: 850;
}

.quest-owner-field textarea {
  resize: vertical;
}

.quest-owner-mini-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: start;
}

.quest-owner-mini-card > button,
.quest-owner-exchange-row > button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 999px;
  background: #687789;
  box-shadow: none;
}

.quest-owner-exchange-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.quest-owner-exchange-row {
  display: grid;
  grid-template-columns: 34px minmax(92px, 1fr) 24px 34px minmax(92px, 1fr) minmax(120px, 1fr) 38px;
  gap: 8px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 8px;
  background: #f8fbfd;
}

.quest-owner-exchange-row > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #f5c542;
  border-radius: 999px;
  background: #fff9df;
}

.quest-owner-exchange-row strong,
.quest-owner-exchange-row small {
  display: block;
}

.quest-owner-exchange-row small {
  color: #667085;
  font-size: .74rem;
  font-weight: 850;
}

@media (max-width: 720px) {
  .quest-owner-exchange-row {
    grid-template-columns: 34px minmax(0, 1fr) 24px 34px minmax(0, 1fr);
  }

  .quest-owner-exchange-row small,
  .quest-owner-exchange-row > button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .bad-guy-policy-group > header,
  .bad-guy-policy-grid article,
  .bad-guy-rule-list article {
    grid-template-columns: 1fr;
  }

  .quest-rules-drawer .bad-guy-policy-grid article,
  .quest-rules-drawer .quest-progression-policy article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .quest-rules-drawer .bad-guy-policy-grid article > div,
  .quest-rules-drawer .quest-progression-policy article > div {
    grid-column: 1 / -1;
  }

  .bad-guy-policy-group > header .policy-icon,
  .bad-guy-policy-grid .policy-icon {
    width: 42px;
    height: 42px;
  }

  .bad-guy-rule-list b {
    justify-self: start;
  }

  .quest-element-map-grid,
  .quest-kingdom-grid {
    grid-template-columns: 1fr;
  }

  .quest-element-card.is-single-kingdom-row {
    grid-template-columns: 1fr;
  }

  .quest-element-card.is-single-kingdom-row > p,
  .quest-element-card.is-single-kingdom-row > .pill-row,
  .quest-element-card.is-single-kingdom-row .quest-element-kingdoms {
    grid-column: auto;
    grid-row: auto;
  }

  .quest-element-card.is-single-kingdom-row .quest-element-kingdom {
    grid-template-columns: 56px minmax(0, 1fr) 34px auto;
    min-height: 66px;
  }

  .quest-element-card.is-single-kingdom-row .quest-element-kingdom img {
    width: 54px;
    height: 54px;
  }

  .quest-column-count {
    width: 100%;
    margin-left: 0;
  }

  .quest-kingdom-card header {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .quest-kingdom-focus-button {
    grid-column: auto;
  }

  .quest-rule-list article,
  .quest-reward-card,
  .quest-reward-admin-card,
  .quest-progression-policy article,
  .quest-banner-reference-body,
  .quest-leasing-list article {
    display: grid;
  }
}

.inventory-hero {
  background:
    radial-gradient(circle at 90% 20%, rgba(99, 184, 130, .22), transparent 28%),
    linear-gradient(135deg, #fff, #f0fbf5);
}

.kid-market-hero {
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 32, 38, .16), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(248, 211, 72, .28), transparent 26%),
    linear-gradient(135deg, #fffdf6, #edf9ff);
}

.billing-settings-panel {
  display: grid;
  gap: 16px;
}

.billing-admin > * + * {
  margin-top: 18px;
}

.billing-admin button.is-square-busy:disabled {
  border-color: #aeb7bf !important;
  background: #aeb7bf !important;
  color: #fff !important;
  opacity: 1 !important;
  box-shadow: none !important;
  cursor: wait !important;
  pointer-events: none;
}

.billing-admin button.is-square-busy i {
  animation: billingSpin .8s linear infinite;
}

@media (max-width: 700px) {
  .billing-admin > * + * {
    margin-top: 14px;
  }
}

.billing-finder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(84, 184, 208, .55);
  background:
    radial-gradient(circle at 12% 20%, rgba(84, 184, 208, .18), transparent 24%),
    linear-gradient(135deg, #f5fcff, #fff);
}

.billing-finder-panel h2,
.billing-finder-panel p {
  margin: 0;
}

.billing-finder-panel h2 {
  color: #233047;
  font-size: 1.35rem;
  font-weight: 950;
}

.billing-finder-panel p {
  color: #667085;
  font-weight: 850;
  line-height: 1.35;
}

.billing-finder-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  background: #2fb0d6;
  color: #fff;
  padding: 10px 14px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .16);
}

.billing-collapse {
  gap: 0;
  overflow: clip;
}

.billing-collapse > summary.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 14px;
  margin: -2px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.billing-collapse > summary.section-heading > div {
  min-width: 0;
}

.billing-collapse > summary.section-heading > .status-flag {
  grid-column: 2;
  justify-self: end;
  margin-left: 0;
  white-space: nowrap;
}

.billing-collapse > summary.section-heading::-webkit-details-marker,
.billing-subpanel > summary::-webkit-details-marker {
  display: none;
}

.billing-collapse > summary.section-heading::after {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #edf9ff;
  color: #0f6d83;
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-size: .82rem;
  font-weight: 900;
  transition: transform .2s ease;
  grid-column: 3;
}

.billing-collapse[open] > summary.section-heading::after {
  transform: rotate(180deg);
}

.billing-collapse:not([open]) > summary.section-heading {
  background: #f8fbfd;
}

.billing-collapse:not([open]) > summary.section-heading p {
  margin-bottom: 0;
}

.billing-collapse[open] > summary.section-heading {
  margin-bottom: 14px;
  border-color: rgba(84, 184, 208, .18);
  background: #fff;
}

.billing-subpanel {
  display: grid;
  gap: 0;
  border: 2px solid #dbe5ee;
  border-radius: 8px;
  background: #fff;
  overflow: clip;
}

.billing-subpanel + .billing-subpanel {
  margin-top: 12px;
}

.billing-subpanel > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.billing-subpanel > summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #233047;
  font-weight: 950;
}

.billing-subpanel > summary small {
  color: #667085;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-subpanel > summary > i {
  display: grid;
  place-items: center;
  color: #0f6d83;
  transition: transform .2s ease;
}

.billing-subpanel[open] > summary > i {
  transform: rotate(180deg);
}

.billing-subpanel[open] > summary {
  border-bottom: 1px solid #dbe5ee;
  background: #f8fbfd;
}

.billing-subpanel-priority {
  border-color: rgba(255, 39, 51, .28);
  background: #fff8f2;
}

.billing-subpanel-priority > summary {
  background: #fff2eb;
}

.billing-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.billing-rule-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: start;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .14);
}

.billing-rule-card h3 {
  margin: 2px 0 6px;
}

.billing-rule-card p {
  margin: 0 0 8px;
  color: #667085;
  font-weight: 800;
}

.billing-rule-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
  font-size: 1.2rem;
}

.out-of-pocket-card {
  border-color: rgba(84, 184, 208, .5);
}

.provider-paid-card {
  border-color: rgba(245, 197, 66, .75);
}

.provider-paid-card .billing-rule-icon {
  background: #fff9df;
  color: #9a6a00;
}

.square-audit-panel {
  border-color: rgba(255, 32, 38, .28);
  background:
    radial-gradient(circle at 12% 18%, rgba(84, 184, 208, .14), transparent 24%),
    linear-gradient(135deg, #fff, #fff8f8);
}

.billing-audit-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.billing-audit-flow article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  padding: 12px;
}

.billing-audit-flow .billing-rule-icon {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.billing-audit-flow h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.billing-audit-flow p {
  margin: 0;
  color: #667085;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
}

.billing-audit-checklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-audit-checklist article {
  display: grid;
  gap: 4px;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.billing-audit-checklist strong {
  font-size: .96rem;
}

.billing-audit-checklist span {
  color: #667085;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
}

.billing-legacy-summary,
.billing-mode-matrix,
.billing-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.billing-legacy-summary article,
.billing-sync-grid article {
  display: grid;
  gap: 4px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.billing-legacy-summary article.wide {
  grid-column: 1 / -1;
}

.billing-legacy-summary strong {
  color: #ff2026;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: .95;
}

.billing-legacy-summary span,
.billing-sync-grid span {
  color: #667085;
  font-size: .86rem;
  font-weight: 850;
  line-height: 1.3;
}

.billing-mode-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.billing-mode-card strong,
.billing-sync-grid strong {
  display: block;
  color: #233047;
  font-size: 1rem;
}

.billing-mode-card p {
  margin: 4px 0 9px;
  color: #667085;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
}

.billing-mode-card .billing-rule-icon {
  width: 48px;
  height: 48px;
}

.billing-mode-digital {
  border-color: rgba(255, 32, 38, .45);
}

.billing-mode-digital .billing-rule-icon {
  background: #ffe5e8;
  color: #ff2026;
}

.billing-mode-atelier {
  border-color: rgba(35, 48, 71, .65);
}

.billing-mode-atelier .billing-rule-icon {
  background: #233047;
  color: #fff;
}

.billing-mode-private,
.billing-mode-provider_paid {
  border-color: rgba(245, 197, 66, .78);
}

.billing-mode-private .billing-rule-icon,
.billing-mode-provider_paid .billing-rule-icon {
  background: #fff7cc;
  color: #9a6a00;
}

.billing-mode-grandfathered {
  border-color: rgba(145, 158, 171, .72);
}

.billing-mode-grandfathered .billing-rule-icon {
  background: #f2f4f7;
  color: #667085;
}

.billing-rule-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.square-pull-workflow {
  display: grid;
  gap: 12px;
}

.billing-warning-line {
  border: 2px solid #f5c542;
  border-radius: 8px;
  background: #fff9df;
  color: #6b4d00;
  font-weight: 900;
  padding: 10px 12px;
}

.billing-card-policy,
.no-card-queue,
.no-card-reminder-template,
.policy-admin-list,
.policy-pin-grid {
  display: grid;
  gap: 12px;
}

.billing-policy-grid,
.no-card-summary,
.policy-pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.billing-policy-toggle,
.billing-policy-number,
.billing-policy-summary,
.no-card-reminder-template,
.no-card-card,
.policy-admin-card,
.policy-pin-grid article {
  border: 2px solid #d9e3ed;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbfd;
}

.billing-policy-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.billing-policy-toggle input {
  margin-top: 5px;
}

.billing-policy-toggle span {
  grid-row: span 2;
  color: var(--muted);
  font-size: 1.5rem;
}

.billing-policy-toggle.is-on {
  border-color: rgba(47, 189, 87, .45);
  background: #f0fff5;
}

.billing-policy-toggle.is-on span {
  color: var(--green);
}

.billing-policy-toggle strong,
.billing-policy-toggle small,
.billing-policy-number span,
.billing-policy-number small,
.billing-policy-summary strong,
.billing-policy-summary p,
.no-card-card strong,
.no-card-card p,
.no-card-card small,
.policy-admin-card strong,
.policy-admin-card small,
.policy-pin-grid strong,
.policy-pin-grid span {
  display: block;
}

.billing-policy-toggle small,
.billing-policy-number small,
.billing-policy-summary p,
.no-card-card p,
.no-card-card small,
.policy-admin-card small,
.policy-pin-grid span {
  color: var(--muted);
  font-weight: 850;
}

.billing-policy-number input {
  width: 100%;
  margin: 8px 0;
}

.no-card-reminder-template {
  background: #fffaf0;
}

.no-card-reminder-template label,
.no-card-reminder-template label span {
  display: grid;
  gap: 8px;
}

.no-card-reminder-template label span {
  color: var(--red);
  font-weight: 950;
  text-transform: uppercase;
}

.no-card-reminder-template textarea {
  min-height: 120px;
  resize: vertical;
}

.template-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-token-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #6b4d00;
  background: #fff1c4;
  font-size: .78rem;
  font-weight: 950;
}

.no-card-reminder-template button {
  justify-self: start;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.template-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.template-action-row a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: #26364f;
  font-weight: 950;
  text-decoration: none;
}

.square-connection-card .template-action-row button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
}

.no-card-summary article {
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.no-card-summary strong {
  display: block;
  color: var(--ink);
  font-size: 2rem;
}

.no-card-card-list {
  display: grid;
  gap: 12px;
}

.no-card-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.no-card-filter-row button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 36px;
  border: 2px solid #d9e3ed;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
}

.no-card-filter-row button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.no-card-filter-row b {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: #075985;
  font-size: .78rem;
}

.no-card-filter-row button.is-active b {
  background: #fff;
}

.no-card-card header,
.policy-admin-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.no-card-card header b {
  border-radius: 999px;
  padding: 6px 10px;
  color: #8a5600;
  background: #fff1c4;
  font-size: .75rem;
  text-transform: uppercase;
}

.no-card-card.action-approved_no_card header b {
  color: #0f7a33;
  background: #dcfce7;
}

.no-card-card.action-card_reminder_sent header b,
.no-card-card.action-card_replacement_grace header b,
.no-card-card.action-called header b {
  color: #075985;
  background: #dff7ff;
}

.no-card-card.action-card_replacement_grace {
  border-color: rgba(84, 184, 208, .45);
  background: #f3fcff;
}

.no-card-card.action-not_continuing header b {
  color: #fff;
  background: #ef3f5f;
}

.no-card-card footer,
.policy-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.no-card-card footer button,
.no-card-parent-link,
.policy-admin-actions button,
.policy-admin-card header button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 950;
  text-decoration: none;
}

.no-card-parent-link {
  background: #26364f;
}

.policy-admin-card header button {
  width: 38px;
  padding: 0;
  background: var(--red);
}

.policy-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.policy-admin-grid .wide {
  grid-column: 1 / -1;
}

.policy-admin-grid label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 950;
}

.policy-admin-grid input,
.policy-admin-grid textarea {
  width: 100%;
}

.policy-admin-card.is-inactive {
  opacity: .65;
}

.square-connection-foundation {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.square-connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.square-connection-card {
  display: grid;
  gap: 12px;
  border: 2px solid #d4d9df;
  border-radius: 10px;
  background: #f8fbfd;
  padding: 12px;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .1);
}

.square-connection-card.is-planned {
  border-color: rgba(245, 197, 66, .9);
  background: #fffdf1;
}

.square-connection-card.is-live {
  border-color: rgba(36, 190, 91, .45);
  background: #f1fff5;
}

.square-connection-card.wide {
  grid-column: 1 / -1;
}

.square-connection-card header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.square-connection-card strong,
.square-connection-card small {
  display: block;
}

.square-connection-card small {
  color: #667085;
  font-size: .82rem;
  font-weight: 850;
}

.square-settings-grid,
.square-target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.square-settings-grid label,
.square-toggle-setting {
  display: grid;
  gap: 6px;
  color: #667085;
  font-weight: 950;
}

.square-toggle-setting {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.square-settings-grid input,
.square-settings-grid select {
  width: 100%;
}

.square-manifest-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.square-manifest-summary article {
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.square-manifest-summary strong {
  color: var(--red);
  font-size: 1.7rem;
  line-height: 1;
}

.square-manifest-summary span {
  display: block;
  color: #667085;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-pull-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.square-pull-summary article {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.square-pull-summary strong {
  display: block;
  color: #ff2026;
  font-size: 2rem;
  line-height: .95;
}

.square-pull-summary span {
  color: #667085;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.square-review-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.square-review-lanes article,
.square-recommendation {
  border: 2px solid #e1e7ef;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.square-review-lanes article {
  display: grid;
  gap: 7px;
}

.square-review-lanes strong {
  color: var(--red);
  font-size: 1.7rem;
  line-height: 1;
}

.square-review-lanes span,
.square-recommendation span {
  color: #233047;
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-review-lanes button {
  justify-self: start;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  font-weight: 950;
}

.square-review-lanes button:disabled {
  opacity: .55;
}

.square-review-lanes .is-auto,
.square-recommendation.is-auto {
  border-color: rgba(36, 190, 91, .44);
  background: #f1fff5;
}

.square-review-lanes .is-review,
.square-recommendation.is-review {
  border-color: rgba(245, 197, 66, .9);
  background: #fffdf1;
}

.square-recommendation {
  display: grid;
  gap: 3px;
}

.square-recommendation small {
  color: #667085;
  font-size: .78rem;
  font-weight: 850;
}

.square-pull-group {
  border: 2px solid #d4d9df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .12);
  overflow: hidden;
}

.square-pull-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto) 18px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}

.square-pull-group summary::-webkit-details-marker {
  display: none;
}

.square-pull-group summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #233047;
  font-weight: 950;
  text-transform: uppercase;
}

.square-pull-group summary small {
  color: #667085;
  font-weight: 850;
  text-align: right;
}

.square-pull-group summary > i {
  color: #667085;
  transition: transform .18s ease;
}

.square-pull-group[open] summary > i {
  transform: rotate(180deg);
}

.square-pull-card-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e4e7ec;
  padding: 12px;
}

.square-pull-card {
  display: grid;
  gap: 10px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
}

.square-pull-card.action-needs_square_pull {
  border-color: rgba(245, 197, 66, .9);
  background: #fffdf1;
}

.square-pull-card.action-ready_invoice_update {
  border-color: rgba(84, 184, 208, .75);
  background: #f0fbff;
}

.square-pull-card.action-keep_grandfathered {
  border-color: rgba(167, 123, 216, .72);
  background: #fbf7ff;
}

.square-pull-card.action-do_not_change {
  border-color: rgba(239, 63, 95, .55);
  background: #fff7f8;
}

.square-pull-card header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.square-pull-card header strong,
.square-pull-card header p,
.square-pull-card header small {
  display: block;
}

.square-pull-card header p {
  margin: 2px 0 0;
  color: #667085;
  font-size: .84rem;
  font-weight: 850;
}

.square-pull-card header small {
  color: #8a94a3;
  font-size: .76rem;
  font-weight: 850;
}

.square-pull-card header b {
  border-radius: 999px;
  background: #fff;
  color: #09546a;
  padding: 7px 9px;
  font-size: .7rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.square-pull-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.square-pull-card dt,
.square-pull-card dd {
  margin: 0;
}

.square-pull-card dt {
  color: #667085;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-pull-card dd {
  overflow: hidden;
  color: #233047;
  font-size: .82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.square-snapshot-mini {
  display: grid;
  gap: 6px;
  border: 1px solid #d7eef7;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.square-snapshot-mini.is-missing {
  border-color: #ffd7df;
  background: #fff7f7;
}

.square-snapshot-mini.is-live {
  border-color: #77d89f;
  background: #f3fff7;
}

.square-snapshot-mini.is-manual {
  border-color: #ffd15c;
  background: #fff9df;
}

.square-snapshot-mini.is-placeholder {
  border-color: #ffc7d0;
  background: #fff8f8;
}

.square-snapshot-mini strong {
  color: #233047;
  font-weight: 950;
  text-transform: uppercase;
}

.square-snapshot-mini span {
  color: #667085;
  font-size: .82rem;
  font-weight: 850;
}

.square-snapshot-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.square-snapshot-proof b,
.square-snapshot-proof em {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
}

.square-snapshot-proof b {
  background: #e7f8ff;
  color: #075c73;
}

.square-snapshot-mini.is-live .square-snapshot-proof b {
  background: #dcffe8;
  color: #176636;
}

.square-snapshot-mini.is-manual .square-snapshot-proof b {
  background: #fff0b8;
  color: #7a5200;
}

.square-snapshot-mini.is-placeholder .square-snapshot-proof b {
  background: #ffe5ea;
  color: #8f1f28;
}

.square-snapshot-proof em {
  background: #fff;
  color: #667085;
}

.square-history-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.square-history-counts span {
  border-radius: 999px;
  background: #edf9ff;
  color: #09546a;
  padding: 5px 8px;
  font-size: .72rem;
  font-weight: 950;
}

.square-pull-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.square-pull-card footer button {
  border-radius: 8px;
}

.square-money-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.square-money-ops-grid > section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.square-money-ops-grid h3 {
  margin: 0;
  color: #233047;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-action-draft-list,
.square-webhook-event-list {
  display: grid;
  gap: 10px;
}

.square-invoice-plan-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.square-live-gate-panel > .empty-column {
  margin-bottom: 14px;
}

.square-invoice-plan-summary article {
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
}

.square-invoice-plan-summary strong,
.square-invoice-plan-summary span {
  display: block;
}

.square-invoice-plan-summary strong {
  color: #233047;
  font-size: 1.45rem;
  font-weight: 950;
}

.square-invoice-plan-summary span {
  color: #667085;
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-owner-gate-panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(84, 184, 208, .45);
  background: #f2fbff;
}

.billing-owner-gate-panel > span,
.billing-owner-locked-card > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: 1.25rem;
}

.billing-owner-gate-panel.is-checking > span i {
  animation: billingSpin 1s linear infinite;
}

.billing-owner-gate-panel.is-locked {
  border-color: rgba(255, 39, 51, .35);
  background: #fff4f3;
}

.billing-owner-gate-panel.is-locked > span,
.billing-owner-locked-card > span {
  background: #fff;
  color: #8f1f28;
}

.billing-owner-gate-panel.is-ready {
  border-color: rgba(44, 190, 92, .35);
  background: #f2fff6;
}

.billing-owner-gate-panel h2,
.billing-owner-gate-panel p {
  margin: 0;
}

.billing-owner-gate-panel button,
.billing-owner-locked-card button {
  justify-self: end;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #ff2733;
  color: #fff;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(35, 48, 71, .16);
}

.billing-owner-locked-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 2px dashed rgba(255, 39, 51, .38);
  border-radius: 10px;
  padding: 12px;
  background: #fff8f8;
}

.billing-owner-locked-card strong,
.billing-owner-locked-card p {
  display: block;
  margin: 0;
}

.billing-owner-locked-card p {
  color: #667085;
  font-weight: 850;
}

@keyframes billingSpin {
  to {
    transform: rotate(360deg);
  }
}

.square-invoice-plan-summary .lane-ready {
  border-color: rgba(44, 190, 92, .5);
  background: #f0fff5;
}

.square-invoice-plan-summary .lane-deferred {
  border-color: rgba(84, 184, 208, .5);
  background: #f0fbff;
}

.square-invoice-plan-summary .lane-missing,
.square-invoice-plan-summary .lane-watch {
  border-color: rgba(245, 197, 66, .72);
  background: #fffdf1;
}

.square-live-gate {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 14px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
}

.square-live-gate > summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 20px;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.square-live-gate > summary::-webkit-details-marker {
  display: none;
}

.square-live-gate > summary > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #0f6d83;
}

.square-live-gate > summary strong,
.square-live-gate > summary small,
.square-live-gate > summary b {
  display: block;
}

.square-live-gate-chevron {
  color: #1597ba;
  transition: transform .18s ease;
}

.square-live-gate[open] .square-live-gate-chevron {
  transform: rotate(180deg);
}

.square-live-gate.is-ready {
  border-color: rgba(44, 190, 92, .55);
  background: #f2fff6;
}

.square-live-gate.is-locked {
  border-color: rgba(245, 197, 66, .72);
  background: #fffdf1;
}

.square-live-gate header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.square-live-gate header > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #0f6d83;
}

.square-live-gate header strong,
.square-live-gate header small,
.square-live-gate header b {
  display: block;
}

.square-live-gate header strong {
  color: #233047;
  font-size: 1.04rem;
  font-weight: 950;
}

.square-live-gate header small {
  color: #667085;
  font-size: .76rem;
  font-weight: 850;
}

.square-live-gate header b {
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  padding: 7px 10px;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-live-gate-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.square-live-gate-checks article {
  display: grid;
  gap: 3px;
  border: 1px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.square-live-gate-checks article.is-ready {
  border-color: rgba(44, 190, 92, .38);
}

.square-live-gate-checks article.is-missing {
  border-color: rgba(245, 197, 66, .72);
}

.square-live-gate-checks i {
  color: #0f6d83;
}

.square-live-gate-checks .is-missing i {
  color: #b57a00;
}

.square-live-gate-checks strong,
.square-live-gate-checks span {
  display: block;
}

.square-live-gate-checks strong {
  color: #233047;
  font-size: .76rem;
  font-weight: 950;
}

.square-live-gate-checks span {
  color: #667085;
  font-size: .68rem;
  font-weight: 850;
}

.square-live-gate dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin: 0;
}

.square-live-gate dt,
.square-live-gate dd {
  margin: 0;
}

.square-live-gate dt {
  color: #667085;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-live-gate dd {
  min-width: 0;
  color: #233047;
  font-size: .78rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.square-env-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  border: 1px solid rgba(84, 184, 208, .28);
  border-radius: 8px;
  background: #f1fbff;
  padding: 10px 12px;
  color: #2f5e6e;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.35;
}

.square-env-note i {
  margin-top: 2px;
  color: #0f6d83;
}

.square-gate-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  border: 1px solid rgba(245, 197, 66, .78);
  border-radius: 8px;
  background: #fff7d8;
  padding: 10px 12px;
  color: #7a5600;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.35;
}

.square-gate-warning.is-safe {
  border-color: rgba(84, 184, 208, .35);
  background: #f1fbff;
  color: #0f6d83;
}

.square-gate-warning.is-ready {
  border-color: rgba(44, 190, 92, .38);
  background: #f2fff6;
  color: #147a38;
}

.square-gate-warning i {
  margin-top: 2px;
}

.square-production-checklist {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 109, 131, .18);
}

.square-production-checklist > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.square-production-checklist strong,
.square-production-checklist span {
  line-height: 1.2;
}

.square-production-checklist > div:first-child strong {
  color: #1f2a44;
  font-size: 1.05rem;
  font-weight: 950;
}

.square-production-checklist > div:first-child span {
  color: #687389;
  font-size: .82rem;
  font-weight: 850;
}

.square-production-checklist > div:first-child em {
  margin-left: auto;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  padding: 7px 10px;
  font-size: .7rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.square-smoke-path {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  border: 1px solid rgba(84, 184, 208, .35);
  border-radius: 10px;
  background: #f7fdff;
  padding: 10px 12px;
}

.square-smoke-path strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f6d83;
  font-size: .82rem;
  font-weight: 950;
}

.square-smoke-path ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 12px;
  margin: 0;
  padding-left: 18px;
}

.square-smoke-path li {
  color: #415066;
  font-size: .75rem;
  font-weight: 850;
  line-height: 1.28;
}

.square-zero-diagnostic {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  border: 1px solid rgba(255, 39, 51, .24);
  border-radius: 10px;
  background: #fff7f1;
  padding: 10px 12px;
}

.square-zero-diagnostic header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.square-zero-diagnostic header > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #ff2733;
}

.square-zero-diagnostic header strong,
.square-zero-diagnostic header small,
.square-zero-diagnostic p {
  display: block;
  margin: 0;
}

.square-zero-diagnostic header strong {
  color: #233047;
  font-size: .88rem;
  font-weight: 950;
}

.square-zero-diagnostic header small,
.square-zero-diagnostic p {
  color: #687389;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.28;
}

.square-zero-diagnostic header b {
  border-radius: 999px;
  background: #ffe9a8;
  color: #7f5600;
  padding: 7px 10px;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-zero-diagnostic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.square-zero-diagnostic-chips span {
  border-radius: 999px;
  background: #fff;
  color: #687389;
  padding: 7px 10px;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-zero-diagnostic-chips span.is-ready {
  background: #e8f8ff;
  color: #0f6d83;
}

.square-smoke-next-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 10px;
  border: 2px solid rgba(245, 197, 66, .72);
  border-radius: 8px;
  background: #fff8d8;
  padding: 10px;
}

.square-smoke-next-step.is-ready {
  border-color: rgba(44, 190, 92, .42);
  background: #f0fff5;
}

.square-smoke-next-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #b57a00;
}

.square-smoke-next-step.is-ready > span {
  color: #188c3d;
}

.square-smoke-next-step strong,
.square-smoke-next-step p {
  display: block;
  margin: 0;
}

.square-smoke-next-step strong {
  color: #233047;
  font-size: .88rem;
  font-weight: 950;
}

.square-smoke-next-step p {
  color: #667085;
  font-size: .76rem;
  font-weight: 850;
}

.square-owner-next-action {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0 0 10px;
  border: 2px solid rgba(53, 183, 212, .55);
  border-radius: 10px;
  background: #f0fbff;
  padding: 12px;
}

.square-owner-next-action.is-ready {
  border-color: rgba(44, 190, 92, .52);
  background: #f0fff5;
}

.square-owner-next-action > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #0f6d83;
  font-size: 1.05rem;
}

.square-owner-next-action.is-ready > span {
  color: #147a38;
}

.square-owner-next-action strong {
  display: block;
  margin: 0 0 6px;
  color: #233047;
  font-size: .92rem;
  font-weight: 950;
}

.square-owner-next-action ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
}

.square-owner-next-action li {
  color: #667085;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.3;
}

.square-controlled-chain {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  border: 2px dashed rgba(245, 197, 66, .78);
  border-radius: 10px;
  background: #fff9e8;
  padding: 12px;
}

.square-controlled-chain.is-ready {
  border-style: solid;
  border-color: rgba(44, 190, 92, .52);
  background: #f0fff5;
}

.square-controlled-chain > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #b37b00;
  font-size: 1.05rem;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .08);
}

.square-controlled-chain.is-ready > span {
  color: #147a38;
}

.square-controlled-chain strong,
.square-controlled-chain p {
  display: block;
  margin: 0;
}

.square-controlled-chain strong {
  color: #233047;
  font-size: .92rem;
  font-weight: 950;
}

.square-controlled-chain p {
  color: #667085;
  font-size: .8rem;
  font-weight: 850;
  line-height: 1.32;
}

.square-controlled-chain b {
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #7a5600;
  padding: 7px 10px;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-controlled-chain.is-ready b {
  color: #147a38;
}

.square-chain-diagnostic {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  border: 2px solid #ffd15c;
  border-radius: 10px;
  background: #fff9df;
  padding: 12px;
}

.square-chain-diagnostic.is-ready {
  border-color: #74d89f;
  background: #f2fff7;
}

.square-chain-diagnostic header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.square-chain-diagnostic header > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #b07a00;
}

.square-chain-diagnostic.is-ready header > span {
  color: #17703b;
}

.square-chain-diagnostic strong,
.square-chain-diagnostic small {
  display: block;
}

.square-chain-diagnostic strong {
  color: #233047;
  font-weight: 950;
}

.square-chain-diagnostic small {
  color: #667085;
  font-weight: 850;
}

.square-chain-diagnostic header b {
  border-radius: 999px;
  background: #fff;
  color: #7a5200;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 950;
}

.square-chain-diagnostic.is-ready header b {
  color: #17703b;
}

.square-chain-server-note {
  margin: 0;
  border: 1px dashed rgba(53, 183, 212, .55);
  border-radius: 8px;
  background: #f3fbff;
  color: #0f6d83;
  padding: 8px 10px;
  font-size: .78rem;
  font-weight: 900;
}

.square-chain-next {
  margin: 0;
  border: 1px solid rgba(255, 39, 51, .22);
  border-radius: 8px;
  background: #fff4f5;
  color: #7f1d28;
  padding: 8px 10px;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.35;
}

.square-chain-next strong {
  display: inline;
  color: #233047;
}

.square-chain-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.square-chain-step-list span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  border: 1px solid #ffe0a1;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.square-chain-step-list span.is-ready {
  border-color: #b8efc9;
}

.square-chain-step-list span.server-ready {
  border-color: #b7eaf5;
}

.square-chain-step-list i {
  grid-row: span 2;
  color: #b07a00;
}

.square-chain-step-list .is-ready i,
.square-chain-step-list .server-ready i {
  color: #1d9b51;
}

.square-chain-step-list small {
  font-size: .72rem;
}

.square-visibility-evidence {
  display: grid;
  gap: 10px;
  margin: 0 0 10px;
  border: 2px solid #b8efc9;
  border-radius: 10px;
  background: #f2fff7;
  padding: 12px;
}

.square-visibility-evidence.has-warnings {
  border-color: #ffd15c;
  background: #fff9df;
}

.square-visibility-evidence header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.square-visibility-evidence header > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #fff;
  color: #17703b;
}

.square-visibility-evidence.has-warnings header > span {
  color: #9f6c00;
}

.square-visibility-evidence strong,
.square-visibility-evidence small,
.square-visibility-evidence b {
  display: block;
}

.square-visibility-evidence strong {
  color: #233047;
  font-weight: 950;
}

.square-visibility-evidence small {
  color: #667085;
  font-weight: 850;
}

.square-visibility-list {
  display: grid;
  gap: 6px;
}

.square-visibility-list b {
  color: #667085;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-visibility-list span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(183, 234, 245, .9);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.square-visibility-evidence.has-warnings .square-visibility-list span {
  border-color: #ffe0a1;
}

.square-visibility-list em {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-style: normal;
}

.square-visibility-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #b7eaf5;
  border-radius: 999px;
  background: #eefbff;
  color: #0f6d83;
  padding: 6px 9px;
  font-size: .72rem;
  font-weight: 950;
  text-decoration: none;
}

.square-visibility-evidence.has-warnings .square-visibility-list a {
  border-color: #ffd15c;
  background: #fff4cc;
  color: #8a5d00;
}

.zero-credit-invoice-queue {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff8f2;
  padding: 14px;
  scroll-margin-top: 90px;
}

.zero-credit-invoice-queue > div:first-child {
  display: grid;
  gap: 3px;
}

.zero-credit-invoice-queue h3,
.zero-credit-invoice-queue p {
  margin: 0;
}

.zero-credit-invoice-queue h3 {
  color: #233047;
  font-size: 1.15rem;
  font-weight: 950;
}

.zero-credit-invoice-queue p {
  color: #667085;
  font-weight: 800;
  line-height: 1.35;
}

.zero-credit-invoice-list {
  display: grid;
  gap: 10px;
}

.zero-credit-invoice-card {
  display: grid;
  gap: 10px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
}

.zero-credit-invoice-card.lane-ready {
  border-color: rgba(44, 190, 92, .45);
  background: #f2fff6;
}

.zero-credit-invoice-card.lane-missing,
.zero-credit-invoice-card.lane-watch,
.zero-credit-invoice-card.lane-blocked {
  border-color: rgba(245, 197, 66, .72);
  background: #fffdf1;
}

.zero-credit-invoice-card header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.zero-credit-invoice-card header > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.zero-credit-invoice-card header > .zero-credit-student-avatar {
  overflow: hidden;
  border: 2px solid #c9dce5;
  background: #eef8fb;
}

.zero-credit-student-image,
.zero-credit-teacher-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zero-credit-teacher-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #d9e2ea;
  border-left: 4px solid #35acd0;
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

.zero-credit-teacher-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #d6e4ea;
  border-radius: 50%;
  background: #eef8fb;
  color: #0f6d83;
  font-size: 18px;
}

.zero-credit-teacher-card div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.zero-credit-teacher-card small {
  color: #e92b32;
  font-size: .65rem;
  font-weight: 950;
  text-transform: uppercase;
}

.zero-credit-teacher-card strong {
  color: #233047;
  font-size: .9rem;
  font-weight: 950;
}

.zero-credit-teacher-card div > span {
  color: #667085;
  font-size: .72rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.zero-credit-invoice-card header strong,
.zero-credit-invoice-card header small,
.zero-credit-invoice-card header b {
  display: block;
}

.zero-credit-student-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
}

.zero-credit-student-heading > div {
  min-width: 0;
}

.zero-credit-student-heading .lifecycle-roster-button {
  flex: 0 0 31px;
}

.zero-credit-student-heading .lifecycle-parent-dashboard-button {
  display: inline-flex;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #fff;
  background: #28b963;
}

.zero-credit-invoice-card header strong {
  color: #233047;
  font-size: 1rem;
  font-weight: 950;
}

.zero-credit-invoice-card header small {
  color: #667085;
  font-size: .72rem;
  font-weight: 850;
}

.zero-credit-invoice-card header b {
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  padding: 7px 10px;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.zero-credit-invoice-card > p {
  margin: 0;
  color: #4b5565;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.zero-credit-invoice-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}

.zero-credit-invoice-card dt,
.zero-credit-invoice-card dd {
  margin: 0;
}

.zero-credit-invoice-card dt {
  color: #667085;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.zero-credit-invoice-card dd {
  min-width: 0;
  color: #233047;
  font-size: .78rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.zero-credit-invoice-card dd.billing-amount-review {
  font-size: 1rem;
}

.zero-credit-invoice-card dd.billing-amount-review.is-confirmed {
  color: #16845b;
}

.zero-credit-invoice-card dd.billing-amount-review.is-missing {
  color: var(--red);
}

.billing-readiness-panel {
  display: grid;
  gap: 10px;
  border: 2px solid rgba(84, 184, 208, .28);
  border-radius: 8px;
  background: #f7fcff;
  padding: 10px;
}

.billing-readiness-panel header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.billing-readiness-panel header > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.billing-readiness-panel header strong,
.billing-readiness-panel header small {
  display: block;
}

.billing-readiness-panel header strong {
  color: #233047;
  font-size: .9rem;
  font-weight: 950;
}

.billing-readiness-panel header small {
  color: #667085;
  font-size: .72rem;
  font-weight: 850;
}

.billing-readiness-panel header b {
  border-radius: 999px;
  padding: 6px 9px;
  color: #fff;
  font-size: .62rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-readiness-panel header b.is-ready {
  background: #2cbe5c;
}

.billing-readiness-panel header b.is-missing {
  background: #f5a400;
}

.billing-ready-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
}

.billing-ready-chip {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 7px;
  row-gap: 2px;
  min-width: 0;
  border: 1px solid #dbe4ed;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.billing-ready-chip i {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: .72rem;
}

.billing-ready-chip.is-ready i {
  background: #e8fff0;
  color: #147a38;
}

.billing-ready-chip.is-missing i {
  background: #fff4cf;
  color: #9a6500;
}

.billing-ready-chip strong,
.billing-ready-chip small {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.billing-ready-chip strong {
  color: #233047;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-ready-chip small {
  overflow: hidden;
  color: #667085;
  font-size: .68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .billing-ready-chip-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 560px) {
  .billing-ready-chip-grid {
    grid-template-columns: 1fr;
  }
}

.billing-readiness-panel > p {
  margin: 0;
  color: #4b5565;
  font-size: .78rem;
  font-weight: 850;
  line-height: 1.35;
}

.zero-credit-invoice-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zero-credit-invoice-card footer button {
  border-radius: 8px;
}

.zero-credit-invoice-card .billing-flow-footer {
  display: grid;
  gap: 10px;
}

.billing-flow-track {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding: 2px 0 5px;
}

.billing-flow-track .billing-flow-step,
.billing-flow-track > button,
.billing-flow-track .square-gate-action-pill {
  display: inline-flex;
  flex: 0 0 176px;
  width: 176px;
  min-width: 176px;
  height: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 7px;
  line-height: 1.05;
  text-align: center;
}

.billing-flow-track .billing-flow-step.is-complete {
  border-color: #20a75a;
  background: #e8f8ee;
  color: #14733f;
  box-shadow: inset 0 0 0 1px rgba(32, 167, 90, .14);
  opacity: 1;
}

.billing-flow-track .billing-flow-step.is-complete i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #20a75a;
  color: #fff;
}

.billing-flow-track .billing-flow-step.is-blocked {
  border-color: #cbd4dc;
  background: #eef2f5;
  color: #7b8793;
  opacity: 1;
}

.billing-flow-track .billing-flow-step.is-archive {
  border-color: #9eabb7;
  background: #fff;
  color: #344256;
}

.billing-flow-connector {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #1596b6;
}

.billing-flow-connector.is-blocked {
  color: #d14141;
  font-size: 18px;
}

.billing-flow-gate-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #825d07;
  font-size: 12px;
  font-weight: 800;
}

.billing-flow-exceptions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zero-credit-corner-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.billing-card-file-status {
  display: grid;
  grid-template-columns: 38px auto;
  align-items: center;
  gap: 8px;
  min-width: 156px;
  padding: 7px 10px;
  border: 1px solid #ccd7df;
  background: #fff;
  color: #536174;
}

.billing-card-file-status > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  font-size: 17px;
}

.billing-card-file-status strong { font-size: 12px; line-height: 1.1; }
.billing-card-file-status.is-has-card { border-color: #5bc887; background: #eaf9ef; color: #14733f; }
.billing-card-file-status.is-has-card > i { background: #20a75a; color: #fff; }
.billing-card-file-status.is-no-card { border-color: #efb22d; background: #fff8df; color: #805900; }
.billing-card-file-status.is-no-card > i { background: #f5c956; color: #604200; }

@media (max-width: 680px) {
  .zero-credit-corner-status { grid-column: 1 / -1; justify-items: stretch; }
  .billing-card-file-status { width: 100%; }
}

@media (max-width: 640px) {
  .billing-flow-track .billing-flow-step,
  .billing-flow-track > button,
  .billing-flow-track .square-gate-action-pill {
    flex-basis: 154px;
    width: 154px;
    min-width: 154px;
  }
}

.billing-ok-line {
  color: #147a38 !important;
}

.billing-zero-empty {
  display: grid;
  gap: 5px;
  border: 2px dashed rgba(255, 39, 51, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  padding: 14px;
}

.billing-zero-empty strong {
  color: #233047;
  font-size: 1rem;
  font-weight: 950;
}

.billing-zero-empty span {
  color: #667085;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.35;
}

.billing-zero-empty .mini-action {
  justify-self: start;
  margin-top: 4px;
}

.billing-latest-trigger-note {
  display: grid;
  gap: 3px;
  margin-top: 4px;
  border: 2px solid rgba(53, 183, 212, .3);
  border-radius: 8px;
  background: #f1fbff;
  padding: 10px 12px;
}

.billing-latest-trigger-note strong {
  color: #0f6d83;
  font-size: .92rem;
}

.billing-latest-trigger-note span {
  color: #344054;
}

.billing-source-proof {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  border: 1px solid rgba(53, 183, 212, .28);
  border-radius: 8px;
  background: #f7fdff;
  padding: 10px;
}

.billing-source-proof > strong {
  color: #0f6d83;
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-source-proof > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 7px;
}

.billing-source-proof article {
  display: grid;
  gap: 2px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #fff;
  padding: 8px 9px;
}

.billing-source-proof article.is-ready {
  border-color: rgba(28, 176, 83, .34);
  background: #f3fff5;
}

.billing-source-proof article span,
.billing-source-proof article small {
  display: block;
}

.billing-source-proof article span {
  color: #233047;
  font-size: .78rem;
  font-weight: 950;
}

.billing-source-proof article small {
  color: #667085;
  font-size: .7rem;
  font-weight: 850;
}

.square-lifecycle-board {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f5fbff;
  padding: 14px;
}

.square-lifecycle-board > div:first-child {
  display: grid;
  gap: 3px;
}

.square-lifecycle-board h3,
.square-lifecycle-board p {
  margin: 0;
}

.square-lifecycle-board h3 {
  color: #233047;
  font-size: 1.15rem;
  font-weight: 950;
}

.square-lifecycle-board p {
  color: #667085;
  font-weight: 800;
  line-height: 1.35;
}

.square-lifecycle-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

@media (min-width: 801px) {
  .square-lifecycle-lanes:not(:has(> .square-lifecycle-active-lanes)) {
    grid-template-columns: repeat(9, minmax(260px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    overscroll-behavior-inline: contain;
  }

  .square-lifecycle-lanes:not(:has(> .square-lifecycle-active-lanes)) > .square-lifecycle-lane {
    min-width: 260px;
  }
}

.square-lifecycle-active-lanes {
  display: grid;
  grid-template-columns: repeat(9, minmax(220px, 1fr));
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  overscroll-behavior-inline: contain;
}

.square-lifecycle-lane {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 160px;
  border: 1px solid #d4d9df;
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  padding: 8px;
}

.square-lifecycle-lane > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.square-lifecycle-lane > header strong {
  color: #233047;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-lifecycle-lane > header span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: .7rem;
  font-weight: 950;
}

.square-lifecycle-card {
  display: grid;
  gap: 8px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 2px 0 rgba(35, 48, 71, .08);
  cursor: pointer;
}

.square-lifecycle-card:focus-visible {
  outline: 4px solid rgba(84, 184, 208, .32);
  outline-offset: 3px;
}

.square-lifecycle-card.stage-triggered {
  border-color: rgba(245, 197, 66, .65);
}

.square-lifecycle-card.stage-draft,
.square-lifecycle-card.stage-sent {
  border-color: rgba(84, 184, 208, .58);
}

.square-lifecycle-card.stage-paid,
.square-lifecycle-card.stage-credits_ready,
.square-lifecycle-card.stage-credits_applied {
  border-color: rgba(44, 190, 92, .5);
}

.square-lifecycle-card.stage-canceled {
  border-color: rgba(120, 132, 148, .72);
  background: #f7f9fb;
}

.square-lifecycle-card.stage-blocked {
  border-color: rgba(255, 39, 51, .72);
  background: #fff4f4;
}

.square-lifecycle-card .lifecycle-archive-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: fit-content;
  min-height: 28px;
  margin: 6px 0 0;
  padding: 4px 8px;
  border-radius: 6px;
  background: #687584;
  font-size: .58rem;
  line-height: 1;
  white-space: nowrap;
}

.square-lifecycle-card header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
}

.lifecycle-collapse-button {
  align-items: center;
  align-self: start;
  background: #edf9ff;
  border-radius: 7px;
  color: #0f6d83;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  width: 30px;
}

.lifecycle-compact-meta {
  display: none !important;
}

.square-lifecycle-card.is-collapsed {
  gap: 0;
  padding: 8px;
}

.square-lifecycle-card.is-collapsed header b,
.square-lifecycle-card.is-collapsed > dl,
.square-lifecycle-card.is-collapsed > p,
.square-lifecycle-card.is-collapsed > footer,
.square-lifecycle-card.is-collapsed > .lifecycle-card-actions {
  display: none;
}

.square-lifecycle-card.is-collapsed .lifecycle-card-date {
  display: none;
}

.square-lifecycle-card.is-collapsed .lifecycle-compact-meta {
  display: block !important;
}

.square-lifecycle-archive {
  border: 2px solid #dbe5ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, .75);
  overflow: clip;
}

.square-lifecycle-archive > summary {
  align-items: center;
  color: #233047;
  cursor: pointer;
  display: grid;
  font-weight: 950;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  list-style: none;
  padding: 12px;
}

.square-lifecycle-archive > summary::-webkit-details-marker {
  display: none;
}

.square-lifecycle-archive > summary span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.square-lifecycle-archive > summary b {
  background: #e8f8ff;
  border-radius: 999px;
  color: #0f6d83;
  padding: 4px 8px;
}

.square-lifecycle-archive[open] > summary > i {
  transform: rotate(180deg);
}

.square-lifecycle-archive-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding: 0 12px 12px;
}

.square-lifecycle-card header > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.square-lifecycle-card header strong,
.square-lifecycle-card header small,
.square-lifecycle-card header b {
  display: block;
}

.square-lifecycle-card header strong {
  color: #233047;
  font-size: .82rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.square-lifecycle-card header small,
.square-lifecycle-card header b {
  color: #667085;
  font-size: .64rem;
  font-weight: 850;
}

.square-lifecycle-card header b {
  grid-column: 1 / -1;
  width: fit-content;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  padding: 5px 8px;
  text-transform: uppercase;
}

.square-lifecycle-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 5px;
  margin: 0;
}

.square-lifecycle-card dt,
.square-lifecycle-card dd {
  margin: 0;
}

@media (min-width: 1101px) {
  .aq-admin.billing-admin {
    max-width: 1880px;
  }

  .square-lifecycle-active-lanes {
    grid-template-columns: repeat(9, minmax(260px, 1fr));
    overflow-x: auto;
  }

  .square-lifecycle-lane {
    min-width: 260px;
  }
}

@media (min-width: 1500px) {
  .square-lifecycle-active-lanes {
    grid-template-columns: repeat(9, minmax(280px, 1fr));
  }
}

.square-lifecycle-card dt {
  color: #667085;
  font-size: .6rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-lifecycle-card dd {
  min-width: 0;
  color: #233047;
  font-size: .7rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.square-lifecycle-card > p {
  margin: 0;
  color: #4b5565;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.32;
}

.square-lifecycle-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lifecycle-open-button {
  justify-self: start;
  border-radius: 8px;
  background: #35b7d4;
  color: #fff;
  font-size: .7rem;
}

.lifecycle-card-actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.lifecycle-roster-button {
  align-items: center;
  background: #233047;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.lifecycle-restore-button {
  display: inline-flex;
  width: 31px;
  height: 31px;
  min-height: 31px;
  flex: 0 0 31px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #35b7d4;
  color: #fff;
  padding: 0;
  font-size: .76rem;
}

.square-lifecycle-card footer button {
  border-radius: 8px;
  font-size: .68rem;
}

.billing-lifecycle-modal {
  max-width: min(980px, calc(100vw - 28px));
  width: 980px;
}

.billing-lifecycle-modal-card {
  display: grid;
  gap: 14px;
}

.billing-lifecycle-modal-card > header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.billing-lifecycle-modal-card > header > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
  font-size: 1.25rem;
}

.billing-lifecycle-modal-card h2,
.billing-lifecycle-modal-card p {
  margin: 0;
}

.billing-lifecycle-modal-body {
  display: grid;
  gap: 12px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.billing-card-reminder-form {
  display: grid;
  gap: 12px;
}

.billing-card-reminder-form label {
  display: grid;
  gap: 8px;
  color: #667085;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-card-reminder-form textarea {
  min-height: 220px;
  resize: vertical;
  border: 2px solid #d8e3ec;
  border-radius: 10px;
  background: #fff;
  color: #233047;
  padding: 12px;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: none;
}

.billing-card-reminder-form textarea:focus {
  outline: 3px solid rgba(53, 183, 212, .24);
  border-color: #35b7d4;
}

.billing-paid-plan-review-modal {
  width: min(620px, calc(100vw - 28px));
}

.billing-paid-plan-review-form,
.billing-paid-plan-review-form fieldset {
  display: grid;
  gap: 14px;
}

.billing-paid-plan-review-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.billing-paid-plan-review-form legend {
  margin-bottom: 10px;
  color: #667085;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-paid-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-paid-plan-options label {
  cursor: pointer;
}

.billing-paid-plan-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-paid-plan-options span {
  display: grid;
  min-height: 104px;
  place-content: center;
  gap: 4px;
  border: 3px solid #d8e3ec;
  border-radius: 8px;
  background: #fff;
  color: #233047;
  text-align: center;
}

.billing-paid-plan-options strong {
  font-size: 1.8rem;
}

.billing-paid-plan-options small {
  color: #667085;
  font-weight: 900;
  text-transform: uppercase;
}

.billing-paid-plan-options input:checked + span {
  border-color: #19a974;
  background: #edfff6;
  box-shadow: 0 4px 0 rgba(25, 169, 116, .2);
}

.billing-paid-plan-options input:focus-visible + span {
  outline: 3px solid rgba(53, 183, 212, .28);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .billing-paid-plan-options {
    grid-template-columns: 1fr;
  }

  .billing-paid-plan-options span {
    min-height: 72px;
  }
}

.billing-chain-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
}

.billing-chain-summary article {
  border: 2px solid #dbe4ed;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 10px;
}

.billing-chain-summary strong,
.billing-chain-summary span {
  display: block;
}

.billing-chain-summary strong {
  color: #233047;
  font-size: 1rem;
  font-weight: 950;
}

.billing-chain-summary span {
  color: #667085;
  font-size: .7rem;
  font-weight: 850;
}

.billing-chain-meta dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0;
}

.billing-chain-meta dt,
.billing-chain-meta dd {
  margin: 0;
}

.billing-chain-meta dt {
  color: #667085;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-chain-meta dd {
  color: #233047;
  font-size: .82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.billing-chain-timeline {
  display: grid;
  gap: 8px;
}

.billing-chain-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  border: 2px solid #dbe4ed;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.billing-chain-step > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.billing-chain-step.is-seen {
  border-color: rgba(44, 190, 92, .38);
  background: #f6fff8;
}

.billing-chain-step.is-blocked {
  border-color: rgba(255, 39, 51, .42);
  background: #fff5f5;
}

.billing-chain-step.is-watch {
  border-color: rgba(245, 197, 66, .55);
  background: #fffdf1;
}

.billing-chain-step strong,
.billing-chain-step small,
.billing-chain-step p {
  display: block;
  margin: 0;
}

.billing-chain-step strong {
  color: #233047;
  font-size: .92rem;
  font-weight: 950;
}

.billing-chain-step small,
.billing-chain-step p {
  color: #667085;
  font-size: .74rem;
  font-weight: 850;
  line-height: 1.35;
}

.billing-chain-step p {
  margin-top: 3px;
  color: #4b5565;
}

.billing-chain-step dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin: 8px 0 0;
}

.billing-chain-step dt,
.billing-chain-step dd {
  margin: 0;
}

.billing-chain-step dt {
  color: #667085;
  font-size: .6rem;
  font-weight: 950;
  text-transform: uppercase;
}

.billing-chain-step dd {
  color: #233047;
  font-size: .7rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.square-action-draft,
.square-webhook-event {
  display: grid;
  gap: 10px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  background: #f8fbfd;
  padding: 12px;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .1);
}

.square-action-draft.action-ready_invoice_update {
  border-color: rgba(84, 184, 208, .78);
  background: #f0fbff;
}

.square-action-draft.action-square_payment_credit_candidate,
.square-action-draft.action-class_credit_application_ready,
.square-action-draft.action-class_credits_applied_manually,
.square-webhook-event.status-credit_candidate {
  border-color: rgba(44, 190, 92, .65);
  background: #f0fff5;
}

.square-webhook-event.status-payment_warning {
  border-color: rgba(255, 39, 51, .72);
  background: #fff4f4;
}

.square-action-draft.action-do_not_change,
.square-action-draft.action-mark_not_continuing,
.square-action-draft.action-cancel_square_invoice,
.square-webhook-event.needs-match {
  border-color: rgba(245, 197, 66, .9);
  background: #fffdf1;
}

.square-action-draft header,
.square-webhook-event header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.square-action-draft header b,
.square-webhook-event header b {
  grid-column: 1 / -1;
  width: fit-content;
}

.square-action-draft header strong,
.square-action-draft header p,
.square-action-draft header small,
.square-webhook-event header strong,
.square-webhook-event header p,
.square-webhook-event header small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.square-action-draft header p,
.square-webhook-event header p {
  margin: 2px 0 0;
  color: #667085;
  font-size: .82rem;
  font-weight: 850;
}

.square-action-draft header small,
.square-webhook-event header small {
  color: #8a94a3;
  font-size: .74rem;
  font-weight: 850;
}

.square-action-draft header b,
.square-webhook-event header b {
  border-radius: 999px;
  background: #fff;
  color: #09546a;
  padding: 7px 9px;
  font-size: .68rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.square-action-draft dl,
.square-webhook-event dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.square-action-draft footer,
.square-webhook-event footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.webhook-credit-workflow {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid rgba(84, 184, 208, .38);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.webhook-credit-workflow > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.webhook-credit-workflow strong,
.webhook-credit-workflow small {
  display: block;
}

.webhook-credit-workflow small {
  color: #667085;
  font-size: .74rem;
  font-weight: 900;
}

.webhook-credit-workflow.is-ready {
  border-color: rgba(84, 184, 208, .7);
  background: #f0fbff;
}

.webhook-credit-workflow.is-visible {
  border-color: rgba(44, 190, 92, .72);
  background: #f0fff5;
}

.webhook-credit-workflow.is-visible > span {
  background: #dff9e7;
  color: #087431;
}

.webhook-credit-workflow.needs-proof {
  border-color: rgba(245, 197, 66, .9);
  background: #fff9df;
}

.webhook-credit-workflow.needs-proof > span {
  background: #fff1b8;
  color: #8a5f00;
}

.webhook-credit-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 260px;
}

.webhook-credit-links a,
.webhook-credit-links span,
.webhook-credit-links button {
  border-radius: 999px;
  background: #fff;
  color: #09546a;
  padding: 7px 9px;
  font-size: .68rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.webhook-credit-links button {
  min-height: 0;
  border: 0;
  cursor: pointer;
  box-shadow: none;
}

.webhook-match-candidates {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px dashed rgba(245, 197, 66, .86);
  border-radius: 8px;
  background: #fff8d8;
  padding: 8px;
}

.webhook-match-candidates > strong {
  flex: 1 1 100%;
  color: #7a5200;
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.webhook-match-candidates button {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  max-width: 230px;
  text-align: left;
}

.webhook-match-candidates button i {
  grid-row: span 2;
}

.webhook-match-candidates button span,
.webhook-match-candidates button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webhook-match-candidates button small {
  color: rgba(255, 255, 255, .86);
  font-size: .62rem;
}

.square-action-draft footer button,
.square-webhook-event footer button {
  border-radius: 8px;
}

.square-action-draft dt,
.square-action-draft dd,
.square-webhook-event dt,
.square-webhook-event dd {
  margin: 0;
}

.square-action-draft dt,
.square-webhook-event dt {
  color: #667085;
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-action-draft dd,
.square-webhook-event dd {
  color: #233047;
  font-size: .82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.square-invoice-plan {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(84, 184, 208, .35);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.square-invoice-plan header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.square-invoice-plan header span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e8f8ff;
  color: #0f6d83;
}

.square-invoice-plan strong,
.square-invoice-plan small,
.square-invoice-plan p {
  display: block;
  margin: 0;
}

.square-invoice-plan small {
  color: #667085;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.square-invoice-plan p {
  color: #233047;
  font-size: .8rem;
  font-weight: 900;
}

.square-invoice-plan dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.square-invoice-plan dt,
.square-invoice-plan dd {
  margin: 0;
}

.square-invoice-plan dt {
  color: #667085;
  font-size: .66rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-invoice-plan dd {
  overflow: hidden;
  color: #233047;
  font-size: .78rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.square-invoice-plan footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.square-invoice-plan footer button {
  border-radius: 8px;
}

.square-request-preview {
  display: grid;
  gap: 8px;
  border: 2px solid rgba(84, 184, 208, .45);
  border-radius: 8px;
  background: #f0fbff;
  padding: 10px;
}

.square-request-preview.needs-data {
  border-color: rgba(245, 197, 66, .8);
  background: #fff9df;
}

.square-request-preview header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.square-request-preview header span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  color: #0f6d83;
}

.square-request-preview dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.square-request-preview dt,
.square-request-preview dd {
  margin: 0;
}

.square-request-preview dt {
  color: #667085;
  font-size: .64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.square-request-preview dd {
  overflow: hidden;
  color: #233047;
  font-size: .76rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .billing-finder-panel {
    grid-template-columns: 1fr;
  }

.billing-finder-panel a,
.billing-owner-gate-panel button,
.billing-owner-locked-card button {
    width: fit-content;
    justify-self: start;
  }

  .billing-owner-gate-panel,
  .billing-owner-locked-card {
    grid-template-columns: 1fr;
  }

  .billing-audit-flow,
  .billing-audit-checklist,
  .square-connection-grid,
  .square-settings-grid,
  .square-target-grid,
  .square-manifest-summary,
  .square-review-lanes,
  .square-pull-summary,
  .square-pull-card dl,
  .square-money-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tuition-token-lookup-body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.tuition-token-search {
  display: grid;
  gap: 6px;
  color: #667085;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tuition-token-search > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 2px solid #cbd9e5;
  border-radius: 7px;
  background: #fff;
}

.tuition-token-search i {
  color: #0f6d83;
  text-align: center;
}

.tuition-token-search input {
  min-width: 0;
  border: 0;
  border-left: 1px solid #dbe5ee;
  border-radius: 0;
  background: transparent;
  padding: 11px;
  box-shadow: none;
}

.tuition-token-results {
  display: grid;
  gap: 8px;
}

.tuition-token-result-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #d7e2eb;
  border-left: 4px solid #35b7d4;
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

.tuition-token-result-card > span,
.tuition-token-result-actions > button {
  display: grid;
  width: 34px;
  height: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 7px;
}

.tuition-token-result-card > span {
  background: #eaf8fc;
  color: #0f6d83;
}

.tuition-token-result-actions > button {
  background: #233047;
  color: #fff;
  padding: 0;
}

.tuition-token-result-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tuition-token-result-actions > button[data-refresh-tuition-token] {
  background: #18a9cf;
}

.tuition-token-result-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tuition-token-result-card strong,
.tuition-token-result-card small,
.tuition-token-result-card code {
  overflow-wrap: anywhere;
}

.tuition-token-result-card strong { color: #16845b; font-size: .92rem; }
.tuition-token-result-card small { color: #667085; font-size: .7rem; font-weight: 800; }
.tuition-token-result-card code { color: #233047; font-size: .76rem; font-weight: 900; }

.tuition-token-full-table {
  border: 1px solid #d7e2eb;
  border-radius: 7px;
  background: #fff;
}

.tuition-token-full-table > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  color: #233047;
  font-size: .78rem;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.tuition-token-full-table > summary::-webkit-details-marker { display: none; }
.tuition-token-full-table[open] > summary > i { transform: rotate(180deg); }

.tuition-token-table-wrap {
  max-height: 520px;
  overflow: auto;
  border-top: 1px solid #d7e2eb;
}

.tuition-token-table-wrap table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: .72rem;
}

.tuition-token-table-wrap th,
.tuition-token-table-wrap td {
  border-bottom: 1px solid #e4ebf1;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.tuition-token-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf7fb;
  color: #4b5565;
  font-size: .64rem;
  text-transform: uppercase;
}

.tuition-token-table-wrap code {
  color: #233047;
  font-size: .7rem;
  font-weight: 900;
}

@media (max-width: 620px) {
  .billing-collapse > summary.section-heading,
  .billing-subpanel > summary {
    grid-template-columns: 1fr;
  }

  .billing-collapse > summary.section-heading {
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 8px;
  }

  .billing-collapse > summary.section-heading::after {
    justify-self: end;
  }

  .billing-subpanel > summary small,
  .billing-subpanel > summary > i {
    justify-self: start;
  }

  .billing-audit-flow,
  .billing-audit-checklist,
  .square-connection-grid,
  .square-settings-grid,
  .square-target-grid,
  .square-manifest-summary,
  .square-review-lanes,
  .square-pull-summary,
  .square-pull-card dl,
  .square-money-ops-grid,
  .square-action-draft dl,
  .square-webhook-event dl,
  .square-lifecycle-card dl,
  .zero-credit-invoice-card dl,
  .square-live-gate dl,
  .square-live-gate-checks,
  .square-request-preview dl {
    grid-template-columns: 1fr;
  }

  .square-pull-group summary,
  .square-pull-card header,
  .square-action-draft header,
  .square-webhook-event header,
  .webhook-credit-workflow,
  .square-live-gate header,
  .zero-credit-invoice-card header {
    grid-template-columns: 1fr;
  }

  .zero-credit-invoice-card header > .zero-credit-student-avatar {
    width: 52px;
    height: 52px;
  }

  .webhook-credit-links {
    justify-content: flex-start;
  }

  .square-pull-group summary small {
    text-align: left;
  }

  .summary-student-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .summary-student-card .student-header-badges,
  .summary-student-card > button {
    grid-column: 1 / -1;
  }
}

.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.inventory-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 14px;
}

.kid-market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.kid-market-admin-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
}

.kid-market-admin-bar h2 {
  margin: 0;
}

.kid-market-preview-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kid-market-preview-switch button,
.kid-market-page-link,
.kid-market-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: #667085;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.kid-market-preview-switch button.is-active,
.kid-market-page-link,
.kid-market-card-link {
  background: #2fb0d6;
}

.kid-market-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 14px;
}

.kid-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 14px;
}

.kid-market-shop-grid,
.kid-market-exchange-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.kid-market-shop-card,
.kid-market-exchange-card,
.kid-market-exchange-status {
  display: grid;
  gap: 10px;
  border: 3px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12);
}

.kid-market-shop-card {
  background:
    radial-gradient(circle at 92% 12%, rgba(248, 211, 72, .26), transparent 28%),
    linear-gradient(135deg, #fff, #f8fbfd);
}

.kid-market-shop-card.is-parent-facing {
  border-color: #f5c542;
  background: #fff9df;
}

.kid-market-shop-card.has-kid-lock {
  border-color: #f5c542;
  background:
    radial-gradient(circle at 92% 12%, rgba(248, 211, 72, .22), transparent 28%),
    linear-gradient(135deg, #fff, #f8fbfd);
}

.kid-market-shop-card.is-archived {
  order: 99;
  border-color: #aeb8c2;
  background: #f1f3f5;
  filter: grayscale(.72);
  opacity: .8;
}

.kid-market-shop-card.is-archived .kid-market-shop-hero img,
.kid-market-shop-card.is-archived .kid-market-shop-owner img {
  opacity: .55;
}

.kid-market-shop-hero {
  position: relative;
  overflow: hidden;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  background: #eef1f4;
}

.kid-market-shop-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: center;
}

.kid-market-shop-hero span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(36, 49, 63, .86);
  color: #fff;
  padding: 7px 11px;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kid-market-shop-card header,
.kid-market-exchange-status {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.kid-market-shop-card h3 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.kid-market-shop-card p,
.kid-market-exchange-card p,
.kid-market-exchange-status p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.kid-market-shop-owner {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid #f5c542;
  border-radius: 999px;
  background: #fff9df;
  color: #9a6a00;
  font-size: 1.3rem;
  overflow: hidden;
}

.kid-market-shop-owner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kid-market-shop-state {
  align-self: start;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f0fff4;
  color: #08742b;
  font-size: .74rem;
  text-transform: uppercase;
}

.kid-market-shop-state.is-locked {
  background: #f2f4f7;
  color: #475467;
}

.kid-market-shop-brief {
  display: grid;
  gap: 8px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .82);
}

.kid-market-shop-rule {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.kid-market-shop-rule > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #edf9ff;
  color: #2fb0d6;
}

.kid-market-shop-card.has-kid-lock .kid-market-shop-rule > span {
  background: #fff7d6;
  color: #9a6a00;
}

.kid-market-shop-rule strong,
.kid-market-shop-rule small {
  display: block;
}

.kid-market-shop-rule small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kid-market-shop-settings {
  border: 1px solid #d4d9df;
  border-radius: 8px;
  background: #fff;
}

.kid-market-shop-settings summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.kid-market-shop-settings summary::-webkit-details-marker {
  display: none;
}

.kid-market-shop-settings summary span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-shop-settings summary > i {
  color: #667085;
  transition: transform .18s ease;
}

.kid-market-shop-settings[open] summary > i {
  transform: rotate(180deg);
}

.kid-market-shop-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}

.kid-market-shop-editor label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-shop-editor .wide-field {
  grid-column: 1 / -1;
}

.kid-market-shop-editor input,
.kid-market-shop-editor textarea {
  width: 100%;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #f8fbfd;
  font-weight: 850;
  text-transform: none;
}

.kid-market-shop-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.kid-market-shop-settings-grid article {
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfd;
}

.kid-market-shop-settings-grid strong,
.kid-market-shop-settings-grid span,
.kid-market-shop-settings-grid small {
  display: block;
}

.kid-market-shop-settings-grid small,
.kid-market-shop-settings-grid span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.kid-market-shop-settings > .pill-row {
  padding: 0 10px 10px;
}

.kid-market-shop-card footer,
.kid-market-exchange-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kid-market-card-link {
  min-height: 36px;
  padding: 0 12px;
  background: #20b45b;
  font-size: .78rem;
}

.kid-market-shop-card footer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: #2fb0d6;
  font-size: .78rem;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.kid-market-shop-card footer button:disabled {
  background: #98a2b3;
  opacity: .68;
}

.kid-market-shop-modal {
  width: min(960px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.kid-market-shop-modal::backdrop {
  background: rgba(20, 29, 45, .58);
}

.kid-market-shop-modal-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 3px solid #d7e2ec;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(20, 29, 45, .24);
}

.kid-market-shop-modal-card h2 {
  margin: 0;
}

.kid-market-shop-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kid-market-shop-modal-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-shop-assignment {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 12px;
  border: 2px solid #d7e2ec;
  border-radius: 14px;
  background: #f7fbff;
}

.battle-library-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 2px solid #7c4dff;
  border-radius: 8px;
  background: #f7f3ff;
}

.battle-library-picker strong {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #42218f;
}

.battle-library-picker p {
  margin: 5px 0 0;
  color: #5f6878;
}

@media (max-width: 720px) {
  .battle-library-picker { grid-template-columns: 1fr; }
}

.kid-market-shop-assignment strong {
  color: #26324a;
  font-size: .82rem;
  text-transform: uppercase;
}

.kid-market-shop-assignment p {
  margin: 4px 0 10px;
  color: #667085;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
}

#kidMarketItemShopGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kid-market-shop-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: auto;
  padding: 8px 10px;
  border: 2px solid #d7e2ec;
  border-radius: 999px;
  background: #fff;
  color: #26324a;
  font-size: .84rem;
  font-weight: 800;
}

.kid-market-shop-check input {
  width: auto;
  min-height: 0;
}

.kid-market-shop-modal-grid .wide-field {
  grid-column: 1 / -1;
}

.kid-market-mixed-cost {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 2px solid #d7e2ec;
  border-radius: 10px;
  background: #f7fbfd;
}

.kid-market-mixed-cost > p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

#kidMarketItemCostGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.kid-market-mixed-cost-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 72px;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 2px solid #d7e2ec;
  border-radius: 8px;
  background: #fff;
}

.kid-market-mixed-cost-row > span {
  font-size: 1.35rem;
  text-align: center;
}

.kid-market-mixed-cost-row input {
  width: 100%;
  min-width: 0;
}

.kid-market-shop-modal-grid input,
.kid-market-shop-modal-grid select,
.kid-market-shop-modal-grid textarea {
  width: 100%;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  background: #f8fbfd;
  font-weight: 850;
  text-transform: none;
}

.kid-market-expression-editor {
  display: grid;
  gap: 12px;
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbfd;
}

.kid-market-image-preview-section {
  display: grid;
  gap: 12px;
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  padding: 14px;
  background: #fffaf0;
}

.kid-market-image-preview-section h3,
.kid-market-image-preview-section p {
  margin: 0;
}

.kid-market-main-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kid-market-main-image-card {
  display: grid;
  gap: 8px;
  border: 2px solid #f4c542;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.kid-market-main-image-card span {
  display: grid;
  place-items: center;
  min-height: 132px;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f4f7;
  color: #667085;
}

.kid-market-main-image-card img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: contain;
}

.kid-market-main-image-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kid-market-main-image-card button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #ff2733;
  font-size: .74rem;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.market-hero-framing-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border: 2px solid #b9dff0; border-radius: 12px; padding: 14px; background: #f8fbfd; }
.market-hero-framing-controls legend { padding: 0 8px; color: var(--ink); font-weight: 950; }
.market-hero-framing-controls label { display: grid; gap: 7px; }
.market-hero-framing-controls label > span { display: flex; justify-content: space-between; gap: 8px; }
.market-hero-framing-controls output { color: #0f6d83; font-weight: 950; }
.market-hero-framing-modes { grid-column: 1 / -1; display: flex; gap: 8px; }
.market-hero-framing-modes button { min-height: 40px; border: 2px solid #ccd6df; border-radius: 7px; padding: 8px 14px; color: #273447; background: #fff; font-weight: 950; }
.market-hero-framing-modes button.is-active { border-color: #ff2733; color: #fff; background: #ff2733; box-shadow: 0 4px 0 rgba(0,0,0,.14); }
.market-hero-framing-preview { grid-column: 1 / -1; justify-self: center; width: min(100%, 760px); aspect-ratio: 16 / 7; overflow: hidden; border: 3px solid #fff; border-radius: 10px; background: #eef4f8; box-shadow: 0 5px 0 rgba(35,48,71,.12); }
.market-hero-framing-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--shop-hero-position-x, 50%) var(--shop-hero-position-y, 50%); transform: scale(var(--shop-hero-scale, 1)); transform-origin: var(--shop-hero-position-x, 50%) var(--shop-hero-position-y, 50%); }

.kid-market-expression-editor h3,
.kid-market-expression-editor p {
  margin: 0;
}

.kid-market-expression-editor > div:first-child {
  display: grid;
  gap: 4px;
}

.kid-market-expression-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.kid-market-expression-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.kid-market-expression-card.has-image {
  border-color: rgba(47, 176, 214, .45);
}

.kid-market-expression-preview {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(47, 176, 214, .25);
  border-radius: 999px;
  background: #edf9ff;
  color: #0f6d83;
  overflow: hidden;
}

.kid-market-expression-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kid-market-expression-card strong,
.kid-market-expression-card small {
  display: block;
}

.kid-market-expression-card small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-expression-card input {
  width: 100%;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px;
  font-size: .75rem;
  font-weight: 850;
}

.kid-market-expression-card button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #2fb0d6;
  font-size: .74rem;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.kid-market-exchange-status {
  grid-column: 1 / -1;
  border-color: #2fb0d6;
  background: #edf9ff;
}

.kid-market-exchange-status.is-active {
  border-color: #31b94d;
  background: #f0fff4;
}

.kid-market-exchange-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  text-align: center;
}

.kid-market-exchange-line span {
  display: block;
  border: 2px solid #d4d9df;
  border-radius: 999px;
  padding: 8px;
  background: #f8fbfd;
  font-size: 1.05rem;
  font-weight: 900;
}

.kid-market-exchange-line i {
  color: #2fb0d6;
}

.kid-market-exchange-card > strong {
  display: block;
  font-size: 1.05rem;
}

.kid-market-exchange-card.is-muted {
  opacity: .6;
  filter: grayscale(.65);
}

.kid-market-shop-exchange-card {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  border: 3px solid #cfd8e3;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12);
}

.kid-market-shop-exchange-card.is-active {
  border-color: #31b94d;
}

.kid-market-shop-exchange-card > header,
.kid-market-shop-exchange-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kid-market-shop-exchange-card h3,
.kid-market-shop-exchange-card p {
  margin: 0;
}

.kid-market-exchange-switch {
  display: inline-grid;
  grid-template-columns: 46px auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.kid-market-exchange-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kid-market-exchange-switch > span {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #aeb8c2;
  transition: background .16s ease;
}

.kid-market-exchange-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .22);
  transition: transform .16s ease;
}

.kid-market-exchange-switch input:checked + span {
  background: #20ad55;
}

.kid-market-exchange-switch input:checked + span::after {
  transform: translateX(20px);
}

.kid-market-shop-exchange-rates {
  display: grid;
  gap: 10px;
}

.kid-market-exchange-editor-row {
  display: grid;
  grid-template-columns: 110px minmax(170px, 1fr) 30px 110px minmax(170px, 1fr) 76px 42px;
  align-items: end;
  gap: 9px;
  border: 2px solid #dbe2ea;
  border-radius: 8px;
  padding: 11px;
  background: #f8fbfd;
}

.kid-market-exchange-editor-row.is-muted {
  background: #f1f3f5;
}

.kid-market-exchange-editor-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #667085;
  font-size: .7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-exchange-editor-row input,
.kid-market-exchange-editor-row select {
  width: 100%;
  min-height: 42px;
  border: 2px solid #cad5e1;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: #243047;
  font-weight: 900;
}

.kid-market-exchange-editor-row > i {
  align-self: center;
  color: #2fb0d6;
  text-align: center;
}

.exchange-row-toggle,
.exchange-row-remove,
.kid-market-shop-exchange-card > footer button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 8px 11px;
  color: #fff;
  background: #667085;
  font-weight: 950;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.exchange-row-toggle.is-active,
.kid-market-shop-exchange-card > footer button:last-child {
  background: #20ad55;
}

.exchange-row-remove {
  padding: 8px;
  background: #8f1f28;
}

@media (max-width: 980px) {
  .kid-market-exchange-editor-row {
    grid-template-columns: 90px minmax(150px, 1fr) 24px 90px minmax(150px, 1fr);
  }

  .exchange-row-toggle,
  .exchange-row-remove {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .kid-market-exchange-editor-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .kid-market-exchange-editor-row > i {
    grid-column: 1 / -1;
    transform: rotate(90deg);
  }
}

.kid-market-item {
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12);
  transition: opacity .18s ease, filter .18s ease;
}

.kid-market-item.is-unavailable {
  opacity: .48;
  filter: grayscale(.85);
}

.kid-market-item.is-archived {
  border-style: dashed;
  background: #f4f5f7;
}

.kid-market-item.status-low {
  border-color: #f5c542;
  background: #fffbe8;
}

.kid-market-item.status-out {
  border-color: #ff2a32;
  background: #fff7f7;
}

.kid-market-item header {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  min-width: 0;
}

.kid-market-item-image {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 2px solid rgba(84, 184, 208, .28);
  border-radius: 14px;
  background: #fff;
  font-size: 2.5rem;
}

.kid-market-item-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kid-market-item h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  line-height: 1.05;
}

.kid-market-item p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.18;
}

.kid-market-item header > div {
  min-width: 0;
}

.kid-market-item header > div > p:not(.kicker) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.kid-market-item .kicker {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kid-market-cost {
  align-self: start;
  min-width: max-content;
  border: 2px solid #f5c542;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff9df;
  color: #665200;
  font-size: .78rem;
  text-align: center;
  text-transform: uppercase;
}

.kid-market-stock-list {
  display: grid;
  gap: 8px;
}

.kid-market-stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfd;
}

.kid-market-stock-row.status-low {
  border-color: #f5c542;
  background: #fff9df;
}

.kid-market-stock-row.status-out {
  border-color: #ff2a32;
  background: #fff1f1;
}

.kid-market-stock-row span,
.kid-market-stock-row strong,
.kid-market-stock-row small {
  display: block;
  font-weight: 900;
}

.kid-market-stock-row small {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.kid-market-item footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.kid-market-item footer button {
  width: auto;
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: .78rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.kid-market-item footer button:disabled {
  opacity: .5;
  filter: grayscale(.7);
}

.kid-market-inventory-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.kid-market-inventory-editor-card {
  display: grid;
  gap: 10px;
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.kid-market-inventory-editor-card strong {
  display: block;
  font-size: 1rem;
}

.kid-market-inventory-editor-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-inventory-editor-card input {
  width: 100%;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  padding: 9px;
  color: var(--ink);
  background: #f8fbfd;
  font-weight: 900;
}

.kid-market-adjustment-reason,
.kid-market-order-tools {
  display: grid;
  gap: 7px;
  margin: 10px 0;
}

.kid-market-adjustment-reason span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-adjustment-reason select,
.kid-market-order-tools input,
.kid-market-order-tools select {
  width: 100%;
  min-height: 42px;
  border: 2px solid #cad5e1;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
}

.kid-market-prep-group {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  border-top: 2px solid #d9e4ec;
  padding-top: 10px;
}

.kid-market-prep-group > header {
  display: grid;
  gap: 2px;
}

.kid-market-prep-group > header span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 850;
}

.kid-market-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.kid-market-balance-chip {
  display: grid;
  place-items: center;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
  text-align: center;
}

.kid-market-balance-chip span {
  font-size: 1.45rem;
  line-height: 1;
}

.kid-market-balance-chip strong,
.kid-market-balance-chip small {
  display: block;
}

.kid-market-balance-chip small {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kid-market-approval-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid #f5c542;
  border-radius: 8px;
  padding: 10px;
  background: #fff9df;
}

.kid-market-approval-card .reward-emoji {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  font-size: 1.25rem;
}

.kid-market-approval-card strong,
.kid-market-approval-card span,
.kid-market-approval-card small {
  display: block;
}

.kid-market-approval-card span,
.kid-market-approval-card small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.kid-market-approval-card.is-closed,
.kid-market-approval-card.prep-fulfilled,
.kid-market-approval-card.prep-restocked {
  border-color: #d4d9df;
  background: #f7fafc;
  opacity: .78;
}

.kid-market-approval-card.prep-prepared_for_class {
  border-color: #31bf59;
  background: #f0fff4;
}

.kid-market-approval-card.prep-not_available,
.kid-market-approval-card.prep-canceled {
  border-color: #8f1f28;
  background: #fff5f6;
}

.kid-market-approval-card.is-focused {
  border-color: #ff2733;
  background: #fff4f4;
  box-shadow: 0 0 0 4px rgba(255, 39, 51, .12);
  opacity: 1;
}

.kid-market-receipt-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid #d7e2ec;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.kid-market-receipt-card.receipt-draft_saved {
  border-color: #f5c542;
  background: #fff9df;
}

.kid-market-receipt-card.receipt-parent_messages_sent {
  border-color: #31bf59;
  background: #f0fff4;
}

.kid-market-receipt-card.receipt-hold {
  border-color: #8f1f28;
  background: #fff5f6;
}

.kid-market-receipt-card strong,
.kid-market-receipt-card span,
.kid-market-receipt-card small {
  display: block;
}

.kid-market-receipt-card span,
.kid-market-receipt-card small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.kid-market-approval-actions {
  display: flex;
  gap: 6px;
}

.kid-market-approval-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  background: #31b94d;
  box-shadow: none;
}

.kid-market-approval-actions button:last-child {
  background: #2fb0d6;
}

.kid-market-prep-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.kid-market-prep-filter-row button {
  min-height: 32px;
  border: 2px solid #d7e2ec;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
  font-size: .76rem;
}

.kid-market-prep-filter-row button.is-active {
  border-color: #ff2733;
  background: #ff2733;
  color: #fff;
}

.kid-market-report-list {
  display: grid;
  gap: 8px;
}

.kid-market-report-list article,
.kid-market-ledger-row {
  display: grid;
  gap: 3px;
  border: 2px solid #d4d9df;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.kid-market-report-list article i {
  color: #0f6d83;
}

.kid-market-report-list article.is-warning {
  border-color: #f5c542;
  background: #fff9df;
}

.kid-market-report-list article.is-danger {
  border-color: #8f1f28;
  background: #fff5f6;
}

.kid-market-report-list strong,
.kid-market-report-list span,
.kid-market-ledger-row strong,
.kid-market-ledger-row span,
.kid-market-ledger-row small {
  display: block;
}

.kid-market-report-list span,
.kid-market-ledger-row span,
.kid-market-ledger-row small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 850;
}

.kid-market-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.kid-market-report-actions button,
.kid-market-report-actions > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  border: 2px solid #d7e2ec;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 950;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .12);
}

.kid-market-report-actions small {
  color: #667085;
  font-size: .68rem;
  font-weight: 900;
}

.kid-market-handoff-history {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.kid-market-handoff-history > strong {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kid-market-ledger-row.handoff-prepared_for_class {
  border-color: #31bf59;
  background: #f0fff4;
}

.kid-market-ledger-row.handoff-fulfilled {
  border-color: #35b7d4;
  background: #f1fbff;
}

.kid-market-ledger-row.handoff-restocked,
.kid-market-ledger-row.handoff-not_available {
  border-color: #8f1f28;
  background: #fff5f6;
}

.kid-market-stock-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kid-market-stock-quick-row button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: #35b7d4;
  font-size: .72rem;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .14);
}

.kid-market-stock-quick-row button:last-child {
  background: #8f1f28;
}

.inventory-supply-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.inventory-owner-workspace[hidden] {
  display: none;
}

.inventory-owner-workspace {
  overflow: hidden;
  padding: 0;
}

.inventory-owner-workspace-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  color: #263341;
  cursor: pointer;
  list-style: none;
}

.inventory-owner-workspace-summary::-webkit-details-marker {
  display: none;
}

.inventory-owner-workspace-summary > span:first-child {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #e8f7fc;
  color: #087ca7;
}

.inventory-owner-workspace-summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.inventory-owner-workspace-summary strong {
  font-size: 1.05rem;
}

.inventory-owner-workspace-summary small {
  color: #697487;
  font-weight: 700;
}

.inventory-owner-workspace-summary em {
  color: #697487;
  transition: transform .2s ease;
}

.inventory-owner-workspace[open] .inventory-owner-workspace-summary em {
  transform: rotate(180deg);
}

.inventory-owner-workspace-body {
  padding: 18px 20px 20px;
  border-top: 1px solid #d6dee6;
}

[data-inventory-page-panel="rooms"].is-admin-focused > :not(.inventory-owner-workspace) {
  display: none !important;
}

[data-inventory-page-panel="rooms"].is-admin-focused .inventory-owner-workspace {
  display: block;
  min-height: 65vh;
}

.inventory-admin-return {
  align-self: flex-start;
  background: #64717e;
}

.inventory-admin-return[hidden] {
  display: none;
}

.inventory-workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.inventory-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  grid-column: 1 / -1;
}

.inventory-admin-toolbar button {
  background: #31b7d5;
}

.inventory-workspace-nav button {
  background: #64717e;
}

.inventory-workspace-nav button.is-active {
  background: #ff2a32;
}

.inventory-admin-location-grid,
.inventory-admin-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.inventory-admin-section {
  border: 2px solid #d7dfe7;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.inventory-admin-section > summary {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  cursor: pointer;
  background: #f5fafc;
  list-style: none;
}

.inventory-admin-section > summary > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff5fa;
  color: #12738a;
}

.inventory-admin-section summary strong,
.inventory-admin-section summary small {
  display: block;
}

.inventory-admin-section summary small,
.inventory-admin-section summary em {
  color: var(--muted);
  font-size: .75rem;
  font-style: normal;
  font-weight: 900;
}

.inventory-area-list {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.inventory-area-list article {
  display: grid;
  grid-template-columns: 28px 1fr 34px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #e5e9ed;
  padding: 8px 0;
}

.inventory-structure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid #e3e8ed;
  padding: 10px 12px;
}

.inventory-structure-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .72rem;
}

.inventory-token-list span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.inventory-token-list span button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  padding: 0;
  background: #8f1f28;
  font-size: .62rem;
  box-shadow: none;
}

.inventory-area-list strong,
.inventory-area-list small {
  display: block;
}

.inventory-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px;
}

.inventory-token-list span {
  border: 1px solid #bee4ed;
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf9fb;
  color: #126d82;
  font-weight: 900;
}

.inventory-permission-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inventory-permission-bands section {
  border-left: 5px solid #32b6d5;
  padding: 10px 14px;
  background: #f3fbfd;
}

.inventory-permission-bands section.is-owner {
  border-color: #ff2a32;
  background: #fff5f6;
}

.inventory-permission-bands h3,
.inventory-permission-bands p {
  margin: 0 0 6px;
}

.inventory-editor-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 32, 50, .3);
}

.inventory-editor-dialog::backdrop {
  background: rgba(22, 31, 44, .72);
}

.inventory-editor-shell {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.inventory-editor-shell header h2,
.inventory-editor-shell header p {
  margin: 0 0 5px;
}

.inventory-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inventory-editor-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.inventory-editor-fields input,
.inventory-editor-fields select {
  width: 100%;
  min-width: 0;
  border: 2px solid #d5dde5;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.inventory-editor-fields .inventory-check-row {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  border: 2px solid #dce6ec;
  border-radius: 8px;
  padding: 11px;
}

.inventory-item-image-editor {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 2px solid #dce6ec;
  border-radius: 8px;
  padding: 12px;
  background: #f7fafb;
}
.inventory-item-image-editor > div:first-child { display: grid; width: 110px; aspect-ratio: 1; place-items: center; overflow: hidden; border: 2px dashed #bdcbd5; border-radius: 7px; background: #fff; color: #7b8996; font-size: 1.8rem; }
.inventory-item-image-editor img { width: 100%; height: 100%; object-fit: cover; }
.inventory-item-image-editor > div:last-child { display: grid; justify-items: start; gap: 5px; }
.inventory-item-image-editor small { color: #697487; font-weight: 700; }

.inventory-image-dialog { width: min(620px, calc(100vw - 28px)); border: 0; border-radius: 8px; padding: 0; background: #fff; box-shadow: 0 24px 70px rgba(20, 32, 50, .3); }
.inventory-image-dialog::backdrop { background: rgba(22, 31, 44, .72); }
.inventory-image-shell { position: relative; display: grid; gap: 14px; padding: 24px; }
.inventory-image-shell header p, .inventory-image-shell header h2 { margin: 0 0 5px; }
.inventory-image-cropper { width: min(100%, 500px); margin: 0 auto; overflow: hidden; border: 3px solid #d5dde5; border-radius: 8px; background: #f4f7f8; touch-action: none; }
.inventory-image-cropper canvas { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.inventory-image-cropper canvas:active { cursor: grabbing; }
.inventory-image-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.inventory-image-controls button { min-width: 44px; }
.inventory-image-shell footer { display: flex; justify-content: center; }

.inventory-check-row input {
  width: 20px;
  height: 20px;
}

.inventory-editor-shell footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 560px) {
  .inventory-editor-fields {
    grid-template-columns: 1fr;
  }
}

.inventory-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}

.inventory-import-summary article {
  border: 2px solid #d9e2e9;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.inventory-import-summary strong,
.inventory-import-summary span,
.inventory-import-row strong,
.inventory-import-row span,
.inventory-import-row small {
  display: block;
}

.inventory-import-summary strong {
  font-size: 1.35rem;
}

.inventory-import-summary strong,
.inventory-import-summary span {
  font-weight: 950;
}

.inventory-import-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.inventory-import-search input {
  min-width: 0;
  border: 2px solid #d5dde5;
  border-radius: 8px;
  padding: 11px;
  font: inherit;
  text-transform: none;
}

.inventory-import-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.inventory-import-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  border: 2px solid #d9e2e9;
  border-left-width: 6px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.inventory-import-row.status-approved {
  border-left-color: #2dbd59;
  background: #f3fff6;
}

.inventory-import-row.status-skipped {
  border-left-color: #8c98a4;
  opacity: .72;
}

.inventory-import-row span,
.inventory-import-row small,
.inventory-import-row em {
  color: var(--muted);
  font-size: .76rem;
  font-style: normal;
  font-weight: 850;
}

.inventory-import-row footer {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 7px;
}

.inventory-import-row footer button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: .7rem;
}

@media (max-width: 620px) {
  .inventory-import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .inventory-permission-bands {
    grid-template-columns: 1fr;
  }
}

.inventory-supply-card {
  border: 3px solid #d4d9df;
  border-radius: 10px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .12);
}

.inventory-supply-card.status-low {
  border-color: #ff2a32;
  background: #fff7f7;
}

.inventory-supply-card.status-watch {
  border-color: #f5c542;
  background: #fffbe8;
}

.inventory-supply-card header {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
}

.inventory-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #eaf8fb;
  color: #157188;
  font-size: 24px;
  overflow: hidden;
}
.inventory-icon img { width: 100%; height: 100%; object-fit: cover; }

.inventory-supply-card h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.inventory-supply-card p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
}

.inventory-location-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.inventory-location-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfd;
}

.inventory-location-row.status-low {
  border-color: #ff2a32;
  background: #fff1f1;
}

.inventory-location-row.status-watch {
  border-color: #f5c542;
  background: #fff9df;
}

.inventory-location-row span,
.inventory-location-row strong,
.inventory-location-row small {
  font-weight: 900;
}

.inventory-location-row small {
  color: var(--muted);
}

.inventory-supply-card dl {
  grid-template-columns: auto 1fr;
  margin: 12px 0;
}

.inventory-supply-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-supply-card footer button:first-child {
  background: #ff2a32;
}

.inventory-supply-card footer button:last-child {
  background: #2fb4d8;
}

.teacher-performance-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.teacher-performance-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.teacher-performance-totals article {
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  padding: 10px;
}

.teacher-performance-totals article.is-over {
  border-color: #ff2a32;
  background: #fff4f4;
}

.teacher-performance-totals strong,
.teacher-performance-totals span {
  display: block;
  font-weight: 950;
}

.teacher-performance-totals strong {
  color: var(--ink);
  font-size: 20px;
}

.teacher-performance-totals span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.teacher-performance-card {
  display: grid;
  gap: 12px;
  border: 3px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.12);
}

.teacher-performance-card.has-concern {
  border-color: #ff2a32;
  background: #fff7f7;
}

.teacher-performance-card header {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.teacher-performance-card h3,
.teacher-performance-card p {
  margin: 0;
}

.teacher-performance-card p {
  color: var(--muted);
  font-weight: 850;
}

.teacher-performance-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #effaff;
  color: var(--blue);
  font-size: 22px;
}

.teacher-performance-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-review-pill {
  border-radius: 999px;
  background: #e8f8fc;
  color: #00627a;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.teacher-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.teacher-performance-grid article,
.teacher-performance-grid button {
  min-height: 76px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f8fbfd;
  padding: 10px;
}

.teacher-performance-grid button {
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.teacher-performance-grid button:hover,
.teacher-performance-grid button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(53, 183, 212, .24);
}

.teacher-performance-grid article.is-alert,
.teacher-performance-grid button.is-alert {
  border-color: #ff2a32;
  background: #fff1f1;
}

.teacher-performance-grid article.is-strong {
  border-color: #2cc35b;
  background: #edfff3;
}

.teacher-performance-grid article.is-watch {
  border-color: #f5c542;
  background: #fff9df;
}

.teacher-performance-grid article.is-low {
  border-color: #ff9a9e;
  background: #fff6f7;
}

.teacher-performance-grid strong,
.teacher-performance-grid span {
  display: block;
  font-weight: 950;
}

.teacher-performance-grid strong {
  font-size: 24px;
}

.teacher-performance-grid span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.teacher-performance-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.teacher-performance-details div {
  border: 2px solid #dbe6ec;
  border-radius: 10px;
  background: #f9fcff;
  padding: 9px;
}

.teacher-performance-details dt,
.teacher-performance-details dd {
  margin: 0;
  font-weight: 950;
}

.teacher-performance-details dt {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.teacher-performance-details dd {
  color: var(--ink);
  font-size: 13px;
}

.teacher-performance-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 980px) {
  .teacher-performance-board,
  .teacher-performance-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-square-import > header,
  .staff-compliance-panel > header {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-square-grid {
    grid-template-columns: 1fr;
  }

  .staff-square-grid fieldset {
    grid-column: auto;
  }

  .staff-square-grid > button {
    grid-column: auto;
  }

  .staff-access-grid {
    grid-template-columns: 1fr;
  }

  .staff-card-section > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .staff-card-section > summary small {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .quest-kingdom-drawer > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quest-drawer-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .quest-kingdom-drawer > summary.bad-guy-summary {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }

  .bad-guy-summary .quest-drawer-meta {
    grid-column: 2 / -1;
  }

  .bad-guy-name-editor {
    grid-template-columns: 1fr;
  }

  .bad-guy-hitpoint-grid {
    grid-template-columns: 1fr;
  }

  .inventory-layout,
  .kid-market-layout {
    grid-template-columns: 1fr;
  }

  .inventory-side,
  .kid-market-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .teacher-performance-board {
    grid-template-columns: 1fr;
  }

  .mask-admin-rules,
  .teacher-mask-override-grid {
    grid-template-columns: 1fr;
  }
}

.yearbook-moderation-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 16px;
  align-items: center;
}

.yearbook-moderation-toggle {
  align-items: center;
  border: 2px solid #d7e2ec;
  border-radius: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px;
}

.yearbook-moderation-toggle small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  grid-column: 2;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .yearbook-moderation-panel {
    grid-template-columns: 1fr;
  }
}
.staff-real-teacher .admin-bar {
  display: none !important;
}
.teacher-proof-editor {
  margin-top: 12px;
  border-top: 1px solid #ccd7df;
  padding-top: 10px;
}
.teacher-proof-editor summary { cursor: pointer; font-weight: 800; }
.teacher-proof-editor label { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 8px; }
.teacher-proof-editor input[type="range"] { width: 100%; }
.teacher-proof-editor small { display: block; margin-top: 8px; color: #607080; }
.project-proof-image.has-image { overflow: hidden; }
.project-proof-image.has-image img { transform-origin: center; transition: transform 120ms ease; }

/* Inventory operations */
.inventory-fulfillment-panel > summary,
.inventory-admin-section > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  list-style: none;
}

.inventory-fulfillment-panel > summary span span,
.inventory-fulfillment-panel > summary small { display: block; }
.inventory-fulfillment-queue,
.inventory-record-list { display: grid; gap: 10px; margin-top: 14px; }
.inventory-fulfillment-card,
.inventory-record-list > article {
  border: 2px solid #d5e2e9;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}
.inventory-fulfillment-card > header {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.inventory-fulfillment-card > header small,
.inventory-record-list span,
.inventory-record-list small { color: var(--muted); display: block; font-weight: 800; }
.inventory-fulfillment-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; }
.inventory-fulfillment-card dt,
.inventory-fulfillment-card dd { margin: 0; }
.inventory-fulfillment-card footer,
.inventory-admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.inventory-record-list > article { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) auto auto auto; }
.inventory-finance-summary { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0; }
.inventory-finance-summary article { border: 2px solid #d5e2e9; border-radius: 8px; padding: 12px; }
.inventory-finance-summary strong,
.inventory-finance-summary span { display: block; }
.inventory-finance-summary strong { font-size: 20px; }
.inventory-finance-summary span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.inventory-admin-structure > h3 { margin-top: 22px; }

@media (max-width: 760px) {
  .inventory-finance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-record-list > article { grid-template-columns: minmax(0, 1fr) auto; }
  .inventory-record-list > article small { grid-column: 1 / -1; }
}
/* Inventory room and OamieMon project workspaces */
.inventory-page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px;
  border: 2px solid #d7dce2;
  border-radius: 8px;
  background: #fff;
}
.inventory-page-nav button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
  border: 2px solid #cbd5df;
  border-radius: 7px;
  color: #283545;
  background: #f5f7f8;
  text-align: left;
}
.inventory-page-nav button > i { font-size: 1.3rem; text-align: center; }
.inventory-page-nav button span { display: grid; gap: 2px; min-width: 0; }
.inventory-page-nav button small { color: #687482; font-weight: 700; }
.inventory-page-nav button.is-active { border-color: #16a65a; color: #0b6f3a; background: #eefbf3; }
.inventory-room-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; margin-top: 12px; }
.inventory-room-actions > button, .inventory-catch-up-control summary { min-height: 42px; }

#inventoryFilters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#inventoryFilters .inventory-location-choice,
#inventoryFilters .inventory-room-choice,
#inventoryFilters .inventory-view-choice,
#inventoryFilters .wide-field { grid-column: 1 / -1; }

.inventory-choice-field {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.inventory-choice-field legend {
  margin-bottom: 7px;
  color: #687482;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-location-pills,
.inventory-room-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.inventory-room-pills { align-items: center; }

.inventory-location-pill,
.inventory-room-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid #ccd6df;
  border-radius: 999px;
  padding: 7px 15px;
  background: #fff;
  color: #263342;
  box-shadow: 0 3px 0 rgba(35, 48, 71, .13);
}

#inventoryFilters .inventory-room-pill { border-color: #cbd6df; background: #f7fafb; color: #334252; }
#inventoryFilters .inventory-room-pill:hover,
#inventoryFilters .inventory-room-pill:focus-visible { border-color: #69b9d1; background: #edf8fb; }
#inventoryFilters .inventory-room-pill.is-selected { border-color: #29a76a; background: #eefaf3; color: #176b42; }
.inventory-room-pill.is-dragging { opacity: .45; }
.inventory-room-grip { color: #8b98a5 !important; cursor: grab; }

.inventory-location-pill b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #64717e;
  color: #fff;
  font-size: .72rem;
}

.inventory-location-pill.location-pleasanton { border-color: #2c9ed0; color: #087cae; }
.inventory-location-pill.location-tracy { border-color: #ff3139; color: #c91f27; }
.inventory-location-pill.location-pleasanton b { background: #087cae; }
.inventory-location-pill.location-tracy b { background: #c91f27; }
#inventoryFilters .inventory-location-pill:not(.is-selected) {
  align-self: end;
  background: #e2d4d4;
}
.inventory-location-pill.is-selected,
.inventory-room-pill.is-selected { border-width: 3px; background: #f0fbf5; box-shadow: 0 0 0 3px rgba(31, 166, 91, .15), 0 3px 0 rgba(35, 48, 71, .13); }
.inventory-room-pill { min-width: 116px; }
.inventory-room-pill i { color: #168653; }
.inventory-location-manager { background: #31b7d5; }
.inventory-view-choice { min-width: 0; margin: 0; border: 0; padding: 0; }
.inventory-view-choice legend { margin-bottom: 7px; color: #687482; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.inventory-view-toggle { display: inline-flex; flex-wrap: wrap; gap: 8px; }
#inventoryFilters .inventory-view-toggle button { border: 2px solid #cbd6df; background: #f7fafb; color: #334252; }
#inventoryFilters .inventory-view-toggle button.is-selected { border-color: #29a76a; background: #eefaf3; color: #176b42; }
.inventory-supply-grid.is-project-view { display: grid; grid-template-columns: 1fr; }
.inventory-room-project-group { border: 2px solid #d6dee5; border-radius: 8px; background: #fff; overflow: hidden; }
.inventory-room-project-group > summary { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 72px; padding: 8px 14px; cursor: pointer; background: #f5f8fa; }
.inventory-room-project-group > summary img { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; background: #fff; }
.inventory-room-project-group > summary span { display: grid; min-width: 0; }
.inventory-room-project-group > summary small { color: #687482; font-weight: 800; }
.inventory-room-project-group > summary em { border-radius: 999px; padding: 6px 10px; background: #e8f6ed; color: #176b42; font-size: .78rem; font-style: normal; font-weight: 900; }
.inventory-project-room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; padding: 14px; border-top: 1px solid #dce3e8; }
.inventory-room-project-group.is-unassigned { margin-top: 8px; border-style: dashed; }
.inventory-project-unassigned-icon { display: grid !important; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #edf1f4; color: #687482; }
.inventory-catch-up-control { max-width: 420px; border: 1px solid #cfd8df; border-radius: 7px; background: #f8fafb; }
.inventory-catch-up-control summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; font-weight: 800; }
.inventory-catch-up-control p { margin: 0; padding: 0 14px 12px; color: #667381; font-size: .85rem; }
.inventory-supply-card.is-empty { border-style: dashed; filter: grayscale(1); opacity: .58; }
.inventory-supply-card.is-empty:hover, .inventory-supply-card.is-empty:focus-within { filter: grayscale(.35); opacity: .86; }
.inventory-fulfillment-created { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid #8ad4a3; border-radius: 7px; background: #edf9f1; color: #176b37; font-weight: 800; }
.inventory-supply-card.is-stocked { opacity: 1; }
.inventory-project-workspace { overflow: hidden; }
.inventory-project-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.inventory-project-heading h2 { margin: 0; }
.inventory-project-permission { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #a8dec0; border-radius: 999px; color: #0b6f3a; background: #eefbf3; font-weight: 800; white-space: nowrap; }
.inventory-project-filters { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(240px, 1.6fr); gap: 10px; margin: 18px 0; }
.inventory-project-filters label { display: grid; gap: 5px; min-width: 0; color: #5f6a77; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.inventory-project-filters select, .inventory-project-filters input { width: 100%; min-width: 0; }
.inventory-project-layout { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 16px; min-width: 0; }
.inventory-project-list { display: grid; align-content: start; gap: 8px; max-height: 760px; overflow: auto; padding-right: 5px; }
.inventory-project-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; min-height: 82px; padding: 7px; border: 2px solid #d7dde3; border-radius: 7px; color: #283545; background: #fff; text-align: left; }
.inventory-project-card img { width: 70px; height: 66px; border-radius: 6px; object-fit: contain; background: #f1f7f3; }
.inventory-project-card span { display: grid; min-width: 0; }
.inventory-project-card small, .inventory-project-card em { overflow: hidden; color: #687482; font-size: .75rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.inventory-project-card.is-selected { border-color: #16a65a; background: #eefbf3; }
.inventory-project-detail { min-width: 0; border: 2px solid #d7dde3; border-radius: 8px; background: #fff; overflow: hidden; }
.inventory-project-detail-header { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px; background: #f1f7f3; }
.inventory-project-detail-header img { width: 150px; height: 140px; object-fit: contain; border-radius: 7px; background: #fff; }
.inventory-project-detail-header h3 { margin: 2px 0; font-size: 1.65rem; }
.inventory-project-detail > section, .inventory-project-add { margin: 0; padding: 16px; border-top: 1px solid #dce2e7; }
.inventory-project-detail h4 { display: flex; justify-content: space-between; margin: 0 0 10px; }
.inventory-project-add-search { display: grid; gap: 6px; margin: 12px 0 14px; }
.inventory-project-add-search span { color: #536171; font-size: .78rem; font-weight: 900; text-transform: uppercase; }
.inventory-project-add-search input { width: 100%; min-height: 46px; border: 2px solid #cbd6df; border-radius: 6px; padding: 10px 13px; background: #fff; color: #263342; font: inherit; }
.inventory-project-add-search input:focus { border-color: #31b7d5; outline: 3px solid rgba(49, 183, 213, .16); }
.inventory-project-supply-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.inventory-project-supply-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 38px; align-items: center; gap: 8px; min-height: 58px; padding: 8px; border: 1px solid #d7dde3; border-radius: 6px; background: #f9fafb; }
.inventory-project-supply-row > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #087ca7; background: #e5f7fc; }
.inventory-project-supply-row div { display: grid; min-width: 0; }
.inventory-project-supply-row small { overflow: hidden; color: #687482; text-overflow: ellipsis; white-space: nowrap; }
.inventory-project-supply-row button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; }
.inventory-source-options { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.inventory-source-options span { display: grid; grid-template-columns: 24px auto; column-gap: 6px; padding: 7px 9px; border: 1px solid #cbd5df; border-radius: 6px; background: #fff; }
.inventory-source-options span i { grid-row: 1 / 3; align-self: center; }
.inventory-source-options span small { color: #687482; }
.inventory-source-options span.is-local { border-color: #75c997; background: #effaf3; }
.inventory-order-only { color: #8a6100; font-weight: 800; }
.roster-avatar-crop-modal,
.roster-quick-message-modal { width: min(94vw, 720px); border: 3px solid #273247; border-radius: 8px; padding: 0; }
.roster-avatar-crop-modal > section,
.roster-quick-message-modal > section { padding: 26px; }
.roster-avatar-cropper { width: min(100%, 520px); aspect-ratio: 1; margin: 16px auto; border: 3px solid #263447; border-radius: 8px; overflow: hidden; background: #eef5f7; touch-action: none; }
.roster-avatar-cropper canvas { display: block; width: 100%; height: 100%; cursor: move; touch-action: none; }
.roster-avatar-crop-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.roster-avatar-crop-controls button { min-height: 42px; }
.roster-message-identity { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; }
.roster-message-identity h2 { margin: 2px 0; }
.roster-message-identity p { margin: 0; }
.roster-message-portraits { position: relative; width: 112px; height: 76px; }
.roster-message-portrait { position: absolute; display: grid; place-items: center; width: 72px; height: 72px; border: 4px solid #fff; border-radius: 50%; overflow: hidden; background: #e8f7fb; box-shadow: 0 0 0 2px #31b7d5; color: #087ca7; }
.roster-message-portrait:first-child { left: 0; z-index: 1; }
.roster-message-portrait:last-child { right: 0; z-index: 2; }
.roster-message-portrait img { width: 100%; height: 100%; object-fit: cover; }
.roster-quick-message-form { display: grid; gap: 12px; }
.roster-quick-message-form label { display: grid; gap: 6px; color: #586575; font-size: .8rem; font-weight: 900; text-transform: uppercase; }
.roster-quick-message-form input,
.roster-quick-message-form textarea { width: 100%; border: 2px solid #cbd6df; border-radius: 6px; padding: 11px 12px; color: #273247; background: #fff; font: inherit; text-transform: none; }
.roster-quick-message-form > button[type="submit"] { justify-self: start; background: #29bd61; }
.roster-message-attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.roster-message-attachment button { background: #31b7d5; }
.student-modal .mini-action.message[data-quick-message] { display: inline-grid; place-items: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 50%; }
@media (max-width: 560px) {
  .roster-avatar-crop-modal > section, .roster-quick-message-modal > section { padding: 18px; }
  .roster-message-identity { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .roster-message-portraits { width: 92px; }
  .roster-message-portrait { width: 64px; height: 64px; }
}
@media (max-width: 900px) {
  .inventory-project-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-project-layout { grid-template-columns: 1fr; }
  .inventory-project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 360px; }
}
@media (max-width: 620px) {
  .inventory-page-nav, .inventory-project-filters, .inventory-project-list, .inventory-project-supply-list { grid-template-columns: 1fr; }
  .inventory-project-heading { display: grid; }
  .inventory-project-detail-header { grid-template-columns: 92px minmax(0, 1fr); }
  .inventory-project-detail-header img { width: 92px; height: 92px; }
}
.roster-recovery-tools {
  margin: 10px 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f8fafc;
}

.roster-recovery-tools > summary {
  cursor: pointer;
  color: #475569;
  font-weight: 800;
}

.roster-recovery-tools > p {
  margin: 10px 0;
  color: #64748b;
}
.parent-account-repair {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  width: 100%;
  margin: 0 0 12px;
  border: 2px solid #8bd3e8;
  border-radius: 8px;
  padding: 12px;
  background: #f4fbfe;
}

.parent-account-repair-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #159bc4;
  grid-column: 1;
  grid-row: 1;
}

.parent-account-repair-copy {
  align-self: center;
  grid-column: 2 / -1;
  grid-row: 1;
}

.parent-account-repair-copy strong,
.parent-account-repair-copy small,
.parent-account-repair label > span {
  display: block;
}

.parent-account-repair label > span b {
  color: #1684a6;
  font-size: inherit;
}

.parent-account-repair-copy small,
.parent-account-repair label > span,
.parent-account-repair .field-note {
  color: #647080;
}

.parent-account-repair label > span {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.parent-account-repair input:not([type="checkbox"]) {
  width: 100%;
  min-height: 42px;
}

.parent-account-repair-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.parent-account-repair-actions .check-line {
  margin-right: auto;
}

.parent-account-repair .field-note {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid #bde5f1;
  padding-top: 9px;
}

.parent-account-repair.is-locked {
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #f7f8fa;
  border-color: #d4d9df;
}

.roster-account-warnings {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
  border: 2px solid #efb649;
  border-radius: 6px;
  padding: 10px;
  background: #fffaf0;
}
.roster-account-warnings > strong { color: #7b5100; font-size: 12px; text-transform: uppercase; }
.roster-account-warnings > strong i { margin-right: 5px; }
.roster-account-warnings > div { display: grid; gap: 6px; }
.roster-account-warning {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 5px;
  padding: 4px;
  color: inherit;
  background: transparent;
  text-align: left;
  box-shadow: none;
}
.roster-account-warning:hover { background: #fff1c9; transform: none; }
.roster-account-warning > i {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; color: #8b5b00; background: #ffe7ad;
}
.roster-account-warning > span { display: grid; min-width: 0; }
.roster-account-warning b { color: #273247; font-size: 13px; }
.roster-account-warning small { color: #667181; line-height: 1.25; }
.roster-account-warning > em { color: #8b5b00; font-size: 11px; font-style: normal; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.roster-account-warning > em i { margin-left: 3px; }

@media (max-width: 980px) {
  .parent-account-repair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-account-repair-actions,
  .parent-account-repair .field-note {
    grid-column: 1 / -1;
  }

  .parent-account-repair-copy { grid-column: 2; }
}
.roster-workspace {
  grid-template-columns: minmax(0, 1fr);
}
.quest-celebration-preview {
  display: block;
  width: 112px;
  height: 112px;
  margin: 10px 0;
  object-fit: contain;
  background: #eefaff;
}
.sibling-discount-control {
  display: grid;
  gap: 12px;
}

.sibling-discount-copy {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.sibling-discount-copy h3,
.sibling-discount-copy p {
  margin: 0;
}

.sibling-discount-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a23d78;
  background: #fde7f3;
}

.sibling-discount-check {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 2px solid #d7dee8;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
}

.sibling-discount-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.styled-check-box {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #9aa8b8;
  border-radius: 6px;
  color: transparent;
  background: #f4f7fa;
}

.sibling-discount-check input:checked + .styled-check-box {
  border-color: #20b85a;
  color: #fff;
  background: #20b85a;
}

.sibling-discount-check input:focus-visible + .styled-check-box {
  outline: 3px solid rgba(39, 174, 222, .3);
  outline-offset: 2px;
}

.sibling-discount-check strong,
.sibling-discount-check small {
  display: block;
}
/* Lease-ready character class branding editor */
.quest-character-class-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.quest-owner-editor-note {
  margin: 0;
  color: #667085;
  font-weight: 750;
  line-height: 1.45;
}

.quest-character-class-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quest-character-class-editor-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 2px solid #d7e2ec;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.quest-character-class-editor-emoji {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(53, 183, 212, .22);
  font-size: 2.15rem;
}

.quest-character-class-editor-card > small {
  color: #667085;
  font-size: .7rem;
  font-weight: 850;
}

.quest-character-class-editor-card label {
  display: grid;
  gap: 5px;
  color: #4a5568;
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-character-class-editor-card input,
.quest-character-class-editor-card textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #243047;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  text-transform: none;
}

@media (max-width: 980px) {
  .quest-character-class-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .quest-character-class-editor-grid { grid-template-columns: 1fr; }
}

.teacher-proof-comment {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: #4a5568;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-proof-comment textarea {
  width: 100%;
  border: 2px solid #d7e2ec;
  border-radius: 9px;
  padding: 10px;
  background: #fff;
  color: #243047;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}
.message-read-receipt {
  align-items: center;
  display: inline-flex;
  font-size: .76rem;
  gap: .3rem;
  margin-top: .35rem;
  opacity: .76;
}

.past-class-attendance-button {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #249bc3;
}

.past-class-attendance-modal {
  width: min(1120px, calc(100vw - 28px));
  padding: 18px;
}

.past-class-attendance-shell,
.past-class-attendance-form {
  display: grid;
  gap: 16px;
}

.past-class-attendance-shell > header {
  padding-right: 54px;
}

.past-class-attendance-shell > header h2,
.past-class-attendance-shell > header p {
  margin-bottom: 4px;
}

.past-class-attendance-date-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #ccd8e3;
  border-radius: 8px;
  background: #f6f9fb;
}

.past-class-attendance-date-row label {
  display: grid;
  gap: 6px;
  color: #5b6978;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.past-class-attendance-date-row input {
  min-height: 44px;
  border: 2px solid #c8d3de;
  border-radius: 7px;
  padding: 9px 11px;
  background: #fff;
  color: #263340;
  font: inherit;
  font-weight: 800;
}

.past-class-student-list {
  display: grid;
  gap: 10px;
}

.past-class-student-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 2px solid #d4dde6;
  border-radius: 8px;
  background: #fff;
}

.past-class-student-row.is-complete { border-color: #6fc89b; background: #f4fcf7; }
.past-class-student-row.is-excluded { border-style: dashed; background: #f4f5f6; }

.past-class-student-row > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 38px auto;
  gap: 11px;
  align-items: center;
}

.past-class-student-row > header .student-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
}

.past-class-student-row > header .student-thumb img,
.past-class-student-row > header .student-thumb .avatar-fallback {
  width: 100%;
  height: 100%;
}

.past-class-student-row > header > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.past-class-student-row > header strong { color: #263340; font-size: 17px; }
.past-class-student-row > header small { color: #5f6d7a; font-weight: 750; }
.past-class-student-row > header em { color: #71808f; font-size: 12px; font-style: normal; }

.past-class-roster-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #233149;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16);
}

.past-class-roster-link:hover,
.past-class-roster-link:focus-visible {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
}

.past-class-kind {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf1f5;
  color: #425463;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.past-class-kind.is-trial { background: #fff4b8; color: #6e5900; }
.past-class-kind.is-makeup { background: #ffe1bf; color: #8a4300; }

.past-class-undo-absence {
  justify-self: start;
  background: #e33b45;
  color: #fff;
}

.past-class-status-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.past-class-status-options input { position: absolute; opacity: 0; pointer-events: none; }
.past-class-status-options span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 2px solid #cad5df;
  border-radius: 7px;
  background: #fff;
  color: #445463;
  font-weight: 900;
  cursor: pointer;
}

.past-class-status-options input:checked + span { border-color: #249bc3; background: #eaf8fc; color: #086c8c; }
.past-class-status-options input:disabled + span { cursor: not-allowed; opacity: .55; }

.past-class-eligibility {
  margin: 0;
  color: #627180;
  font-size: 12px;
  font-weight: 750;
}

.past-class-photo {
  display: grid;
  gap: 8px;
  color: #5b6978;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.past-class-photo > img,
.past-class-photo-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 330px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 2px solid #cbd7e1;
  border-radius: 8px;
  background: #eef4f7;
  object-fit: contain;
}

.past-class-photo-placeholder { gap: 8px; align-content: center; border-style: dashed; color: #617383; text-align: center; }
.past-class-photo-placeholder i { font-size: 34px; color: #249bc3; }

.past-class-credit-preview {
  display: grid;
  grid-template-columns: repeat(2, auto) minmax(180px, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 9px 11px;
  border-left: 4px solid #249bc3;
  background: #f1f8fb;
  color: #314251;
  font-size: 13px;
  font-weight: 900;
}

.past-class-credit-preview small { color: #607181; font-weight: 750; text-align: right; }

.past-class-existing-result,
.past-class-final-check,
.past-class-finished {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 13px;
  border-left: 5px solid #2aa968;
  background: #eaf9f0;
  color: #205d3e;
}

.past-class-finished.has-unresolved {
  border-left-color: #e2a719;
  background: #fff8dc;
  color: #6f5304;
}

.past-class-selection-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid #e2a719;
  background: #fff8dc;
  color: #6f5304;
}

.past-class-existing-result span,
.past-class-final-check div { display: grid; gap: 2px; }
.past-class-existing-result small,
.past-class-final-check span { color: #557164; font-size: 12px; }

.past-class-existing-result.is-warning {
  border-left-color: #e2a719;
  background: #fff8dc;
  color: #6f5304;
}

.past-class-existing-result.is-warning small { color: #735f25; }

.past-class-email-retry {
  justify-self: start;
  width: auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: #249bc3;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .14);
}

.past-class-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid #d3dde6;
  border-bottom: 2px solid #d3dde6;
}

.past-class-review-summary > div {
  display: grid;
  gap: 2px;
  padding: 12px;
  text-align: center;
}

.past-class-review-summary strong { color: #263340; font-size: 22px; }
.past-class-review-summary span { color: #687785; font-size: 11px; font-weight: 900; text-transform: uppercase; }

.past-class-row-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 9px 11px;
  border-left: 4px solid #e15058;
  background: #fff0f1;
  color: #8e252c;
  font-weight: 800;
}

.past-class-row-result > span { display: inline-flex; align-items: center; gap: 7px; }
.past-class-row-result > button { flex: 0 0 auto; }

.past-class-row-result.is-success { border-left-color: #2aa968; background: #ebf9f1; color: #205d3e; }
.past-class-row-result.is-saving { border-left-color: #249bc3; background: #eef9fc; color: #17627b; }

.past-class-footer-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.past-class-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 150px;
  align-content: center;
  color: #667684;
  text-align: center;
}

.past-class-empty i { font-size: 34px; color: #249bc3; }

@media (max-width: 720px) {
  .past-class-attendance-date-row,
  .past-class-status-options,
  .past-class-review-summary { grid-template-columns: 1fr; }
  .past-class-student-row > header { grid-template-columns: 48px minmax(0, 1fr); }
  .past-class-student-row > header .student-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
  .past-class-roster-link { grid-column: 1; grid-row: 2; }
  .past-class-kind { grid-column: 2; justify-self: start; }
  .past-class-credit-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .past-class-credit-preview small { grid-column: 1 / -1; text-align: left; }
  .past-class-footer-actions > button { flex: 1 1 100%; }
}
.notice-icon-action {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.teacher-notice-message-modal {
  width: min(1180px, calc(100vw - 32px));
  height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.teacher-notice-message-modal::backdrop { background: rgba(18, 28, 39, .62); }
.teacher-notice-message-modal > header {
  min-height: 64px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d8e1e9;
}
.teacher-notice-message-modal > header h2 { margin: 2px 0 0; font-size: 20px; }
.teacher-notice-message-modal > header .modal-close { position: static; }
.teacher-notice-message-modal iframe {
  width: 100%;
  height: calc(100% - 64px);
  display: block;
  border: 0;
  background: #f7f9fb;
}

@media (max-width: 700px) {
  .teacher-notice-message-modal {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
}
.class-change-audit {
  display: block;
  margin-top: 7px;
  color: #176c46;
  font-style: normal;
  line-height: 1.35;
}
.class-change-audit.is-legacy { color: #697485; }
.student-change-history { margin-top: 14px; border: 2px solid #ccd7e2; background: #fff; }
.student-change-history > summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; cursor: pointer; }
.student-change-history > summary > span { display: flex; align-items: center; gap: 10px; }
.student-change-history > summary small { color: #697485; }
.student-audit-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; border-top: 1px solid #dbe3ea; }
.student-audit-filters label { display: grid; gap: 5px; font-weight: 700; color: #475569; }
.student-audit-list { display: grid; gap: 8px; padding: 0 18px 18px; }
.student-audit-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px; border: 1px solid #dbe3ea; border-radius: 6px; background: #f8fafc; }
.student-audit-row > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e4f6fb; color: #087b9c; }
.student-audit-row > div { display: grid; gap: 3px; min-width: 0; }
.student-audit-row small, .student-audit-row em { color: #64748b; font-style: normal; overflow-wrap: anywhere; }
.student-audit-row .student-audit-transition { width: fit-content; padding: 4px 7px; border-radius: 4px; background: #e8f7ed; color: #176c46; font-weight: 850; }
.account-timeline-row[class*="is-upcoming-"] { border-color: #83d5e8; background: #effaff; }
.account-timeline-row[class*="is-upcoming-"] > b { color: #087794; }
@media (max-width: 760px) { .student-audit-filters { grid-template-columns: 1fr; } }
.account-history-status-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 14px 0 18px; }
.account-history.collapsed-detail-panel { grid-column: 1 / -1; border: 2px solid var(--line); border-radius: 10px; background: #f8f8f8; }
.account-history.collapsed-detail-panel > summary { min-height: 0; padding: 0; }
.account-history.collapsed-detail-panel > summary > span { display: grid; gap: 4px; }
.account-history.collapsed-detail-panel > summary strong { color: var(--ink); font-size: 20px; }
.account-history.collapsed-detail-panel[open] > summary { margin-bottom: 0; border-bottom: 1px solid #dce3e8; }
.account-history.collapsed-detail-panel > :not(summary) { margin-right: 14px; margin-left: 14px; }
.account-history-status-grid article { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #d5e0e8; border-left: 4px solid #2caed4; border-radius: 7px; background: #f8fbfd; }
.account-history-latest.is-absence { border-left-color: #e03838; background: #fff8f8; }
.account-history-latest.is-empty { border-left-color: #94a3b8; }
.account-history-latest-media, .account-history-next > span { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; overflow: hidden; border-radius: 6px; background: #e8f6fa; color: #087b9c; font-size: 22px; }
.account-history-latest-media img { width: 100%; height: 100%; object-fit: cover; }
.account-history-status-grid article > div { display: grid; gap: 2px; min-width: 0; }
.account-history-status-grid small { color: #64748b; font-weight: 800; text-transform: uppercase; }
.account-history-status-grid strong { color: #243244; font-size: 17px; }
.account-history-status-grid span, .account-history-status-grid em { color: #64748b; font-style: normal; }
.account-history-latest em { width: fit-content; margin-top: 4px; padding: 4px 7px; border-radius: 4px; background: #e5f6ed; color: #176c46; font-weight: 800; }
.account-history-next b { color: #243244; }
.account-history-next em { overflow-wrap: anywhere; }
.account-history-next.is-absence, .account-history-next.is-pre_absence { border-left-color: #e03838; background: #fff8f8; }
.account-history-next.is-makeup, .account-history-next.is-pre_absence_makeup { border-left-color: #18a6c9; background: #f3fbfe; }
.account-history-next.is-trial { border-left-color: #8b4bb0; background: #fbf7fd; }
.account-history-next.is-freeze_return { border-left-color: #3b82b8; background: #f4f9fd; }
.account-history-billing { grid-column: 1 / -1; }
.account-history-billing > span { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 6px; background: #e9f7ed; color: #167047; font-size: 19px; }
.account-history-billing > div { flex: 1; }
.account-history-billing > div > strong { display: flex; align-items: center; gap: 8px; }
.account-history-card-on-file { color: #159657; font-size: 15px; }
.account-history-billing > b { margin-left: auto; padding: 5px 8px; border-radius: 4px; background: #e8f3f7; color: #17637a; font-size: 12px; text-transform: uppercase; }
.account-history-billing > a { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #25a9cf; color: #fff; }
.account-history-billing.is-canceled, .account-history-billing.is-cancelled { border-left-color: #dc3c45; background: #fff8f8; }
.account-history-billing.is-imported { border-left-color: #94a3b8; }
@media (max-width: 700px) { .account-history-status-grid { grid-template-columns: 1fr; } }
.billing-panel h3 { margin-bottom: 8px; }
.billing-plan-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.billing-plan-choice button { grid-template-columns: 34px minmax(0, 1fr); min-height: 70px; padding-right: 12px; text-align: left; }
.billing-plan-choice button > i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e5f7ed; color: #16814c; }
.billing-plan-choice button > span { display: grid; gap: 2px; min-width: 0; }
.billing-plan-choice button em { color: #687487; font-size: 10px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.billing-plan-note { margin: 4px 0 0; }
.billing-data-panel { grid-column: 1 / -1; }
.billing-data-panel-body { padding: 0 14px 14px; border-top: 1px solid #e1e8ee; }
.billing-data-panel-body .billing-summary-list { margin-top: 14px; }
.billing-data-panel-body > .sibling-discount-control { margin: 12px 0; border: 1px solid #edbfd6; box-shadow: none; }
.billing-data-panel-body > .billing-refund-action,
.billing-data-panel-body > [data-open-refund-reconcile] {
  margin-top: 16px;
}
.detail-grid > .class-path-panel,
.detail-grid > .billing-panel { grid-column: span 1; }
.detail-grid > .billing-profile-panel { grid-column: 1 / -1; }
.project-media-content { display: grid; gap: 10px; padding-top: 12px; }
@media (max-width: 700px) { .billing-plan-choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Raised controls settle toward the surface before they are pressed. */
.aq-admin button,
.aq-admin a.primary-action,
.aq-admin a.mini-action,
.student-modal button {
  transition: transform .12s ease, box-shadow .12s ease;
}

@media (hover: hover) {
  .aq-admin button:not(:disabled):hover,
  .aq-admin a.primary-action:hover,
  .aq-admin a.mini-action:hover,
  .student-modal button:not(:disabled):hover {
    box-shadow: none;
    transform: translateY(2px);
  }
}

.roster-card-billing-summary > a {
  box-sizing: border-box;
  width: 32px !important;
  min-width: 32px;
  height: 32px !important;
  min-height: 32px;
  aspect-ratio: 1;
  padding: 0 !important;
  border-radius: 50% !important;
}

.freeze-type-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.freeze-type-choice legend { grid-column: 1 / -1; margin-bottom: 2px; color: #5d6878; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.freeze-type-choice label { position: relative; display: block; min-width: 0; }
.freeze-type-choice input { position: absolute; opacity: 0; pointer-events: none; }
.freeze-type-choice span { display: grid; gap: 4px; height: 100%; padding: 13px; border: 2px solid #d4dde4; border-radius: 7px; background: #fff; box-shadow: 0 4px 0 #d4dde4; cursor: pointer; }
.freeze-type-choice strong { color: #263447; }
.freeze-type-choice small { color: #687487; line-height: 1.35; }
.freeze-type-choice label:has(input:checked) span { border-color: #23aace; background: #eefaff; box-shadow: 0 4px 0 #1686a5; }
.freeze-form [data-freeze-save-status]:not(:empty) { margin: 4px 0 0; padding: 9px 11px; border-left: 4px solid #23aace; background: #eefaff; }
@media (max-width: 650px) { .freeze-type-choice { grid-template-columns: 1fr; } }

/* Game effects are isolated from score and attendance controls. */
.game-effects-shell { max-width: 1500px; }
.game-effects-panel { padding: 16px; }
.game-effects-master { display: flex; align-items: center; gap: 18px; padding: 14px; border: 2px solid #d7e1e8; border-radius: 8px; background: #f7fafc; }
.game-effects-master > div { display: grid; gap: 3px; margin-right: auto; }
.game-effects-master small { color: #657285; }
.game-effects-shell .apple-toggle input { width: 1px !important; height: 1px !important; margin: 0 !important; overflow: hidden; clip: rect(0 0 0 0); }
.game-effects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.game-effect-card { overflow: hidden; border: 2px solid #d7e1e8; border-radius: 8px; background: #fff; }
.game-effect-card > header { display: flex; align-items: center; gap: 12px; padding: 13px; background: #f8fafc; }
.game-effect-card > header > div { display: grid; gap: 2px; }
.game-effect-card > header small { color: #687487; text-transform: capitalize; }
.game-effect-art { display: grid; place-items: center; width: 58px; height: 58px; overflow: hidden; border-radius: 8px; background: #e8f7fb; color: #1494b8; font-size: 22px; }
.game-effect-art img { width: 100%; height: 100%; object-fit: contain; }
.game-effect-card > section { display: grid; gap: 0; }
.game-effect-media-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto 42px; align-items: center; gap: 10px; padding: 12px 13px; border-top: 1px solid #e1e7ec; }
.game-effect-media-row > div { display: grid; gap: 2px; min-width: 0; }
.game-effect-media-row small { overflow: hidden; color: #687487; text-overflow: ellipsis; white-space: nowrap; }
.game-effect-upload { position: relative; }
.game-effect-upload input { display: none; }
.game-effect-upload span, .game-effect-preview { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 11px; border: 0; border-radius: 6px; background: #22a9cf; color: #fff; font-weight: 850; cursor: pointer; }
.game-effect-preview { width: 42px; padding: 0; background: #26364a; }
.game-effect-preview span { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.game-effects-footer { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.game-effects-footer p { margin: 0; color: #64748b; font-weight: 750; }
.game-action-toast { position: fixed; right: 22px; bottom: 22px; z-index: 10000; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 13px; width: min(360px, calc(100vw - 32px)); min-height: 108px; padding: 12px; border: 2px solid #26364a; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(22, 35, 52, .25); animation: gameEffectIn .22s ease-out; }
.game-action-toast > img, .game-action-toast > span { display: grid; place-items: center; width: 82px; height: 82px; object-fit: contain; border-radius: 7px; background: #eaf7fb; color: #1494b8; font-size: 28px; }
.game-action-toast > div { display: grid; gap: 2px; }
.game-action-toast small { color: #e52d3b; font-weight: 900; text-transform: uppercase; }
.game-action-toast p { margin: 2px 0 0; color: #687487; font-weight: 750; }
.game-action-toast.is-leaving { opacity: 0; transform: translateY(12px); transition: .22s ease; }
@keyframes gameEffectIn { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 900px) { .game-effects-grid { grid-template-columns: 1fr; } .game-effects-master { align-items: flex-start; flex-wrap: wrap; } }
@media (max-width: 620px) { .game-effect-media-row { grid-template-columns: 1fr auto; } .game-effect-upload { grid-column: 1 / 2; } .game-effect-preview { grid-column: 2 / 3; } }

.class-cancellation-modal { width: min(820px, calc(100vw - 28px)); }
.class-cancellation-modal .student-detail > header { display: flex; align-items: center; gap: 13px; }
.class-cancellation-heading-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: #fff0f1; color: #df3341; font-size: 21px; }
.class-cancellation-form { display: grid; gap: 16px; }
.class-cancellation-reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 0; padding: 0; border: 0; }
.class-cancellation-reasons legend { grid-column: 1 / -1; margin-bottom: 3px; color: #687487; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.class-cancellation-reasons label { position: relative; min-width: 0; }
.class-cancellation-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.class-cancellation-reasons span { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 10px; border: 2px solid #d7e0e7; border-radius: 7px; background: #fff; box-shadow: 0 3px 0 #d7e0e7; cursor: pointer; }
.class-cancellation-reasons input:checked + span { border-color: #23a9cf; background: #effaff; box-shadow: 0 3px 0 #168baa; }
.class-cancellation-custom-reason { display: grid; gap: 6px; color: #5e6a7a; font-weight: 850; }
.class-cancellation-custom-reason textarea { resize: vertical; }
.class-cancellation-delivery { overflow: hidden; border: 2px solid #dbe3e9; border-radius: 8px; }
.class-cancellation-delivery > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #f7fafc; }
.class-cancellation-delivery h3, .class-cancellation-delivery p { margin: 0; }
.class-cancellation-recipient-grid { display: grid; max-height: 360px; overflow: auto; }
.class-cancellation-recipient { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid #e1e7ec; }
.class-cancellation-recipient > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #eaf7fb; color: #168eae; }
.class-cancellation-recipient > div { display: grid; gap: 1px; min-width: 0; }
.class-cancellation-recipient small, .class-cancellation-recipient em { overflow-wrap: anywhere; color: #687487; font-style: normal; }
.class-cancellation-recipient > b { padding: 5px 8px; border-radius: 5px; background: #eaf7fb; color: #17677d; font-size: 11px; text-transform: uppercase; }
.class-cancellation-recipient.is-sent > span, .class-cancellation-recipient.is-sent > b { background: #e8f7ee; color: #147344; }
.class-cancellation-recipient.is-failed > span, .class-cancellation-recipient.is-failed > b { background: #fff0f1; color: #b91f31; }
.class-cancellation-recipient.is-missing_email > span, .class-cancellation-recipient.is-missing_email > b { background: #fff5d8; color: #865d00; }
.class-cancellation-recipient > button { min-height: 34px; padding: 6px 9px; }
.sick-action.is-complete:disabled { opacity: 1; background: #e8f7ee; color: #147344; }
@media (max-width: 700px) { .class-cancellation-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } .class-cancellation-recipient { grid-template-columns: 38px minmax(0, 1fr) auto; } .class-cancellation-recipient > button { grid-column: 2 / -1; } }

.circle-move { display:inline-grid; place-items:center; flex:0 0 42px; width:42px; height:42px; padding:0; border-radius:50%; background:#22a9cf; color:#fff; }
.staff-class-move-modal { width:min(820px, calc(100vw - 28px)); }
.staff-class-move-icon { display:grid; place-items:center; flex:0 0 54px; width:54px; height:54px; border-radius:50%; background:#e8f8fc; color:#138aaa; font-size:21px; }
.staff-class-move-current { display:flex; align-items:center; gap:12px; padding:13px; border:2px solid #d9e3ea; border-radius:8px; background:#f7fafc; }
.staff-class-move-current > span { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#e7f7ec; color:#16834a; }
.staff-class-move-current > div { display:grid; gap:2px; }
.staff-class-move-current small, .staff-class-move-current em { color:#687487; font-style:normal; }
.staff-class-move-filters { display:grid; gap:0; margin-top:13px; overflow:hidden; border:2px solid #dce5eb; border-radius:8px; background:#fff; }
.staff-class-move-filters section { display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; gap:12px; min-width:0; padding:10px 12px; }
.staff-class-move-filters section + section { border-top:1px solid #e3e9ee; }
.staff-class-move-filters section > small { color:#687487; font-size:11px; font-weight:900; letter-spacing:0; text-transform:uppercase; }
.staff-class-move-filters section > div { display:flex; flex-wrap:wrap; align-items:center; gap:7px; min-width:0; }
.staff-class-move-filters button { display:inline-flex !important; align-items:center !important; justify-content:center; gap:7px; width:auto !important; min-width:0; min-height:34px; max-width:240px; margin:0; padding:6px 11px; overflow:hidden; border:2px solid #d5dfe6; border-radius:18px; background:#fff; color:#4d5a6d; box-shadow:none; font-size:13px; line-height:1; text-transform:none; }
.staff-class-move-filters button.is-active { border-color:#28a9ca; background:#eaf8fc; color:#126f88; }
.staff-class-move-filters button:hover { transform:none; box-shadow:none; border-color:#79c9de; background:#f3fbfd; }
.staff-class-move-filters button span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.staff-class-move-filters .staff-move-teacher-filter img { flex:0 0 28px !important; width:28px !important; height:28px !important; max-width:28px !important; max-height:28px !important; margin:0 !important; border:2px solid #fff; border-radius:50% !important; object-fit:cover; box-shadow:0 0 0 1px #cbdce5; }
@media (max-width:700px) {
  .staff-class-move-filters section { grid-template-columns:1fr; gap:7px; }
  .staff-class-move-filters button { max-width:100%; }
}
.staff-class-move-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:460px; margin-top:14px; overflow:auto; }
.staff-class-move-grid .staff-class-move-choice { display:grid; grid-template-columns:58px minmax(0,1fr) 42px; align-items:center; gap:12px; min-width:0; min-height:92px; padding:12px; border:2px solid #d7e1e8; border-left:5px solid #25b966; border-radius:8px; background:#fff; color:#253246; text-align:left; text-transform:none; box-shadow:0 3px 0 #d7e1e8; }
.staff-class-move-grid .staff-class-move-choice[hidden] { display:none; }
.staff-class-move-grid .staff-class-move-choice:hover { border-color:#95d8ae; background:#f3fbf6; transform:translateY(2px); box-shadow:0 1px 0 #b9d9c5; }
.staff-class-move-grid .staff-class-move-choice.is-full { border-left-color:#e3ae31; background:#fffaf0; }
.staff-class-move-grid .staff-class-move-choice.is-full:hover { border-color:#e8ca7d; background:#fff6dc; }
.staff-class-move-teacher { display:grid; place-items:center; width:56px; height:56px; overflow:hidden; border:3px solid #fff; border-radius:50%; background:#e8f8fc; color:#168eae; box-shadow:0 0 0 2px #cddce5; }
.staff-class-move-teacher img { width:100%; height:100%; object-fit:cover; }
.staff-class-move-choice > div { display:grid; gap:3px; min-width:0; }
.staff-class-move-choice > div > strong { color:#253246; font-size:16px; line-height:1.15; letter-spacing:0; }
.staff-class-move-choice small, .staff-class-move-choice em { color:#687487; font-style:normal; line-height:1.25; overflow-wrap:anywhere; }
.staff-class-move-choice .staff-class-move-schedule { color:#26364a; font-weight:900; }
.staff-class-move-choice .staff-class-move-schedule i { margin-right:3px; color:#1597b8; }
.staff-class-move-choice em { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.staff-class-move-choice em b { color:#425066; }
.staff-class-move-seat { padding:4px 7px; border-radius:5px; background:#e6f7ed; color:#147342; font-size:11px; font-weight:900; text-transform:uppercase; }
.staff-class-move-seat.is-full { background:#fff0c5; color:#805900; }
.staff-class-move-grid .staff-class-move-action { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#e8f8fc; color:#138aaa; }
.staff-class-move-grid .is-full .staff-class-move-action { background:#fff0c5; color:#805900; }
@media(max-width:700px){.staff-class-move-grid{grid-template-columns:1fr}}
/* Owner enrollment-lapse follow-up */
.billing-quick-links {
  display: block;
  padding: 18px 22px;
}

.billing-quick-links > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.billing-quick-links > header h2,
.billing-quick-links > header p { margin: 0; }
.billing-quick-links > header > span { color: #687487; font-weight: 700; }

.billing-quick-links nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.billing-quick-links nav a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #cfdae2;
  background: #fff;
  color: #253246;
  text-decoration: none;
}

.billing-quick-links nav a > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e7f8fc;
  color: #0b8eae;
}

.billing-quick-links nav strong,
.billing-quick-links nav small { display: block; overflow-wrap: anywhere; }
.billing-quick-links nav strong { line-height: 1.1; }
.billing-quick-links nav small { margin-top: 2px; color: #687487; font-size: 11px; }
.billing-quick-links nav a:hover,
.billing-quick-links nav a:focus-visible { border-color: #0c9fc4; background: #f1fbfd; }

@media (max-width: 980px) { .billing-quick-links nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .billing-quick-links > header { align-items: flex-start; flex-direction: column; }
  .billing-quick-links nav { grid-template-columns: 1fr; }
}

.billing-lapse-followup {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 2px solid #d9e3ea;
}

.billing-lapse-followup-panel {
  margin-top: 18px;
  padding: 24px;
  border-top: 1px solid #cfdbe3;
}

.billing-lapse-followup > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}

.billing-lapse-followup > summary::-webkit-details-marker { display: none; }
.billing-lapse-followup > summary h3,
.billing-lapse-followup > summary h2,
.billing-lapse-followup > summary p { margin: 0; }
.billing-lapse-followup > summary > i { color: #087792; transition: transform 160ms ease; }
.billing-lapse-followup[open] > summary > i { transform: rotate(180deg); }

.billing-lapse-tabs {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 14px 0;
}

.billing-lapse-tabs button {
  min-height: 42px;
  border: 1px solid #b8cad7;
  background: #fff;
  color: #243246;
}

.billing-lapse-tabs button.is-active {
  border-color: #0c9fc4;
  background: #e7f8fc;
  color: #087792;
}

.billing-lapse-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.billing-lapse-history-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #efb22d;
  border-left: 5px solid #efb22d;
  background: #fffdf7;
}

.billing-lapse-history-card.is-archived {
  border-color: #cbd6de;
  background: #f6f8fa;
}

.billing-lapse-history-card > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.billing-lapse-history-card > header > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff0c7;
  color: #8a5a00;
}

.billing-lapse-student-avatar { overflow: hidden; }
.billing-lapse-student-avatar img { width: 100%; height: 100%; object-fit: cover; }

.billing-lapse-history-card > header strong,
.billing-lapse-history-card > header small { display: block; }
.billing-lapse-history-card > header b { color: #177245; font-size: 12px; }

.billing-lapse-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 14px 0;
}

.billing-lapse-facts > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe4ea;
  background: #fff;
}

.billing-lapse-facts small,
.billing-lapse-facts strong,
.billing-lapse-facts span,
.billing-lapse-facts a {
  display: block;
  overflow-wrap: anywhere;
}

.billing-lapse-teacher-chip { display: flex !important; align-items: center; gap: 9px; margin-top: 6px; }
.billing-lapse-teacher-avatar { display: grid !important; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; overflow: hidden; border-radius: 50%; background: #e9f7fb; color: #087ca7; }
.billing-lapse-teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.billing-lapse-teacher-chip strong,.billing-lapse-teacher-chip small,.billing-lapse-teacher-chip em { display: block; }
.billing-lapse-teacher-chip em { color: #5f6b7b; font-size: 12px; font-style: normal; font-weight: 700; }
.billing-lapse-invoice-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: 5px; }
.billing-lapse-invoice-row > span { min-width: 0; }
.billing-lapse-invoice-row em { display: block; overflow: hidden; color: #697487; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.billing-lapse-invoice-row > a { display: inline-grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #2faed6; color: #fff; }
.billing-lapse-invoice-fact > b { display: inline-block; margin-top: 8px; padding: 4px 7px; border-radius: 4px; background: #edf1f4; color: #5f6b7b; font-size: 11px; text-transform: capitalize; }

.billing-lapse-facts a {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087ca7;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  box-shadow: none !important;
}

.billing-lapse-name { display: flex; align-items: flex-end; gap: 6px; }
.billing-lapse-name button,
.billing-lapse-invoice-id button,
.billing-lapse-icon-action {
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}
.billing-lapse-name button,
.billing-lapse-invoice-id button { width: 24px; height: 24px; min-height: 24px; padding: 0; border: 1px solid #93d5e8; border-radius: 50%; box-shadow: none; font-size: 11px; }
.billing-lapse-invoice-id { display: flex !important; align-items: center; gap: 5px; }
.billing-lapse-invoice-id em { min-width: 0; }
.billing-lapse-corner { display: grid; justify-items: end; gap: 6px; }
.billing-lapse-corner > span { padding: 8px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; }
.billing-lapse-corner > span i { margin-right: 6px; }
.billing-lapse-corner .has-card { background: #dff7e8; color: #14713c; }
.billing-lapse-corner .no-card { background: #edf1f4; color: #697487; }
.billing-lapse-attendance-chip { display:flex; gap:10px; align-items:center; margin:0 0 14px; padding:11px 13px; border:1px solid #f0c25c; background:#fff7df; }
.billing-lapse-attendance-chip > i { color:#a36a00; font-size:20px; }
.billing-lapse-attendance-chip span,.billing-lapse-attendance-chip small,.billing-lapse-attendance-chip strong,.billing-lapse-attendance-chip em { display:block; }
.billing-lapse-attendance-chip small,.billing-lapse-attendance-chip em { color:#697487; font-size:11px; }

.unsettled-class-balance { display:flex; align-items:center; gap:10px; margin-top:10px; padding:11px 13px; border:1px solid #efb22d; background:#fff7df; color:#6f4c0c; }
.unsettled-class-balance > i { font-size:20px; }
.unsettled-class-balance strong,.unsettled-class-balance small { display:block; }
.unsettled-class-balance small { margin-top:2px; color:#695b45; }

.billing-lapse-history-card > footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.billing-lapse-history-card > footer .billing-lapse-restart-action {
  width: auto;
  min-height: 40px;
  padding: 9px 13px;
  background: #20a95b;
  color: #fff;
  font-weight: 800;
}

.admin-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  color: #243047;
  background: #f7fbfd;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

body.is-admin-loading { overflow: hidden; }
body.is-admin-loading .admin-loading-screen { opacity: 1; visibility: visible; }
body.is-admin-loading .aq-admin { visibility: hidden; }
.admin-loading-mark {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 3px solid #73cde3;
  border-radius: 50%;
  color: #087f9d;
  background: #e8f8fc;
  font-size: 1.8rem;
}
.admin-loading-screen > div { display: grid; gap: 4px; }
.admin-loading-screen p,
.admin-loading-screen strong,
.admin-loading-screen small { margin: 0; }
.admin-loading-screen p { color: #ff2733; font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.admin-loading-screen strong { font-size: clamp(1.35rem, 4vw, 2rem); }
.admin-loading-screen small { color: #667085; font-weight: 750; }
.admin-loading-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d9edf3;
  border-top-color: #16a5c7;
  border-radius: 50%;
  animation: admin-loading-spin .75s linear infinite;
}
@keyframes admin-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .admin-loading-screen { transition: none; }
  .admin-loading-spinner { animation-duration: 1.5s; }
}

@media (max-width: 760px) {
  .billing-lapse-followup > summary { align-items: flex-start; }
  .billing-lapse-history { grid-template-columns: 1fr; }
  .billing-lapse-facts { grid-template-columns: 1fr; }
}
/* Events and camps */
.event-status-tabs,.event-editor-actions>div:first-child{display:flex;gap:10px;flex-wrap:wrap}.event-status-tabs button.is-active{background:#087ca7;color:#fff}.event-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}.event-admin-card{display:grid;grid-template-columns:110px 1fr;border:2px solid #d7e1eb;background:#fff;min-height:220px}.event-admin-card>img,.event-admin-placeholder{width:110px;height:100%;min-height:170px;object-fit:cover;background:#e9f8fc;display:grid;place-items:center;color:#087ca7;font-size:28px}.event-admin-card>div{padding:18px;display:flex;flex-direction:column;gap:5px;min-width:0}.event-admin-card h3{margin:0;font-size:22px}.event-admin-card small{margin-top:8px;color:#697487}.event-admin-card footer{grid-column:1/-1;border-top:1px solid #d7e1eb;padding:10px;display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.event-admin-card footer a,.event-admin-card footer button{display:inline-flex;align-items:center;gap:7px}.event-admin-card.status-published{border-left:5px solid #2fb85f}.event-admin-card.status-draft{border-left:5px solid #f1ad12}.event-admin-card.status-archived{border-left:5px solid #7c8799}.event-admin-meta{display:flex;gap:10px;justify-content:space-between;margin-top:auto;padding-top:12px}.event-admin-meta em{font-style:normal;color:#697487}.event-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px}.event-editor-main{display:flex;flex-direction:column;gap:14px}.event-editor-sidebar{display:flex;flex-direction:column;gap:18px}.event-editor-sidebar .panel{display:flex;flex-direction:column;gap:12px}.event-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.event-editor-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px}.event-email-command{display:grid;grid-template-columns:48px minmax(220px,1fr) auto;align-items:center;gap:12px;border-left:4px solid #2fb85f;padding:10px 0 10px 14px}.event-email-command>span{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#e9f8fc;color:#087ca7}.event-email-command div{display:flex;flex-direction:column}.event-email-command small{font-weight:800;text-transform:uppercase;color:#697487}.event-email-command em{font-style:normal;color:#187a42}@media(max-width:900px){.event-editor-layout{grid-template-columns:1fr}.event-editor-actions{align-items:stretch;flex-direction:column}.event-email-command{grid-template-columns:44px 1fr}.event-email-command button{grid-column:1/-1}.event-admin-card{grid-template-columns:82px 1fr}.event-admin-card>img,.event-admin-placeholder{width:82px}.event-editor-grid{grid-template-columns:1fr}}
.event-registration-admin{grid-column:1/-1}.event-registration-admin-list{display:grid;gap:10px}.event-registration-admin-row{display:grid;grid-template-columns:44px minmax(220px,1fr) auto;gap:12px;align-items:center;border:1px solid #d7e1eb;padding:12px}.event-registration-admin-row>span{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#e9f8fc;color:#087ca7}.event-registration-admin-row>div{display:flex;flex-direction:column}.event-registration-admin-row>div em{font-style:normal;text-transform:uppercase;font-size:12px;font-weight:800}.event-registration-admin-row footer{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.event-registration-admin-row.status-confirmed{border-left:5px solid #2fb85f}.event-registration-admin-row.status-waitlisted{border-left:5px solid #f1ad12}.event-registration-admin-row.status-canceled{opacity:.7;border-left:5px solid #7c8799}@media(max-width:700px){.event-registration-admin-row{grid-template-columns:40px 1fr}.event-registration-admin-row footer{grid-column:1/-1}}
.event-email-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.event-email-preview-dialog{width:min(760px,94vw);height:min(900px,92vh);padding:0;border:2px solid #d7e1eb}.event-email-preview-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #d7e1eb}.event-email-preview-dialog h2{margin:0}.event-email-preview-dialog iframe{display:block;width:100%;height:calc(100% - 82px);border:0;background:#f5f7fb}
.event-media-builder,.event-instructor-builder{border-top:1px solid #d7e1eb;padding-top:16px}.event-media-builder{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:16px}.event-hero-preview{aspect-ratio:2/1;background:#e9f8fc;overflow:hidden;position:relative;display:grid;place-items:center;color:#087ca7}.event-hero-preview>img{width:100%;height:100%;object-fit:cover;object-position:var(--event-x,50%) var(--event-y,50%);transform:scale(var(--event-zoom,1));transform-origin:var(--event-x,50%) var(--event-y,50%)}.event-hero-preview>span{position:absolute;inset:auto 10px 10px;display:flex;gap:7px;align-items:center;background:rgba(255,255,255,.92);padding:8px 10px;font-weight:800}.event-hero-preview.is-empty>span{position:static;inset:auto;flex-direction:column;background:transparent;text-align:center}.event-hero-preview.is-empty i{font-size:30px}.event-media-controls{display:flex;flex-direction:column;gap:10px}.event-crop-controls{display:grid;gap:7px}.event-instructor-editor{display:grid;grid-template-columns:145px 1fr;gap:16px}.event-instructor-editor>div:last-child{display:grid;gap:10px}.event-instructor-preview{width:145px;aspect-ratio:1;border:4px solid #20acd1;border-radius:50%;overflow:hidden;background:#e9f8fc;display:grid;place-items:center;color:#087ca7;font-size:34px}.event-instructor-preview img{width:100%;height:100%;object-fit:cover}.event-live-preview-panel{grid-column:1/-1}.event-live-preview>article{border:2px solid #d7e1eb;background:#fff;display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr)}.event-live-hero{overflow:hidden;min-height:330px;background:#e9f8fc;display:grid;place-items:center;color:#087ca7}.event-live-hero img{width:100%;height:100%;object-fit:cover;object-position:var(--event-x,50%) var(--event-y,50%);transform:scale(var(--event-zoom,1));transform-origin:var(--event-x,50%) var(--event-y,50%)}.event-live-copy{padding:24px;display:flex;flex-direction:column;gap:10px}.event-live-copy h3{font-size:34px;margin:0}.event-live-copy>div{display:grid;gap:8px}.event-live-copy>div span{display:flex;gap:8px;align-items:center}.event-live-copy aside{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;border-top:1px solid #d7e1eb;margin-top:12px;padding-top:14px}.event-live-copy aside>img,.event-live-copy aside>i{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#e9f8fc;display:grid;place-items:center;color:#087ca7}.event-live-copy aside span{display:flex;flex-direction:column}.event-live-copy aside em{font-style:normal;color:#697487}.event-schedule-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.event-schedule-modes label{cursor:pointer}.event-schedule-modes input{position:absolute;opacity:0}.event-schedule-modes span{display:grid;place-items:center;min-height:42px;border:2px solid #d7e1eb;background:#fff;text-align:center}.event-schedule-modes input:checked+span{background:#087ca7;color:#fff;border-color:#087ca7}.event-schedule-preview{background:#fff3cc;border-left:4px solid #f1ad12;padding:10px;font-weight:800}.event-budget-staff-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.event-budget-staff{display:grid;gap:8px}.event-budget-staff article{border:1px solid #d7e1eb;padding:10px;display:grid;gap:8px}.event-budget-staff article>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.event-budget-staff article>div:last-child{grid-template-columns:1fr .7fr .8fr 38px;align-items:end}.event-budget-staff [data-remove-employee]{width:38px;height:38px;padding:0;background:#d9293d}.event-budget-result{display:grid;gap:7px;border-top:2px solid #d7e1eb;padding-top:12px}.event-budget-result span,.event-budget-result strong{display:flex;justify-content:space-between;gap:10px}.event-budget-result strong{font-size:17px;color:#187a42}@media(max-width:900px){.event-media-builder,.event-live-preview>article{grid-template-columns:1fr}.event-live-hero{min-height:240px}.event-budget-staff article>div:last-child{grid-template-columns:1fr 1fr}.event-instructor-editor{grid-template-columns:105px 1fr}.event-instructor-preview{width:105px}}
.calendar-private-session{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;margin:8px 0;padding:12px;border:1px solid #89cee0;border-left:5px solid #0b92b9;border-radius:6px;background:#effbff}.calendar-private-session>span{display:grid;width:40px;height:40px;place-items:center;border-radius:50%;background:#d7f4fc;color:#087b9b}.calendar-private-session>div{display:grid;gap:2px;min-width:0}.calendar-private-session small{color:#f22d3d;font-weight:900;text-transform:uppercase}.calendar-private-session em{font-style:normal;color:#657187}.calendar-private-session>b{color:#087b9b}.calendar-private-session.is-roc{border-color:#dfb642;border-left-color:#df9d0b;background:#fff9e8}.calendar-private-session.is-roc>span{background:#fff0be;color:#9a6800}
.canonical-private-session-actions{display:flex;align-items:center;gap:6px}.canonical-private-session-actions button{display:grid;width:40px;height:40px;place-items:center;border:0;border-radius:50%;background:#2daed2;color:#fff}.canonical-private-session-actions .danger-icon-button{background:#e44343}
.calendar-private-session.is-payment-hold{border-color:#e1b64c;border-left-color:#d68f00;background:#fff9e8}.calendar-private-session.is-payment-hold>span{background:#fff0be;color:#916100}.calendar-private-session.is-payment-hold>b{color:#805800}
.event-registration-answers{margin-top:8px;border-top:1px solid #d7e1eb;padding-top:8px}.event-registration-answers summary{display:flex;align-items:center;gap:7px;cursor:pointer;color:#243249;font-weight:900}.event-registration-answers summary b{display:grid;min-width:22px;height:22px;place-items:center;border-radius:50%;background:#e9f8fc;color:#087ca7;font-size:12px}.event-registration-answers dl{display:grid;gap:8px;margin:10px 0 0}.event-registration-answers dl>div{display:grid;gap:2px;border-left:3px solid #29a9cc;padding-left:9px}.event-registration-answers dt{color:#68758a;font-size:12px;font-weight:900;text-transform:uppercase}.event-registration-answers dd{margin:0;color:#243249;line-height:1.4}.event-registration-admin-row.status-inquiry_received,.event-registration-admin-row.status-proposal_sent,.event-registration-admin-row.status-proposal_accepted{border-left:5px solid #229fc2}.event-registration-admin-row.status-inquiry_received>span,.event-registration-admin-row.status-proposal_sent>span,.event-registration-admin-row.status-proposal_accepted>span{background:#e9f8fc;color:#087ca7}
.sample-battle-lackeys{grid-column:1/-1;border-top:2px solid #d9e1e7;padding-top:12px}.sample-battle-lackeys>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.sample-battle-lackeys>header p{margin:2px 0 0;color:#687486}.sample-battle-lackeys>div{display:grid;gap:8px;margin-top:10px}.sample-battle-lackeys article{display:grid;grid-template-columns:1.2fr 1.2fr 1fr 90px 90px 42px;align-items:end;gap:8px;border:2px solid #d7e0e6;border-radius:7px;padding:9px;background:#f7fafc}.sample-battle-lackeys article label span{display:block;margin-bottom:4px;color:#667284;font-size:10px;font-weight:900;text-transform:uppercase}.sample-battle-lackeys article input,.sample-battle-lackeys article select{width:100%}.sample-battle-lackeys article .danger-action{width:42px;height:42px;padding:0;background:#d62f3e}@media(max-width:900px){.sample-battle-lackeys article{grid-template-columns:1fr 1fr}.sample-battle-lackeys article .danger-action{grid-column:2;justify-self:end}}
