/* AMASOMO 2026 — SINGLE APPLICATION STYLESHEET\n   Unified from the Booking Master visual system. */

/* ===== booking-uniform.css ===== */
/* AMASOMO UNIFORM DESIGN SYSTEM
   Visual source of truth: booking-master(9).css */
:root {
  --bg: #f4fbfa !important;
  --card: #fff !important;
  --text: #12312e !important;
  --ink: #12312e !important;
  --muted: #6b7f7b !important;
  --brand: #10a88a !important;
  --brand-dark: #08745f !important;
  --soft: #dff5f0 !important;
  --line: #dbe9e6 !important;
  --danger: #d94a4a !important;
  --success: #17633b !important;
  --booking-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  --bg-app-base: #f4fbfa !important;
  --panel-surface: #fff !important;
  --text-main: #12312e !important;
  --text-muted: #6b7f7b !important;
  --brand-prime: #10a88a !important;
  --brand-prime-hover: #08745f !important;
  --accent-success: #17633b !important;
  --accent-danger: #d94a4a !important;
  --border-light: #dbe9e6 !important;
  --radius-normal: 13px !important;
  --v16-ink: #12312e !important;
  --v16-muted: #6b7f7b !important;
  --v16-line: #dbe9e6 !important;
  --v16-soft: #dff5f0 !important;
  --v16-brand: #10a88a !important;
  --v16-brand-2: #08745f !important;
  --v16-good: #17633b !important;
  --v16-bad: #b42318 !important;
  --v16-radius: 18px !important;
  --v16-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.5;
}
.main,
.studio-workspace {
  padding: 24px !important;
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.side,
.sidebar-navigation {
  background: #0d3b34 !important;
  color: #fff !important;
  padding: 24px !important;
}
.nav a,
.nav button,
.nav-links a,
.logout-trigger {
  border-radius: 12px !important;
  color: #d8f6ef !important;
  font-weight: 800 !important;
}
.nav a.active,
.nav a:hover,
.nav button:hover,
.nav-links .nav-active,
.nav-links a:hover,
.logout-trigger:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.header,
.studio-header,
.admin-header,
.booking-header,
.dashboard-welcome {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 0 0 1rem !important;
  margin: 0 0 1rem !important;
  box-shadow: none !important;
  gap: 1rem !important;
}
.card,
.panel,
.booking-panel,
.profile-view > .panel,
.interface-layout > .panel,
.student-panel,
.admin-stat,
.dashboard-stat,
.dashboard-item,
.dashboard-card {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  padding: 1.25rem !important;
  box-shadow: var(--booking-shadow) !important;
}
input,
select,
textarea,
.input-control {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 13px !important;
  padding: 12px !important;
  font-size: 15px !important;
}
input:focus,
select:focus,
textarea:focus,
.input-control:focus {
  outline: none !important;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px var(--soft) !important;
}
.btn,
button.btn,
.primary-action,
.secondary-action {
  border: 0 !important;
  border-radius: 14px !important;
  padding: 13px 16px !important;
  background: var(--brand) !important;
  color: #fff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-align: center !important;
  box-shadow: none !important;
}
.btn:hover,
button.btn:hover,
.primary-action:hover {
  background: var(--brand-dark) !important;
}
.btn.secondary,
.secondary-action {
  background: var(--soft) !important;
  color: var(--brand-dark) !important;
  border: 0 !important;
}
.btn.danger {
  background: var(--danger) !important;
  color: #fff !important;
}
.booking-tabs,
.profile-tabs,
.student-tabs,
.admin-tabs,
.tab-navigation {
  display: flex !important;
  gap: 0.55rem !important;
  flex-wrap: wrap !important;
  margin: 1rem 0 1.25rem !important;
}
.booking-tabs button,
.profile-tabs .btn,
.student-tabs .btn,
.admin-tabs button,
.tab-navigation button {
  width: auto !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
  color: var(--brand-dark) !important;
  padding: 0.58rem 0.95rem !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
.booking-tabs button.active,
.profile-tabs .btn.active,
.student-tabs .btn.active,
.admin-tabs button.active,
.tab-navigation button.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}
.dashboard-stats,
.admin-stats,
.booking-stats,
.v16-kpis {
  gap: 0.8rem !important;
  margin-bottom: 1rem !important;
}
.dashboard-stat,
.admin-stat,
.booking-stat,
.v16-kpi {
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  padding: 1rem !important;
  box-shadow: var(--booking-shadow) !important;
}
.dashboard-stat strong,
.admin-stat strong,
.booking-stat strong,
.v16-kpi strong {
  color: var(--brand-dark) !important;
  font-size: 1.7rem !important;
}
.dashboard-stat span,
.booking-stat span,
.v16-kpi small {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}
.admin-toolbar,
.booking-toolbar,
.horizontal-control-bar,
.filter-controls,
.adaptive-column {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 0.9rem !important;
  gap: 0.7rem !important;
}
table {
  width: 100% !important;
  border-collapse: collapse !important;
  background: #fff !important;
}
th,
td {
  padding: 11px 8px !important;
  border-bottom: 1px solid var(--line) !important;
  font-size: 14px !important;
  text-align: left !important;
  vertical-align: top !important;
}
th {
  color: var(--muted) !important;
  font-weight: 800 !important;
  background: #f8fafc !important;
}
.badge,
.pill,
.booking-pill,
.step-indicator,
.live-tag,
.v16-status {
  display: inline-block !important;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: var(--soft) !important;
  color: var(--brand-dark) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.message.ok,
.booking-inline-message.ok {
  background: #e7f8ee !important;
  color: #17633b !important;
  border: 1px solid #b7ebca !important;
}
.message.err,
.booking-inline-message.error,
.dashboard-error {
  background: #fdeaea !important;
  color: #b42318 !important;
  border: 1px solid #f9cbd3 !important;
}
.admin-dialog,
.booking-modal-box {
  background: #fff !important;
  border: 0 !important;
  border-radius: 18px !important;
  padding: 1.3rem !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25) !important;
}
.v16-next-action,
.adaptive-recommendation,
.dashboard-notice {
  background: var(--soft) !important;
  color: var(--brand-dark) !important;
  border-color: var(--brand) !important;
  border-radius: 12px !important;
}
.studio-block:hover {
  transform: none !important;
  box-shadow: var(--booking-shadow) !important;
}
@media (max-width: 860px) {
  .main,
  .studio-workspace {
    padding: 16px !important;
  }
  .side,
  .sidebar-navigation {
    padding: 14px !important;
  }
  .header,
  .studio-header,
  .admin-header,
  .booking-header,
  .dashboard-welcome {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .studio-workspace {
    width: 100% !important;
  }
}
/* Explicit definitions for classes referenced by the V17 HTML. */
.login-logo {
  display: block;
  max-width: 190px;
  max-height: 54px;
  object-fit: contain;
}
.school-welcome-panel {
  background: linear-gradient(135deg, #e9fbf7, #c8f1e9);
}
.dashboard-priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.quick-actions-panel,
.adaptive-briefing-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--booking-shadow);
}
.teacher-calendar-preferences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.weekday-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.weekday-checks label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 0;
}
.weekday-checks input {
  width: auto;
}
.view {
  min-width: 0;
}
.booking-list {
  display: grid;
  gap: 0.75rem;
}
.v16-workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.v16-step {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.v16-step b {
  display: block;
  color: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.v16-step span {
  font-weight: 700;
}
@media (max-width: 680px) {
  .teacher-calendar-preferences {
    grid-template-columns: 1fr;
  }
  .quick-actions-panel,
  .adaptive-briefing-panel {
    padding: 1rem;
  }
}
@media (max-width: 900px) {
  .v16-workflow {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .v16-workflow {
    grid-template-columns: 1fr;
  }
}

/* ===== amasomo-master.css ===== */
:root {
  --bg: #f4fbfa;
  --card: #fff;
  --text: #12312e;
  --muted: #6b7f7b;
  --brand: #10a88a;
  --brand-dark: #08745f;
  --soft: #dff5f0;
  --line: #dbe9e6;
  --danger: #d94a4a;
  --success: #17633b;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.page {
  min-height: 100vh;
  display: flex;
}
.hero {
  flex: 1;
  background: linear-gradient(135deg, #e9fbf7, #c8f1e9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.hero-inner {
  max-width: 520px;
}
.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  margin: 14px 0;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
}
.auth {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(18, 49, 46, 0.04);
}
.card {
  width: 100%;
  max-width: 440px;
}
.logo {
  max-height: 54px;
  max-width: 190px;
  object-fit: contain;
  margin-bottom: 14px;
}
.badge {
  display: inline-block;
  background: var(--soft);
  color: var(--brand-dark);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
h2 {
  font-size: 27px;
  margin-bottom: 8px;
}
h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.field {
  margin: 14px 0;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
textarea {
  min-height: 96px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--soft);
}
.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  width: 100%;
  font-size: 15px;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn.secondary {
  background: var(--soft);
  color: var(--brand-dark);
}
.btn.danger {
  background: var(--danger);
}
.btn.inline {
  width: auto;
}
.message {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}
.message.ok {
  display: block;
  background: #e6f7ee;
  color: #17633b;
  border: 1px solid #b7ebca;
}
.message.err {
  display: block;
  background: #fdeaea;
  color: #d94a4a;
  border: 1px solid #f9cbd3;
}
.links {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
.side {
  background: #0d3b34;
  color: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.side .logo {
  filter: brightness(0) invert(1);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav a,
.nav button {
  background: transparent;
  border: 0;
  color: #d8f6ef;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.nav a.active,
.nav a:hover,
.nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.main {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.full {
  grid-column: 1/-1;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 800;
}
.table-wrap {
  overflow-x: auto;
}
.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 12px;
}
.pill.danger {
  background: #fdeaea;
  color: #d94a4a;
}
.question-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
  background: #fff;
}
.option {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 9px 0;
  cursor: pointer;
  background: #fff;
}
@media (max-width: 860px) {
  .page {
    display: block;
  }
  .hero {
    padding: 28px 18px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .auth {
    width: 100%;
    padding: 18px;
  }
  .app {
    display: block;
  }
  .side {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px;
  }
  .side .logo {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
  }
  .nav a,
  .nav button {
    width: auto;
    padding: 9px 13px;
  }
  .main {
    padding: 16px;
  }
  .header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Mechanically migrated static inline declarations */
.u-static-001 {
  display: block;
}
.u-static-002 {
  padding: 2rem;
}
.u-static-003 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.u-static-004 {
  margin: 0;
}
.u-static-005 {
  color: gray;
  margin: 0;
}
.u-static-006 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.u-static-007 {
  font-weight: bold;
  font-size: 0.85rem;
}
.u-static-008 {
  color: gray;
  text-align: center;
  padding: 2rem;
}
.u-static-009 {
  background: #edf2f7;
  font-weight: bold;
}
.u-static-010 {
  color: gray;
  padding: 2rem;
}
.u-static-011 {
  min-width: 0;
}
.u-static-012 {
  font-size: 0.76rem;
  color: #64748b;
}
.u-static-013 {
  color: gray;
  padding: 0.65rem;
}
.u-static-014 {
  background: #e0f2fe;
  font-weight: bold;
}
.u-static-015 {
  text-align: right;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: bold;
}
.u-static-016 {
  margin-top: 12px;
}
.u-static-017 {
  margin-bottom: 18px;
}
.u-static-018 {
  margin-top: 12px;
  display: none;
}
.u-static-019 {
  grid-template-columns: 1fr;
}
.u-static-020 {
  font-size: 34px;
  font-weight: 900;
}
.u-static-021 {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}
.u-static-022 {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.u-static-023 {
  padding: 0.5rem 1rem;
}
.u-static-024 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
}
.u-static-025 {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.u-static-026 {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}
.u-static-027 {
  padding: 0.5rem 1rem;
}
.u-static-028 {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
}
.u-static-029 {
  margin-bottom: 1rem;
}
.u-static-030 {
  width: 100%;
  padding: 0.5rem;
}
.u-static-031 {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}
.u-static-032 {
  margin-bottom: 1.5rem;
}
.u-static-033 {
  margin-bottom: 1rem;
}
.u-static-034 {
  margin-bottom: 1.5rem;
  width: 100%;
}
.u-static-035 {
  margin-bottom: 1.5rem;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 6px;
}
.u-static-036 {
  margin-top: 0.5rem;
  width: 100%;
}
.u-static-037 {
  margin-bottom: 1.5rem;
  background: #edf4f2;
  padding: 1rem;
  border-radius: 6px;
}
.u-static-038 {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}
.u-static-039 {
  width: 100%;
}
.u-static-040 {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1rem;
}
.u-static-041 {
  width: 100%;
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
}
.u-static-042 {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  display: none;
}
.u-static-043 {
  position: sticky;
  top: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.u-static-044 {
  margin: 0.5rem 0;
  display: flex;
  gap: 1rem;
}
.u-static-045 {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}
.u-static-046 {
  margin: 0.5rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 120px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 0.5rem;
  background: #fafafa;
}
.u-static-047 {
  display: flex;
  gap: 0.5rem;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.u-static-048 {
  flex: 1;
  padding: 0.25rem;
}
.u-static-049 {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}
.u-static-050 {
  margin-top: 0;
}
.u-static-051 {
  border: 1px solid #ddd;
  padding: 1rem;
  background: #fff;
  border-radius: 6px;
}
.u-static-052 {
  color: var(--brand, #10a88a);
  margin-top: 0;
  font-size: 1.3rem;
}
.u-static-053 {
  font-size: 0.8rem;
  background: #eee;
  font-weight: bold;
}
.u-static-054 {
  font-size: 0.8rem;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: bold;
  margin-left: 0.5rem;
}
.u-static-055 {
  margin-top: 1rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.u-static-056 {
  border: 0;
  border-top: 1px solid #eee;
  margin: 1rem 0;
}
.u-static-057 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}
.u-static-058 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.u-static-059 {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  display: block;
}
.u-static-060 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.u-static-061 {
  color: gray;
  margin: 0.25rem 0 0 0;
}
.u-static-062 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
  background: #f8fafc;
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.u-static-063 {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.u-static-064 {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.u-static-065 {
  color: gray;
}
.u-static-066 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  margin: 0;
}
.u-static-067 {
  color: gray;
  padding: 0.25rem;
}
.u-static-068 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.u-static-069 {
  flex: 1;
  padding: 0.4rem;
}
.u-static-070 {
  flex: 2;
  padding: 0.4rem;
}
.u-static-071 {
  padding: 0.4rem 0.8rem;
  background: #dc2626;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
.u-static-072 {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
}
.u-static-073 {
  font-size: 1.4rem;
}
.u-static-074 {
  font-weight: bold;
  color: #128c7e;
  font-size: 0.85rem;
}
.u-static-075 {
  color: gray;
  font-size: 0.75rem;
}
.u-static-076 {
  color: #2563eb;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 220px;
}
.u-static-077 {
  background: #f8fafc;
  padding: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
  margin-top: 0.25rem;
  border-radius: 4px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.u-static-078 {
  font-size: 1.1rem;
}
.u-static-079 {
  color: #128c7e;
}
.u-static-080 {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}
.u-static-081 {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
}
.u-static-082 {
  margin-top: 0.25rem;
}
.u-static-083 {
  font-weight: bold;
  color: var(--brand, #10a88a);
  font-size: 0.95rem;
}
.u-static-084 {
  background: #f8fafc;
  padding: 0.5rem;
  font-size: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.u-static-085 {
  color: gray;
  font-style: italic;
  margin-top: 0.5rem;
}
.u-static-086 {
  color: gray;
  font-style: italic;
}
.u-static-087 {
  color: #dc2626;
}
.u-static-088 {
  background: #edf2f7;
  font-weight: bold;
}
.u-static-089 {
  color: gray;
  padding: 1rem;
}
.u-static-090 {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.u-static-091 {
  background: #ecfeff;
  font-weight: bold;
}
.u-static-092 {
  background: #e0f2fe;
  font-weight: bold;
}
.u-static-093 {
  margin: 0 0 0.35rem 0;
  color: var(--brand, #10a88a);
}
.u-static-094 {
  margin: 0 0 0.5rem 0;
  color: #4a5568;
}
.u-static-095 {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
}
.u-static-096 {
  margin-top: 0.75rem;
}
.u-static-097 {
  cursor: pointer;
  font-weight: bold;
}
.u-static-098 {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}
.u-static-099 {
  color: var(--brand, #10a88a);
  font-weight: bold;
}
.u-static-100 {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 130px;
}
.u-static-101 {
  padding: 2rem;
}
.u-static-102 {
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}
.u-static-103 {
  margin: 0;
}
.u-static-104 {
  color: gray;
  margin: 0.25rem 0 0;
}
.u-static-105 {
  margin-top: 1rem;
}
.u-static-106 {
  color: gray;
}
.u-static-107 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.u-static-108 {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.5rem;
}
.u-static-109 {
  margin-top: 1.2rem;
}
.u-static-110 {
  display: none;
}
.u-static-111 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.u-static-112 {
  color: gray;
  margin: 0.25rem 0;
}
.u-static-113 {
  margin-top: 0.8rem;
}
.u-static-114 {
  grid-template-columns: 2fr 1fr;
}
.u-static-115 {
  color: #b42318;
}
.u-static-116 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.u-static-117 {
  margin-top: 0.5rem;
  color: #64748b;
}
.u-static-118 {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.u-static-119 {
  width: 100%;
}
.u-static-120 {
  position: sticky;
  top: 15px;
}

/* V5 unified component geometry — Booking is the visual reference. */
:root {
  --ui-panel-radius: 18px;
  --ui-card-radius: 14px;
  --ui-control-radius: 13px;
  --ui-toolbar-radius: 14px;
  --ui-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  --ui-card-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
  --ui-gap: 0.8rem;
}
.header,
.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.card,
.panel,
.booking-panel,
.student-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--ui-panel-radius);
  padding: 1.25rem;
  box-shadow: var(--ui-shadow);
}
.booking-card,
.student-card,
.dashboard-item,
.compact-item,
.item-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--ui-card-radius);
  padding: 1rem;
  box-shadow: var(--ui-card-shadow);
}
.booking-toolbar,
.student-toolbar,
.dashboard-search {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--ui-toolbar-radius);
  padding: 0.9rem;
  gap: 0.7rem;
  margin: 0.9rem 0;
}
.booking-tabs,
.quick-tabs,
.student-tabs,
.profile-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}
.booking-tabs button,
.quick-tabs button,
.student-tabs .btn,
.profile-tabs .btn {
  width: auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.booking-tabs button.active,
.quick-tabs button.active,
.student-tabs .btn.active,
.profile-tabs .btn.active,
.student-tabs .btn:not(.secondary),
.profile-tabs .btn:not(.secondary) {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
input,
select,
textarea {
  border-radius: var(--ui-control-radius);
  border-color: var(--line);
  padding: 12px;
}
.btn {
  border-radius: 14px;
  padding: 13px 16px;
}
.pill,
.booking-pill,
.student-status {
  border-radius: 999px;
}
.main {
  padding: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .header,
  .booking-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel,
  .booking-panel,
  .student-panel {
    padding: 1rem;
  }
  .main {
    padding: 16px;
  }
}
.page-title-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  margin-right: 0.4em;
  vertical-align: -0.12em;
  color: var(--brand);
}
.page-title-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== auth-master.css ===== */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
}
.hero {
  background: linear-gradient(135deg, #e9fbf7, #c8f1e9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px);
}
.hero-inner {
  max-width: 520px;
}
.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 14px 0;
}
.hero p {
  color: var(--muted);
  font-size: 17px;
}
.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  background: #fff;
}
.auth .card {
  width: 100%;
  max-width: 440px;
}
.auth-links,
.school-actions {
  display: grid;
  gap: 0.75rem;
}
.school-actions .btn {
  width: 100%;
}
.school-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  background: var(--school-bg, #f4f7f8);
  font-family: var(--school-font, Arial);
}
.school-welcome {
  padding: clamp(32px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--school-main, #172126);
}
.school-welcome img {
  max-width: 180px;
  max-height: 110px;
  object-fit: contain;
  margin-bottom: 35px;
}
.school-welcome p {
  margin: 7px 0;
  color: var(--school-secondary, #68747a);
}
.school-auth {
  background: #fff;
  padding: clamp(20px, 7vw, 100px);
  display: flex;
  align-items: center;
}
.school-auth .card {
  width: 100%;
  max-width: 440px;
  margin: auto;
}
.school-auth .btn {
  background: var(--school-button, #10a88a);
}
.school-auth .btn.secondary {
  background: var(--soft);
  color: var(--brand-dark);
}
.school-contact {
  margin-top: 24px;
  color: var(--school-secondary, #68747a);
}
@media (max-width: 800px) {
  .page,
  .school-page {
    grid-template-columns: 1fr;
  }
  .hero,
  .school-welcome {
    padding: 32px 22px;
  }
  .auth,
  .school-auth {
    padding: 24px 18px;
  }
  .hero h1 {
    font-size: 32px;
  }
}
.school-search-field {
  position: relative;
}
.school-suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  max-height: 260px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
  padding: 0.35rem;
}
.school-suggestion {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 0;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.school-suggestion:hover,
.school-suggestion:focus {
  background: var(--soft);
  outline: none;
}
.school-suggestion strong,
.school-suggestion span {
  display: block;
}
.school-suggestion span {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.activation-help {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.activation-help p {
  margin: 0 0 0.65rem;
}
.activation-help .btn {
  width: 100%;
}
.portal-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.portal-actions .btn {
  width: 100%;
  text-align: center;
}

/* ===== booking-master.css ===== */
/* BOOKING COMPONENTS */
:root {
  --booking-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line, #dbe9e6);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.booking-header p {
  color: var(--muted, #6b7f7b);
  margin-top: 0.3rem;
}
.booking-header .btn {
  width: auto;
}

.booking-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.booking-tabs button {
  border: 1px solid var(--line, #dbe9e6);
  background: #fff;
  color: var(--brand-dark, #08745f);
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.booking-tabs button.active {
  background: var(--brand, #10a88a);
  border-color: var(--brand, #10a88a);
  color: #fff;
}

.booking-view[hidden] {
  display: none !important;
}

.booking-panel {
  background: #fff;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--booking-shadow);
}

.booking-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.booking-panel h3 {
  margin-top: 1rem;
}

.booking-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.booking-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.booking-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.booking-stat {
  background: #fff;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--booking-shadow);
}

.booking-stat span {
  display: block;
  color: var(--muted, #6b7f7b);
  font-size: 0.82rem;
  font-weight: 800;
}
.booking-stat strong {
  display: block;
  color: var(--brand-dark, #08745f);
  font-size: 1.7rem;
  margin-top: 0.15rem;
}

.booking-toolbar {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(130px, 1fr));
  gap: 0.7rem;
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem;
  margin: 0.9rem 0;
}

.booking-toolbar.compact {
  grid-template-columns: 2fr repeat(3, minmax(135px, 1fr));
}
.booking-toolbar label {
  font-size: 0.78rem;
}

.booking-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.booking-field.full {
  grid-column: 1 / -1;
}
.booking-field small {
  display: block;
  color: var(--muted, #6b7f7b);
  margin-top: 0.3rem;
}

.booking-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.8rem;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 13px;
  background: #f8fafc;
}

.booking-checks label,
.booking-student-checks label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 700;
}

.booking-checks input,
.booking-student-checks input {
  width: auto;
}

.booking-student-checks {
  max-height: 190px;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 13px;
  background: #f8fafc;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.booking-actions .btn,
.booking-card .btn,
.booking-panel > .btn {
  width: auto;
}

.booking-list {
  display: grid;
  gap: 0.75rem;
}

.booking-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
}

.booking-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.booking-card h3 {
  color: var(--brand-dark, #08745f);
  margin: 0.2rem 0 0.4rem;
}
.booking-card p {
  margin: 0.28rem 0;
}
.booking-card.completed {
  background: #f0fdf4;
  border-top: 4px solid #16a34a;
}
.booking-card.cancelled {
  opacity: 0.78;
}

.booking-muted {
  color: var(--muted, #6b7f7b);
  font-size: 0.86rem;
}
.booking-empty {
  color: var(--muted, #6b7f7b);
  text-align: center;
  padding: 2rem 1rem;
}

.booking-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0;
}
.booking-pill {
  display: inline-block;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: var(--soft, #dff5f0);
  color: var(--brand-dark, #08745f);
  font-size: 0.76rem;
  font-weight: 800;
}
.booking-pill.warning {
  background: #fff7d6;
  color: #8a6500;
}
.booking-pill.danger {
  background: #fdeaea;
  color: #b42318;
}
.booking-pill.success {
  background: #e7f8ee;
  color: #17633b;
}

.booking-preview {
  position: sticky;
  top: 1rem;
  background: linear-gradient(145deg, #fff, var(--soft, #dff5f0));
}

.booking-day {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem;
}

.booking-day h3 {
  margin: 0 0 0.7rem;
  color: var(--brand-dark, #08745f);
}
.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booking-slot {
  border: 1px solid var(--brand, #10a88a);
  color: var(--brand-dark, #08745f);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.booking-slot:hover {
  background: var(--soft, #dff5f0);
}
.booking-slot[disabled] {
  border-color: #cbd5e1;
  color: #94a3b8;
  background: #f8fafc;
  cursor: not-allowed;
}

/* Live month calendar and timeline selector */
.live-calendar-card {
  overflow: hidden;
}

.live-calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.calendar-open-filter {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #f8fafc;
  border: 1px solid var(--line, #dbe9e6);
  padding: 0.62rem 0.8rem;
  border-radius: 12px;
  margin: 0;
}

.calendar-open-filter input {
  width: auto;
}

.calendar-preferences {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  align-items: center;
  margin: 0.8rem 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}
.calendar-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  display: inline-block;
}
.calendar-dot.available {
  background: #22a06b;
}
.calendar-dot.few {
  background: #e7b416;
}
.calendar-dot.full {
  background: #dc4c4c;
}
.calendar-dot.selected {
  background: #7950c8;
}

.calendar-rule-strip {
  background: var(--soft, #dff5f0);
  color: var(--brand-dark, #08745f);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin: 0.8rem 0 1rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.live-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.calendar-month-panel {
  padding: 1rem;
  min-width: 0;
}

.calendar-month-nav {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.calendar-month-nav h2 {
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
}

.calendar-nav-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 11px;
  background: #fff;
  color: var(--brand-dark, #08745f);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.calendar-nav-button:hover:not(:disabled) {
  background: var(--soft, #dff5f0);
}
.calendar-nav-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calendar-weekdays,
.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.42rem;
}

.calendar-weekdays {
  margin-bottom: 0.42rem;
}
.calendar-weekdays div {
  text-align: center;
  color: var(--muted, #6b7f7b);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-day-cell {
  position: relative;
  grid-column: auto;
  min-height: 76px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 0.55rem;
  background: #f8fafc;
  text-align: left;
  color: #64748b;
  cursor: default;
  overflow: hidden;
}

.calendar-day-cell.blank {
  visibility: hidden;
}
.calendar-day-cell .day-number {
  display: block;
  font-size: 0.94rem;
  font-weight: 900;
}
.calendar-day-cell .day-slots {
  display: block;
  margin-top: 0.38rem;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.2;
}
.calendar-day-cell.available,
.calendar-day-cell.few,
.calendar-day-cell.full {
  cursor: pointer;
}
.calendar-day-cell.available {
  background: #e9f8f1;
  border-color: #7ed6ad;
  color: #17633b;
}
.calendar-day-cell.few {
  background: #fff8dc;
  border-color: #eccf63;
  color: #7a5a00;
}
.calendar-day-cell.full {
  background: #fff0f0;
  border-color: #efaaaa;
  color: #a52a2a;
}
.calendar-day-cell.closed {
  background: #f1f5f9;
  color: #94a3b8;
}
.calendar-day-cell.past {
  opacity: 0.52;
}
.calendar-day-cell.selected {
  background: #7950c8;
  border-color: #6540b5;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(121, 80, 200, 0.16);
}

.calendar-timeline-panel {
  background: #fbfbfe;
  border-left: 1px solid var(--line, #dbe9e6);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 470px;
}

.calendar-timeline-panel h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}
.calendar-timeline-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.9rem 0;
  flex: 1;
  align-content: start;
}

.calendar-timeline-slot {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.45rem;
  background: #fff;
  color: #475569;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  font-size: 0.82rem;
}

.calendar-timeline-slot.open {
  border-color: #55bd8b;
  color: #17633b;
  background: #effbf5;
}
.calendar-timeline-slot.busy {
  border-color: #e5b1b1;
  color: #a52a2a;
  background: #fff2f2;
  cursor: not-allowed;
}
.calendar-timeline-slot.chosen {
  border-color: #6540b5;
  color: #fff;
  background: #7950c8;
  box-shadow: 0 0 0 3px rgba(121, 80, 200, 0.14);
}
.calendar-timeline-slot[hidden] {
  display: none;
}
.calendar-timeline-slot small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.62rem;
  line-height: 1.2;
  font-weight: 800;
}
.calendar-timeline-empty {
  grid-column: 1 / -1;
  padding: 1.5rem 0.5rem;
  text-align: center;
  color: var(--muted, #6b7f7b);
}

@media (max-width: 1100px) {
  .calendar-preferences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .live-calendar-layout {
    grid-template-columns: 1fr;
  }
  .calendar-timeline-panel {
    border-left: 0;
    border-top: 1px solid var(--line, #dbe9e6);
    min-height: auto;
  }
  .calendar-timeline-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.58);
  z-index: 80;
}

.booking-modal.open {
  display: flex;
}
.booking-modal-box {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.booking-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.booking-modal-head .btn {
  width: auto;
}

.booking-inline-message {
  margin: 0.75rem 0;
}
.booking-inline-message:empty {
  display: none;
}

.booking-inline-message.ok,
.booking-inline-message.error {
  display: block;
  border-radius: 12px;
  padding: 0.75rem;
  font-weight: 700;
}

.booking-inline-message.ok {
  background: #e7f8ee;
  color: #17633b;
  border: 1px solid #b7ebca;
}
.booking-inline-message.error {
  background: #fdeaea;
  color: #b42318;
  border: 1px solid #f9cbd3;
}
.import-failures {
  margin: 1rem 0;
  padding: 1rem;
  border: 2px solid #b42318;
  border-radius: 14px;
  background: #fff4f2;
  color: #7a271a;
}
.import-failures h3,
.import-error-text {
  color: #b42318;
}
.import-failures th {
  color: #7a271a;
}
.table-sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}
.table-sort-button:hover,
.table-sort-button:focus {
  color: var(--brand-dark);
  text-decoration: underline;
}
.credential-reveal-link {
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.credential-reveal-link:hover {
  text-decoration: underline;
}
.school-assignment-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.school-assignment-fieldset legend {
  font-weight: 800;
  padding: 0 6px;
}
.school-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
}
.school-assignment-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.school-assignment-grid input {
  width: auto;
}
.super-availability-editor {
  min-width: min(780px, 90vw);
}
.super-availability-row {
  display: grid;
  grid-template-columns:
    minmax(150px, 1.4fr) minmax(120px, 1fr) auto minmax(120px, 1fr)
    auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}
.super-availability-row input,
.super-availability-row select {
  margin: 0;
}
.super-availability-exception {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #f9cbd3;
  border-radius: 12px;
  background: #fdeaea;
  color: #b42318;
}
.super-availability-exception input {
  width: auto;
}
@media (max-width: 700px) {
  .super-availability-row {
    grid-template-columns: 1fr 1fr;
  }
  .super-availability-row span {
    display: none;
  }
}

.booking-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.booking-quick-actions .btn {
  width: auto;
}

@media (max-width: 1050px) {
  .booking-grid-2,
  .booking-grid-3,
  .booking-toolbar,
  .booking-toolbar.compact {
    grid-template-columns: 1fr;
  }
  .booking-preview {
    position: static;
  }
}

@media (max-width: 680px) {
  .booking-form-grid,
  .booking-checks {
    grid-template-columns: 1fr;
  }
  .booking-field.full {
    grid-column: auto;
  }
  .booking-card-top {
    flex-direction: column;
  }
  .booking-modal {
    padding: 0.7rem;
  }
  .calendar-preferences {
    grid-template-columns: 1fr;
  }
  .calendar-month-panel {
    padding: 0.65rem;
  }
  .calendar-weekdays,
  .calendar-days-grid {
    gap: 0.22rem;
  }
  .calendar-day-cell {
    min-height: 58px;
    padding: 0.38rem;
    border-radius: 8px;
  }
  .calendar-day-cell .day-slots {
    font-size: 0.58rem;
  }
  .calendar-timeline-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.booking-panel-spaced {
  margin-top: 1rem;
}
.booking-action-spaced {
  margin-top: 0.75rem;
}
.booking-label-spaced {
  margin-top: 0.7rem;
}
.booking-note-spaced {
  margin-top: 0.8rem;
}

/* ===== dashboard-master.css ===== */
.dashboard-head-actions,
.dashboard-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.dashboard-head-actions .btn,
.dashboard-actions .btn,
.quick-actions .btn {
  width: auto;
}
.dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}
.dashboard-clock,
.dashboard-level {
  text-align: right;
}
.dashboard-clock strong {
  display: block;
  font-size: 28px;
}
.dashboard-level strong {
  display: block;
  font-size: 26px;
}
.dashboard-search {
  margin-bottom: 1rem;
}
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.dashboard-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.dashboard-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.dashboard-stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.7rem;
}
.dashboard-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.dashboard-title h3 {
  margin: 0;
}
.dashboard-list {
  display: grid;
  gap: 0.75rem;
}
.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}
.dashboard-item strong {
  display: block;
}
.dashboard-item .small {
  display: block;
}
.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
}
.dashboard-notice {
  padding: 12px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 700;
}
.dashboard-error {
  padding: 12px;
  border-radius: 13px;
  background: #fdeaea;
  color: #b42318;
  border: 1px solid #f9cbd3;
}
.hidden {
  display: none !important;
}
@media (max-width: 860px) {
  .dashboard-welcome,
  .dashboard-item {
    flex-direction: column;
  }
  .dashboard-clock,
  .dashboard-level {
    text-align: left;
  }
  .dashboard-head-actions,
  .dashboard-actions,
  .quick-actions {
    width: 100%;
  }
  .dashboard-head-actions .btn,
  .dashboard-actions .btn,
  .quick-actions .btn {
    width: 100%;
  }
}

/* ===== profile-master.css ===== */
/* PROFILE COMPONENTS — matched to booking-master.css */

.profile-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.profile-tabs .btn {
  width: auto;
  border: 1px solid var(--line, #dbe9e6);
  background: #fff;
  color: var(--brand-dark, #08745f);
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.profile-tabs .btn:not(.secondary),
.profile-tabs .btn.active {
  background: var(--brand, #10a88a);
  border-color: var(--brand, #10a88a);
  color: #fff;
}

.profile-tabs .btn.secondary {
  background: #fff;
  border-color: var(--line, #dbe9e6);
  color: var(--brand-dark, #08745f);
}

.profile-view {
  display: none;
}
.profile-view.active {
  display: block;
}

/* Same card rendering as .booking-panel */
.profile-view > .panel,
.interface-layout > .panel {
  background: #fff;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.profile-view .panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.profile-view .panel h3 {
  margin-top: 1rem;
}

.profile-view .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.profile-view .field.full {
  grid-column: 1 / -1;
}

.profile-view hr {
  border: 0;
  border-top: 1px solid var(--line, #dbe9e6);
  margin: 1rem 0;
}

.profile-view .panel > .btn {
  width: auto;
}

.interface-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.interface-preview {
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 14px;
  padding: 1rem;
  min-height: 470px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.interface-preview img {
  max-width: 150px;
  max-height: 100px;
  margin: 0 auto 28px;
  object-fit: contain;
}

.interface-preview p {
  margin: 7px 0;
}

.interface-preview button {
  border: 0;
  color: #fff;
  padding: 12px 25px;
  border-radius: 11px;
  margin: 22px auto 0;
}

.control-row {
  display: grid;
  grid-template-columns: 2fr 110px 90px;
  gap: 10px;
}

.interface-line-controls {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.interface-line {
  display: grid;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 14px;
  background: #f8fafc;
  min-width: 0;
  max-width: 100%;
}
.line-toggle {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-weight: 800;
  margin: 0;
}
.line-toggle input {
  width: auto;
}
.interface-line-fields {
  display: grid;
  grid-template-columns:
    minmax(180px, 2fr) minmax(92px, 0.55fr) minmax(130px, 1fr)
    minmax(92px, 0.55fr);
  gap: 0.65rem;
  min-width: 0;
}
.interface-line-fields label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #68747a);
  font-weight: 800;
}
.interface-line-fields input,
.interface-line-fields select {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}
.interface-line-fields input[type="color"] {
  height: 46px;
  padding: 5px !important;
  cursor: pointer;
}
.teacher-management-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.teacher-management-heading h2 {
  margin: 0;
}
.calendar-options {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.calendar-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}
.calendar-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: var(--brand, #10a88a);
}
.calendar-list-title {
  margin-top: 1.4rem;
}
.calendar-id-text {
  overflow-wrap: anywhere;
}
.row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.row-actions .btn {
  width: auto;
}

.url-row {
  display: flex;
  gap: 8px;
}
.url-row input {
  flex: 1;
}
.url-row .btn {
  width: auto;
}

.logo-preview {
  max-width: 130px;
  max-height: 80px;
  margin: 10px 0;
}

.detail {
  background: #f8fafc;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 14px;
  padding: 1rem;
}

.detail b {
  display: block;
  margin-top: 3px;
  color: var(--brand-dark, #08745f);
}

.managed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

@media (max-width: 1050px) {
  .interface-layout {
    grid-template-columns: 1fr;
  }
  .interface-line-fields {
    grid-template-columns:
      minmax(0, 2fr) minmax(92px, 0.65fr) minmax(130px, 1fr)
      minmax(92px, 0.65fr);
  }
}

@media (max-width: 680px) {
  .profile-view .grid,
  .control-row,
  .managed-grid {
    grid-template-columns: 1fr;
  }
  .interface-line-fields {
    grid-template-columns: 1fr 1fr;
  }
  .interface-line-fields .line-text-field {
    grid-column: 1/-1;
  }
  .teacher-management-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .teacher-management-heading .btn {
    width: 100%;
  }

  .profile-view .field.full {
    grid-column: auto;
  }
  .url-row {
    flex-direction: column;
  }
  .url-row .btn {
    width: 100%;
  }
}

/* ===== students-master.css ===== */
/* STUDENT MANAGEMENT COMPONENTS — matched to booking-master.css */

.student-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.student-tabs .btn {
  width: auto;
  border: 1px solid var(--line, #dbe9e6);
  background: #fff;
  color: var(--brand-dark, #08745f);
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.student-tabs .btn:not(.secondary),
.student-tabs .btn.active {
  background: var(--brand, #10a88a);
  border-color: var(--brand, #10a88a);
  color: #fff;
}

.student-tabs .btn.secondary {
  background: #fff;
  border-color: var(--line, #dbe9e6);
  color: var(--brand-dark, #08745f);
}

.row-actions,
.check-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.row-actions .btn,
.check-actions .btn,
.student-panel > .btn {
  width: auto;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.student-grid .full {
  grid-column: 1 / -1;
}

.student-panel {
  background: #fff;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.student-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.student-panel h3 {
  margin-top: 1rem;
}
.student-panel small {
  color: var(--muted, #6b7f7b);
}

.notice {
  padding: 0.75rem;
  border-radius: 12px;
  margin: 0.75rem 0;
  display: none;
  font-weight: 700;
}

.notice.show {
  display: block;
}
.notice.ok {
  background: #e7f8ee;
  color: #17633b;
  border: 1px solid #b7ebca;
}
.notice.err {
  background: #fdeaea;
  color: #b42318;
  border: 1px solid #f9cbd3;
}

.toolbar {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(130px, 1fr));
  gap: 0.7rem;
  align-items: end;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem;
  margin: 0.9rem 0;
}

.toolbar label {
  font-size: 0.78rem;
}
.table-scroll {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.data-table th,
.data-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line, #dbe9e6);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--muted, #6b7f7b);
}

.data-table input[type="checkbox"] {
  width: auto;
}

.status-pill {
  display: inline-block;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.status-active {
  color: #17633b;
  background: #e7f8ee;
}
.status-inactive {
  color: #b42318;
  background: #fdeaea;
}

.cohort-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  margin: 0.75rem 0;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.035);
}

.member-list {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border: 1px solid var(--line, #dbe9e6);
  border-radius: 13px;
  background: #f8fafc;
}

.member-list label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  font-weight: 700;
}

.student-panel input[type="checkbox"],
.modal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  align-self: center;
  accent-color: var(--brand, #10a88a);
}

.inline-create,
.password-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.inline-create select,
.password-row input {
  flex: 1;
}
.inline-create .btn,
.password-row .btn {
  width: auto;
  white-space: nowrap;
}

.member-list input {
  width: auto;
}

.welcome-preview {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line, #dbe9e6);
  padding: 1rem;
  border-radius: 13px;
  max-height: 450px;
  overflow: auto;
}

.bulk-format {
  background: var(--soft, #dff5f0);
  padding: 1rem;
  border-radius: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.58);
  z-index: 80;
}

.modal.open {
  display: flex;
}

.modal-box {
  width: min(850px, 100%);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-head button {
  border: 0;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.counter {
  display: inline-block;
  background: var(--soft, #dff5f0);
  color: var(--brand-dark, #08745f);
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.inline-select {
  min-width: 150px;
}
.empty {
  color: var(--muted, #6b7f7b);
  padding: 2rem 1rem;
  text-align: center;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1050px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .student-grid {
    grid-template-columns: 1fr;
  }
  .student-grid .full {
    grid-column: auto;
  }
  .modal {
    padding: 0.7rem;
  }
}

/* ===== admin-master.css ===== */
.admin-shell {
  min-height: 100vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.admin-header .btn {
  width: auto;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.admin-stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.8rem;
  margin-top: 0.25rem;
}
@media (max-width: 700px) {
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-header .btn {
    width: 100%;
  }
}
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  overflow: auto;
  margin: 1rem 0;
}
.admin-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.admin-tabs button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-toolbar input {
  flex: 1;
}
.admin-row-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.admin-dialog {
  width: min(620px, calc(100% - 2rem));
  border: 0;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}
.admin-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}
.admin-dialog-close {
  float: right;
  border: 0;
  background: var(--soft);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
}
.admin-record-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.admin-record-form .btn {
  grid-column: 1/-1;
}
@media (max-width: 700px) {
  .admin-toolbar {
    flex-direction: column;
  }
  .admin-record-form {
    grid-template-columns: 1fr;
  }
}

.admin-inline-field {
  min-width: 135px;
  padding: 8px !important;
  border-radius: 8px !important;
  margin: 2px 0;
}
.sortable-admin-table td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}
.admin-toolbar #toggleInlineEditButton {
  white-space: nowrap;
}

/* ================================================================
   AMASOMO 2026 CANONICAL UI — FINAL OVERRIDE
   Six type sizes, three core colours, one spacing rhythm,
   one button language and one hierarchy across every page.
   ================================================================ */
:root {
  --ui-dark: #0d3b34;
  --ui-brand: #10a88a;
  --ui-white: #ffffff;
  --ui-font: "Segoe UI", Arial, sans-serif;
  --ui-12: 12px;
  --ui-14: 14px;
  --ui-16: 16px;
  --ui-18: 18px;
  --ui-24: 24px;
  --ui-32: 32px;
  --ui-space-1: 8px;
  --ui-space-2: 16px;
  --ui-space-3: 24px;
  --ui-space-4: 32px;
  --ui-control-radius: 12px;
  --ui-card-radius: 16px;
  --bg: rgba(16, 168, 138, 0.06) !important;
  --card: var(--ui-white) !important;
  --text: var(--ui-dark) !important;
  --ink: var(--ui-dark) !important;
  --muted: rgba(13, 59, 52, 0.68) !important;
  --brand: var(--ui-brand) !important;
  --brand-dark: var(--ui-dark) !important;
  --soft: rgba(16, 168, 138, 0.1) !important;
  --line: rgba(13, 59, 52, 0.14) !important;
  --danger: var(--ui-brand) !important;
  --success: var(--ui-brand) !important;
}
*,
*::before,
*::after {
  font-family: var(--ui-font) !important;
}
html {
  font-size: 16px;
}
body {
  background: var(--bg) !important;
  color: var(--ui-dark) !important;
  font-size: var(--ui-14) !important;
  line-height: 1.5 !important;
}
h1,
h2,
h3,
h4,
p,
.small,
label {
  font-family: var(--ui-font) !important;
  color: var(--ui-dark) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
h1 {
  font-size: var(--ui-32) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
h2 {
  font-size: var(--ui-24) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin: 0 0 var(--ui-space-1) !important;
}
h3 {
  font-size: var(--ui-18) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  margin: 0 0 var(--ui-space-1) !important;
}
h4 {
  font-size: var(--ui-16) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  margin: 0 0 var(--ui-space-1) !important;
}
p,
li,
td,
input,
select,
textarea {
  font-size: var(--ui-14) !important;
}
.small,
small,
label,
th,
.booking-muted,
.dashboard-stat span,
.booking-stat span,
.admin-stat span {
  font-size: var(--ui-12) !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
}
strong,
b {
  font-weight: 700 !important;
}
.page-title-icon {
  display: none !important;
}
.hero,
.school-welcome-panel,
.school-welcome {
  background: var(--soft) !important;
  color: var(--ui-dark) !important;
}

.main {
  padding: var(--ui-space-3) !important;
  max-width: 1280px !important;
}
.header,
.booking-header,
.admin-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: var(--ui-space-2) !important;
  padding: 0 0 var(--ui-space-2) !important;
  margin: 0 0 var(--ui-space-2) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.header > div:first-child,
.booking-header > div:first-child,
.admin-header > div:first-child {
  display: grid !important;
  gap: var(--ui-space-1) !important;
}
.header p,
.booking-header p,
.admin-header p {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: var(--ui-14) !important;
}

.panel,
.card,
.booking-panel,
.booking-card,
.dashboard-item,
.dashboard-stat,
.booking-stat,
.admin-stat,
.student-panel,
.profile-view > .panel,
.interface-layout > .panel,
.quick-actions-panel,
.question-card,
.booking-day {
  background: var(--ui-white) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ui-card-radius) !important;
  padding: var(--ui-space-2) !important;
  box-shadow: none !important;
  margin-bottom: var(--ui-space-2) !important;
}
.grid,
.dashboard-stats,
.booking-stats,
.booking-list,
.dashboard-list,
.admin-stats,
.booking-grid-2,
.booking-grid-3,
.booking-form-grid,
.interface-layout,
.managed-grid {
  gap: var(--ui-space-2) !important;
}
.dashboard-title,
.booking-card-top,
.booking-modal-head {
  gap: var(--ui-space-2) !important;
  margin-bottom: var(--ui-space-1) !important;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  min-height: 44px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ui-control-radius) !important;
  background: var(--ui-white) !important;
  color: var(--ui-dark) !important;
  box-shadow: none !important;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ui-brand) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}
.field,
.booking-field {
  margin: 0 0 var(--ui-space-2) !important;
}
label {
  display: block !important;
  font-weight: 700 !important;
  margin: 0 0 var(--ui-space-1) !important;
}

.btn,
button.btn,
.primary-action,
.secondary-action,
.booking-tabs button,
.quick-tabs button,
.admin-tabs button,
.student-tabs .btn,
.profile-tabs .btn,
.tab-navigation button,
.booking-slot,
.calendar-timeline-slot,
.calendar-nav-button,
.interface-preview button,
.modal-head button,
.admin-dialog-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  width: auto !important;
  padding: 0 var(--ui-space-2) !important;
  border: 1px solid var(--ui-brand) !important;
  border-radius: var(--ui-control-radius) !important;
  background: var(--ui-brand) !important;
  color: var(--ui-white) !important;
  font-family: var(--ui-font) !important;
  font-size: var(--ui-14) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.btn.secondary,
.btn.danger,
.secondary-action,
.booking-tabs button:not(.active),
.quick-tabs button:not(.active),
.admin-tabs button:not(.active),
.student-tabs .btn.secondary,
.profile-tabs .btn.secondary,
.tab-navigation button:not(.active) {
  background: var(--ui-brand) !important;
  color: var(--ui-white) !important;
  border-color: var(--ui-brand) !important;
  opacity: 1 !important;
}
.btn:hover,
button.btn:hover,
.primary-action:hover,
.secondary-action:hover,
.booking-tabs button:hover,
.quick-tabs button:hover,
.admin-tabs button:hover,
.student-tabs .btn:hover,
.profile-tabs .btn:hover,
.booking-slot:hover,
.calendar-timeline-slot:hover,
.calendar-nav-button:hover:not(:disabled),
.interface-preview button:hover,
.modal-head button:hover,
.admin-dialog-close:hover {
  background: var(--ui-dark) !important;
  border-color: var(--ui-dark) !important;
  color: var(--ui-white) !important;
  opacity: 1 !important;
}
.btn:focus-visible,
button:focus-visible,
a.btn:focus-visible {
  outline: 2px solid var(--ui-dark) !important;
  outline-offset: 2px !important;
}
.btn:disabled,
button:disabled,
.booking-slot[disabled],
.calendar-nav-button:disabled {
  background: var(--ui-brand) !important;
  color: var(--ui-white) !important;
  opacity: 0.38 !important;
  cursor: not-allowed !important;
}
.booking-actions,
.booking-quick-actions,
.dashboard-head-actions,
.dashboard-actions,
.quick-actions,
.row-actions,
.check-actions,
.admin-row-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: var(--ui-space-1) !important;
}
.booking-tabs,
.quick-tabs,
.admin-tabs,
.student-tabs,
.profile-tabs,
.tab-navigation {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: var(--ui-space-1) !important;
  margin: 0 0 var(--ui-space-2) !important;
}

.nav {
  gap: var(--ui-space-1) !important;
}
.nav a,
.nav button {
  min-height: 44px !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: var(--ui-control-radius) !important;
  background: transparent !important;
  color: var(--ui-white) !important;
  font-size: var(--ui-14) !important;
  font-weight: 700 !important;
  opacity: 0.82 !important;
}
.nav a.active,
.nav a:hover,
.nav button:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--ui-white) !important;
  opacity: 1 !important;
}

.badge,
.pill,
.booking-pill,
.status-pill,
.student-status {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  padding: 0 var(--ui-space-1) !important;
  border: 0 !important;
  border-radius: var(--ui-control-radius) !important;
  background: var(--soft) !important;
  color: var(--ui-dark) !important;
  font-size: var(--ui-12) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
.pill.danger,
.booking-pill.danger,
.booking-pill.warning,
.booking-pill.success,
.status-active,
.status-inactive {
  background: var(--soft) !important;
  color: var(--ui-dark) !important;
}
.calendar-day-cell,
.calendar-day-cell.available,
.calendar-day-cell.few,
.calendar-day-cell.full,
.calendar-day-cell.closed,
.calendar-day-cell.past {
  background: var(--ui-white) !important;
  border-color: var(--line) !important;
  color: var(--ui-dark) !important;
}
.calendar-day-cell.available {
  background: var(--soft) !important;
}
.calendar-day-cell.few {
  background: var(--soft) !important;
  opacity: 0.82 !important;
}
.calendar-day-cell.full,
.calendar-day-cell.closed,
.calendar-day-cell.past {
  background: var(--soft) !important;
  opacity: 0.48 !important;
}
.calendar-day-cell.selected {
  background: var(--ui-brand) !important;
  border-color: var(--ui-brand) !important;
  color: var(--ui-white) !important;
  box-shadow: none !important;
  opacity: 1 !important;
}
.calendar-dot.available,
.calendar-dot.few,
.calendar-dot.full,
.calendar-dot.selected {
  background: var(--ui-brand) !important;
}
.calendar-dot.few {
  opacity: 0.82 !important;
}
.calendar-dot.full {
  opacity: 0.48 !important;
}
.calendar-dot.selected {
  opacity: 1 !important;
}
.message,
.notice,
.booking-inline-message,
.dashboard-notice,
.dashboard-error,
.empty-state,
.booking-empty {
  padding: var(--ui-space-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ui-card-radius) !important;
  background: var(--soft) !important;
  color: var(--ui-dark) !important;
  font-size: var(--ui-14) !important;
}
.message.ok,
.message.err,
.notice.ok,
.notice.err,
.booking-inline-message.ok,
.booking-inline-message.error,
.dashboard-error {
  background: var(--soft) !important;
  color: var(--ui-dark) !important;
  border-color: var(--line) !important;
}
table {
  font-size: var(--ui-14) !important;
}
th,
td {
  padding: 12px var(--ui-space-1) !important;
  border-bottom: 1px solid var(--line) !important;
}
th {
  background: var(--soft) !important;
  font-weight: 700 !important;
}
.booking-toolbar,
.admin-toolbar,
.horizontal-control-bar,
.filter-controls,
.calendar-preferences,
.booking-checks,
.booking-student-checks,
.calendar-open-filter {
  padding: var(--ui-space-2) !important;
  gap: var(--ui-space-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ui-card-radius) !important;
  background: var(--soft) !important;
}

@media (max-width: 860px) {
  .main {
    padding: var(--ui-space-2) !important;
  }
  .header,
  .booking-header,
  .admin-header {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .dashboard-head-actions,
  .dashboard-actions,
  .quick-actions,
  .booking-actions,
  .row-actions {
    width: 100% !important;
  }
  .dashboard-head-actions .btn,
  .dashboard-actions .btn,
  .quick-actions .btn,
  .booking-actions .btn,
  .row-actions .btn {
    width: 100% !important;
  }
  h1 {
    font-size: var(--ui-24) !important;
  }
}

/* ================================================================
   FUNCTIONAL COMPONENT GROUPS — TEACHER AND STUDENT SHARED
   Applied after the complete element/function/text audit.
   ================================================================ */

/* TEXT GROUP 1 — Page identity */
.header h1,
.booking-header h1,
.admin-header h1,
.hero h1 {
  font-size: var(--ui-32) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
.header h1 + p,
.booking-header h1 + p,
.admin-header h1 + p,
.page-subtitle {
  font-size: var(--ui-14) !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

/* TEXT GROUP 2 — Semantic heading hierarchy */
h1,
.ui-h1 {
  font-size: var(--ui-32) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
h2,
.ui-h2 {
  font-size: var(--ui-24) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
h3,
.ui-h3 {
  font-size: var(--ui-18) !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}
h4,
.ui-h4 {
  font-size: var(--ui-16) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}
h5,
.ui-h5 {
  font-size: var(--ui-14) !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}
h6,
.ui-h6 {
  font-size: var(--ui-12) !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

/* TEXT GROUP 3 — Supporting copy */
.section-subtitle,
.card-subtitle,
.booking-muted,
.small,
small {
  font-size: var(--ui-12) !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
}
label,
.field-label,
.table-label {
  font-size: var(--ui-12) !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

/* BUTTON BASE — shared by Button 1, 2, 3 and 4 */
.btn,
.button-1,
.button-2,
.button-3,
.button-4,
.booking-tabs button,
.student-tabs button,
.profile-tabs button,
.admin-tabs button,
.tab-navigation button {
  min-height: 44px !important;
  padding: 0 16px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 12px !important;
  font-family: var(--ui-font) !important;
  font-size: var(--ui-14) !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* BUTTON 1 — Commit or principal page action: Create, Save, Confirm, Book */
.button-1,
.header .btn,
.booking-header .btn,
form button[type="submit"]:not(.secondary):not(.danger),
.btn:not(.secondary):not(.danger):not(.button-2):not(.button-3):not(.button-4) {
  background: var(--ui-brand) !important;
  border-color: var(--ui-brand) !important;
  color: var(--ui-white) !important;
  opacity: 1 !important;
}

/* BUTTON 2 — View navigation and toggles */
.button-2,
.booking-tabs button,
.booking-tabs button:not(.active),
.student-tabs button,
.student-tabs .btn.secondary,
.profile-tabs button,
.profile-tabs .btn.secondary,
.admin-tabs button,
.admin-tabs button:not(.active),
.tab-navigation button,
.tab-navigation button:not(.active) {
  background: var(--ui-white) !important;
  border-color: var(--ui-dark) !important;
  color: var(--ui-dark) !important;
  opacity: 1 !important;
}
.button-2.active,
.booking-tabs button.active,
.student-tabs .btn:not(.secondary),
.profile-tabs .btn:not(.secondary),
.admin-tabs button.active,
.tab-navigation button.active {
  background: var(--ui-brand) !important;
  border-color: var(--ui-brand) !important;
  color: var(--ui-white) !important;
}

/* BUTTON 3 — Utility or reversible action: Open, Copy, Clear, View, Generate */
.button-3,
.btn.secondary {
  background: var(--ui-white) !important;
  border-color: var(--ui-brand) !important;
  color: var(--ui-dark) !important;
  opacity: 1 !important;
}

/* BUTTON 4 — Destructive or closing action: Cancel, Delete, Deactivate, Close */
.button-4,
.btn.danger,
.btn.status-action,
.modal-head button,
.admin-dialog-close {
  background: var(--ui-dark) !important;
  border-color: var(--ui-dark) !important;
  color: var(--ui-white) !important;
  opacity: 1 !important;
}

/* Shared interaction states */
.btn:hover,
.button-1:hover,
.button-2:hover,
.button-3:hover,
.button-4:hover,
.booking-tabs button:hover,
.student-tabs button:hover,
.profile-tabs button:hover,
.admin-tabs button:hover {
  background: var(--ui-dark) !important;
  border-color: var(--ui-dark) !important;
  color: var(--ui-white) !important;
}
.btn:disabled,
.button-1:disabled,
.button-2:disabled,
.button-3:disabled,
.button-4:disabled {
  opacity: 0.38 !important;
}

/* CONTAINER GROUPS — identical across roles */
.header,
.booking-header,
.admin-header {
  min-height: 84px !important;
}
.booking-tabs,
.student-tabs,
.profile-tabs,
.admin-tabs {
  min-height: 44px !important;
}
.panel,
.booking-panel,
.student-panel {
  position: relative !important;
}
.panel > h2:first-child,
.booking-panel > h2:first-child,
.student-panel > h2:first-child {
  margin-bottom: 8px !important;
}
.panel > h3:first-child,
.booking-panel > h3:first-child,
.student-panel > h3:first-child {
  margin-bottom: 8px !important;
}

@media (max-width: 860px) {
  .header h1,
  .booking-header h1,
  .admin-header h1,
  .hero h1,
  h1,
  .ui-h1 {
    font-size: var(--ui-24) !important;
  }
}

/* Buttons always remain visibly separate from white page and card backgrounds. */
.btn.secondary,
.button-2,
.button-3,
.booking-tabs button:not(.active),
.student-tabs button:not(.active),
.profile-tabs button:not(.active),
.admin-tabs button:not(.active),
.tab-navigation button:not(.active) {
  background: var(--soft) !important;
  border-color: var(--ui-brand) !important;
  color: var(--ui-dark) !important;
}
.btn,
.booking-tabs button,
.nav a,
.nav button {
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease !important;
}
.btn:hover,
.booking-tabs button:hover {
  transform: translateY(-2px) !important;
}
.nav a:hover,
.nav button:hover,
.nav a.active {
  transform: translateX(4px) !important;
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .booking-tabs button,
  .nav a,
  .nav button {
    transition: none !important;
  }
  .btn:hover,
  .booking-tabs button:hover,
  .nav a:hover,
  .nav button:hover,
  .nav a.active {
    transform: none !important;
  }
}
.weekly-availability-grid {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}
.weekly-day-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(110px, 0.7fr) auto minmax(
      110px,
      0.7fr
    );
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}
.weekly-day-row label {
  font-weight: 700;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.teacher-preference-note {
  margin: 0.5rem 0 1rem;
}
.waiver-box {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff7ed;
}
.availability-warning {
  color: #9a3412 !important;
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  padding: 0.65rem 0.8rem !important;
  border-radius: 10px !important;
}
.teacher-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: end;
  min-width: 0;
}
.teacher-select-row select {
  min-width: 0;
  width: 100%;
}
.teacher-select-row .btn {
  white-space: nowrap;
}
.public-availability-page {
  background: var(--soft);
}
.public-availability-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto;
}
@media (max-width: 680px) {
  .weekly-day-row {
    grid-template-columns: 1fr 1fr;
  }
  .weekly-day-row span {
    display: none;
  }
}
@media (max-width: 680px) {
  .teacher-select-row {
    grid-template-columns: 1fr;
  }
  .teacher-select-row .btn {
    width: 100%;
  }
}

/* V23 profile controls: keep every editable line inside its card at all widths. */
.interface-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.line-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}
.line-toggle input {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
}
.interface-line-fields {
  display: grid !important;
  grid-template-columns:
    minmax(180px, 2fr) minmax(92px, 0.55fr) minmax(130px, 1fr)
    minmax(92px, 0.55fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
}
.interface-line-fields label {
  display: grid !important;
  gap: 5px !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.interface-line-fields input,
.interface-line-fields select {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.interface-line-fields input[type="color"] {
  height: 44px !important;
  padding: 5px !important;
}
.teacher-management-heading {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}
@media (max-width: 760px) {
  .interface-line-fields {
    grid-template-columns: 1fr 1fr !important;
  }
  .interface-line-fields .line-text-field {
    grid-column: 1/-1 !important;
  }
  .teacher-management-heading {
    align-items: stretch !important;
    flex-direction: column !important;
  }
}
#interfacePreview #preview_first {
  font-family: var(--preview-first-font, Arial) !important;
  font-size: var(--preview-first-size, 34px) !important;
  color: var(--preview-first-color, #172126) !important;
}
#interfacePreview #preview_second {
  font-family: var(--preview-second-font, Arial) !important;
  font-size: var(--preview-second-size, 25px) !important;
  color: var(--preview-second-color, #172126) !important;
}
#interfacePreview #preview_third {
  font-family: var(--preview-third-font, Arial) !important;
  font-size: var(--preview-third-size, 16px) !important;
  color: var(--preview-third-color, #68747a) !important;
}
#interfacePreview #preview_fourth {
  font-family: var(--preview-fourth-font, Arial) !important;
  font-size: var(--preview-fourth-size, 15px) !important;
  color: var(--preview-fourth-color, #68747a) !important;
}
.school-welcome #schoolFirst {
  font-family: var(--school-first-font, Arial) !important;
  font-size: var(--school-first-size, 34px) !important;
  color: var(--school-first-color, #172126) !important;
}
.school-welcome #schoolSecond {
  font-family: var(--school-second-font, Arial) !important;
  font-size: var(--school-second-size, 25px) !important;
  color: var(--school-second-color, #172126) !important;
}
.school-welcome #schoolThird {
  font-family: var(--school-third-font, Arial) !important;
  font-size: var(--school-third-size, 16px) !important;
  color: var(--school-third-color, #68747a) !important;
}
.school-welcome #schoolFourth {
  font-family: var(--school-fourth-font, Arial) !important;
  font-size: var(--school-fourth-size, 15px) !important;
  color: var(--school-fourth-color, #68747a) !important;
}
.tb-weekly-range {
  grid-template-columns:
    minmax(150px, 1fr) minmax(110px, 0.7fr) auto minmax(110px, 0.7fr)
    auto !important;
}
@media (max-width: 680px) {
  .tb-weekly-range {
    grid-template-columns: 1fr 1fr !important;
  }
  .tb-weekly-range .tb-week-remove {
    grid-column: 1/-1 !important;
    width: 100% !important;
  }
}

/* V26 booking reliability controls reuse the established panels, cards and buttons. */
.availability-status-panel {
  margin: 0 0 var(--ui-space-2) !important;
  padding: var(--ui-space-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--ui-card-radius) !important;
  background: var(--soft) !important;
}
.teacher-control-card {
  border-left: 4px solid var(--ui-brand) !important;
}
.teacher-control-card .booking-card-top {
  align-items: flex-start !important;
}
.teacher-control-card .booking-actions {
  min-width: min(280px, 100%) !important;
}
.teacher-private-link {
  margin-top: 12px !important;
}
.teacher-private-link input {
  width: 100% !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: var(--ui-12) !important;
  background: var(--soft) !important;
}
.teacher-merge-controls {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
}
.notification-count {
  min-width: 24px !important;
  margin-left: 6px !important;
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #fff !important;
  text-align: center !important;
}
.notification-unread {
  border-left: 4px solid var(--ui-brand) !important;
  background: #f5f7ff !important;
}
.calendar-preferences.teacher-specific-selected {
  border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(55, 76, 199, 0.08) !important;
}
.calendar-preferences.teacher-specific-selected[data-teacher-tone="1"] {
  border-color: #374cc7 !important;
  background: #f5f7ff !important;
}
.calendar-preferences.teacher-specific-selected[data-teacher-tone="2"] {
  border-color: #147d64 !important;
  background: #f2fbf8 !important;
}
.calendar-preferences.teacher-specific-selected[data-teacher-tone="3"] {
  border-color: #a15c00 !important;
  background: #fff9ef !important;
}
.calendar-preferences.teacher-specific-selected[data-teacher-tone="4"] {
  border-color: #8b3db4 !important;
  background: #fbf5ff !important;
}
.admin-tabs {
  flex-wrap: wrap !important;
}
.admin-tabs button {
  flex: 0 1 auto !important;
}
.admin-bulk-toolbar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
  padding: 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--soft) !important;
}
.admin-bulk-toolbar select {
  width: auto !important;
  min-width: 190px !important;
  margin: 0 !important;
}
.admin-bulk-toolbar .small {
  margin-left: auto !important;
}
.selection-column {
  width: 44px !important;
  text-align: center !important;
}
.selection-column input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}
.table-sort-button {
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  color: inherit !important;
  font: inherit !important;
  font-weight: 800 !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-align: left !important;
}
.table-sort-button:hover,
.table-sort-button:focus {
  color: var(--ui-brand) !important;
  text-decoration: underline !important;
}
.super-teacher-availability {
  display: grid !important;
  gap: 8px !important;
  min-width: 320px !important;
}
.super-teacher-availability .booking-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}
.super-teacher-availability .admin-row-actions {
  min-width: 0 !important;
}
.teacher-private-link input {
  font-size: 12px !important;
}
@media (max-width: 860px) {
  .teacher-control-card .booking-card-top {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .teacher-control-card .booking-actions {
    width: 100% !important;
  }
  .teacher-merge-controls {
    grid-template-columns: 1fr !important;
  }
  .admin-bulk-toolbar .small {
    width: 100% !important;
    margin-left: 0 !important;
  }
}
