@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;
}

.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-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-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";
}

.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;
}

.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 {
  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;
}

.filter-drawer summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  background: #5c6874;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 8px 12px;
  text-transform: uppercase;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}

.filter-drawer[open] summary {
  margin-bottom: 10px;
}

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

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

.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(2, minmax(320px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.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;
}

.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;
}

.intake-card footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.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;
}

.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-thread-card footer button {
  color: #fff;
  background: var(--green);
}

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

.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;
}

.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;
}

@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) 320px;
  gap: 14px;
  align-items: start;
}

.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: space-between;
  gap: 12px;
}

.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;
  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.waitlist-card {
  border-color: var(--yellow);
  background: #fff8d7;
}

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

.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;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 2px;
}

.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 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);
}

.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;
}

.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-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;
}

.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; }
}

.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));
}

.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));
  gap: 10px;
  max-height: min(54vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.student-chip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 8px;
  text-align: left;
  text-transform: none;
}

.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 {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
}

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

.student-chip small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.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-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;
  }
}

.calendar-settings-modal form {
  display: grid;
  gap: 18px;
}

.calendar-settings-modal .detail-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.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;
}

.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 { display: grid; }
.class-photo-upload {
  align-items: center;
  background: #f6fbff;
  border: 2px dashed #9fc7dc;
  color: var(--ink);
  display: grid;
  gap: 3px 10px;
  grid-template-columns: 72px minmax(0, 1fr);
  text-align: left;
}
.class-photo-upload > span { grid-row: 1 / 3; height: 64px; overflow: hidden; width: 72px; }
.class-photo-upload img { height: 100%; object-fit: cover; width: 100%; }
.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;
}

.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 h2 {
  margin-bottom: 4px;
}

.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 .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-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;
}

.field-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.billing-panel {
  background: #fff;
}

.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: clamp(13px, 1.45vw, 15px);
  white-space: nowrap;
  overflow-wrap: normal;
}

.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: nowrap;
}

.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: 22px;
  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);
}

.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;
  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;
}

.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 strong {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px 6px;
  text-align: center;
}

.credit-stepper button {
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
}

.credit-stepper .minus {
  background: var(--red);
}

.credit-stepper .plus {
  background: var(--green);
}

.credit-adjustment-history {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.credit-adjustment-history span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(84, 184, 208, .34);
  border-radius: 999px;
  background: #f2fbff;
  color: var(--ink);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.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 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;
}

.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;
}

.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: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.calendar-control-row strong {
  font-size: 16px;
  white-space: nowrap;
}

.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: 32px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: #ccd4dc;
  cursor: pointer;
}

.calendar-closed-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  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(14px);
}

.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,
.month-cell header > div {
  min-width: 0;
}

.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-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;
}

.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 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;
}

.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 .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: var(--blue);
  background: #eefaff;
}

.calendar-student.is-pre-absence-makeup {
  border-color: #f7c46a;
  background: #fffdf4;
}

.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;
}

.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-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 {
    justify-content: flex-start;
  }

  .calendar-control-row strong {
    width: 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%;
  }

  .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;
}

.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;
}

.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-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: flex;
  margin: -2px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.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;
}

.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-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.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 strong,
.zero-credit-invoice-card header small,
.zero-credit-invoice-card header b {
  display: block;
}

.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;
}

.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;
}

.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: repeat(8, minmax(160px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.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 {
  margin-left: 8px;
  background: #687584;
}

.square-lifecycle-card header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.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 {
  overflow: hidden;
  color: #233047;
  font-size: .82rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
  gap: 5px;
  margin: 0;
}

.square-lifecycle-card dt,
.square-lifecycle-card dd {
  margin: 0;
}

.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;
}

.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-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));
  }
}

@media (max-width: 620px) {
  .billing-collapse > summary.section-heading,
  .billing-subpanel > summary {
    grid-template-columns: 1fr;
  }

  .billing-collapse > summary.section-heading {
    display: grid;
  }

  .billing-collapse > summary.section-heading::after {
    justify-self: start;
  }

  .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,
  .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;
  }

  .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;
}

.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; }
@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; }
}
