:root {
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-soft: #f8fafc;
  --color-sidebar: #172033;
  --color-sidebar-2: #202b43;
  --color-sidebar-muted: #9aa7bd;
  --color-text: #172033;
  --color-muted: #647084;
  --color-border: #dde3ec;
  --color-primary: #2454d6;
  --color-primary-dark: #1b3fa5;
  --color-green: #2f9e66;
  --color-yellow: #d8a21b;
  --color-blue: #2d6cdf;
  --color-red: #d64545;
  --color-warn-bg: #fff7e4;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.85rem;
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 16px 34px rgba(17, 24, 39, 0.12);
  --sidebar-width: 17rem;
  --ples-primary: var(--color-primary);
  --ples-blue: var(--color-primary);
  --ples-primary-dark: var(--color-primary-dark);
  --ples-navy: var(--color-sidebar);
  --ples-navy-soft: var(--color-sidebar-2);
  --ples-pink: #e24d8f;
  --ples-dove: #eaf1fa;
  --ples-bg: var(--color-bg);
  --ples-card: var(--color-surface);
  --ples-border: var(--color-border);
  --ples-success: var(--color-green);
  --ples-warning: var(--color-yellow);
  --ples-danger: var(--color-red);
  --ples-muted: var(--color-muted);
  --ples-shadow: var(--shadow-card);
  --ples-radius: var(--radius-lg);
  --ples-transition: 150ms ease;
  --layout-sidebar-width: 15rem;
  --layout-content-max: 96rem;
  --space-page-x: 1.5rem;
  --space-page-y: 1.125rem;
  --space-section: 1rem;
  --space-card: 1.125rem;
  --space-grid: 0.875rem;
  --hero-padding-y: 1.55rem;
  --card-padding: 1.125rem;
  --field-gap: 0.625rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.85rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --line-tight: 1.12;
  --line-normal: 1.45;
  --line-relaxed: 1.55;
}

/* Sprint 06A Groups Management Foundation */
.status-paused {
  background: rgba(245, 158, 11, 0.14);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.28);
}

.status-archived {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.28);
}

.status-cancelled,
.status-unavailable {
  background: rgba(214, 69, 69, 0.12);
  color: #a83434;
  border-color: rgba(214, 69, 69, 0.24);
}

.status-waiting {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.24);
}

.status-left {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.24);
}

.group-color-dot {
  display: inline-flex;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7);
}

.group-color-blue,
.group-color-dot.group-color-blue {
  background: linear-gradient(135deg, #315ca8, #7fa9e6);
}

.group-color-green,
.group-color-dot.group-color-green {
  background: linear-gradient(135deg, #0f766e, #7dd3fc);
}

.group-color-orange,
.group-color-dot.group-color-orange {
  background: linear-gradient(135deg, #b45309, #fbbf24);
}

.group-color-purple,
.group-color-dot.group-color-purple {
  background: linear-gradient(135deg, #6d28d9, #c4b5fd);
}

.group-color-slate,
.group-color-dot.group-color-slate {
  background: linear-gradient(135deg, #334155, #94a3b8);
}

.group-form-identity {
  align-items: center;
}

.group-color-preview,
.group-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.group-color-preview {
  width: 148px;
  min-height: 98px;
  border-radius: 18px;
  padding: 14px;
}

.group-color-preview strong {
  font-size: 1.25rem;
}

.group-color-preview span {
  font-size: 0.78rem;
  opacity: 0.88;
}

.group-avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 auto 10px;
}

.group-table td:nth-child(11) {
  min-width: 220px;
}

.group-schedule-form,
.group-schedule-edit {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.group-schedule-edit {
  margin-bottom: 8px;
}

.group-instructor-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.group-instructor-card h2 {
  margin: 2px 0;
  font-size: 1.05rem;
}

.group-instructor-card small,
.group-instructor-card span {
  display: block;
  color: var(--color-muted);
}

.instructor-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.instructor-group-card {
  cursor: default;
}

/* Sprint 17A Office Members Registry */
.office-member-header,
.office-member-profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.office-member-header h1,
.office-member-profile-hero h1 {
  margin: 0;
  color: #07163a;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.office-member-header p,
.office-member-profile-hero p {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.office-member-header__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.office-member-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
}

.office-member-kpi,
.office-member-filters,
.office-member-table-card,
.office-member-form-identity,
.office-profile-card,
.office-member-groups {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.office-member-kpi {
  padding: 14px;
  min-height: 92px;
}

.office-member-kpi span,
.office-member-kpi small {
  display: block;
  color: var(--color-muted);
}

.office-member-kpi strong {
  display: block;
  margin: 6px 0 2px;
  color: #07163a;
  font-size: 1.55rem;
}

.office-member-kpi--blue { border-top: 3px solid #2454d6; }
.office-member-kpi--green { border-top: 3px solid #2f9e66; }
.office-member-kpi--orange { border-top: 3px solid #d8a21b; }
.office-member-kpi--slate { border-top: 3px solid #64748b; }
.office-member-kpi--red { border-top: 3px solid #d64545; }

.office-member-filters {
  padding: 14px;
}

.office-member-filters form {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
}

.office-member-filters label,
.office-member-form label,
.office-group-picker h3 {
  display: grid;
  gap: 5px;
  color: #334155;
  font-weight: 700;
  font-size: 0.78rem;
}

.office-member-filters input,
.office-member-filters select,
.office-member-form input,
.office-member-form select,
.office-member-form textarea,
.office-group-picker select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--color-text);
}

.office-member-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.office-member-table-card {
  overflow: hidden;
}

.office-member-table-head,
.office-member-pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.office-member-table-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #07163a;
}

.office-member-table-scroll {
  overflow-x: auto;
}

.office-member-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
}

.office-member-table th,
.office-member-table td {
  padding: 10px 14px;
  border-top: 1px solid #e7edf5;
  text-align: left;
  vertical-align: middle;
  font-size: 0.88rem;
}

.office-member-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.office-member-table tbody tr {
  cursor: pointer;
}

.office-member-table tbody tr:hover {
  background: #f8fbff;
}

.office-member-person,
.office-member-contact,
.office-member-actions,
.office-profile-list a {
  display: flex;
  gap: 10px;
  align-items: center;
}

.office-member-avatar,
.office-member-profile-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 800;
}

.office-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.office-member-profile-photo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

.office-member-avatar img,
.office-member-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-member-person span,
.office-member-contact,
.office-member-table td small {
  display: grid;
}

.office-member-person small,
.office-member-table td small,
.office-profile-list span {
  color: var(--color-muted);
}

.office-member-contact div,
.office-member-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.office-member-contact a,
.office-member-actions a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  padding: 4px 8px;
  background: #fff;
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.75rem;
}

.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.member-payment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 800;
}

.member-payment-pill--paid {
  background: #e9f8ef;
  color: #18784b;
  border-color: #bde8cd;
}

.member-payment-pill--unpaid,
.member-payment-pill--not_billed {
  background: #fff7df;
  color: #9a6a05;
  border-color: #f3daa0;
}

.member-payment-pill--late {
  background: #ffecec;
  color: #b42323;
  border-color: #ffc4c4;
}

.office-member-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
  text-align: center;
}

.office-member-form,
.office-member-form-grid,
.office-member-profile-grid {
  display: grid;
  gap: 14px;
}

.office-member-form-identity {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  padding: 16px;
}

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

.office-member-form-grid .form-section,
.office-member-groups {
  margin: 0;
}

.office-member-groups {
  padding: 16px;
}

.office-group-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.office-group-picker select {
  min-height: 190px;
}

.office-group-picker__controls {
  display: grid;
  gap: 8px;
}

.office-member-help {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.office-member-field-error {
  align-self: start;
  color: #b42323;
  font-size: 0.76rem;
  font-weight: 800;
}

.office-member-profile-hero__main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.office-member-profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.office-profile-card {
  padding: 16px;
}

.office-profile-card h2 {
  margin: 0 0 12px;
  color: #07163a;
  font-size: 1rem;
}

.office-profile-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.office-profile-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 8px;
}

.office-profile-card dt {
  color: var(--color-muted);
}

.office-profile-card dd {
  margin: 0;
  color: #07163a;
  font-weight: 700;
  text-align: right;
}

.office-profile-list {
  display: grid;
  gap: 8px;
}

.office-profile-list a {
  justify-content: space-between;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
}

@media (max-width: 1200px) {
  .office-member-kpis,
  .office-member-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Director Programs Academy module */
.director-programs-page .role-content,
.director-program-form-page .role-content,
.director-program-detail-page .role-content {
  display: grid;
  gap: 16px;
}

.director-programs-hero .director-hero__copy p,
.director-program-form-hero .director-hero__copy p {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.director-programs-hero .director-hero__copy h1,
.director-program-form-hero .director-hero__copy h1 {
  font-weight: 700;
}

.director-programs-hero .director-hero__copy span,
.director-program-form-hero .director-hero__copy span {
  max-width: 720px;
  font-weight: 400;
  line-height: 1.45;
}

.director-programs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.director-programs-kpis,
.director-program-detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.director-programs-kpis article,
.director-program-detail-kpis article,
.director-program-card,
.director-program-detail-content article,
.director-program-future-grid article {
  border: 1px solid #dfe7f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 46, 99, 0.06);
}

.director-programs-kpis article,
.director-program-detail-kpis article {
  padding: 16px;
}

.director-programs-kpis span,
.director-program-detail-kpis span {
  display: block;
  color: #65728d;
  font-size: 0.8rem;
  font-weight: 500;
}

.director-programs-kpis strong,
.director-program-detail-kpis strong {
  display: block;
  margin-top: 4px;
  color: #10224f;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
}

.director-programs-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dce5f5;
  border-radius: 14px;
  background: #fff;
}

.director-programs-toolbar label,
.director-program-field-grid .director-field {
  display: grid;
  gap: 6px;
}

.director-programs-toolbar span,
.director-program-field-grid .director-field > span {
  color: #43506a;
  font-size: 0.76rem;
  font-weight: 600;
}

.director-programs-toolbar input,
.director-programs-toolbar select,
.director-program-field-grid input,
.director-program-field-grid select,
.director-program-field-grid textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cfdbef;
  border-radius: 11px;
  color: #10224f;
  background: #fff;
  font: inherit;
  font-weight: 400;
}

.director-program-field-grid textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.45;
}

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

.director-program-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border-top: 4px solid #8aa4d8;
}

.director-program-card--blue { border-top-color: #79a8f5; }
.director-program-card--violet { border-top-color: #b89bf4; }
.director-program-card--pink { border-top-color: #f3a0c2; }
.director-program-card--mint { border-top-color: #89d9bd; }
.director-program-card--orange { border-top-color: #f0b36c; }
.director-program-card--cyan { border-top-color: #75d4df; }
.director-program-card--green { border-top-color: #91d78c; }

.director-program-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.director-program-card header span {
  color: #526281;
  font-size: 0.76rem;
  font-weight: 600;
}

.director-program-card h2 {
  margin: 3px 0 0;
  color: #10224f;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.director-program-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #1f46c7;
  background: #eef4ff;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 600;
}

.director-program-status--active {
  color: #0b7a53;
  background: #eaf9f2;
}

.director-program-status--inactive,
.director-program-status--archived {
  color: #596678;
  background: #eef1f5;
}

.director-program-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.director-program-card dt {
  color: #6a7690;
  font-size: 0.72rem;
  font-weight: 500;
}

.director-program-card dd {
  margin: 2px 0 0;
  color: #152653;
  font-size: 0.85rem;
  font-weight: 500;
}

.director-program-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #59667f;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.director-program-card .button {
  align-self: end;
  justify-self: start;
}

.director-program-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 28px;
  border: 1px dashed #b9c8e6;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}

.director-program-empty h2 {
  margin: 0;
  color: #10224f;
  font-size: 1.35rem;
  font-weight: 700;
}

.director-program-empty p {
  max-width: 620px;
  margin: 0 0 8px;
  color: #5d6a86;
  font-weight: 400;
}

.director-program-form {
  display: grid;
  gap: 16px;
}

.director-program-identity {
  display: grid;
  grid-template-columns: auto auto 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: #f3f8ff;
}

.director-program-identity strong {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #1f46c7;
  background: #fff;
  font-weight: 700;
}

.director-program-identity span {
  color: #1f46c7;
  font-weight: 600;
}

.director-program-identity small {
  color: #5e6d88;
  font-size: 0.82rem;
  font-weight: 500;
}

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

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

.director-program-future-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.director-program-future-note p {
  flex: 1 0 100%;
  margin: 0;
  color: #59667f;
  font-weight: 400;
}

.director-program-future-note span,
.director-program-future-grid span {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #59605f;
  background: #f2f6fb;
  font-size: 0.78rem;
  font-weight: 600;
}

.director-program-detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.director-program-detail-content article,
.director-program-future-grid article {
  padding: 16px;
}

.director-program-detail-content h2 {
  margin: 0 0 8px;
  color: #10224f;
  font-size: 1.08rem;
  font-weight: 700;
}

.director-program-detail-content p {
  margin: 0;
  color: #59667f;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
}

.director-program-future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.director-program-future-grid article {
  display: grid;
  gap: 8px;
}

.director-program-future-grid strong {
  color: #10224f;
  font-weight: 600;
}

@media (max-width: 980px) and (orientation: landscape) {
  .director-programs-kpis,
  .director-program-detail-kpis {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .director-programs-kpis article,
  .director-program-detail-kpis article {
    flex: 0 0 180px;
  }

  .director-programs-toolbar {
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    overflow-x: auto;
  }

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

@media (max-width: 760px) {
  .director-programs-kpis,
  .director-program-detail-kpis,
  .director-program-field-grid,
  .director-program-detail-content {
    grid-template-columns: 1fr;
  }

  .director-programs-toolbar {
    grid-template-columns: 1fr;
  }

  .director-program-identity {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 520px) {
  .director-programs-kpis,
  .director-program-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-program-grid {
    grid-template-columns: 1fr;
  }

  .director-programs-hero__actions .button,
  .director-program-form-page .office-form-actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .office-member-header,
  .office-member-profile-hero,
  .office-member-form-identity,
  .office-group-picker {
    grid-template-columns: 1fr;
    display: grid;
  }

  .office-member-kpis,
  .office-member-filters form,
  .office-member-form-grid,
.office-member-profile-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 480px) {
  .payroll-kpi-grid {
    grid-template-columns: 1fr;
  }
}
}

.office-member-profile-page .role-content {
  gap: 12px;
}

.office-member-card-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 190px;
  padding: 18px 20px;
  border: 1px solid #c8d7ec;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 18, 48, 0.98) 0%, rgba(10, 72, 186, 0.95) 100%),
    url("/static/img/director-hero-dance.png") right -40px center / auto 160px no-repeat;
  color: #fff;
  box-shadow: 0 18px 36px rgba(16, 42, 82, 0.16);
}

.office-member-card-hero__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: #dbeafe;
  color: #1558e8;
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 18px 30px rgba(4, 24, 78, 0.26);
}

.office-member-card-hero__photo img,
.office-member-card-hero__photo span {
  grid-area: 1 / 1;
}

.office-member-card-hero__photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-member-card-hero__photo img[hidden] {
  display: none;
}

.office-member-card-hero__identity {
  min-width: 0;
}

.office-member-card-hero__title {
  display: grid;
  gap: 6px;
}

.office-member-card-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 2.7vw, 2.7rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.office-member-card-hero .member-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.office-member-card-hero .member-hero-meta > span:not(.status) {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #eaf2ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.office-member-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px 14px;
  margin: 12px 0 0;
}

.office-member-hero-facts div,
.office-member-payment-summary div {
  display: grid;
  gap: 2px;
}

.office-member-hero-facts dt {
  color: #a9c9ff;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.office-member-hero-facts dd {
  margin: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
}

.office-member-card-hero__actions {
  display: grid;
  gap: 8px;
  width: 210px;
}

.office-member-comm-actions,
.office-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.office-member-comm-actions a,
.office-member-actions a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #fff;
  color: #0748cf;
  font-size: 0.78rem;
  font-weight: 950;
}

.office-member-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.office-member-kpi-row article {
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.office-member-kpi-row span,
.office-member-kpi-row small {
  display: block;
  color: #667b98;
  font-size: 0.74rem;
  font-weight: 850;
}

.office-member-kpi-row strong {
  display: block;
  margin: 5px 0 2px;
  color: #07163a;
  font-size: 1.05rem;
  font-weight: 950;
}

.office-member-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.office-member-profile-tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #334b6c;
  font-size: 0.82rem;
  font-weight: 900;
}

.office-member-profile-tabs a:hover,
.office-member-profile-tabs a:focus-visible,
.office-member-profile-tabs a.is-active {
  border-color: #1558e8;
  background: #edf5ff;
  color: #0b45c2;
  outline: none;
}

.office-member-profile-panels {
  min-width: 0;
}

.office-member-profile-panel.is-active {
  display: block;
}

.office-member-profile-page .office-member-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.office-member-profile-page .office-profile-card {
  padding: 14px;
  border-radius: 8px;
}

.office-profile-card--wide {
  grid-column: 1 / -1;
}

.office-member-profile-page .office-profile-card h2 {
  margin: 0 0 10px;
  color: #07163a;
  font-size: 1rem;
}

.office-member-profile-page .office-profile-card dl,
.office-member-payment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.office-member-profile-page .office-profile-card dt,
.office-member-payment-summary dt {
  color: #667b98;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.office-member-profile-page .office-profile-card dd,
.office-member-payment-summary dd {
  margin: 0;
  color: #132b51;
  font-weight: 850;
}

.office-member-group-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.office-member-group-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
}

.office-member-group-card strong {
  color: #07163a;
}

.office-member-group-card span,
.office-member-group-card small {
  color: #637895;
  font-weight: 800;
}

.office-member-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.office-member-section-head form {
  display: flex;
  gap: 7px;
}

.office-member-section-head input,
.office-member-section-head select {
  min-height: 32px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  padding: 0 8px;
}

.office-member-payment-action {
  position: relative;
}

.office-member-payment-action summary {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #1558e8;
  border-radius: 8px;
  background: #edf5ff;
  color: #0b45c2;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.office-member-payment-action form {
  position: absolute;
  right: 0;
  z-index: 4;
  display: grid;
  width: min(520px, calc(100vw - 48px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(16, 42, 82, 0.16);
}

.office-member-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.office-member-summary-row span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #344b6b;
  font-weight: 850;
}

.office-member-profile-page .office-member-table {
  min-width: 720px;
}

.office-member-note-list {
  display: grid;
  gap: 8px;
}

.office-member-note-list div {
  padding: 10px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #f8fbff;
}

.office-member-note-list strong,
.office-member-note-list span,
.office-member-note-list p {
  display: block;
}

.office-member-note-list span {
  color: #657894;
  font-size: 0.75rem;
  font-weight: 850;
}

.office-member-note-list p {
  margin: 5px 0 0;
}

.office-member-profile-page .role-prefooter {
  display: none;
}

.office-member-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.office-member-overview-main,
.office-member-overview-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.office-member-overview-card {
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-member-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.office-member-info-grid div {
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f8;
}

.office-member-info-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.office-member-info-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.office-member-info-list div {
  min-width: 0;
}

.office-member-info-grid dt,
.office-member-info-list dt {
  color: #667b98;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.office-member-info-grid dd,
.office-member-info-list dd {
  margin: 2px 0 0;
  color: #102b55;
  font-size: 0.94rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.office-member-group-list {
  display: grid;
  gap: 8px;
}

.office-member-group-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.3fr) minmax(130px, 1fr) minmax(120px, 0.9fr);
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
}

.office-member-group-row strong {
  color: #07163a;
  font-weight: 950;
}

.office-member-group-row span,
.office-member-group-row small {
  color: #5d7190;
  font-size: 0.82rem;
  font-weight: 850;
}

.office-member-group-row small {
  grid-column: 1 / -1;
}

.office-member-empty-state {
  padding: 12px;
  border: 1px dashed #c8d7ec;
  border-radius: 8px;
  background: #f8fbff;
}

.office-member-empty-state strong {
  display: block;
  color: #102b55;
  font-weight: 950;
}

.office-member-empty-state p {
  margin: 4px 0 0;
  color: #657894;
}

.office-member-guardian-compact {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f8;
}

.office-member-guardian-compact h3 {
  margin: 0 0 8px;
  color: #102b55;
  font-size: 0.92rem;
}

.office-member-overview-card--communication .office-member-actions {
  margin-top: 12px;
}

.office-member-kpi-row {
  gap: 8px;
}

.office-member-kpi-row article {
  min-height: 74px;
  padding: 10px 12px;
}

.office-member-profile-tabs {
  margin-top: -4px;
}

@media (max-width: 1180px) {
  .office-member-card-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .office-member-card-hero__photo {
    width: 110px;
    height: 110px;
    border-radius: 14px;
  }

  .office-member-card-hero__actions {
    grid-column: 1 / -1;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, auto));
  }

  .office-member-comm-actions {
    grid-column: 1 / -1;
  }

  .office-member-hero-facts,
  .office-member-kpi-row,
  .office-member-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .office-member-card-hero {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .office-member-card-hero__photo {
    width: 82px;
    height: 82px;
    border-radius: 14px;
  }

  .office-member-card-hero h1 {
    font-size: 1.35rem;
    line-height: 1.08;
  }

  .office-member-card-hero__title {
    gap: 5px;
  }

  .office-member-hero-facts,
  .office-member-profile-page .office-member-profile-grid,
  .office-member-profile-page .office-profile-card dl,
  .office-member-payment-summary,
  .office-member-group-cards,
  .office-member-summary-row {
    grid-template-columns: 1fr;
  }

  .office-member-hero-facts {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 8px;
  }

  .office-member-hero-facts div:nth-child(n + 4) {
    display: none;
  }

  .office-member-card-hero__actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: auto;
  }

  .office-member-card-hero__actions > .button {
    min-height: 40px;
  }

  .office-member-comm-actions {
    order: -1;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .office-member-comm-actions a {
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .office-member-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .office-member-kpi-row article {
    min-height: 74px;
    padding: 10px;
  }

  .office-member-profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 6px;
    scrollbar-width: none;
  }

  .office-member-profile-tabs::-webkit-scrollbar {
    display: none;
  }

  .office-member-profile-tabs a {
    min-height: 44px;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .office-member-overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .office-member-overview-main,
  .office-member-overview-side {
    display: contents;
  }

  .office-member-overview-card--status {
    order: 1;
  }

  .office-member-overview-card--groups {
    order: 2;
  }

  .office-member-overview-card--communication {
    order: 3;
  }

  .office-member-overview-card--basic {
    order: 4;
  }

  .office-member-overview-card--communication .office-member-actions {
    display: none;
  }

  .office-member-info-grid {
    grid-template-columns: 1fr;
  }

  .office-member-info-grid div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #edf2f8;
  }

  .office-member-info-grid div:last-child {
    border-bottom: 0;
  }

  .office-member-group-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .office-member-empty-state p {
    display: none;
  }

  .office-member-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(36, 84, 214, 0.36);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 20;
  transform: translateY(-150%);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--color-sidebar), var(--color-sidebar-2));
  color: #fff;
  padding: var(--space-5) var(--space-4);
}

.brand {
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand strong,
.brand span,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.3rem;
  line-height: 1;
}

.brand span {
  margin-top: var(--space-3);
  color: #eef3ff;
  font-size: 0.86rem;
  font-weight: 700;
}

.brand small {
  margin-top: var(--space-4);
  color: var(--color-sidebar-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-list {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.55rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: #d7deeb;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link:hover {
  transform: translateX(2px);
}

.nav-link.active {
  box-shadow: inset 3px 0 0 #78a1ff;
}

.nav-icon {
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  opacity: 0.8;
}

.sidebar-version {
  margin-top: auto;
  padding-top: var(--space-5);
  color: var(--color-sidebar-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.content-shell {
  flex: 1;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 4.75rem;
  padding: var(--space-3) var(--space-6);
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 247, 251, 0.94);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.page-heading {
  min-width: 0;
}

.page-heading p,
.section-head p {
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-heading h1,
.section-head h2 {
  margin: 0;
  line-height: 1.15;
}

.page-heading h1 {
  font-size: 1.55rem;
}

.page-heading span,
.header-meta time,
.user-block span,
.user-block small,
.kpi-card span,
.class-info p,
.class-info span,
.birthday-list span {
  color: var(--color-muted);
}

.header-meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: right;
  white-space: nowrap;
}

.user-block {
  padding-left: var(--space-3);
  border-left: 1px solid var(--color-border);
}

.user-block strong,
.user-block span,
.user-block small {
  display: block;
}

.user-block strong {
  font-size: 0.94rem;
}

.user-block span,
.user-block small {
  font-size: 0.78rem;
}

.notifications {
  position: relative;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.icon-button strong {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  display: grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
}

.notification-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 12;
  width: min(20rem, calc(100vw - 2rem));
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-hover);
  text-align: left;
}

.notification-menu p {
  margin: 0 0 var(--space-2);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-menu a {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 700;
}

.notification-menu a:hover {
  background: var(--color-soft);
}

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 4px auto;
  background: var(--color-text);
}

.main-content {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6) var(--space-6);
}

.card {
  background: var(--color-surface);
  border: 1px solid rgba(221, 227, 236, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table th,
.table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.table th {
  background: var(--color-soft);
  color: var(--color-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.form {
  display: grid;
  gap: var(--space-4);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.6rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
}

.dashboard-school {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
  padding: var(--space-4);
}

.dashboard-school p,
.school-hero p {
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-school h2,
.school-hero h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.dashboard-school-meta,
.school-context,
.detail-grid,
.season-dates {
  margin: 0;
}

.dashboard-school-meta {
  display: flex;
  gap: var(--space-5);
}

.dashboard-school-meta dt,
.school-context dt,
.detail-grid dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-school-meta dd,
.school-context dd,
.detail-grid dd {
  margin: 0;
  font-weight: 800;
}

.school-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
  gap: var(--space-5);
  align-items: end;
  padding: var(--space-5);
}

.school-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.selector {
  display: grid;
  gap: var(--space-2);
}

.selector span {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selector select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-weight: 800;
}

.school-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.school-section {
  min-width: 0;
  padding: var(--space-5);
}

.school-card {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: var(--space-4);
}

.school-logo {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-md);
  background: #eef3ff;
  color: var(--color-primary);
  font-weight: 900;
}

.school-card-body {
  min-width: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.detail-grid div,
.school-context div,
.dashboard-school-meta div {
  min-width: 0;
}

.entity-list {
  display: grid;
  gap: var(--space-3);
}

.entity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 4.6rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.entity-card.selected {
  border-color: rgba(36, 84, 214, 0.48);
  background: #f6f9ff;
  box-shadow: inset 3px 0 0 var(--color-primary);
}

.entity-card h3 {
  margin: 0;
  font-size: 1rem;
}

.entity-card p {
  margin: var(--space-1) 0 0;
  color: var(--color-muted);
}

.entity-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
  color: var(--color-muted);
  font-weight: 800;
}

.hall-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.hall-color {
  width: 0.85rem;
  height: 2.8rem;
  border-radius: 999px;
  background: var(--hall-color);
}

.season-dates {
  display: flex;
  gap: var(--space-4);
  color: var(--color-muted);
}

.season-dates span,
.season-dates strong {
  display: block;
}

.season-dates strong {
  color: var(--color-text);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-3);
}

.stat-card,
.kpi-card {
  min-height: 6.35rem;
  padding: var(--space-3) var(--space-4);
}

.kpi-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.kpi-card strong {
  display: block;
  margin: var(--space-2) 0 var(--space-1);
  font-size: 1.45rem;
  line-height: 1.05;
}

.today-summary {
  display: grid;
  grid-template-columns: minmax(12rem, 0.8fr) minmax(0, 2fr);
  gap: var(--space-4);
  align-items: center;
  margin-top: var(--space-4);
  padding: var(--space-4);
}

.today-summary p {
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-summary h2 {
  margin: 0;
  font-size: 1.22rem;
}

.today-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.today-items span {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
  color: var(--color-muted);
  font-weight: 800;
}

.today-items strong {
  display: block;
  color: var(--color-text);
  font-size: 1.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26rem;
  gap: var(--space-5);
  margin-top: var(--space-5);
}

.schedule-card,
.alerts-card,
.side-stack .card {
  padding: var(--space-5);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: 1.15rem;
}

.section-head.compact {
  margin-bottom: var(--space-3);
}

.text-link {
  color: var(--color-primary);
  font-weight: 800;
}

.class-list {
  display: grid;
  gap: var(--space-2);
}

.class-row {
  display: grid;
  grid-template-columns: 6.7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  min-height: 4.05rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.class-row:hover {
  border-color: rgba(36, 84, 214, 0.42);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.tone-green {
  border-left-color: var(--color-green);
}

.tone-yellow {
  border-left-color: var(--color-yellow);
}

.tone-blue {
  border-left-color: var(--color-blue);
}

.class-time {
  font-weight: 800;
}

.class-info h3,
.class-info p {
  margin: 0;
}

.class-info h3 {
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--color-primary-dark);
}

.button-secondary {
  color: var(--color-primary);
}

.button-danger {
  border-color: var(--ples-danger);
  background: var(--ples-danger);
  color: #fff;
}

.button-danger:hover {
  background: #b92f2f;
}

.button-small {
  min-height: 2rem;
  padding: 0 var(--space-3);
  font-size: 0.82rem;
}

.badge,
.status {
  display: inline-flex;
  min-height: 1.55rem;
  align-items: center;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: #f2f5fb;
  color: var(--color-text);
  font-size: 0.76rem;
  font-weight: 900;
}

.full-width {
  width: 100%;
}

.attendance-page {
  display: grid;
  gap: var(--space-4);
  padding-bottom: 6.5rem;
}

.attendance-hero {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(20rem, 2fr) auto;
  gap: var(--space-4);
  align-items: center;
}

.attendance-title p,
.attendance-toolbar p,
.attendance-finish p {
  margin: 0 0 var(--space-1);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attendance-title h2 {
  margin: 0;
  font-size: 1.65rem;
  line-height: 1.08;
}

.attendance-title strong,
.attendance-title span {
  display: block;
  margin-top: var(--space-1);
}

.attendance-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.attendance-meta div,
.attendance-finish dl div {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-soft);
}

.attendance-meta dt,
.attendance-finish dt {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.attendance-meta dd,
.attendance-finish dd {
  margin: var(--space-1) 0 0;
  font-weight: 900;
}

.attendance-nav,
.date-switcher,
.attendance-actions,
.finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.date-switcher {
  align-items: center;
  justify-content: center;
}

.date-switcher strong {
  min-width: 6.2rem;
  text-align: center;
}

.attendance-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.attendance-kpi {
  min-height: 5.2rem;
  padding: var(--space-4);
}

.attendance-kpi span {
  display: block;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.attendance-kpi strong {
  display: block;
  margin-top: var(--space-1);
  font-size: 1.45rem;
}

.attendance-completion {
  width: fit-content;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-muted);
  font-weight: 900;
}

.attendance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.attendance-toolbar strong {
  display: block;
}

.month-tabs {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-3);
}

.month-tab {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-muted);
  font-weight: 900;
}

.month-tab.active {
  border-color: var(--color-primary);
  background: #eef4ff;
  color: var(--color-primary);
  box-shadow: inset 0 0 0 2px rgba(36, 84, 214, 0.12);
}

.member-list {
  display: grid;
  gap: var(--space-3);
}

.member-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) minmax(11rem, 0.9fr) minmax(21rem, 1.55fr) minmax(10rem, 0.8fr) minmax(10rem, 0.8fr);
  gap: var(--space-3);
  align-items: center;
  position: relative;
}

.member-identity {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
}

.member-index {
  color: var(--color-muted);
  font-weight: 900;
}

.member-avatar {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 900;
}

.member-identity h3 {
  margin: 0;
  font-size: 0.98rem;
}

.member-identity small,
.dues-block small,
.payment-summary {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dues-block,
.payment-block,
.note-block {
  display: grid;
  gap: var(--space-2);
}

.dues-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 1.7rem;
  align-items: center;
  padding: 0 var(--space-2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.dues-placeno {
  background: #e7f8ef;
  color: #17613c;
}

.dues-djelimicno {
  background: #fff4cf;
  color: #7a5600;
}

.dues-dug {
  background: #ffe8e8;
  color: #9d2222;
}

.dues-oslobodjen {
  background: #e8f1ff;
  color: #1d4d9f;
}

.presence-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.presence-button {
  min-height: 2.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-weight: 900;
  cursor: pointer;
}

.presence-button span {
  display: inline-flex;
  min-width: 1.1rem;
  justify-content: center;
  margin-right: var(--space-1);
}

.presence-button.active {
  box-shadow: inset 0 0 0 2px currentColor;
}

.presence-button.present.active {
  border-color: var(--color-green);
  background: #e7f8ef;
  color: #17613c;
}

.presence-button.absent.active {
  border-color: var(--color-red);
  background: #ffe8e8;
  color: #9d2222;
}

.presence-button.excused.active {
  border-color: var(--color-yellow);
  background: #fff4cf;
  color: #7a5600;
}

.payment-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(8rem, 1fr)) minmax(10rem, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-soft);
}

.payment-panel[hidden] {
  display: none;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.amount-button {
  min-height: 2.15rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 900;
}

.amount-button.active {
  border-color: var(--color-primary);
  background: #eef4ff;
  color: var(--color-primary);
}

.payment-panel label,
.note-block {
  min-width: 0;
}

.payment-panel label span {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.payment-panel input,
.payment-panel select,
.note-input {
  width: 100%;
  min-height: 2.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 var(--space-2);
  color: var(--color-text);
  font: inherit;
}

.payment-actions {
  display: flex;
  gap: var(--space-2);
}

.attendance-finish {
  position: sticky;
  bottom: var(--space-3);
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  border-color: rgba(36, 84, 214, 0.22);
}

.attendance-finish dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
}

.attendance-toast {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 20;
  max-width: 22rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-hover);
  font-weight: 800;
}

.attendance-locked .member-row {
  opacity: 0.82;
}

.attendance-empty {
  max-width: 42rem;
}

.side-stack {
  display: grid;
  align-content: start;
  gap: var(--space-5);
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.birthday-list {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.birthday-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-soft);
  border-radius: var(--radius-md);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.quick-action-card {
  display: grid;
  gap: var(--space-1);
  min-height: 7rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, #f8fafc);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.quick-action-card:hover {
  border-color: rgba(36, 84, 214, 0.36);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.quick-action-card span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: #eef3ff;
  color: var(--color-primary);
  font-weight: 900;
}

.quick-action-card strong {
  margin-top: var(--space-1);
}

.quick-action-card small {
  color: var(--color-muted);
}

.alerts-card {
  margin-top: var(--space-5);
}

.alert-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.warning-card {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.warning-card h3 {
  margin: var(--space-3) 0 var(--space-1);
  font-size: 0.98rem;
}

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

.warning-red {
  border-color: rgba(214, 69, 69, 0.28);
  background: #fff8f8;
}

.warning-yellow {
  border-color: rgba(216, 162, 27, 0.32);
  background: #fffaf0;
}

.warning-green {
  border-color: rgba(47, 158, 102, 0.28);
  background: #f5fff9;
}

.warning-blue {
  border-color: rgba(45, 108, 223, 0.28);
  background: #f6f9ff;
}

.schedule-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.6fr);
  gap: var(--space-5);
  align-items: end;
  padding: var(--space-5);
}

.schedule-hero p {
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-hero h2 {
  margin: 0;
  font-size: 1.35rem;
}

.schedule-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
}

.schedule-context dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-context dd {
  display: block;
  margin: 0;
  font-weight: 850;
}

.schedule-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: end;
}

.compact-selector {
  gap: var(--space-2);
}

.schedule-filter-card,
.schedule-board,
.schedule-mobile,
.legend-card {
  margin-top: var(--space-4);
  padding: var(--space-5);
}

.schedule-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.schedule-grid {
  --hour-height: 4.25rem;
  display: grid;
  grid-template-columns: 4.25rem repeat(7, minmax(0, 1fr));
  grid-template-rows: 3.25rem calc(var(--schedule-hours) * var(--hour-height));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.schedule-corner,
.schedule-day-head {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-soft);
}

.schedule-day-head {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  padding: var(--space-2);
  border-left: 1px solid var(--color-border);
  text-align: center;
}

.schedule-day-head strong {
  font-size: 0.92rem;
}

.schedule-day-head span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.schedule-times {
  display: grid;
  grid-template-rows: repeat(var(--schedule-hours), var(--hour-height));
  grid-column: 1;
  grid-row: 2;
  background: var(--color-soft);
}

.schedule-times span {
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.schedule-day-column {
  position: relative;
  min-width: 0;
  border-left: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.schedule-hour-line {
  display: block;
  height: var(--hour-height);
  border-bottom: 1px solid #edf1f6;
}

.schedule-event {
  position: absolute;
  left: var(--space-2);
  right: var(--space-2);
  top: calc(var(--event-top) / 60 * var(--hour-height));
  min-height: calc(var(--event-height) / 60 * var(--hour-height));
  display: grid;
  align-content: start;
  gap: 0.12rem;
  padding: var(--space-2);
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-left: 4px solid currentColor;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
  color: var(--color-text);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.schedule-event:hover {
  border-color: currentColor;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  z-index: 2;
}

.schedule-event strong,
.mobile-event strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.schedule-event span,
.schedule-event small,
.mobile-event span,
.mobile-event small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-event > span:not(.schedule-event-status) {
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 800;
}

.schedule-event small,
.mobile-event small {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.schedule-event em {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  opacity: 0;
  transition: opacity 150ms ease;
}

.schedule-event:hover em {
  opacity: 1;
}

.schedule-event-status {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  line-height: 1;
}

.tone-purple {
  border-left-color: #7c3aed;
  color: #7c3aed;
}

.schedule-event.tone-yellow,
.mobile-event.tone-yellow {
  color: var(--color-yellow);
}

.schedule-event.tone-blue,
.mobile-event.tone-blue {
  color: var(--color-blue);
}

.schedule-event.tone-green,
.mobile-event.tone-green {
  color: var(--color-green);
}

.schedule-event.tone-yellow,
.mobile-event.tone-yellow {
  background: #fffaf0;
}

.schedule-event.tone-blue,
.mobile-event.tone-blue {
  background: #f6f9ff;
}

.schedule-event.tone-green,
.mobile-event.tone-green {
  background: #f5fff9;
}

.schedule-event.tone-purple,
.mobile-event.tone-purple {
  background: #f8f5ff;
}

.status-problem {
  box-shadow: inset 0 0 0 1px rgba(214, 69, 69, 0.22), 0 8px 18px rgba(17, 24, 39, 0.08);
}

.schedule-mobile {
  display: none;
}

.mobile-day + .mobile-day {
  margin-top: var(--space-4);
}

.mobile-day h2 {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
  margin: 0 0 var(--space-3);
  font-size: 1rem;
}

.mobile-day h2 span {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.mobile-timeline {
  display: grid;
  gap: var(--space-3);
  border-left: 2px solid var(--color-border);
  padding-left: var(--space-3);
}

.schedule-mobile .schedule-event {
  position: relative;
  inset: auto;
  min-height: 0;
  align-content: stretch;
  overflow: visible;
  transform: none;
}

.schedule-mobile .schedule-event:hover {
  transform: none;
}

.mobile-event {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-left: 4px solid currentColor;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  text-align: left;
}

.mobile-event::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-3) - 7px);
  top: 1.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid #fff;
  border-radius: 999px;
  background: currentColor;
}

.mobile-event time {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.mobile-event-body {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.schedule-legends {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.legend-list span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-soft);
  font-weight: 850;
}

.legend-list i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: var(--legend-color);
}

.schedule-dialog {
  width: min(34rem, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--color-text);
  box-shadow: var(--shadow-hover);
}

.schedule-dialog::backdrop {
  background: rgba(12, 18, 31, 0.52);
}

.schedule-dialog__content {
  position: relative;
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.schedule-dialog__content h2 {
  margin: var(--space-3) 0 0;
  color: var(--color-text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.schedule-dialog__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.schedule-dialog__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.schedule-dialog__details span {
  display: block;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-dialog__details strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 850;
  opacity: 1;
  visibility: visible;
}

.is-filtered-out {
  display: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(12, 18, 31, 0.45);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .school-hero,
  .school-tabs,
  .schedule-hero {
    grid-template-columns: 1fr;
  }

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

  .schedule-grid {
    --hour-height: 3.75rem;
    grid-template-columns: 3.75rem repeat(7, minmax(6.5rem, 1fr));
  }

  .schedule-event {
    left: 0.3rem;
    right: 0.3rem;
    padding: 0.45rem;
  }

  .attendance-hero,
  .attendance-finish {
    grid-template-columns: 1fr;
  }

  .attendance-nav,
  .attendance-actions,
  .finish-actions {
    justify-content: flex-start;
  }

  .attendance-meta,
  .attendance-finish dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-row {
    grid-template-columns: minmax(15rem, 1fr) minmax(12rem, 0.8fr);
  }

  .presence-controls,
  .payment-block,
  .note-block,
  .payment-panel {
    grid-column: 1 / -1;
  }

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

@media (max-width: 860px) {
  :root {
    --sidebar-width: 17.5rem;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10;
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .menu-button {
    display: inline-block;
    flex: 0 0 auto;
  }

  .topbar {
    align-items: flex-start;
    min-height: 4.4rem;
    padding: var(--space-3) var(--space-4);
  }

  .header-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-2);
    font-size: 0.92rem;
    white-space: normal;
  }

  .user-block {
    padding-left: 0;
    border-left: 0;
  }

  .main-content {
    padding: var(--space-4);
  }

  .today-summary {
    grid-template-columns: 1fr;
  }

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

  .class-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--space-2);
  }

  .button-secondary {
    width: fit-content;
  }

  .schedule-filters,
  .schedule-legends {
    grid-template-columns: 1fr;
  }

  .schedule-board {
    display: none;
  }

  .schedule-mobile {
    display: block;
  }

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

  .attendance-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-meta {
    grid-column: 1 / -1;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    white-space: normal;
  }

  .notifications {
    order: 3;
  }

  .notification-menu {
    left: 0;
    right: auto;
  }

  .page-heading h1 {
    font-size: 1.35rem;
  }

  .kpi-grid,
  .side-stack,
  .alert-list,
  .action-grid,
  .today-items {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-height: 0;
  }

  .schedule-card,
  .alerts-card,
  .side-stack .card,
  .today-summary {
    padding: var(--space-4);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-2);
  }

  .dashboard-school,
  .dashboard-school-meta,
  .entity-card,
  .hall-card,
  .school-card,
  .season-dates {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-school-meta,
  .school-context,
  .schedule-context,
  .selector-grid,
  .detail-grid,
  .schedule-dialog__details,
  .schedule-actions {
    grid-template-columns: 1fr;
  }

  .entity-meta {
    justify-content: flex-start;
  }

  .attendance-page {
    padding-bottom: 12rem;
  }

  .attendance-hero,
  .attendance-toolbar,
  .member-row,
  .attendance-finish {
    padding: var(--space-4);
  }

  .attendance-meta,
  .attendance-kpis,
  .attendance-finish dl,
  .member-row,
  .payment-panel {
    grid-template-columns: 1fr;
  }

  .attendance-title h2 {
    font-size: 1.4rem;
  }

  .attendance-actions,
  .attendance-actions .button,
  .date-switcher,
  .date-switcher .button,
  .finish-actions,
  .finish-actions .button {
    width: 100%;
  }

  .month-tabs {
    margin-inline: calc(var(--space-4) * -1);
    border-radius: 0;
  }

  .member-identity {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .presence-controls {
    grid-template-columns: 1fr;
  }

  .presence-button {
    min-height: 3rem;
  }

  .payment-actions {
    flex-direction: column;
  }

  .attendance-finish {
    bottom: 0;
    margin-inline: calc(var(--space-4) * -1);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .attendance-toast {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    max-width: none;
  }
}

@media (max-width: 420px) {
  .kpi-card {
    padding: var(--space-3);
  }

  .kpi-card strong {
    font-size: 1.35rem;
  }
}

.auth-body,
.role-body {
  min-height: 100vh;
  background: var(--color-bg);
}

.auth-hero,
.auth-prefooter,
.auth-footer,
.role-hero,
.role-prefooter,
.role-footer {
  background: linear-gradient(135deg, #2454d6, #173a9a);
  color: #fff;
}

.auth-hero__inner {
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 2.5rem var(--space-6);
}

.auth-hero p,
.auth-hero h1,
.auth-hero span,
.login-card__head p,
.login-card__head h2 {
  margin: 0;
}

.auth-hero p,
.login-card__head p {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-hero h1 {
  margin-top: var(--space-2);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.auth-hero span {
  display: block;
  margin-top: var(--space-3);
  color: #e7eeff;
  font-size: 1.08rem;
  font-weight: 700;
}

.auth-main {
  display: grid;
  place-items: center;
  min-height: 31rem;
  padding: var(--space-6);
  background: #f6f8fc;
}

.login-card {
  width: min(100%, 31rem);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.login-card__head {
  margin-bottom: var(--space-5);
}

.login-card__head p {
  color: var(--color-primary);
}

.login-card__head h2 {
  margin-top: var(--space-1);
  font-size: 1.6rem;
}

.login-form {
  display: grid;
  gap: var(--space-4);
}

.login-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--color-text);
  font-weight: 850;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
}

.password-field {
  position: relative;
  display: block;
  min-height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  min-width: 0;
  padding-right: 6.25rem;
  border: 0;
  border-radius: 0;
}

.password-field button {
  position: absolute;
  inset: 0 0 0 auto;
  height: auto;
  min-width: 5.5rem;
  border: 0;
  border-left: 1px solid var(--color-border);
  background: var(--color-soft);
  color: var(--color-primary);
  font-weight: 900;
  cursor: pointer;
}

.remember-field {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.remember-field input {
  width: 1.25rem;
  height: 1.25rem;
}

.login-submit {
  min-height: 3.25rem;
  font-size: 1rem;
}

.auth-error,
.auth-message {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-weight: 800;
}

.auth-error {
  border: 1px solid rgba(214, 69, 69, 0.35);
  background: #fff1f1;
  color: #9f2424;
}

.auth-message {
  border: 1px solid rgba(47, 158, 102, 0.32);
  background: #edf9f2;
  color: #16623d;
}

.auth-prefooter,
.auth-footer {
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.auth-prefooter strong,
.auth-prefooter span {
  display: block;
}

.auth-prefooter span {
  margin-top: var(--space-1);
  color: #e7eeff;
  font-weight: 700;
}

.auth-footer,
.role-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.role-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.role-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: var(--space-5) var(--space-4);
  background: linear-gradient(180deg, var(--color-sidebar), var(--color-sidebar-2));
  color: #fff;
}

.role-brand {
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
}

.role-brand strong,
.role-brand span {
  display: block;
}

.role-brand span {
  margin-top: var(--space-2);
  color: #d8e2f5;
  font-weight: 800;
}

.role-nav {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-5);
}

.role-nav a,
.role-nav .is-locked,
.role-logout {
  min-height: 2.65rem;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: #d7deeb;
  font-weight: 800;
}

.role-nav a,
.role-nav .is-locked {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.role-nav a:hover,
.role-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.role-nav .is-locked {
  opacity: 0.42;
  cursor: not-allowed;
}

.role-nav .is-locked b {
  font-size: 0.74rem;
}

.role-logout {
  width: 100%;
  margin-top: var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.role-sidebar form {
  margin-top: auto;
}

.role-main-shell {
  min-width: 0;
  background: #f6f8fc;
}

.role-hero {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
}

.role-hero p,
.role-hero h1,
.role-hero span,
.role-user {
  margin: 0;
}

.role-hero p {
  color: #dfe8ff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-hero h1 {
  margin-top: var(--space-1);
  font-size: 1.85rem;
  line-height: 1.1;
}

.role-hero span {
  display: block;
  margin-top: var(--space-2);
  color: #eef3ff;
  font-weight: 800;
}

.role-user {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: min(100%, 24rem);
}

.role-user div {
  padding: var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.role-user dt {
  color: #dfe8ff;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-user dd {
  margin: var(--space-1) 0 0;
  font-weight: 900;
}

.role-content {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: var(--space-6);
}

.role-grid {
  display: grid;
  gap: var(--space-4);
}

.role-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-grid--office {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.role-card {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.role-card p,
.compact-module p {
  margin: 0 0 var(--space-1);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.role-card span,
.compact-module span {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-weight: 700;
}

.action-panel,
.attention-center,
.setup-timeline {
  margin-top: var(--space-5);
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.attention-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.attention-list article {
  min-height: 5.5rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
}

.attention-list strong,
.attention-list span {
  display: block;
}

.attention-list span {
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-weight: 750;
}

.instructor-today {
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.lesson-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.lesson-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2) var(--space-3);
  align-items: center;
  min-height: 6.5rem;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-green);
  border-radius: var(--radius-md);
  background: #fff;
}

.lesson-card time {
  grid-row: span 3;
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 950;
}

.lesson-card strong {
  font-size: 1.1rem;
}

.lesson-card span,
.lesson-card small {
  color: var(--color-muted);
  font-weight: 800;
}

.setup-timeline ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-timeline li {
  min-height: 3.25rem;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
  font-weight: 850;
}

.role-prefooter,
.role-footer {
  padding: var(--space-5) var(--space-6);
  text-align: center;
}

.role-prefooter strong,
.role-prefooter span {
  display: block;
}

.role-prefooter span {
  margin-top: var(--space-1);
  color: #e7eeff;
  font-weight: 750;
}

.forbidden-card {
  max-width: 42rem;
}

.forbidden-card .button {
  margin-top: var(--space-4);
}

.director-dashboard {
  --director-blue: #1f46c7;
  --director-blue-dark: #153aa9;
  --director-navy: #16213e;
  --director-navy-2: #0f1a33;
  --director-pink: #e91e63;
  --director-bg: #f5f7fb;
  --director-border: #e5eaf3;
  --director-green: #16a34a;
  --director-orange: #f97316;
  --director-purple: #8b5cf6;
  --sidebar-width: 260px;
  background: var(--director-bg);
}

.director-icons {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.director-dashboard svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.director-dashboard .role-layout {
  background: var(--director-bg);
}

.director-dashboard .role-sidebar {
  padding: 24px 16px 30px;
  background: linear-gradient(180deg, var(--director-navy), var(--director-navy-2));
}

.director-dashboard .director-brand {
  padding: 0 10px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.director-dashboard .director-brand strong {
  color: #fff;
  font-size: 1.95rem;
  font-weight: 950;
  letter-spacing: 0;
}

.director-dashboard .director-brand strong span {
  display: inline;
  color: var(--director-pink);
}

.director-dashboard .director-brand small {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  text-transform: uppercase;
}

.director-dashboard .role-nav {
  gap: 7px;
  margin-top: 0;
}

.director-dashboard .role-nav small {
  margin: 24px 10px 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.director-dashboard .role-nav a,
.director-dashboard .role-logout {
  gap: 12px;
  min-height: 45px;
  border-radius: 7px;
  color: #f4f7ff;
  font-size: 0.93rem;
  font-weight: 750;
}

.director-dashboard .role-nav a svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.director-dashboard .role-nav a.active {
  background: var(--director-blue);
  box-shadow: 0 10px 24px rgba(31, 70, 199, 0.25);
}

.director-dashboard .role-nav a:hover {
  background: rgba(31, 70, 199, 0.72);
}

.director-dashboard .role-sidebar form {
  margin-top: auto;
  padding-top: 18px;
}

.director-dashboard .role-logout {
  display: flex;
  align-items: center;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.director-dashboard .role-logout::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 11px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 2px;
}

.director-sidebar-footer {
  margin-top: 28px;
  color: #fff;
}

.director-sidebar-footer strong,
.director-sidebar-footer span {
  display: block;
}

.director-sidebar-footer strong {
  font-size: 0.92rem;
  font-weight: 850;
}

.director-sidebar-footer span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.director-dashboard .role-main-shell {
  display: flex;
  flex-direction: column;
  background: var(--director-bg);
}

.director-hero {
  position: relative;
  min-height: 216px;
  overflow: hidden;
  align-items: flex-start;
  padding: 30px 38px 18px;
  background:
    linear-gradient(90deg, rgba(31, 70, 199, 1) 0%, rgba(31, 70, 199, 0.94) 42%, rgba(31, 70, 199, 0.58) 66%, rgba(31, 70, 199, 0.9) 100%),
    url("/static/img/director-hero-dance.png") right center / auto 100% no-repeat;
  color: #fff;
}

.director-hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.director-hero h1 {
  margin: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.05;
  font-weight: 900;
}

.director-hero__copy > p {
  margin: 8px 0 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
}

.director-quick {
  margin-top: 22px;
}

.director-quick > span {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.director-quick div {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  width: min(800px, calc(100vw - 360px));
}

.director-quick a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid rgba(229, 234, 243, 0.75);
  border-radius: 8px;
  background: #fff;
  color: var(--director-blue);
  font-size: 0.88rem;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 15px 30px rgba(22, 33, 62, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.director-quick svg {
  color: var(--director-blue);
  width: 22px;
  height: 22px;
}

.director-quick a:hover,
.director-quick a:focus-visible {
  border-color: rgba(31, 70, 199, 0.28);
  box-shadow: 0 18px 34px rgba(22, 33, 62, 0.2);
  transform: translateY(-1px);
}

.director-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-left: auto;
}

.director-date,
.director-profile {
  display: flex;
  align-items: center;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(22, 33, 62, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.director-date {
  gap: 12px;
  padding: 0 20px;
  color: #fff;
  font-weight: 850;
}

.director-date svg {
  width: 20px;
  height: 20px;
}

.director-profile {
  gap: 12px;
  padding: 8px 18px 8px 10px;
}

.director-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: #e9eefb;
  color: var(--director-navy);
  font-weight: 950;
}

.director-profile strong,
.director-profile span {
  display: block;
  margin: 0;
}

.director-profile strong {
  color: #fff;
  font-size: 0.95rem;
}

.director-profile span {
  color: #b7ffca;
  font-size: 0.78rem;
  font-weight: 750;
}

.director-dashboard .role-content {
  width: 100%;
  padding: 26px 34px 18px;
}

.director-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.director-kpi,
.director-panel {
  border: 1px solid var(--director-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(22, 33, 62, 0.07);
}

.director-kpi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 132px;
  padding: 26px 24px;
}

.director-kpi__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  font-size: 1.95rem;
}

.director-kpi__icon svg {
  width: 36px;
  height: 36px;
}

.director-kpi--blue .director-kpi__icon { background: #e7f0ff; color: var(--director-blue); }
.director-kpi--green .director-kpi__icon { background: #e8f7ef; color: var(--director-green); }
.director-kpi--orange .director-kpi__icon { background: #fff1e7; color: var(--director-orange); }
.director-kpi--purple .director-kpi__icon { background: #f0e9ff; color: var(--director-purple); }

.director-kpi p,
.director-kpi strong,
.director-kpi span,
.director-panel h2 {
  margin: 0;
}

.director-kpi p {
  color: var(--director-navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.director-kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--director-navy);
  font-size: 2.28rem;
  line-height: 1;
  font-weight: 950;
}

.director-kpi span {
  display: block;
  margin-top: 10px;
  color: var(--director-green);
  font-size: 0.84rem;
  font-weight: 850;
}

.director-main-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.98fr 1.1fr;
  gap: 18px;
  margin-top: 18px;
}

.director-panel {
  min-height: 360px;
  padding: 24px;
}

.director-panel h2 {
  color: var(--director-navy);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.director-schedule-list,
.director-activity-list,
.director-events {
  display: grid;
  margin-top: 18px;
}

.director-row,
.director-activity,
.director-event {
  display: grid;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--director-border);
}

.director-row {
  grid-template-columns: 26px 66px minmax(0, 1fr) auto;
  gap: 14px;
}

.director-row > svg {
  width: 20px;
  height: 20px;
  color: var(--director-blue);
}

.director-row time {
  color: var(--director-blue);
  font-size: 0.92rem;
  font-weight: 900;
}

.director-row strong,
.director-activity strong,
.director-event p {
  color: var(--director-navy);
  font-size: 0.94rem;
  font-weight: 900;
}

.director-row span,
.director-activity span,
.director-event small {
  display: block;
  margin-top: 3px;
  color: #273868;
  font-size: 0.8rem;
  font-weight: 650;
}

.director-row em {
  min-width: 52px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #edf3ff;
  color: var(--director-blue);
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 950;
  text-align: center;
}

.director-activity {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
}

.director-activity i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e8f7ef;
  color: var(--director-green);
  font-style: normal;
  font-weight: 900;
}

.director-activity i svg {
  width: 20px;
  height: 20px;
}

.director-activity time,
.director-event time {
  color: var(--director-blue);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.director-event {
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 18px;
}

.director-event > div {
  display: grid;
  place-items: center;
  width: 60px;
  height: 54px;
  border-radius: 7px;
  background: #f0f2f7;
}

.director-event > div strong {
  color: var(--director-navy);
  font-size: 1.25rem;
  line-height: 1;
}

.director-event > div span {
  color: var(--director-navy);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.director-event p {
  margin: 0;
}

.director-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--director-blue);
  font-size: 0.87rem;
  font-weight: 900;
}

.director-dashboard .role-prefooter {
  margin-top: auto;
  padding: 22px 34px;
  background: linear-gradient(90deg, #eef4fb 0%, #e4edf8 100%);
  color: var(--director-navy);
  text-align: left;
}

.director-prefooter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.director-income {
  padding-right: 28px;
  border-right: 1px solid rgba(22, 33, 62, 0.14);
}

.director-income h2,
.director-reports h2 {
  margin: 0 0 18px;
  color: var(--director-blue);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
}

.director-income table {
  width: 100%;
  border-collapse: collapse;
}

.director-income th,
.director-income td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(22, 33, 62, 0.14);
  color: var(--director-navy);
  text-align: left;
  font-size: 0.82rem;
}

.director-income th {
  color: var(--director-blue);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.director-income td {
  font-size: 1.02rem;
  font-weight: 950;
}

.director-income td:first-child {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.director-income tbody tr:last-child td:not(:first-child) {
  color: var(--director-green);
}

.director-reports div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.director-reports a {
  display: grid;
  align-content: end;
  gap: 14px;
  place-items: end start;
  min-height: 116px;
  padding: 17px;
  border: 1px solid rgba(229, 234, 243, 0.9);
  border-radius: 8px;
  background: #fff;
  color: var(--director-navy);
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 14px 32px rgba(22, 33, 62, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.director-reports a svg {
  width: 32px;
  height: 32px;
  color: var(--director-blue);
}

.director-reports a:hover,
.director-reports a:focus-visible {
  border-color: rgba(31, 70, 199, 0.28);
  box-shadow: 0 18px 38px rgba(22, 33, 62, 0.12);
  transform: translateY(-2px);
}

.director-dashboard .role-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-top: 0;
  background: var(--director-navy);
  color: #fff;
  text-align: left;
}

.director-dashboard .role-footer strong,
.director-dashboard .role-footer span {
  display: block;
}

.director-dashboard .role-footer > span {
  justify-self: end;
  font-weight: 850;
}

.director-footer-access {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 750;
}

.director-footer-access svg {
  width: 18px;
  height: 18px;
}

.office-dashboard .office-hero {
  background:
    linear-gradient(90deg, rgba(31, 70, 199, 1) 0%, rgba(31, 70, 199, 0.94) 48%, rgba(31, 70, 199, 0.68) 100%),
    url("/static/img/director-hero-dance.png") right center / auto 100% no-repeat;
}

.office-attention-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.office-attention-card {
  display: block;
  min-height: 178px;
  color: var(--director-navy);
}

.office-attention-card > span {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf1fa;
  color: var(--director-blue);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.office-attention-card strong {
  display: block;
  margin-top: 22px;
  color: var(--director-blue);
  font-size: 2.8rem;
  line-height: 1;
}

.office-attention-card p {
  margin: 14px 0 0;
  color: var(--director-navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.office-attention-card small {
  display: block;
  margin-top: 8px;
  color: #65728a;
  font-weight: 750;
}

.office-setup {
  margin-top: 26px;
}

.office-setup ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.office-setup li {
  min-height: 54px;
  padding: 13px;
  border: 1px solid var(--director-border);
  border-radius: 8px;
  background: #f5f7fb;
  color: var(--director-navy);
  font-size: 0.86rem;
  font-weight: 850;
}

.office-admin-form .form-section h2 {
  color: var(--director-navy);
}

.office-admin-profile-hero {
  background: linear-gradient(135deg, var(--director-navy), #1f46c7);
}

.office-dashboard .director-row {
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
}

.office-dashboard .director-row time {
  font-size: 1rem;
  line-height: 1.2;
}

.office-dashboard .director-row div,
.office-dashboard .director-activity div,
.office-dashboard .director-event div {
  min-width: 0;
}

.office-dashboard .director-row strong,
.office-dashboard .director-activity strong,
.office-dashboard .director-event strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.office-dashboard .director-row em {
  grid-column: 2;
  justify-self: start;
  margin-top: 8px;
  padding: 6px 10px;
}

.office-dashboard .director-activity {
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
}

.office-dashboard .director-activity time,
.office-dashboard .director-event time {
  grid-column: 2;
  justify-self: start;
  margin-top: 4px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.office-dashboard .director-event {
  display: block;
  min-height: 78px;
  padding: 14px 0;
}

.office-dashboard .director-event time {
  display: block;
  margin-top: 8px;
}

.office-dashboard .director-event span,
.office-dashboard .director-activity span,
.office-dashboard .director-row span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.office-simple-events {
  display: grid;
}

.office-simple-events article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px 0;
  border-bottom: 1px solid var(--director-border);
}

.office-simple-events strong,
.office-simple-events span {
  display: block;
}

.office-simple-events strong {
  color: var(--director-navy);
  font-size: 1rem;
  line-height: 1.25;
}

.office-simple-events span {
  margin-top: 4px;
  color: #65728a;
  font-size: 0.82rem;
  font-weight: 750;
}

.office-simple-events time {
  color: var(--director-blue);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.director-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.director-toolbar p,
.director-toolbar h2 {
  margin: 0;
}

.director-toolbar p {
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.director-toolbar h2 {
  margin-top: var(--space-1);
  font-size: 1.5rem;
}

.instructor-filters {
  margin-bottom: var(--space-4);
}

.instructor-filters form,
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.instructor-filters label,
.form-grid label,
.reset-form label,
.progress-form label {
  display: grid;
  gap: var(--space-2);
  color: var(--color-text);
  font-weight: 850;
}

.instructor-filters input,
.instructor-filters select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.reset-form input,
.progress-form input,
.progress-form textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.form-grid textarea,
.progress-form textarea {
  min-height: 6rem;
  padding-top: var(--space-3);
  resize: vertical;
}

.instructor-table-card {
  overflow-x: auto;
}

.instructor-table {
  width: 100%;
  min-width: 74rem;
  border-collapse: collapse;
}

.instructor-table th,
.instructor-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.instructor-table th {
  background: var(--color-soft);
  color: var(--color-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #f8fbff;
}

.avatar-sm,
.avatar-lg {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 950;
  object-fit: cover;
}

.avatar-sm {
  width: 2.8rem;
  height: 2.8rem;
}

.avatar-lg,
.instructor-profile-hero img {
  width: 6rem;
  height: 6rem;
}

.instructor-profile-hero img {
  border-radius: 50%;
  object-fit: cover;
}

.status-active {
  background: #e7f8ef;
  color: #17613c;
}

.status-inactive {
  background: #f1f4f8;
  color: #596579;
}

.status-frozen {
  background: #fff4d6;
  color: #8a5b00;
}

.status-withdrawn {
  background: #ffe5e5;
  color: #9f1d1d;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.table-actions form,
.profile-actions form {
  margin: 0;
}

.instructor-form {
  display: grid;
  gap: var(--space-4);
}

.form-section {
  margin: 0;
}

.wide,
.check-grid {
  grid-column: 1 / -1;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.check-grid legend {
  padding: 0 var(--space-2);
  color: var(--color-muted);
  font-weight: 900;
}

.check-line {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.check-line input,
.check-grid input {
  width: 1.1rem;
  min-height: 1.1rem;
}

.form-note {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
  color: var(--color-muted);
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.instructor-profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2454d6, #173a9a);
  color: #fff;
}

.instructor-profile-hero p,
.instructor-profile-hero h2,
.instructor-profile-hero span {
  margin: 0;
}

.instructor-profile-hero p {
  color: #dfe8ff;
  font-weight: 900;
}

.instructor-profile-hero h2 {
  margin-top: var(--space-1);
  font-size: 1.8rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.member-table-card .table-actions form,
.member-card-actions,
.member-card-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.member-table .table-actions select,
.member-card-actions select {
  min-height: 2.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-weight: 800;
}

.member-table td span {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.member-empty-state {
  display: grid;
  gap: var(--space-2);
  justify-items: start;
  padding: var(--space-5);
}

.member-empty-state strong {
  font-size: 1.2rem;
}

.member-hero-photo {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
}

.member-hero-photo img {
  width: 7rem;
  height: 7rem;
  border: 4px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  object-fit: cover;
}

.member-card-actions {
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.member-tabs a {
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  font-weight: 900;
}

.member-tabs a.active {
  background: var(--color-primary);
  color: #fff;
}

.member-profile-grid {
  margin-bottom: var(--space-4);
}

.member-empty-tabs .role-card h2 {
  margin-top: var(--space-2);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.45;
}

.member-registry-page .director-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.member-row-actions,
.member-row-actions > div {
  display: grid;
  gap: var(--space-2);
}

.member-row-actions form {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) auto;
}

.member-form-master {
  display: grid;
  gap: var(--space-4);
}

.member-form-identity,
.member-form-columns {
  display: grid;
  gap: var(--space-4);
}

.member-form-identity {
  grid-template-columns: minmax(18rem, 0.55fr) minmax(0, 1fr);
  align-items: center;
}

.member-photo-upload {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
}

.member-photo-upload small {
  grid-column: 2;
  color: var(--color-muted);
  font-weight: 800;
}

.member-photo-preview,
.member-avatar-initials {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8eef8;
  color: var(--color-primary);
  font-weight: 950;
}

.member-photo-preview {
  width: 6.5rem;
  height: 6.5rem;
  overflow: hidden;
}

.member-photo-preview img,
.member-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-form-key-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.member-form-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.member-form-column {
  display: grid;
  gap: var(--space-4);
}

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

.member-form-actions {
  position: sticky;
  bottom: var(--space-3);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.member-master-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.member-hero-meta,
.member-hero-actions,
.member-hero-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.member-hero-meta span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 900;
}

.member-hero-actions {
  max-width: 32rem;
  justify-content: flex-end;
}

.member-hero-actions select {
  min-height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
}

.member-card-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.member-profile-aside {
  position: sticky;
  top: var(--space-4);
  display: grid;
  gap: var(--space-3);
}

.member-profile-aside h2 {
  margin: 0;
}

.member-avatar-xl {
  width: 8rem;
  height: 8rem;
  font-size: 2rem;
}

.member-profile-aside dl {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.member-profile-aside dt {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.member-profile-aside dd {
  margin: 0;
  font-weight: 850;
}

.member-profile-aside dd span {
  display: block;
  color: var(--color-muted);
}

.member-contact-actions {
  display: flex;
  gap: var(--space-2);
}

.member-qr-placeholder {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px dashed #b9c8e3;
  border-radius: var(--radius-md);
  background: #f7faff;
}

.member-qr-placeholder div {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: #e8eef8;
  color: var(--color-primary);
  font-weight: 950;
}

.member-workspace {
  min-width: 0;
}

.member-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.member-sensitive-card {
  border-color: #f1b9b9;
  background: #fff8f8;
}

.member-documents summary {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 900;
}

.member-empty-inline,
.member-tab-empty {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}

.member-attendance-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.member-attendance-kpis p {
  grid-column: 1 / -1;
}

.member-attendance-kpis div {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-soft);
}

.member-inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.member-inline-form input,
.member-inline-form select,
.member-inline-form textarea,
.member-mini-table input {
  min-height: 2.5rem;
  padding: 0 var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
}

.member-inline-form textarea {
  min-height: 4.5rem;
  padding-top: var(--space-2);
}

.member-mini-table {
  width: 100%;
  min-width: 58rem;
  margin-top: var(--space-3);
  border-collapse: collapse;
}

.member-workspace .profile-wide {
  overflow-x: auto;
}

.member-mini-table th,
.member-mini-table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.member-mini-table th {
  color: var(--color-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.member-mini-table .is-voided {
  opacity: 0.65;
}

@media (max-width: 1200px) {
  .member-registry-page .director-kpis,
  .member-form-columns,
  .member-card-shell {
    grid-template-columns: 1fr;
  }

  .member-profile-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .member-form-identity,
  .member-form-key-fields,
  .member-form-grid,
  .member-tab-grid,
  .member-tabs,
  .member-inline-form {
    grid-template-columns: 1fr;
  }
}

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

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
}

.profile-grid div {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
}

.profile-grid dt {
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-grid dd {
  margin: var(--space-1) 0 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.reset-form,
.progress-form,
.progress-edit-form,
.activity-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.progress-form,
.progress-edit-form {
  grid-template-columns: 12rem minmax(14rem, 1fr) minmax(16rem, 1.4fr) auto;
  align-items: start;
}

.activity-list article {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-soft);
}

.activity-list strong,
.activity-list span {
  display: block;
}

.activity-list span {
  margin-top: var(--space-1);
  color: var(--color-muted);
  font-weight: 750;
}

@media (max-width: 1100px) {
  .role-grid--four,
  .attention-list,
  .setup-timeline ol,
  .profile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .role-hero {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .role-sidebar {
    position: static;
    height: auto;
  }

  .role-sidebar form {
    margin-top: var(--space-4);
  }

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

  .role-content,
  .role-hero,
  .auth-main {
    padding: var(--space-4);
  }

  .lesson-list {
    grid-template-columns: 1fr;
  }

  .instructor-filters form,
  .form-grid,
  .progress-form,
  .instructor-profile-hero {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: var(--space-4);
  }

  .role-nav,
  .role-grid--four,
  .role-grid--office,
  .attention-list,
  .setup-timeline ol,
  .role-user,
  .profile-tabs,
  .profile-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .instructor-role .role-sidebar {
    padding: var(--space-3);
  }

  .instructor-role .role-brand {
    display: none;
  }

  .instructor-role .role-nav {
    display: flex;
    gap: var(--space-2);
    margin-top: 0;
    overflow-x: auto;
    padding-bottom: var(--space-1);
  }

  .instructor-role .role-nav a {
    flex: 0 0 auto;
    min-height: 2.75rem;
    white-space: nowrap;
  }

  .instructor-role .role-sidebar form {
    margin-top: var(--space-3);
  }
}

@media (max-width: 1280px) {
  .director-quick div {
    width: min(660px, calc(100vw - 330px));
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .director-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .director-main-grid,
  .director-prefooter-grid {
    grid-template-columns: 1fr;
  }

  .director-income {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 1100px) {
  .director-dashboard .role-hero {
    flex-direction: column;
  }

  .director-hero__meta {
    width: 100%;
    margin-left: 0;
  }

  .director-quick div {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .director-dashboard .role-sidebar {
    position: static;
    height: auto;
  }

  .director-dashboard .role-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-dashboard .role-nav small {
    grid-column: 1 / -1;
  }

  .director-dashboard .role-content,
  .director-dashboard .role-prefooter,
  .director-dashboard .role-footer,
  .director-dashboard .role-hero {
    padding: 20px;
  }

  .director-kpis,
  .director-quick div,
  .director-reports div {
    grid-template-columns: 1fr;
  }

  .director-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .director-dashboard .role-nav,
  .director-hero__meta,
  .director-dashboard .role-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .director-kpi,
  .director-row,
  .director-activity,
  .director-event {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .director-income {
    overflow-x: auto;
  }

  .director-income table {
    min-width: 680px;
  }
}

/* Sprint 05C: shared desktop/laptop layout polish */
.role-layout,
.director-dashboard .role-layout {
  grid-template-columns: var(--layout-sidebar-width) minmax(0, 1fr);
  overflow-x: hidden;
}

.role-sidebar,
.director-dashboard .role-sidebar {
  width: var(--layout-sidebar-width);
  min-width: var(--layout-sidebar-width);
  padding: 1.125rem 0.875rem 1.25rem;
  overflow-y: auto;
}

.director-dashboard .director-brand {
  padding: 0 0.625rem 1.25rem;
}

.director-dashboard .director-brand strong {
  font-size: 1.72rem;
}

.director-dashboard .director-brand small {
  margin-top: 0.375rem;
  font-size: 0.84rem;
}

.role-brand {
  padding: 0.875rem;
}

.role-nav,
.director-dashboard .role-nav {
  gap: 0.25rem;
}

.role-nav {
  margin-top: 1rem;
}

.director-dashboard .role-nav small {
  margin: 0.875rem 0.625rem 0.4rem;
}

.role-nav a,
.role-logout,
.director-dashboard .role-nav a,
.director-dashboard .role-logout {
  min-height: 2.45rem;
  padding-inline: 0.75rem;
}

.director-dashboard .role-nav a,
.director-dashboard .role-logout {
  gap: 0.625rem;
  font-size: 0.88rem;
}

.director-dashboard .role-nav a svg {
  width: 1.05rem;
  height: 1.05rem;
}

.role-sidebar form,
.director-dashboard .role-sidebar form {
  padding-top: 0.75rem;
}

.director-sidebar-footer {
  margin-top: 1rem;
}

.role-main-shell,
.director-dashboard .role-main-shell {
  min-width: 0;
  overflow-x: hidden;
}

.role-hero,
.role-content,
.role-prefooter,
.role-footer,
.director-dashboard .role-hero,
.director-dashboard .role-content,
.director-dashboard .role-prefooter,
.director-dashboard .role-footer {
  width: min(100%, var(--layout-content-max));
  margin-inline: auto;
}

.role-hero,
.director-dashboard .role-hero {
  padding: var(--hero-padding-y) var(--space-page-x);
}

.role-content,
.director-dashboard .role-content {
  padding: var(--space-page-y) var(--space-page-x);
}

.role-grid,
.instructor-form,
.member-form-master,
.member-form-identity,
.member-form-columns,
.member-form-column,
.member-card-shell,
.member-tab-grid,
.profile-grid,
.activity-list,
.reset-form,
.progress-form,
.progress-edit-form {
  gap: var(--space-grid);
}

.role-grid--office {
  margin-top: var(--space-section);
}

.action-panel,
.attention-center,
.setup-timeline,
.office-setup {
  margin-top: var(--space-section);
}

.role-card,
.director-panel,
.instructor-today,
.schedule-card,
.alerts-card,
.side-stack .card,
.form-section {
  padding: var(--card-padding);
}

.section-head,
.director-toolbar {
  margin-bottom: 0.75rem;
}

.section-head {
  gap: 0.75rem;
}

.section-head h2,
.role-card h2,
.director-panel h2 {
  line-height: 1.18;
}

.director-hero {
  min-height: 10.25rem;
  align-items: flex-start;
}

.director-hero h1 {
  font-size: clamp(2rem, 2.15vw, 2.42rem);
}

.director-hero__copy > p {
  margin-top: 0.375rem;
  font-size: 0.96rem;
}

.director-quick {
  margin-top: 1rem;
}

.director-quick > span {
  margin-bottom: 0.5rem;
}

.director-quick div {
  gap: 0.75rem;
  width: min(46rem, calc(100vw - var(--layout-sidebar-width) - 6rem));
}

.director-quick a {
  min-height: 2.75rem;
  padding-inline: 1rem;
}

.director-quick svg {
  width: 1.1rem;
  height: 1.1rem;
}

.director-hero__meta {
  gap: 0.75rem;
}

.director-date,
.director-profile {
  min-height: 2.875rem;
}

.director-date {
  padding-inline: 0.875rem;
}

.director-profile {
  padding: 0.375rem 0.875rem 0.375rem 0.5rem;
}

.director-avatar {
  width: 2.25rem;
  height: 2.25rem;
}

.director-kpis,
.office-attention-grid {
  gap: var(--space-grid);
}

.director-kpi {
  min-height: 6.5rem;
  gap: 0.875rem;
  padding: var(--card-padding);
}

.director-kpi__icon {
  width: 3.35rem;
  height: 3.35rem;
}

.director-kpi__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.director-kpi strong {
  margin-top: 0.325rem;
  font-size: 1.86rem;
}

.director-kpi span {
  margin-top: 0.375rem;
}

.director-main-grid {
  gap: var(--space-grid);
  margin-top: var(--space-section);
}

.director-panel {
  min-height: 18.5rem;
}

.director-schedule-list,
.director-activity-list,
.director-events {
  margin-top: 0.75rem;
}

.director-row,
.director-activity,
.director-event {
  min-height: 3.1rem;
}

.director-row {
  grid-template-columns: 1.25rem 3.5rem minmax(0, 1fr) auto;
  gap: 0.625rem;
}

.director-row em {
  padding: 0.375rem 0.625rem;
}

.director-activity {
  grid-template-columns: 2.35rem minmax(0, 1fr) auto;
  gap: 0.625rem;
}

.director-activity i {
  width: 2rem;
  height: 2rem;
}

.director-event {
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.75rem;
}

.director-event > div {
  width: 3.25rem;
  height: 2.85rem;
}

.office-attention-card {
  min-height: 8.75rem;
}

.office-attention-card strong {
  margin-top: 0.875rem;
  font-size: 2.25rem;
}

.office-attention-card p {
  margin-top: 0.5rem;
}

.office-setup ol {
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.office-setup li,
.setup-timeline li {
  min-height: 2.85rem;
  padding: 0.625rem;
}

.director-dashboard .role-prefooter {
  padding: 1rem var(--space-page-x);
}

.director-prefooter-grid {
  gap: 1rem;
}

.director-income h2,
.director-reports h2 {
  margin-bottom: 0.75rem;
}

.director-income th,
.director-income td {
  padding: 0.5rem 0.625rem;
}

.director-reports div {
  gap: 0.625rem;
}

.director-reports a {
  min-height: 5rem;
  gap: 0.625rem;
  padding: 0.75rem;
}

.director-dashboard .role-footer {
  padding: 0.875rem var(--space-page-x);
}

.instructor-filters {
  margin-bottom: var(--space-section);
}

.instructor-filters form,
.form-grid,
.member-form-grid {
  gap: var(--field-gap);
}

.instructor-filters label,
.form-grid label,
.reset-form label,
.progress-form label {
  gap: 0.35rem;
}

.instructor-filters input,
.instructor-filters select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.reset-form input,
.progress-form input,
.progress-form textarea,
.member-inline-form input,
.member-inline-form select,
.member-inline-form textarea,
.member-mini-table input {
  min-height: 2.55rem;
}

.form-grid textarea,
.progress-form textarea {
  min-height: 4.5rem;
}

.instructor-table-card {
  max-width: 100%;
  overflow-x: auto;
}

.instructor-table th,
.instructor-table td {
  padding: 0.55rem 0.675rem;
}

.avatar-sm {
  width: 2.35rem;
  height: 2.35rem;
}

.avatar-lg,
.instructor-profile-hero img {
  width: 5rem;
  height: 5rem;
}

.instructor-profile-hero {
  gap: 0.875rem;
  margin-bottom: var(--space-section);
  padding: var(--card-padding);
}

.instructor-profile-hero h2 {
  font-size: 1.55rem;
}

.profile-tabs,
.member-tabs {
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.member-tabs a {
  min-height: 2.35rem;
  padding-inline: 0.75rem;
}

.member-hero-photo img {
  width: 5.75rem;
  height: 5.75rem;
}

.member-hero-meta,
.member-hero-actions,
.member-hero-actions form {
  gap: 0.5rem;
}

.member-hero-meta span {
  padding: 0.35rem 0.625rem;
}

.member-card-actions {
  margin-bottom: 0.75rem;
}

.member-form-identity {
  grid-template-columns: minmax(16rem, 0.5fr) minmax(0, 1fr);
}

.member-photo-preview {
  width: 5.5rem;
  height: 5.5rem;
}

.member-form-key-fields {
  gap: var(--field-gap);
}

.member-form-actions {
  bottom: 0.75rem;
  gap: 0.625rem;
  padding: 0.75rem;
}

@media (min-width: 861px) {
  .member-form-master {
    padding-bottom: 0;
  }

  .member-form-identity {
    order: 1;
  }

  .member-form-actions {
    order: 2;
    top: 0.75rem;
    bottom: auto;
    width: 100%;
  }

  .member-form-columns {
    order: 3;
  }
}

.member-card-shell {
  grid-template-columns: minmax(15.5rem, 18rem) minmax(0, 1fr);
}

.member-profile-aside {
  top: 0.75rem;
}

.member-profile-aside .role-card {
  padding: var(--card-padding);
}

.member-avatar-xl {
  width: 6.25rem;
  height: 6.25rem;
  font-size: 1.55rem;
}

.member-profile-aside dl {
  gap: 0.5rem;
}

.member-qr-placeholder {
  gap: 0.5rem;
  padding: 0.75rem;
}

.member-qr-placeholder div {
  width: 2.75rem;
  height: 2.75rem;
}

.profile-grid {
  margin-top: 0.625rem;
}

.profile-grid div,
.activity-list article,
.member-attendance-kpis div {
  padding: 0.75rem;
}

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

.member-inline-form {
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.member-mini-table {
  margin-top: 0.75rem;
}

.member-mini-table th,
.member-mini-table td {
  padding: 0.45rem 0.55rem;
}

@media (min-width: 1800px) {
  :root {
    --layout-sidebar-width: 15.5rem;
    --layout-content-max: 97.5rem;
    --space-page-x: 1.5rem;
    --space-page-y: 1.125rem;
  }
}

@media (max-width: 1799px) {
  :root {
    --layout-sidebar-width: 14.75rem;
    --layout-content-max: 92.5rem;
    --space-page-x: 1.125rem;
    --space-page-y: 1rem;
    --space-card: 1rem;
    --space-grid: 0.75rem;
    --hero-padding-y: 1.35rem;
    --card-padding: 1rem;
    --field-gap: 0.5rem;
  }

  .director-dashboard .director-brand strong {
    font-size: 1.58rem;
  }

  .director-hero {
    min-height: 9.5rem;
  }

  .director-hero h1 {
    font-size: clamp(1.9rem, 2vw, 2.25rem);
  }

  .director-kpi {
    min-height: 5.9rem;
  }

  .director-kpi__icon {
    width: 3rem;
    height: 3rem;
  }

  .director-kpi strong {
    font-size: 1.62rem;
  }

  .director-panel {
    min-height: 17rem;
  }

  .office-attention-card {
    min-height: 8rem;
  }
}

@media (max-width: 1439px) {
  :root {
    --layout-sidebar-width: 14.25rem;
    --layout-content-max: 100%;
    --space-page-x: 0.875rem;
    --space-page-y: 0.875rem;
    --space-section: 0.875rem;
    --space-card: 0.875rem;
    --space-grid: 0.625rem;
    --hero-padding-y: 1.1rem;
    --card-padding: 0.875rem;
    --field-gap: 0.5rem;
  }

  .director-dashboard .role-sidebar {
    padding: 0.875rem 0.625rem 1rem;
  }

  .director-dashboard .director-brand {
    padding-bottom: 0.875rem;
  }

  .director-dashboard .director-brand strong {
    font-size: 1.4rem;
  }

  .director-dashboard .director-brand small {
    font-size: 0.76rem;
  }

  .role-nav a,
  .role-logout,
  .director-dashboard .role-nav a,
  .director-dashboard .role-logout {
    min-height: 2.25rem;
    font-size: 0.82rem;
  }

  .director-dashboard .role-nav small {
    margin-top: 0.625rem;
  }

  .director-hero {
    min-height: 8.75rem;
  }

  .director-hero h1 {
    font-size: 1.86rem;
  }

  .director-hero__copy > p {
    font-size: 0.88rem;
  }

  .director-quick {
    margin-top: 0.75rem;
  }

  .director-quick div {
    gap: 0.5rem;
    grid-template-columns: repeat(3, minmax(8.75rem, 1fr));
  }

  .director-quick a {
    min-height: 2.45rem;
    padding-inline: 0.75rem;
    font-size: 0.8rem;
  }

  .director-date,
  .director-profile {
    min-height: 2.5rem;
  }

  .director-avatar {
    width: 2rem;
    height: 2rem;
  }

  .director-kpi {
    gap: 0.625rem;
    min-height: 5.25rem;
  }

  .director-kpi__icon {
    width: 2.65rem;
    height: 2.65rem;
  }

  .director-kpi__icon svg {
    width: 1.35rem;
    height: 1.35rem;
  }

  .director-kpi strong {
    font-size: 1.42rem;
  }

  .director-kpi p,
  .director-kpi span {
    font-size: 0.72rem;
  }

  .director-main-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .director-panel {
    min-height: 15rem;
  }

  .director-panel h2 {
    font-size: 0.9rem;
  }

  .director-row,
  .director-activity,
  .director-event,
  .office-simple-events article {
    min-height: 2.7rem;
  }

  .director-row strong,
  .director-activity strong,
  .director-event p,
  .office-simple-events strong {
    font-size: 0.86rem;
  }

  .director-row span,
  .director-activity span,
  .director-event small,
  .office-simple-events span {
    font-size: 0.74rem;
  }

  .office-attention-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .office-attention-card {
    min-height: 7.25rem;
  }

  .office-attention-card strong {
    font-size: 1.9rem;
  }

  .office-attention-card p {
    font-size: 0.92rem;
  }

  .member-card-shell {
    grid-template-columns: minmax(14.25rem, 16rem) minmax(0, 1fr);
  }

  .member-tabs a {
    min-height: 2.2rem;
    padding-inline: 0.5rem;
    font-size: 0.82rem;
  }

  .member-avatar-xl {
    width: 5.25rem;
    height: 5.25rem;
  }

  .member-form-identity {
    grid-template-columns: minmax(14rem, 0.48fr) minmax(0, 1fr);
  }

  .instructor-table {
    min-width: 68rem;
  }
}

@media (max-width: 1280px) and (min-width: 861px) {
  .director-kpis,
  .member-registry-page .director-kpis {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .director-main-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .director-prefooter-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .member-card-shell {
    grid-template-columns: 1fr;
  }

  .member-profile-aside {
    position: static;
  }

  .member-tab-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .role-layout,
  .director-dashboard .role-layout {
    grid-template-columns: 1fr;
  }

  .role-sidebar,
  .director-dashboard .role-sidebar {
    width: auto;
    min-width: 0;
  }

  .role-hero,
  .role-content,
  .role-prefooter,
  .role-footer,
  .director-dashboard .role-hero,
  .director-dashboard .role-content,
  .director-dashboard .role-prefooter,
  .director-dashboard .role-footer {
    width: 100%;
  }
}

/* Sprint 05D: final desktop density polish */
:root {
  --space-page-y: 0.75rem;
  --space-section: 0.75rem;
  --space-card: 0.95rem;
  --space-grid: 0.625rem;
  --hero-padding-y: 1.05rem;
  --card-padding: 0.95rem;
  --field-gap: 0.45rem;
}

.role-sidebar,
.director-dashboard .role-sidebar {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.role-nav a,
.role-logout,
.director-dashboard .role-nav a,
.director-dashboard .role-logout {
  min-height: 2.25rem;
}

.director-dashboard .role-nav small {
  margin-top: 0.625rem;
  margin-bottom: 0.25rem;
}

.director-sidebar-footer {
  margin-top: 0.75rem;
}

.role-hero,
.director-dashboard .role-hero {
  padding-top: var(--hero-padding-y);
  padding-bottom: var(--hero-padding-y);
}

.director-hero {
  min-height: 7.85rem;
}

.director-hero h1 {
  font-size: clamp(1.82rem, 2vw, 2.18rem);
}

.director-hero__copy > p {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.director-quick {
  margin-top: 0.75rem;
}

.director-quick > span {
  margin-bottom: 0.375rem;
}

.director-quick div {
  gap: 0.55rem;
}

.director-quick a {
  min-height: 2.42rem;
  padding-inline: 0.875rem;
}

.director-hero__meta {
  gap: 0.5rem;
}

.director-date,
.director-profile {
  min-height: 2.45rem;
}

.director-profile {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.director-avatar {
  width: 2rem;
  height: 2rem;
}

.role-content,
.director-dashboard .role-content {
  padding-top: var(--space-page-y);
  padding-bottom: var(--space-page-y);
}

.director-kpis,
.office-attention-grid,
.director-main-grid,
.role-grid,
.member-form-master,
.member-form-columns,
.member-card-shell,
.member-tab-grid {
  gap: var(--space-grid);
}

.director-kpi {
  min-height: 4.95rem;
  gap: 0.625rem;
  padding: 0.8rem;
}

.director-kpi__icon {
  width: 2.65rem;
  height: 2.65rem;
}

.director-kpi__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.director-kpi strong {
  margin-top: 0.2rem;
  font-size: 1.58rem;
}

.director-kpi span {
  margin-top: 0.2rem;
}

.director-main-grid {
  margin-top: 0.7rem;
}

.role-card,
.director-panel,
.instructor-today,
.schedule-card,
.alerts-card,
.side-stack .card,
.form-section {
  padding: var(--card-padding);
}

.director-panel {
  min-height: 14.5rem;
}

.director-schedule-list,
.director-activity-list,
.director-events {
  margin-top: 0.55rem;
}

.director-row,
.director-activity,
.director-event,
.office-simple-events article {
  min-height: 2.45rem;
}

.director-row {
  gap: 0.5rem;
}

.director-row em {
  padding: 0.25rem 0.5rem;
}

.director-activity i {
  width: 1.85rem;
  height: 1.85rem;
}

.director-event > div {
  height: 2.55rem;
}

.director-link {
  margin-top: 0.5rem;
}

.office-attention-card {
  min-height: 6.75rem;
}

.office-attention-card > span {
  padding: 0.3rem 0.55rem;
}

.office-attention-card strong {
  margin-top: 0.55rem;
  font-size: 2rem;
}

.office-attention-card p,
.office-attention-card small {
  margin-top: 0.35rem;
}

.office-setup,
.action-panel,
.attention-center,
.setup-timeline {
  margin-top: 0.75rem;
}

.office-setup ol {
  margin-top: 0.5rem;
}

.office-setup li,
.setup-timeline li {
  min-height: 2.45rem;
  padding: 0.5rem;
}

.director-dashboard .role-prefooter {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.director-income h2,
.director-reports h2 {
  margin-bottom: 0.5rem;
}

.director-income th,
.director-income td {
  padding-top: 0.38rem;
  padding-bottom: 0.38rem;
}

.director-reports a {
  min-height: 4.4rem;
  padding: 0.6rem;
}

.director-reports a svg {
  width: 1.55rem;
  height: 1.55rem;
}

.role-prefooter,
.role-footer,
.director-dashboard .role-footer {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.director-dashboard .role-footer {
  gap: 0.75rem;
}

.director-toolbar {
  margin-bottom: 0.55rem;
}

.instructor-filters {
  margin-bottom: 0.65rem;
}

.instructor-filters form,
.form-grid,
.member-form-grid,
.member-form-key-fields {
  gap: var(--field-gap);
}

.instructor-filters input,
.instructor-filters select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.reset-form input,
.progress-form input,
.progress-form textarea,
.member-inline-form input,
.member-inline-form select,
.member-inline-form textarea,
.member-mini-table input {
  min-height: 2.35rem;
}

.form-grid textarea,
.progress-form textarea,
.member-inline-form textarea {
  min-height: 3.85rem;
  padding-top: 0.55rem;
}

.button {
  min-height: 2.35rem;
  padding: 0 0.85rem;
}

.button-small {
  min-height: 2rem;
}

.instructor-table th,
.instructor-table td,
.member-mini-table th,
.member-mini-table td {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.member-tabs {
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.member-tabs a {
  min-height: 2.05rem;
  padding-inline: 0.5rem;
}

.member-card-actions {
  margin-bottom: 0.55rem;
}

.member-hero-photo img {
  width: 4.9rem;
  height: 4.9rem;
}

.member-hero-meta span {
  padding: 0.28rem 0.55rem;
}

.member-card-shell {
  grid-template-columns: minmax(14.75rem, 17rem) minmax(0, 1fr);
}

.member-profile-aside {
  gap: 0.5rem;
}

.member-avatar-xl {
  width: 5.15rem;
  height: 5.15rem;
  font-size: 1.35rem;
}

.member-profile-aside dl {
  gap: 0.35rem;
}

.member-profile-aside dt {
  font-size: 0.68rem;
}

.member-contact-actions {
  gap: 0.4rem;
}

.member-qr-placeholder {
  gap: 0.35rem;
  padding: 0.6rem;
}

.member-qr-placeholder div {
  width: 2.35rem;
  height: 2.35rem;
}

.profile-grid {
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-grid div,
.activity-list article,
.member-attendance-kpis div {
  padding: 0.6rem;
}

.member-form-identity {
  grid-template-columns: minmax(15rem, 0.45fr) minmax(0, 1fr);
}

.member-photo-preview {
  width: 4.75rem;
  height: 4.75rem;
}

.member-form-actions {
  padding: 0.65rem;
}

@media (max-width: 1799px) {
  :root {
    --space-page-y: 0.65rem;
    --space-section: 0.65rem;
    --space-card: 0.85rem;
    --space-grid: 0.55rem;
    --hero-padding-y: 0.9rem;
    --card-padding: 0.85rem;
    --field-gap: 0.4rem;
  }

  .director-hero {
    min-height: 7.2rem;
  }

  .director-hero h1 {
    font-size: clamp(1.7rem, 1.9vw, 2rem);
  }

  .director-kpi {
    min-height: 4.65rem;
  }

  .director-panel {
    min-height: 13.6rem;
  }

  .office-attention-card {
    min-height: 6.25rem;
  }
}

@media (max-width: 1439px) {
  :root {
    --space-page-y: 0.55rem;
    --space-section: 0.55rem;
    --space-card: 0.75rem;
    --space-grid: 0.45rem;
    --hero-padding-y: 0.72rem;
    --card-padding: 0.75rem;
    --field-gap: 0.35rem;
  }

  .director-hero {
    min-height: 6.65rem;
  }

  .director-hero h1 {
    font-size: 1.62rem;
  }

  .director-hero__copy > p {
    font-size: 0.82rem;
  }

  .director-quick {
    margin-top: 0.5rem;
  }

  .director-quick a {
    min-height: 2.2rem;
  }

  .director-kpi {
    min-height: 4.25rem;
    padding: 0.65rem;
  }

  .director-kpi strong {
    font-size: 1.28rem;
  }

  .director-panel {
    min-height: 12.75rem;
  }

  .office-attention-card {
    min-height: 5.85rem;
  }

  .office-attention-card strong {
    font-size: 1.65rem;
  }

  .instructor-filters input,
  .instructor-filters select,
  .form-grid input,
  .form-grid select,
  .form-grid textarea,
  .reset-form input,
  .progress-form input,
  .progress-form textarea {
    min-height: 2.25rem;
  }

  .button {
    min-height: 2.2rem;
  }

  .member-card-shell {
    grid-template-columns: minmax(13.75rem, 15rem) minmax(0, 1fr);
  }

  .member-tabs a {
    min-height: 1.95rem;
    font-size: 0.8rem;
  }

  .member-avatar-xl {
    width: 4.75rem;
    height: 4.75rem;
  }

  .member-form-identity {
    grid-template-columns: minmax(13rem, 0.42fr) minmax(0, 1fr);
  }
}

/* Sprint 06B: Member Assignment Engine */
.group-members-page .role-content {
  overflow-x: hidden;
}

.group-members-hero .member-hero-meta {
  flex-wrap: wrap;
}

.assignment-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(26rem, 1.35fr) minmax(15rem, 0.7fr);
  gap: var(--space-grid);
  align-items: start;
}

.assignment-panel {
  background: var(--color-surface);
  border: 1px solid rgba(16, 35, 67, 0.09);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--card-padding);
  min-width: 0;
}

.assignment-panel__head,
.assignment-section-title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.assignment-panel__head p,
.assignment-section-title h3 {
  margin: 0;
  color: var(--ples-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.assignment-panel__head h2 {
  margin: 0.12rem 0 0;
  font-size: 1rem;
  color: var(--color-text);
}

.assignment-panel__head > span,
.assignment-section-title span {
  border-radius: 999px;
  background: rgba(41, 98, 163, 0.1);
  color: var(--color-blue);
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  white-space: nowrap;
}

.assignment-filter-form,
.assignment-roster-search {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.assignment-filter-form input,
.assignment-filter-form select,
.assignment-roster-search input,
.assignment-card-form select,
.assignment-actions select {
  width: 100%;
  min-height: 2.25rem;
  border: 1px solid rgba(16, 35, 67, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.assignment-member-list,
.assignment-roster-section {
  display: grid;
  gap: 0.5rem;
}

.assignment-member-list {
  max-height: calc(100vh - 18rem);
  overflow: auto;
  padding-right: 0.2rem;
}

.assignment-member-card,
.assignment-roster-card {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.55rem;
  border: 1px solid rgba(16, 35, 67, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.9);
  padding: 0.55rem;
}

.assignment-member-card {
  cursor: grab;
}

.assignment-member-card.is-dragging {
  opacity: 0.62;
}

.assignment-avatar img,
.assignment-avatar span {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: rgba(41, 98, 163, 0.12);
  color: var(--color-blue);
  font-weight: 800;
}

.assignment-member-main {
  min-width: 0;
}

.assignment-member-main strong,
.assignment-member-main span,
.assignment-member-main small,
.assignment-member-main em {
  display: block;
}

.assignment-member-main strong {
  color: var(--color-text);
  font-size: 0.92rem;
}

.assignment-member-main span,
.assignment-member-main small,
.assignment-member-main em {
  color: var(--ples-muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.assignment-card-form,
.assignment-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.assignment-card-form label {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  color: var(--ples-muted);
  font-size: 0.78rem;
}

.assignment-progress {
  height: 0.45rem;
  background: rgba(16, 35, 67, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.assignment-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.assignment-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ples-muted);
  font-size: 0.8rem;
  margin: 0.45rem 0 0.65rem;
}

.assignment-counts span {
  border: 1px solid rgba(16, 35, 67, 0.08);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: rgba(248, 250, 252, 0.85);
}

.assignment-drop-zone {
  border: 1px dashed rgba(41, 98, 163, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(41, 98, 163, 0.06);
  color: var(--color-blue);
  font-weight: 800;
  padding: 0.7rem;
  text-align: center;
  margin-bottom: 0.65rem;
}

.assignment-drop-zone.is-over,
.assignment-drop-zone.is-loading {
  background: rgba(41, 98, 163, 0.13);
}

.assignment-roster-section {
  margin-top: 0.75rem;
}

.assignment-roster-card {
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: start;
}

.assignment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(16, 35, 67, 0.08);
  color: var(--color-text);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.42rem;
}

.status-badge--primary {
  background: rgba(25, 135, 84, 0.12);
  color: var(--color-green);
}

.assignment-actions {
  justify-content: flex-end;
  max-width: 15rem;
}

.assignment-info-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.assignment-info-list div {
  display: grid;
  gap: 0.1rem;
  border-bottom: 1px solid rgba(16, 35, 67, 0.06);
  padding-bottom: 0.4rem;
}

.assignment-info-list dt,
.assignment-schedule-list p {
  color: var(--ples-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.assignment-info-list dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}

.assignment-schedule-list {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.assignment-schedule-list p {
  margin: 0;
}

.assignment-schedule-list span {
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.95);
  padding: 0.45rem;
  color: var(--ples-muted);
  font-size: 0.8rem;
}

.assignment-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: 22rem;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: var(--color-surface);
  padding: 0.75rem 0.9rem;
  font-weight: 800;
  transition: opacity 160ms ease, transform 160ms ease;
}

.assignment-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.assignment-toast.is-error {
  background: #8a1f1f;
}

.instructor-group-card-link {
  color: inherit;
  text-decoration: none;
}

.member-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.member-group-chip {
  display: grid;
  gap: 0.12rem;
  min-width: 9rem;
  border: 1px solid rgba(16, 35, 67, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.9);
  color: inherit;
  text-decoration: none;
  padding: 0.5rem 0.65rem;
}

.member-group-chip strong {
  color: var(--color-text);
  font-size: 0.88rem;
}

.member-group-chip span {
  color: var(--color-muted);
  font-size: 0.76rem;
}

@media (max-width: 1439px) {
  .assignment-shell {
    grid-template-columns: minmax(16rem, 0.95fr) minmax(23rem, 1.35fr) minmax(12rem, 0.58fr);
  }

  .assignment-info {
    font-size: 0.88rem;
  }

  .assignment-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 1199px) {
  .assignment-shell {
    grid-template-columns: 1fr;
  }

  .assignment-member-list {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .assignment-panel {
    padding: 0.75rem;
  }

  .assignment-member-card,
  .assignment-roster-card {
    grid-template-columns: 2.55rem minmax(0, 1fr);
  }

  .assignment-actions {
    grid-column: 1 / -1;
  }
}

/* Sprint 06C Academy Scheduler Foundation */
.scheduler-page .role-content,
.room-registry-page .role-content,
.room-card-page .role-content {
  gap: var(--space-grid);
}

.scheduler-hero .member-hero-actions,
.room-card-page .member-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
}

.schedule-filters form {
  display: grid;
  grid-template-columns: repeat(6, minmax(8rem, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.schedule-filters label {
  display: grid;
  gap: 0.35rem;
  color: var(--color-muted);
  font-weight: 700;
}

.schedule-filters input,
.schedule-filters select,
.schedule-form input,
.schedule-form select,
.schedule-form textarea {
  width: 100%;
}

.schedule-week-shell {
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.schedule-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(9.875rem, 1fr));
  gap: 0.625rem;
  min-width: 61.25rem;
}

.schedule-day-column {
  min-height: 26.875rem;
  background: var(--ples-card);
  border: 1px solid var(--ples-border);
  border-radius: var(--radius-md);
  padding: 0.625rem;
  display: grid;
  align-content: start;
  gap: 0.625rem;
  box-shadow: var(--ples-shadow);
}

.schedule-day-column header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--ples-navy);
  border-bottom: 1px solid var(--ples-border);
  padding-bottom: 0.5rem;
}

.schedule-day-column header span {
  color: var(--ples-muted);
  font-size: 0.75rem;
}

.schedule-entry-card {
  border: 1px solid var(--ples-border);
  border-left: 5px solid var(--ples-primary);
  border-radius: var(--radius-sm);
  padding: 0.625rem;
  display: grid;
  gap: 0.25rem;
  background: #fff;
  cursor: pointer;
}

.schedule-entry-card time,
.schedule-agenda-card time {
  color: var(--ples-primary);
  font-weight: 800;
}

.schedule-entry-card strong,
.schedule-agenda-card h2 {
  color: var(--ples-navy);
  font-size: 0.95rem;
  line-height: 1.25;
}

.schedule-entry-card span,
.schedule-entry-card small,
.schedule-agenda-card span,
.schedule-agenda-card small {
  color: var(--ples-muted);
}

.schedule-color-green { border-left-color: var(--ples-success); }
.schedule-color-orange { border-left-color: var(--ples-warning); }
.schedule-color-purple { border-left-color: var(--ples-pink); }
.schedule-color-slate { border-left-color: #64748b; }

.schedule-entry-card.has-warning {
  background: #fff7ed;
  border-color: #fed7aa;
}

.schedule-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  align-items: center;
}

.schedule-badges em {
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
}

.schedule-empty {
  border: 1px dashed var(--ples-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  color: var(--ples-muted);
  background: var(--color-soft);
}

.schedule-agenda {
  display: grid;
  gap: 0.625rem;
}

.schedule-agenda-card {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr) auto auto;
  gap: 0.875rem;
  align-items: center;
}

.schedule-conflicts {
  display: grid;
  gap: 0.375rem;
  border-color: #fed7aa;
  background: #fff7ed;
}

.schedule-conflicts p {
  margin: 0;
  color: #9a3412;
  font-weight: 800;
}

.schedule-form.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 900px) {
  .schedule-filters form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-week-grid {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .schedule-day-column {
    min-height: auto;
  }

  .schedule-agenda-card {
    grid-template-columns: 1fr;
  }
}

/* Office rooms and scheduler premium standardization */
.office-room-registry-page .role-content,
.office-room-form-page .role-content,
.scheduler-page .role-content {
  gap: 12px;
}

.office-room-registry-page .role-prefooter,
.office-room-form-page .role-prefooter,
.scheduler-page .role-prefooter {
  display: none;
}

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

.office-room-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-room-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.office-room-card__head span {
  color: #667b98;
  font-size: 0.74rem;
  font-weight: 950;
}

.office-room-card h2 {
  margin: 2px 0;
  color: #07163a;
  font-size: 1.05rem;
}

.office-room-card p {
  margin: 0;
  color: #5d7190;
  font-weight: 850;
}

.office-room-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.office-room-card dt {
  color: #667b98;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.office-room-card dd {
  margin: 2px 0 0;
  color: #102b55;
  font-weight: 900;
}

.office-room-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.office-room-card__actions .button {
  min-height: 38px;
}

.office-room-empty {
  grid-column: 1 / -1;
}

.office-room-form-page .role-hero,
.office-room-form {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.office-room-form-hero {
  min-height: 96px;
  padding: 16px 20px;
  border-radius: 8px;
}

.office-room-form-hero .button {
  min-height: 40px;
  border-color: #fff;
  background: #fff;
  color: #0748cf;
}

.office-room-form {
  display: grid;
  gap: 10px;
}

.office-room-form .form-section {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-room-form .section-head {
  min-height: 40px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e4ecf6;
}

.office-room-form .section-head > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.office-room-form .section-head p {
  margin: 0;
  color: #1558e8;
  font-size: 0.78rem;
  font-weight: 950;
}

.office-room-form .section-head h2 {
  margin: 0;
  color: #07163a;
  font-size: 1rem;
}

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

.office-room-form label {
  gap: 4px;
  font-size: 0.82rem;
}

.office-room-form input,
.office-room-form select {
  min-height: 38px;
}

.office-room-form textarea {
  min-height: 62px;
  max-height: 88px;
}

.office-room-form-actions {
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.office-schedule-toolbar {
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-schedule-toolbar form {
  grid-template-columns: minmax(130px, 0.9fr) repeat(5, minmax(120px, 1fr)) auto;
  gap: 8px;
}

.office-schedule-toolbar label {
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.office-schedule-toolbar input,
.office-schedule-toolbar select,
.office-schedule-toolbar .button {
  min-height: 38px;
}

.scheduler-page .schedule-week-shell {
  overflow-x: visible;
}

.scheduler-page .schedule-week-grid {
  min-width: 0;
  gap: 10px;
}

.scheduler-page .schedule-day-column {
  min-height: 360px;
  padding: 0 10px 10px;
  border-radius: 8px;
  overflow: hidden;
}

.scheduler-page .schedule-day-column header {
  margin: 0 -10px 2px;
  padding: 10px;
  background: #07163a;
  color: #fff;
}

.scheduler-page .schedule-day-column header span {
  color: #cdd8e8;
}

.scheduler-page .schedule-entry-card {
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(16, 42, 82, 0.08);
}

.scheduler-page .schedule-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  gap: 6px;
  text-align: center;
}

.scheduler-page .schedule-empty i {
  color: #1558e8;
  font-style: normal;
  font-size: 1.3rem;
}

.scheduler-page .schedule-empty strong {
  color: #526985;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .office-room-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-schedule-toolbar form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scheduler-page .schedule-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .office-room-card-grid,
  .office-room-form .form-grid,
  .office-schedule-toolbar form,
  .scheduler-page .schedule-week-grid {
    grid-template-columns: 1fr;
  }

  .office-room-form-page .role-content {
    padding-bottom: 78px;
  }

  .office-room-form-hero {
    min-height: 0;
    padding: 14px;
  }

  .office-room-form input,
  .office-room-form select,
  .office-schedule-toolbar input,
  .office-schedule-toolbar select,
  .office-schedule-toolbar .button {
    min-height: 44px;
  }

  .office-room-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    margin: 0 -12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -12px 24px rgba(16, 42, 82, 0.14);
  }

.office-room-form-actions .button {
    min-height: 48px;
  }
}

/* Mobile-first smart schedule form */
.office-schedule-form-page .role-content {
  width: min(100%, 1080px);
  margin-inline: auto;
  gap: 10px;
}

.office-schedule-form-hero {
  width: min(100%, 1080px);
  min-height: 96px;
  margin-inline: auto;
  padding: 16px 20px;
  border-radius: 8px;
}

.office-schedule-form-hero .member-hero-actions .button {
  min-height: 40px;
  border-color: #fff;
  background: #fff;
  color: #0748cf;
}

.office-schedule-smart-form {
  display: grid;
  gap: 10px;
  width: min(100%, 1080px);
  margin-inline: auto;
}

.office-schedule-form-card {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-schedule-form-card .section-head {
  min-height: 40px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e4ecf6;
}

.office-schedule-form-card .section-head > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.office-schedule-form-card .section-head p,
.office-schedule-options summary span {
  margin: 0;
  color: #1558e8;
  font-size: 0.78rem;
  font-weight: 950;
}

.office-schedule-form-card .section-head h2,
.office-schedule-options summary strong {
  margin: 0;
  color: #07163a;
  font-size: 1rem;
}

.office-schedule-smart-form .form-grid {
  gap: 7px 12px;
}

.office-schedule-what-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-schedule-staff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.office-schedule-time-card {
  border-color: #c7d8f2;
}

.office-schedule-time-card .section-head {
  min-height: 44px;
}

.office-schedule-time-card .section-head h2 {
  font-size: 1.08rem;
}

.office-schedule-time-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}

.office-schedule-time-grid label:nth-child(n + 4) {
  grid-column: span 1;
}

.office-private-student-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-private-duration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.office-private-duration-actions button {
  min-height: 34px;
  border: 1px solid #b9cef4;
  border-radius: 999px;
  padding: 0 12px;
  background: #eef4ff;
  color: #1558e8;
  font-weight: 600;
  cursor: pointer;
}

.office-private-duration-actions button:hover,
.office-private-duration-actions button:focus-visible {
  border-color: #1558e8;
  background: #e2edff;
}

.office-schedule-smart-form select:disabled {
  background: #edf5ee;
  color: #315b42;
  opacity: 1;
}

.office-schedule-smart-form label {
  gap: 4px;
  font-size: 0.82rem;
}

.office-schedule-smart-form input,
.office-schedule-smart-form select {
  min-height: 38px;
}

.office-schedule-smart-form textarea {
  min-height: 60px;
  max-height: 86px;
}

.office-schedule-dynamic-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 12px;
  margin-top: 8px;
}

.office-schedule-auto-note {
  width: fit-content;
  margin: 8px 0 0;
  padding: 5px 8px;
  border: 1px solid #b7e2c2;
  border-radius: 999px;
  background: #f0fbf2;
  color: #16763b;
  font-size: 0.78rem;
  font-weight: 900;
}

.office-schedule-auto-note[hidden] {
  display: none;
}

.office-schedule-options {
  padding: 0;
}

.office-schedule-options summary {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.office-schedule-options summary::-webkit-details-marker {
  display: none;
}

.office-schedule-options[open] summary {
  border-bottom: 1px solid #e4ecf6;
}

.office-schedule-options .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 12px 12px;
  overflow: hidden;
  animation: officeScheduleOptionsIn 160ms ease-out;
}

.office-schedule-preview summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}

.office-schedule-preview-status {
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #f8fbff;
  color: #526985;
  font-weight: 900;
}

.office-schedule-preview-status.is-free {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #128a35;
}

.office-schedule-preview-status.has-conflict {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #b91c1c;
}

.office-schedule-preview-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.office-schedule-preview-grid section {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 160px;
  padding: 8px;
  border: 1px solid #e6edf8;
  border-radius: 12px;
  background: #f8fbff;
}

.office-schedule-preview-grid h3 {
  margin: 0;
  color: #061638;
  font-size: 0.88rem;
}

.office-schedule-preview-grid article {
  display: grid;
  gap: 2px;
  padding: 7px;
  border-left: 4px solid #1857e8;
  border-radius: 9px;
  background: #fff;
}

.office-schedule-preview-grid time,
.office-schedule-preview-grid span,
.office-schedule-preview-grid p {
  margin: 0;
  color: #526985;
  font-size: 0.76rem;
  font-weight: 800;
}

@keyframes officeScheduleOptionsIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.office-schedule-form-actions {
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}

.office-schedule-form-page .role-prefooter {
  display: none;
}

@media (max-width: 760px) {
  .office-schedule-form-page .role-content {
    width: 100%;
    padding-bottom: 88px;
  }

  .office-schedule-form-hero {
    width: 100%;
    min-height: 0;
    padding: 14px;
  }

  .office-schedule-smart-form {
    width: 100%;
  }

  .office-schedule-what-grid,
  .office-schedule-time-grid,
  .office-private-student-grid,
  .office-schedule-staff-grid,
  .office-schedule-dynamic-fields,
  .office-schedule-options .form-grid {
    grid-template-columns: 1fr;
  }

  .office-schedule-smart-form input,
  .office-schedule-smart-form select {
    min-height: 44px;
  }

  .office-schedule-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 -12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -12px 24px rgba(16, 42, 82, 0.14);
  }

  .office-schedule-form-actions .button {
    min-height: 48px;
  }

  .office-schedule-form-actions a {
    display: none;
  }
}

.instructor-mobile-role .mobile-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(135deg, var(--color-royal-navy), var(--color-hero-blue));
  color: #fff;
}

.mobile-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18); font-weight: 800; }
.mobile-hero h1, .mobile-hero p { margin: 0; }
.mobile-stack { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; padding-bottom: 78px; }
.mobile-primary-card, .mobile-card { background: #fff; border: 1px solid var(--border-soft); border-radius: 8px; padding: 16px; box-shadow: var(--shadow-card); }
.mobile-primary-card { background: #f8fbff; border-color: #cfe2ff; }
.mobile-primary-card h2, .mobile-card h2 { margin: 4px 0 8px; }
.mobile-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mobile-kpis div { min-height: 64px; padding: 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border-soft); }
.mobile-kpis strong { display: block; font-size: 1.25rem; }
.mobile-list-row, .mobile-agenda, .mobile-attendance-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft); color: inherit; text-decoration: none; }
.mobile-list-row span, .mobile-agenda span, .mobile-agenda small { display: block; color: var(--text-muted); }
.mobile-action, .mobile-link, .mobile-agenda a, .touch-actions a, .touch-actions button, .mobile-card button { min-height: 44px; padding: 10px 14px; border: 0; border-radius: 8px; background: var(--color-hero-blue); color: #fff; font-weight: 700; text-decoration: none; }
.instructor-today-classes header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.instructor-today-classes header span { color: var(--text-muted); font-weight: 800; }
.instructor-today-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.instructor-today-actions a { display: grid; place-items: center; min-height: 58px; border-radius: 12px; background: linear-gradient(135deg, #1558e8, #5b21d6); color: #fff; font-weight: 950; text-align: center; text-decoration: none; }
.instructor-member-search { display: grid; gap: 6px; color: #526985; font-weight: 900; }
.instructor-member-search input { width: 100%; min-height: 44px; border: 1px solid #dbe4f2; border-radius: 12px; padding: 0 12px; }
.instructor-member-search-list { display: grid; }
.touch-actions { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 8px; }
.mobile-payment-panel { display: none; grid-column: 1 / -1; gap: 8px; margin-top: 10px; }
.mobile-payment-panel.is-open { display: grid; }

.instructor-schedule-page {
  max-width: 1050px;
}

.instructor-schedule-premium-page .role-content {
  width: min(100%, 1360px);
  max-width: none;
}

.instructor-schedule-premium-page .instructor-schedule-page {
  width: 100%;
  max-width: none;
}

.instructor-schedule-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.instructor-schedule-kpis article {
  min-height: 78px;
  padding: 14px;
  border: 1px solid rgba(24, 87, 232, 0.14);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(5, 19, 48, 0.08);
}

.instructor-schedule-kpis span {
  display: block;
  color: #66758d;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.instructor-schedule-kpis strong {
  display: block;
  margin-top: 6px;
  color: #061638;
  font-size: 1.55rem;
}

.instructor-schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
}

.instructor-schedule-column,
.instructor-schedule-day-card {
  border: 1px solid rgba(24, 87, 232, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(5, 19, 48, 0.08);
}

.instructor-schedule-column header,
.instructor-schedule-day-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  border-bottom: 1px solid rgba(24, 87, 232, 0.1);
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #08295d, #0d4fd4);
  color: #fff;
}

.instructor-schedule-column header span,
.instructor-schedule-day-card header span {
  color: #dbe8ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.instructor-schedule-day-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.instructor-schedule-column > div,
.instructor-schedule-day-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.instructor-schedule-class {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 11px 11px 10px;
  border: 1px solid rgba(24, 87, 232, 0.14);
  border-left: 5px solid #1857e8;
  border-radius: 10px;
  background: #f9fbff;
  color: #061638;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(5, 19, 48, 0.06);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.instructor-schedule-class:hover,
.instructor-schedule-class:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(5, 19, 48, 0.16);
  outline: none;
}

.instructor-schedule-class--active {
  border-color: rgba(24, 87, 232, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 87, 232, 0.16), 0 16px 34px rgba(5, 19, 48, 0.13);
}

.instructor-schedule-class--recorded {
  border-right: 3px solid #16a34a;
}

.instructor-schedule-class--waiting {
  border-right: 3px solid #f59e0b;
}

.instructor-schedule-class__time {
  color: #1857e8;
  font-size: 0.8rem;
  font-weight: 950;
}

.instructor-schedule-class strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.instructor-schedule-class span,
.instructor-schedule-class small {
  color: #627089;
  font-size: 0.8rem;
  line-height: 1.25;
}

.instructor-schedule-class em {
  justify-self: start;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #0b55d9;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.instructor-schedule-class--recorded em {
  background: #dcfce7;
  color: #15803d;
}

.instructor-schedule-class--waiting em {
  background: #fff7ed;
  color: #c2410c;
}

.instructor-schedule-class.tone-green,
.instructor-schedule-legend .tone-green i { border-left-color: #16a34a; }
.instructor-schedule-class.tone-orange,
.instructor-schedule-legend .tone-orange i { border-left-color: #f59e0b; }
.instructor-schedule-class.tone-purple,
.instructor-schedule-legend .tone-purple i { border-left-color: #7c3aed; }
.instructor-schedule-class.tone-yellow,
.instructor-schedule-legend .tone-yellow i { border-left-color: #eab308; }
.instructor-schedule-class.tone-blue,
.instructor-schedule-legend .tone-blue i { border-left-color: #1857e8; }
.instructor-schedule-class.tone-slate,
.instructor-schedule-legend .tone-slate i { border-left-color: #64748b; }
.instructor-schedule-class.tone-teal,
.instructor-schedule-legend .tone-teal i { border-left-color: #0d9488; }
.instructor-schedule-class.tone-pink,
.instructor-schedule-legend .tone-pink i { border-left-color: #db2777; }
.instructor-schedule-class.tone-indigo,
.instructor-schedule-legend .tone-indigo i { border-left-color: #4f46e5; }
.instructor-schedule-class.tone-red,
.instructor-schedule-legend .tone-red i { border-left-color: #dc2626; }
.instructor-schedule-class.tone-amber,
.instructor-schedule-legend .tone-amber i { border-left-color: #d97706; }
.instructor-schedule-class.tone-cyan,
.instructor-schedule-legend .tone-cyan i { border-left-color: #0891b2; }
.instructor-schedule-class.tone-lime,
.instructor-schedule-legend .tone-lime i { border-left-color: #65a30d; }
.instructor-schedule-class.tone-violet,
.instructor-schedule-legend .tone-violet i { border-left-color: #8b5cf6; }
.instructor-schedule-class.tone-emerald,
.instructor-schedule-legend .tone-emerald i { border-left-color: #059669; }

.instructor-schedule-empty {
  margin: 0;
  padding: 18px 12px;
  border: 1px dashed rgba(24, 87, 232, 0.2);
  border-radius: 10px;
  background: #f8fbff;
  color: #66758d;
  font-weight: 800;
}

.instructor-schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instructor-schedule-legend span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(24, 87, 232, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
}

.instructor-schedule-legend i {
  width: 12px;
  height: 12px;
  border-left: 12px solid #1857e8;
  border-radius: 50%;
}

.instructor-schedule-mobile-days {
  display: none;
  gap: 12px;
}

.instructor-schedule-premium-hero {
  width: 100%;
  min-height: 220px;
}

.instructor-schedule-premium-hero .director-hero__copy span {
  display: block;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.instructor-schedule-premium-hero .instructor-schedule-room-filter {
  margin: 12px 0 0;
}

.instructor-schedule-premium-hero .instructor-schedule-room-filter label {
  display: inline-grid;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.instructor-schedule-premium-hero .instructor-schedule-room-filter select {
  min-width: 156px;
}

.instructor-schedule-premium-hero .instructor-schedule-hero-controls {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 20px;
  justify-content: flex-start;
}

.instructor-schedule-premium-hero .instructor-schedule-main-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 0;
}

.instructor-schedule-premium-hero .instructor-schedule-main-actions a,
.instructor-schedule-premium-hero .instructor-schedule-room-filter select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #061638;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 20, 80, 0.14);
}

.instructor-schedule-premium-hero .instructor-schedule-main-actions a.active {
  background: #fff;
  color: #1857e8;
  box-shadow: inset 0 -3px 0 #8ebeff, 0 10px 22px rgba(0, 20, 80, 0.14);
}

.instructor-schedule-premium-hero .instructor-schedule-main-actions a:hover,
.instructor-schedule-premium-hero .instructor-schedule-main-actions a:focus-visible {
  background: #fff;
  color: #061638;
  transform: none;
  outline: none;
}

.instructor-schedule-premium-page .instructor-schedule-timeline {
  width: 100%;
}

.instructor-schedule-premium-page .instructor-schedule-week {
  min-width: 0;
}

.instructor-schedule-premium-page .instructor-schedule-grid:empty {
  min-height: 100%;
}

@media (max-width: 900px) {
  .instructor-schedule-premium-hero {
    min-height: 0;
  }

  .instructor-schedule-premium-hero .instructor-schedule-hero-controls,
  .instructor-schedule-premium-hero .instructor-schedule-main-actions {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 760px) {
  .instructor-schedule-premium-hero .instructor-schedule-main-actions {
    flex-wrap: wrap;
    overflow: visible;
  }

  .instructor-schedule-premium-hero .instructor-schedule-main-actions a {
    min-height: 38px;
    padding: 0 10px;
  }
}

@media (orientation: landscape) and (max-width: 960px) {
  .instructor-schedule-premium-hero {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .instructor-schedule-premium-hero .director-hero__copy h1 {
    font-size: 1.45rem;
  }

  .instructor-schedule-premium-hero .director-hero__copy span {
    font-size: 0.88rem;
  }

  .instructor-schedule-premium-hero .instructor-schedule-hero-controls,
  .instructor-schedule-premium-hero .instructor-schedule-main-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .instructor-schedule-premium-hero .instructor-schedule-main-actions a,
  .instructor-schedule-premium-hero .instructor-schedule-room-filter select {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.74rem;
  }
}

.instructor-schedule-empty--week {
  padding: 12px 14px;
  border-style: solid;
}

.instructor-schedule-room-filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 900;
}

.instructor-schedule-room-filter select option {
  color: #061638;
}

.instructor-schedule-room-title {
  display: grid;
  gap: 2px;
  padding: 11px 14px;
  border: 1px solid rgba(24, 87, 232, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(5, 19, 48, 0.08);
}

.instructor-schedule-room-title h2,
.instructor-schedule-room-title p {
  margin: 0;
}

.instructor-schedule-room-title h2 {
  color: #061638;
  font-size: 1rem;
}

.instructor-schedule-room-title p {
  color: #526985;
  font-size: 0.82rem;
  font-weight: 850;
}

.instructor-schedule-timeline [data-schedule-entry][hidden],
.instructor-schedule-timeline [data-schedule-time][hidden],
.instructor-schedule-timeline [data-schedule-now][hidden] {
  display: none;
}

.instructor-schedule-portrait-note {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #f8fbff;
  color: #526985;
  font-weight: 850;
}

.instructor-schedule-timeline {
  --schedule-header-height: 48px;
  display: grid;
  grid-template-columns: 58px minmax(820px, 1fr);
  overflow-x: auto;
  border: 1px solid rgba(24, 87, 232, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(5, 19, 48, 0.1);
}

.instructor-schedule-time-axis {
  position: sticky;
  left: 0;
  z-index: 4;
  position: sticky;
  min-height: calc(var(--schedule-header-height) + var(--schedule-height));
  border-right: 1px solid #e6edf8;
  background: #f8fbff;
}

.instructor-schedule-time-axis b {
  position: absolute;
  top: calc(var(--schedule-header-height) + var(--time-top));
  right: 7px;
  transform: translateY(-50%);
  color: #526985;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: right;
}

.instructor-schedule-time-axis span {
  display: block;
  height: var(--schedule-header-height);
}

.instructor-schedule-timeline .instructor-schedule-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(128px, 1fr));
  gap: 0;
  min-width: 820px;
  overflow: visible;
  padding: 0;
}

.instructor-schedule-timeline .instructor-schedule-column {
  border: 0;
  border-right: 1px solid #e6edf8;
  border-radius: 0;
  box-shadow: none;
}

.instructor-schedule-timeline .instructor-schedule-column header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: var(--schedule-header-height);
  border-radius: 0;
}

.instructor-schedule-grid {
  position: relative;
  min-height: var(--schedule-height);
  padding: 0 6px;
  background-image: linear-gradient(to bottom, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 100% calc(60px * var(--schedule-ppm));
}

.instructor-schedule-grid .instructor-schedule-class {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: var(--class-top);
  left: calc(var(--class-left, 0%) + 6px);
  width: calc(var(--class-width, 100%) - 12px);
  height: var(--class-height);
  min-height: 0;
  overflow: hidden;
  margin: 2px 0;
  padding: 4px 5px;
  border-left-width: 5px;
  gap: 0;
  line-height: 1.06;
}

.instructor-schedule-grid .instructor-schedule-class span,
.instructor-schedule-grid .instructor-schedule-class small {
  margin: 0;
  font-size: 0.59rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.instructor-schedule-grid .instructor-schedule-class .instructor-schedule-class__time {
  margin: 0 0 1px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.instructor-schedule-grid .instructor-schedule-class strong {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.06;
  word-break: normal;
  overflow-wrap: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.instructor-schedule-grid .instructor-schedule-class small {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.05;
}

.instructor-schedule-now {
  position: absolute;
  top: var(--now-top);
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  margin-top: -1px;
  border-radius: 999px;
  background: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.instructor-tone-blue { --instructor-border: #1857e8; --instructor-bg: #eef4ff; }
.instructor-tone-purple { --instructor-border: #7c3aed; --instructor-bg: #f3e8ff; }
.instructor-tone-orange { --instructor-border: #ea580c; --instructor-bg: #fff7ed; }
.instructor-tone-green { --instructor-border: #16a34a; --instructor-bg: #ecfdf3; }
.instructor-tone-teal { --instructor-border: #0d9488; --instructor-bg: #ecfeff; }
.instructor-tone-red { --instructor-border: #dc2626; --instructor-bg: #fef2f2; }
.instructor-tone-indigo { --instructor-border: #4f46e5; --instructor-bg: #eef2ff; }
.instructor-tone-amber { --instructor-border: #d97706; --instructor-bg: #fffbeb; }
.instructor-tone-slate { --instructor-border: #64748b; --instructor-bg: #f8fafc; }

.instructor-schedule-class[class*="instructor-tone-"] {
  border-left-color: var(--instructor-border);
  background: var(--instructor-bg);
}

.office-schedule-page {
  max-width: none;
  width: 100%;
  padding-bottom: 24px;
}

.office-schedule-page .office-schedule-quick-create {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.office-schedule-quick-create a {
  min-height: 76px;
  padding: 12px 14px;
  border: 2px solid #8ebeff;
  border-radius: 14px;
  background: #edf6ff;
  box-shadow: 0 10px 22px rgba(21, 88, 232, 0.12);
}

.office-schedule-quick-create a:nth-child(2) {
  border-color: #c5a8ff;
  background: #f5f0ff;
}

.office-schedule-quick-create a:nth-child(3) {
  border-color: #ffadd1;
  background: #fff1f7;
}

.office-schedule-quick-create a:hover,
.office-schedule-quick-create a:focus-visible {
  transform: none;
  border-color: #5f9cff;
  box-shadow: 0 14px 28px rgba(21, 88, 232, 0.18);
  outline: none;
}

.office-schedule-quick-create a:nth-child(2):hover,
.office-schedule-quick-create a:nth-child(2):focus-visible {
  border-color: #a886ff;
}

.office-schedule-quick-create a:nth-child(3):hover,
.office-schedule-quick-create a:nth-child(3):focus-visible {
  border-color: #ff86bd;
}

.office-schedule-quick-create a strong {
  font-size: 0.86rem;
  letter-spacing: 0;
}

.office-schedule-quick-create a small {
  font-size: 0.75rem;
  line-height: 1.25;
}

.office-schedule-quick-create a span {
  width: 22px;
  height: 22px;
  border-radius: 9px;
  font-size: 0.7rem;
}

.office-schedule-page .instructor-schedule-timeline {
  width: 100%;
}

.office-schedule-page .instructor-schedule-week {
  min-width: 0;
}

.office-schedule-page .instructor-schedule-grid .instructor-schedule-class span {
  display: none;
}

.office-schedule-page .instructor-schedule-grid .instructor-schedule-class {
  justify-content: center;
  gap: 3px;
  padding: 6px 7px;
  border-radius: 12px;
}

.office-schedule-page .instructor-schedule-class:hover,
.office-schedule-page .instructor-schedule-class:focus-visible {
  transform: none;
  box-shadow: 0 14px 28px rgba(5, 19, 48, 0.16);
}

.office-schedule-page .instructor-schedule-grid .instructor-schedule-class strong {
  font-weight: 700;
}

.office-schedule-page .instructor-schedule-grid .instructor-schedule-class small {
  color: #526985;
  font-weight: 500;
}

.office-schedule-page .instructor-schedule-grid .instructor-schedule-class em,
.office-schedule-page .instructor-schedule-grid .instructor-schedule-class .instructor-schedule-class__time {
  display: none;
}

.director-final-dashboard .office-schedule-premium-hero {
  min-height: 214px;
}

.director-final-dashboard .office-form-premium-hero {
  min-height: 176px;
}

.director-final-dashboard .office-form-premium-hero .director-hero__copy span {
  display: block;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.5;
}

.director-final-dashboard .office-form-premium-hero .office-form-hero-actions {
  align-items: flex-end;
  gap: 10px;
}

.director-final-dashboard .office-form-premium-hero .office-form-hero-actions .button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #061638;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(0, 20, 80, 0.14);
}

.director-final-dashboard .office-form-premium-hero .office-form-hero-actions .button:hover,
.director-final-dashboard .office-form-premium-hero .office-form-hero-actions .button:focus-visible {
  background: #fff;
  color: #061638;
  transform: none;
}

.director-final-dashboard .office-schedule-premium-hero .director-hero__copy p {
  margin-bottom: 7px;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  max-width: 100%;
  margin-top: 18px;
  justify-content: flex-start;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-command-group {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-date {
  color: rgba(255, 255, 255, 0.96);
  text-align: right;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-date span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-date strong {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.94);
  color: #061638;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 20, 80, 0.14);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, color 160ms ease;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary {
  cursor: pointer;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary {
  border-color: rgba(255, 255, 255, 0.7);
  background: #fff;
  color: #061638;
  box-shadow: 0 12px 26px rgba(0, 20, 80, 0.2);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary:hover,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary:focus-visible {
  background: #f8fbff;
  border-color: #bcd4ff;
  box-shadow: 0 16px 30px rgba(0, 20, 80, 0.26);
  transform: translateY(-1px);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button:hover,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 20px rgba(0, 20, 80, 0.12);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a:hover,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.48);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a.is-active {
  border-color: #bcd4ff;
  background: #fff;
  color: #1f46c7;
  box-shadow: 0 0 0 3px rgba(188, 212, 255, 0.22), 0 10px 22px rgba(0, 20, 80, 0.16);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a:active,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button:active,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary:active {
  transform: translateY(1px);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a[aria-disabled="true"],
.director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button:disabled,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu {
  position: relative;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary {
  list-style: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary::-webkit-details-marker {
  display: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu div {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(5, 19, 48, 0.22);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu:not([open]) div {
  display: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu div a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: #061638;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu div a:hover,
.director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu div a:focus-visible {
  background: #eef4ff;
  outline: none;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls .instructor-schedule-room-filter {
  margin: 0;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls .instructor-schedule-room-filter label {
  display: inline-grid;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls select {
  min-width: 210px;
  max-width: 250px;
  border-color: rgba(255, 255, 255, 0.74);
  background: #fff;
  color: #061638;
  font-weight: 500;
  box-shadow: 0 10px 22px rgba(0, 20, 80, 0.14);
}

.director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls select:focus-visible {
  border-color: #bcd4ff;
  outline: 3px solid rgba(188, 212, 255, 0.32);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .office-schedule-hero-controls {
    max-width: none;
    margin-top: 16px;
  }
}

@media (max-width: 960px) and (orientation: landscape) {
  .director-final-dashboard .office-schedule-premium-hero {
    min-height: 0;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: 8px 10px;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-command-group--room,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-command-group--primary {
    align-self: end;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls select {
    min-height: 36px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .office-schedule-page .office-schedule-quick-create {
    grid-template-columns: 1fr;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-command-group,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav {
    width: 100%;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-command-group--primary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-hero-controls select,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu summary,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-compact-button,
  .director-final-dashboard .office-schedule-premium-hero .office-schedule-week-nav a {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .director-final-dashboard .office-schedule-premium-hero .office-schedule-new-menu div {
    width: min(220px, calc(100vw - 32px));
  }
}

.instructor-schedule-legend [class*="instructor-tone-"] i {
  border-left-color: var(--instructor-border);
}

.instructor-attendance-panel {
  max-width: 1040px;
  color: #061638;
}

.instructor-attendance-premium-page .role-content,
.instructor-member-file-page .role-content {
  width: min(100%, 1360px);
  max-width: none;
}

.instructor-attendance-premium-page .instructor-attendance-panel,
.instructor-member-file-page .instructor-member-file {
  width: 100%;
  max-width: none;
}

.instructor-attendance-premium-hero,
.instructor-member-premium-hero {
  width: 100%;
  min-height: 190px;
}

.instructor-attendance-premium-hero .director-hero__copy span {
  display: block;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.instructor-attendance-hero-meta {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.instructor-attendance-hero-meta dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
}

.instructor-attendance-hero-meta dl div {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.instructor-attendance-hero-meta dt,
.instructor-member-premium-hero dt {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.instructor-attendance-hero-meta dd,
.instructor-member-premium-hero dd {
  margin: 3px 0 0;
  color: #fff;
  font-weight: 600;
}

.instructor-attendance-hero-meta .button,
.instructor-member-hero-actions .button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #061638;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(0, 20, 80, 0.14);
}

.instructor-attendance-panel .mobile-card {
  padding: 0;
  overflow: hidden;
}

.instructor-attendance-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.instructor-attendance-kpis article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.1);
}

.instructor-attendance-kpis span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.instructor-attendance-kpis strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.instructor-attendance-kpis .is-present { color: #128a35; background: #f0fdf4; border-color: #bbf7d0; }
.instructor-attendance-kpis .is-absent { color: #df101b; background: #fff1f2; border-color: #fecdd3; }
.instructor-attendance-kpis .is-paid { color: #1558e8; background: #eff6ff; border-color: #bfdbfe; }

.instructor-attendance-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.instructor-attendance-info p {
  margin: 0;
  color: #0b2c68;
  font-weight: 400;
}

.instructor-attendance-info button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #1558e8;
  color: #fff;
  font-weight: 950;
}

.instructor-attendance-info button:disabled {
  cursor: not-allowed;
  background: #e8eef7;
  color: #6b7890;
}

.instructor-attendance-list header,
.instructor-attendance-row {
  display: grid;
  grid-template-columns: 48px minmax(170px, 1.4fr) minmax(112px, 0.85fr) minmax(112px, 0.75fr) 32px;
  gap: 8px;
  align-items: center;
}

.instructor-attendance-list header {
  padding: 12px 14px;
  background: #07163a;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.instructor-attendance-row {
  padding: 6px 14px;
  border-bottom: 1px solid #e8eef6;
}

.instructor-attendance-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #16a34a;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.payment-unpaid .instructor-attendance-index,
.payment-partial .instructor-attendance-index { background: #f6b300; }
.payment-late .instructor-attendance-index { background: #f0122d; }

.instructor-attendance-member {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.instructor-attendance-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  background: #e8f0ff;
  color: #1558e8;
  font-weight: 950;
}

.instructor-attendance-avatar img {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.instructor-attendance-member strong,
.instructor-attendance-member small {
  display: block;
  overflow-wrap: anywhere;
}

.instructor-attendance-member strong {
  color: #061638;
  font-weight: 950;
}

.instructor-attendance-member small {
  margin-top: 2px;
  color: #526985;
  font-weight: 850;
}

.instructor-attendance-toggle {
  display: grid;
}

.instructor-attendance-toggle button,
.instructor-payment-cell button,
.instructor-payment-cell strong {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  border-radius: 9px;
  font-size: 1.2rem;
  font-weight: 950;
}

.instructor-attendance-toggle button {
  width: 100%;
  min-height: 52px;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.instructor-attendance-toggle button.is-absent,
.instructor-attendance-toggle button.attendance-toggle--absent {
  background: #fff1f2;
  color: #df101b;
}

.instructor-attendance-toggle button.is-present,
.instructor-attendance-toggle button.attendance-toggle--present {
  background: #f1f7f3;
  color: #128a35;
}

.instructor-attendance-toggle button:active {
  transform: translateY(1px);
}

.instructor-payment-cell strong {
  gap: 2px;
  color: #128a35;
  background: #f3fbf5;
  font-size: 1rem;
}

.payment-partial .instructor-payment-cell strong {
  color: #a15c00;
  background: #fff7df;
}

.instructor-payment-cell button {
  width: 100%;
  background: #fff2bd;
  color: #ed8a00;
  font-size: 0.95rem;
}

.payment-late .instructor-payment-cell button {
  background: #ffe5e9;
  color: #df101b;
}

.payment-confirmation-status {
  display: block;
  font-size: 0.64rem;
  line-height: 1.15;
  color: #64748b;
  text-align: center;
}

.payment-confirmation-status.is-queued,
.payment-confirmation-status.is-sent {
  color: #1558e8;
}

.payment-confirmation-status.is-delivered {
  color: #128a35;
}

.payment-confirmation-status.is-failed {
  color: #df101b;
}

.instructor-member-open {
  color: #061638;
  font-size: 2rem;
  font-weight: 850;
  text-decoration: none;
}

.instructor-payment-panel {
  grid-column: 2 / -1;
  padding: 10px;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  background: #f8fbff;
}

.instructor-payment-panel p {
  margin: 0;
  color: #526985;
  font-weight: 850;
}

.instructor-payment-sheet[hidden] {
  display: none;
}

.instructor-payment-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.instructor-payment-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 34, 0.52);
}

.instructor-payment-sheet__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
  padding: 16px;
  border: 1px solid #dbe4f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 18, 48, 0.28);
}

.instructor-payment-sheet__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #f8fbff;
}

.instructor-payment-sheet__summary span {
  color: #526985;
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.instructor-payment-sheet__summary strong {
  color: #061638;
  font-size: 1.45rem;
  font-weight: 950;
}

.instructor-payment-sheet__panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.instructor-payment-sheet__panel header h2,
.instructor-payment-sheet__panel header p {
  margin: 2px 0 0;
}

.instructor-payment-sheet__panel header button {
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #eef4ff;
  color: #0b2c68;
  font-size: 1.4rem;
  font-weight: 950;
}

.instructor-payment-sheet__panel label {
  display: grid;
  gap: 5px;
  color: #526985;
  font-weight: 850;
}

.instructor-payment-sheet__panel input,
.instructor-payment-sheet__panel select,
.instructor-payment-sheet__panel textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe4f2;
  border-radius: 10px;
  padding: 9px 10px;
}

.instructor-payment-sheet__panel textarea {
  min-height: 64px;
}

.instructor-payment-sheet__advanced {
  display: grid;
  gap: 8px;
  border-top: 1px solid #e6edf7;
  padding-top: 4px;
}

.instructor-payment-sheet__advanced summary {
  min-height: 38px;
  cursor: pointer;
  color: #1558e8;
  font-weight: 950;
}

.instructor-payment-sheet__advanced label {
  margin-top: 8px;
}

.instructor-payment-sheet__error {
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff1f2;
  color: #b4232a;
  font-weight: 900;
}

.instructor-payment-sheet__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.instructor-payment-sheet__actions button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 950;
}

.instructor-payment-sheet__actions button:first-child {
  background: #1558e8;
  color: #fff;
}

.instructor-payment-sheet__actions button:last-child {
  background: #eef4ff;
  color: #0b2c68;
}

.mobile-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 90;
  max-width: min(420px, calc(100vw - 28px));
  transform: translate(-50%, 18px);
  opacity: 0;
  padding: 10px 14px;
  border-radius: 999px;
  background: #061638;
  color: #fff;
  font-weight: 900;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.mobile-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.instructor-payment-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 12px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  background: #fff;
}

.instructor-payment-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #061638;
  font-weight: 850;
}

.instructor-payment-legend i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.instructor-payment-legend .paid { background: #16a34a; }
.instructor-payment-legend .unpaid { background: #f6b300; }
.instructor-payment-legend .late { background: #f0122d; }

.instructor-member-history-hero {
  display: grid;
  gap: 12px;
}

.instructor-member-history-hero__main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.instructor-member-history-hero h2 {
  margin: 2px 0;
}

.instructor-member-history-hero small {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.instructor-member-history-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.instructor-member-history-tabs::-webkit-scrollbar {
  display: none;
}

.instructor-member-history-tabs a {
  flex: 0 0 auto;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid #dbe4f2;
  border-radius: 999px;
  background: #fff;
  color: #0b2c68;
  font-weight: 900;
  text-decoration: none;
}

.instructor-member-history-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.instructor-member-history-kpis span {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 10px;
  background: #f6f9ff;
  color: #526985;
  font-weight: 850;
}

.instructor-member-history-kpis strong {
  color: #061638;
  font-size: 1.15rem;
}

.instructor-member-file {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 76px;
}

.instructor-member-file-page .role-prefooter {
  display: none;
}

.instructor-member-file-page .role-footer {
  margin-top: 12px;
}

.instructor-member-premium-hero {
  min-height: 220px;
}

.instructor-member-premium-hero__copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.instructor-member-premium-hero__main {
  min-width: 0;
}

.instructor-member-premium-hero__main h1 {
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.12;
}

.instructor-member-premium-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.instructor-member-premium-hero dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, max-content));
  gap: 10px;
  margin: 12px 0 0;
}

.instructor-member-premium-hero dl div {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.instructor-member-premium-hero dd small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 400;
}

.instructor-member-hero-actions {
  align-items: end;
}

.instructor-member-premium-hero__main p {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .instructor-attendance-premium-hero,
  .instructor-member-premium-hero {
    min-height: 0;
  }

  .instructor-attendance-hero-meta,
  .instructor-member-hero-actions {
    justify-items: stretch;
    align-items: stretch;
  }

  .instructor-attendance-hero-meta dl,
  .instructor-member-premium-hero dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instructor-attendance-hero-meta .button,
  .instructor-member-hero-actions .button {
    width: 100%;
  }

  .instructor-member-premium-hero__copy {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .instructor-member-file-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .instructor-member-file-tabs::-webkit-scrollbar {
    display: none;
  }

  .instructor-member-file-tabs button {
    flex: 0 0 auto;
    min-width: 112px;
  }
}

@media (orientation: landscape) and (max-width: 960px) {
  .instructor-attendance-premium-page .role-content,
  .instructor-member-file-page .role-content {
    padding-top: 8px;
  }

  .instructor-attendance-premium-hero,
  .instructor-member-premium-hero {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .instructor-attendance-premium-hero .director-hero__copy h1,
  .instructor-member-premium-hero__main h1 {
    font-size: 1.45rem;
  }

  .instructor-attendance-hero-meta dl,
  .instructor-member-premium-hero dl {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    gap: 8px;
  }

  .instructor-attendance-hero-meta dl div,
  .instructor-member-premium-hero dl div {
    padding: 8px 10px;
  }

  .instructor-attendance-kpis article {
    min-height: 64px;
    padding: 9px 10px;
  }

  .instructor-attendance-kpis strong {
    font-size: 1.35rem;
  }
}

.instructor-member-file-photo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.instructor-member-file-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.instructor-member-file h1 {
  margin: 0;
  font-size: clamp(1.22rem, 5.2vw, 1.75rem);
  line-height: 1.05;
}

.member-file-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
}

.member-file-badge.is-active {
  background: #16a34a;
}

.instructor-member-file-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid #dbe4f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(4, 18, 48, 0.08);
}

.instructor-member-file-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #526985;
  font-weight: 950;
}

.instructor-member-file-tabs button[aria-selected="true"] {
  background: #eef4ff;
  color: #1558e8;
}

.member-file-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe4f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(4, 18, 48, 0.08);
}

.member-file-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-file-card header span {
  color: #1558e8;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-file-card h2 {
  margin: 2px 0 0;
  color: #061638;
  font-size: 1.1rem;
}

.member-file-month-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.member-file-month-nav button,
.member-file-card header button {
  min-height: 36px;
  border: 1px solid #dbe4f2;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #1558e8;
  font-weight: 900;
  text-decoration: none;
}

.member-file-month-nav button:disabled {
  opacity: 0.45;
}

.member-file-month-error {
  margin: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: #fff1f2;
  color: #b91c1c;
  font-weight: 900;
}

.member-file-card--timeline.is-loading {
  opacity: 0.72;
}

.member-file-markers {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.member-file-marker {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 4px 7px;
  background: #eef4ff;
  color: #1558e8;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(4, 18, 48, 0.08);
}

.member-file-marker strong {
  font-size: 1.05rem;
  line-height: 1;
}

.member-file-marker small {
  margin-top: 3px;
  color: inherit;
  font-size: 0.66rem;
}

.member-file-marker.is-present { background: #ecfdf3; color: #128a35; }
.member-file-marker.is-absent { background: #fff1f2; color: #df101b; }
.member-file-marker.is-excused { background: #fff7df; color: #a15c00; }
.member-file-marker.is-late { background: #eaf7ff; color: #0369a1; }
.member-file-marker.is-payment { background: #eff0ff; color: #4f46e5; }
.member-file-marker.is-payment-partial { background: #fff7df; color: #a15c00; }

.member-file-month-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-file-month-summary span,
.member-file-mini div {
  display: grid;
  gap: 3px;
  min-height: 72px;
  align-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #f8fbff;
}

.member-file-month-summary small,
.member-file-mini small {
  color: #526985;
  font-weight: 900;
}

.member-file-month-summary strong,
.member-file-mini strong {
  color: #061638;
  font-size: 1rem;
}

.member-file-semester {
  display: grid;
  gap: 8px;
}

.member-file-semester button {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f8fbff;
  color: #526985;
  font-weight: 900;
  text-align: left;
}

.member-file-semester button:hover,
.member-file-semester button:focus-visible,
.member-file-semester button.is-active {
  border-color: #1558e8;
  background: #eef4ff;
  color: #1558e8;
  outline: none;
}

.member-file-semester strong {
  color: #061638;
}

.member-file-semester-total {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: #526985;
  font-weight: 900;
}

.member-file-semester-total span {
  display: grid;
  gap: 3px;
  min-height: 68px;
  align-content: center;
  padding: 10px;
  border-radius: 12px;
  background: #f8fbff;
}

.member-file-semester-total small {
  color: #526985;
}

.member-file-semester-total strong {
  color: #061638;
}

.member-file-mini {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-file-timeline {
  display: grid;
  gap: 10px;
}

.member-file-timeline div {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-left: 4px solid #1558e8;
  border-radius: 12px;
  background: #f8fbff;
}

.member-file-timeline div.is-current {
  border-color: #128a35;
  background: #ecfdf3;
}

.member-file-timeline time {
  color: #526985;
  font-size: 0.78rem;
  font-weight: 950;
}

.member-file-timeline strong {
  color: #061638;
}

.member-file-current-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dff8e7;
  color: #128a35;
  font-size: 0.68rem;
  font-weight: 950;
  vertical-align: middle;
}

.member-file-timeline span,
.member-file-empty {
  color: #526985;
  font-weight: 850;
}

.member-file-note-card {
  gap: 10px;
}

.member-file-note-card form,
.member-file-level-card form {
  display: grid;
  gap: 8px;
}

.member-file-level-card form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-file-level-card label {
  display: grid;
  gap: 5px;
  color: #526985;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.member-file-level-card select,
.member-file-level-card input,
.member-file-level-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 0 10px;
  background: #fff;
  color: #061638;
  font-size: 0.95rem;
  font-weight: 850;
  text-transform: none;
}

.member-file-level-card input[readonly] {
  background: #f8fbff;
  color: #526985;
}

.member-file-level-card textarea {
  min-height: 76px;
  padding: 10px;
  resize: vertical;
}

.member-file-level-card__wide,
.member-file-level-card button,
.member-file-level-card [data-member-form-message] {
  grid-column: 1 / -1;
}

.member-file-note-card textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 10px;
  color: #061638;
  font-weight: 850;
  resize: vertical;
}

.member-file-note-card button,
.member-file-level-card button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: #1558e8;
  color: #fff;
  font-weight: 950;
}

.member-file-note-card > small,
.member-file-note-card [data-member-form-message],
.member-file-level-card [data-member-form-message] {
  margin: 0;
  color: #526985;
  font-weight: 850;
}

.member-file-award-form,
.member-file-award-photo-form {
  display: grid;
  gap: 8px;
}

.member-file-award-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px;
  border-radius: 14px;
  background: #f8fbff;
}

.member-file-award-form textarea,
.member-file-award-form label {
  grid-column: 1 / -1;
}

.member-file-award-form input,
.member-file-award-form textarea,
.member-file-award-photo-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 9px 10px;
  color: #061638;
  font-weight: 850;
}

.member-file-award-form textarea {
  min-height: 68px;
}

.member-file-award-form label,
.member-file-award-photo-form label {
  color: #526985;
  font-size: 0.78rem;
  font-weight: 950;
}

.member-file-award-form button,
.member-file-award-photo-form button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: #1558e8;
  color: #fff;
  font-weight: 950;
}

.member-file-awards {
  display: grid;
  gap: 10px;
}

.member-file-award {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  background: #fff;
}

.member-file-award__thumb {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid #dbe4f2;
  border-radius: 14px;
  background: #eef4ff;
  color: #1558e8;
  font-size: 1.6rem;
}

.member-file-award__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.member-file-award time,
.member-file-award small {
  color: #526985;
  font-size: 0.78rem;
  font-weight: 950;
}

.member-file-award strong {
  display: block;
  margin-top: 2px;
  color: #061638;
  font-size: 1rem;
}

.member-file-award span,
.member-file-award p {
  display: block;
  margin: 4px 0 0;
  color: #526985;
  font-weight: 850;
}

.member-file-award-photo-form {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  margin-top: 10px;
}

.member-file-award-photo-form button {
  background: #eef4ff;
  color: #1558e8;
}

.member-file-empty {
  margin: 0;
}

.member-file-empty--tight {
  margin-top: -6px;
}

.member-file-marker-sheet[hidden],
.member-file-award-lightbox[hidden],
.member-file-note-sheet[hidden] {
  display: none;
}

.member-file-marker-sheet,
.member-file-award-lightbox,
.member-file-note-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: end center;
  padding: 12px;
}

.member-file-marker-sheet > div,
.member-file-award-lightbox > div,
.member-file-note-sheet > div {
  position: absolute;
  inset: 0;
  background: rgba(3, 13, 34, 0.46);
}

.member-file-marker-sheet article,
.member-file-award-lightbox article,
.member-file-note-sheet form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(440px, 100%);
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(4, 18, 48, 0.24);
}

.member-file-marker-sheet button,
.member-file-award-lightbox button,
.member-file-note-sheet button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 950;
}

.member-file-marker-sheet article > button,
.member-file-award-lightbox article > button,
.member-file-note-sheet form > button {
  justify-self: end;
  width: 44px;
  padding: 0;
  background: #eef4ff;
  color: #1558e8;
}

.member-file-award-lightbox img {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 14px;
  object-fit: contain;
  background: #f8fbff;
}

.member-file-note-sheet textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #dbe4f2;
  border-radius: 12px;
  padding: 10px;
}

.member-file-note-sheet form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.member-file-note-sheet form div button:first-child {
  background: #1558e8;
  color: #fff;
}

.member-file-note-sheet form div button:last-child {
  background: #eef4ff;
  color: #1558e8;
}

@media (max-width: 560px) {
  .instructor-member-file-photo {
    width: 86px;
    height: 86px;
  }

  .instructor-member-file-tabs {
    gap: 4px;
  }

  .instructor-member-file-tabs button {
    font-size: 0.82rem;
  }

  .member-file-card {
    padding: 14px;
  }

  .member-file-card header {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-file-level-card form {
    grid-template-columns: 1fr;
  }

  .member-file-level-card__wide,
  .member-file-level-card button,
  .member-file-level-card [data-member-form-message] {
    grid-column: auto;
  }

  .member-file-month-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-file-semester button {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-file-mini,
  .member-file-semester-total {
    grid-template-columns: 1fr;
  }

  .member-file-award-form,
  .member-file-award {
    grid-template-columns: 1fr;
  }

  .member-file-award__thumb {
    width: 100%;
    height: 150px;
  }

  .member-file-award-photo-form {
    grid-template-columns: 1fr;
  }
}

.member360-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(280px, 460px);
  gap: 22px;
  align-items: center;
}

.member360-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  background: #eff6ff;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  font-size: 34px;
  font-weight: 900;
}

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

.member360-hero-meta,
.member360-badges,
.member360-actions,
.member360-action-grid,
.member360-tabs,
.member360-audit-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.member360-hero-meta span,
.member360-badge,
.member360-summary-item,
.member360-tabs a,
.member360-action-grid a {
  border-radius: 8px;
  text-decoration: none;
}

.member360-hero-meta span {
  padding: 8px 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
}

.member360-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member360-badge {
  background: #fff;
  padding: 14px;
  color: #0f172a;
  border-left: 5px solid #2563eb;
}

.member360-badge span,
.member360-dl dt,
.member360-list span,
.member360-timeline small {
  color: #64748b;
}

.member360-badge strong,
.member360-badge span {
  display: block;
}

.member360-badge--warning,
.member360-summary-item--warning {
  border-left-color: #f97316;
}

.member360-badge--positive,
.member360-summary-item--positive {
  border-left-color: #16a34a;
}

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

.member360-main,
.member360-grid,
.member360-side,
.member360-summary,
.member360-list,
.member360-priorities {
  display: grid;
  gap: 14px;
}

.member360-side {
  position: sticky;
  top: 18px;
}

.member360-tabs {
  overflow-x: auto;
  padding-bottom: 4px;
}

.member360-tabs a {
  min-height: 42px;
  padding: 11px 14px;
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--border-soft);
  white-space: nowrap;
  font-weight: 800;
}

.member360-tabs a.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

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

.member360-card {
  min-width: 0;
}

.member360-card--wide,
.member360-kpis {
  grid-column: 1 / -1;
}

.member360-summary-item {
  display: block;
  padding: 12px 14px;
  background: #fff;
  border-left: 5px solid #2563eb;
  color: #0f172a;
}

.member360-summary-item--critical {
  border-left-color: #dc2626;
}

.member360-summary-item--info {
  border-left-color: #2563eb;
}

.member360-dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.member360-dl div,
.member360-status-grid div,
.member360-kpis div {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.member360-dl dd {
  margin: 4px 0 0;
  font-weight: 800;
  color: #0f172a;
}

.member360-kpis,
.member360-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.member360-kpis p {
  grid-column: 1 / -1;
}

.member360-kpis strong,
.member360-status-grid strong {
  display: block;
  font-size: 24px;
  color: #0f172a;
}

.member360-list a,
.member360-list div,
.member360-timeline-item {
  color: #0f172a;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid var(--border-soft);
}

.member360-list strong,
.member360-list span,
.member360-timeline-item strong,
.member360-timeline-item span,
.member360-timeline-item small {
  display: block;
}

.member360-timeline {
  display: grid;
}

.member360-timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.member360-timeline-item i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  margin-top: 4px;
}

.member360-timeline-item--green i { background: #16a34a; }
.member360-timeline-item--orange i { background: #f97316; }
.member360-timeline-item--yellow i { background: #eab308; }
.member360-timeline-item--red i { background: #dc2626; }

.member360-timeline time {
  color: #2563eb;
  font-weight: 800;
  white-space: nowrap;
}

.member360-empty {
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
}

.member360-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member360-action-grid a {
  padding: 11px 12px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.member360-audit-filters input {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 0 10px;
}

@media (max-width: 1180px) {
  .member360-hero,
  .member360-layout {
    grid-template-columns: 1fr;
  }

  .member360-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .member360-grid,
  .member360-badges,
  .member360-timeline-item,
  .member360-action-grid {
    grid-template-columns: 1fr;
  }

  .member360-avatar {
    width: 88px;
    height: 88px;
  }
}

.intelligence-dashboard .role-content {
  gap: 24px;
}

.intelligence-hero {
  align-items: stretch;
}

.intelligence-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px;
  min-width: min(430px, 100%);
}

.intelligence-hero-grid article,
.action-card,
.recommendation-card,
.instructor-today-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.intelligence-hero-grid article {
  padding: 18px;
}

.intelligence-hero-grid span,
.action-card span,
.recommendation-card p,
.instructor-today-card span,
.attention-member span,
.event-feed span {
  color: #64748b;
}

.intelligence-hero-grid strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 30px;
  line-height: 1;
}

.intelligence-section {
  display: grid;
  gap: 16px;
}

.action-card-grid,
.recommendation-grid,
.instructor-today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.action-card,
.recommendation-card,
.instructor-today-card,
.attention-member {
  color: #0f172a;
  text-decoration: none;
}

.action-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-left: 6px solid #2563eb;
}

.action-card strong {
  font-size: 20px;
  line-height: 1.25;
}

.action-card--red,
.attention-member--red,
.event-feed--red {
  border-left-color: #dc2626;
}

.action-card--orange,
.attention-member--orange,
.event-feed--orange {
  border-left-color: #f97316;
}

.action-card--yellow,
.attention-member--yellow,
.event-feed--yellow {
  border-left-color: #eab308;
}

.action-card--green,
.attention-member--green,
.event-feed--green {
  border-left-color: #16a34a;
}

.recommendation-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding: 20px;
  border-top: 5px solid #2563eb;
}

.recommendation-card h3 {
  margin: 8px 0;
  font-size: 18px;
}

.recommendation-card span {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: #2563eb;
}

.recommendation-card--high {
  border-top-color: #dc2626;
}

.recommendation-card--medium {
  border-top-color: #f97316;
}

.recommendation-card--low {
  border-top-color: #2563eb;
}

.intelligence-main-grid {
  align-items: start;
}

.timeline-list,
.attention-member-list,
.event-feed-list {
  display: grid;
  gap: 10px;
}

.timeline-item,
.event-feed {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}

.timeline-item time,
.event-feed time {
  font-weight: 800;
  color: #2563eb;
}

.timeline-item em {
  font-style: normal;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.timeline-item--started em {
  background: #fff7ed;
  color: #c2410c;
}

.timeline-item--finished em {
  background: #ecfdf5;
  color: #047857;
}

.timeline-item--cancelled em {
  background: #fef2f2;
  color: #b91c1c;
}

.intelligence-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.intelligence-kpis div {
  padding: 14px;
  border-radius: 8px;
  background: #f8fafc;
}

.intelligence-kpis strong,
.intelligence-kpis span {
  display: block;
}

.intelligence-kpis strong {
  color: #0f172a;
  font-size: 24px;
}

.intelligence-kpis span {
  color: #64748b;
  font-size: 12px;
}

.instructor-today-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  padding: 18px;
}

.instructor-photo {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 50%;
  background: #eff6ff;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  font-weight: 900;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-today-card dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.instructor-today-card dl div {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.instructor-today-card dt {
  color: #64748b;
  font-size: 12px;
}

.instructor-today-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.attention-member {
  display: block;
  padding: 14px 16px;
  border-left: 5px solid #2563eb;
  border-radius: 8px;
  background: #fff;
}

.attention-member strong,
.attention-member span {
  display: block;
}

.event-feed {
  border-left: 5px solid #2563eb;
  padding-left: 12px;
}

.event-feed i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
}

.event-feed--red i {
  background: #dc2626;
}

.event-feed--orange i {
  background: #f97316;
}

.event-feed--yellow i {
  background: #eab308;
}

.event-feed--green i {
  background: #16a34a;
}

.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-action-row a {
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Sprint 16A Office Admin Attention Center */
.office-attention-page {
  --office-navy: #061b3b;
  --office-navy-2: #031329;
  --office-blue: #1857e8;
  --office-pink: #f3285c;
  --office-red: #f43f46;
  --office-orange: #f59e0b;
  --office-purple: #6d40dc;
  --office-green: #10b85f;
  --office-text: #071637;
  --office-muted: #51607a;
  --office-border: #dbe4f2;
  --sidebar-width: 236px;
  background: #f5f8fc;
}

.office-attention-page .role-sidebar {
  padding: 32px 18px 22px;
  background: linear-gradient(180deg, var(--office-navy), var(--office-navy-2));
}

.office-attention-brand {
  padding: 0 12px 28px;
}

.office-attention-page .role-nav {
  gap: 8px;
}

.office-attention-page .role-nav a {
  position: relative;
  gap: 14px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
}

.office-nav-icon {
  width: 21px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 7px;
  opacity: 0.95;
  flex: 0 0 auto;
}

.office-nav-icon--bell,
.office-nav-icon--user,
.office-nav-icon--person,
.office-nav-icon--group {
  border-radius: 999px;
}

.office-nav-icon--coin {
  border-radius: 999px;
}

.office-nav-badge,
.office-panel-head b,
.office-bell b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--office-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.office-nav-badge {
  margin-left: auto;
}

.office-quick-box {
  display: grid;
  gap: 8px;
  margin-top: 86px;
  padding: 17px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
}

.office-quick-box > strong {
  font-size: 0.95rem;
}

.office-quick-box a {
  min-height: 32px;
  padding: 0;
  background: transparent;
  font-size: 0.87rem;
}

.office-attention-page .role-sidebar form {
  padding-top: 14px;
}

.office-user-card {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.office-user-card strong,
.office-user-card span,
.office-profile-pill strong,
.office-profile-pill span {
  display: block;
}

.office-user-card span,
.office-profile-pill span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.office-attention-page .role-main-shell {
  background: #f5f8fc;
}

.office-attention-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 38px 16px 34px;
  color: var(--office-text);
}

.office-attention-header h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.office-attention-header p {
  margin: 8px 0 0;
  color: var(--office-text);
  font-size: 1rem;
}

.office-header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.office-header-actions time,
.office-bell,
.office-profile-pill {
  min-height: 54px;
  border: 1px solid #cfd9eb;
  border-radius: 8px;
  background: #fff;
  color: var(--office-text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.office-header-actions time {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 20px;
  font-weight: 750;
}

.office-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
}

.office-bell b {
  position: absolute;
  top: -8px;
  right: -8px;
}

.office-head-icon {
  width: 21px;
  height: 21px;
  border: 2px solid #536b95;
  border-radius: 5px;
}

.office-head-icon--bell {
  border-radius: 999px 999px 7px 7px;
}

.office-profile-pill {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
  padding: 8px 14px 8px 10px;
  background: linear-gradient(135deg, #09224d, #061b3b);
  color: #fff;
}

.office-attention-page .role-content {
  width: 100%;
  padding: 12px 32px 18px 28px;
}

.office-section-head {
  margin-bottom: 18px;
}

.office-section-head h2,
.office-section-head p,
.office-panel-head h2 {
  margin: 0;
}

.office-section-head h2 {
  color: var(--office-text);
  font-size: 1.12rem;
}

.office-section-head p {
  margin-top: 6px;
  color: var(--office-muted);
}

.office-task-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.office-task-card,
.office-table-panel {
  border: 1px solid var(--office-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.office-task-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 226px;
  padding: 20px 20px 18px;
}

.office-task-card--pink { border-color: rgba(243, 40, 92, 0.28); }
.office-task-card--orange { border-color: rgba(245, 158, 11, 0.35); }
.office-task-card--red { border-color: rgba(244, 63, 70, 0.3); }
.office-task-card--blue { border-color: rgba(24, 87, 232, 0.28); }
.office-task-card--purple { border-color: rgba(109, 64, 220, 0.3); }

.office-task-arrow {
  position: absolute;
  top: 32px;
  right: 20px;
  color: currentColor;
  font-size: 30px;
  line-height: 1;
}

.office-task-main {
  display: flex;
  gap: 18px;
  align-items: center;
}

.office-task-main strong {
  color: var(--office-text);
  font-size: 2rem;
  line-height: 1;
}

.office-task-icon {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--office-blue);
}

.office-task-card--pink .office-task-icon,
.office-task-card--pink .office-task-button { background: var(--office-pink); border-color: var(--office-pink); color: #fff; }
.office-task-card--orange .office-task-icon,
.office-task-card--orange .office-task-button { background: var(--office-orange); border-color: var(--office-orange); color: #fff; }
.office-task-card--red .office-task-icon,
.office-task-card--red .office-task-button { background: var(--office-red); border-color: var(--office-red); color: #fff; }
.office-task-card--blue .office-task-icon,
.office-task-card--blue .office-task-button { background: var(--office-blue); border-color: var(--office-blue); color: #fff; }
.office-task-card--purple .office-task-icon,
.office-task-card--purple .office-task-button { background: var(--office-purple); border-color: var(--office-purple); color: #fff; }

.office-task-card h3 {
  margin: 16px 0 0;
  color: var(--office-text);
  font-size: 0.95rem;
  text-align: center;
}

.office-task-card p {
  min-height: 40px;
  margin: 12px 0 18px;
  color: var(--office-muted);
  font-size: 0.88rem;
  text-align: center;
}

.office-task-button,
.office-bulk-action,
.office-mini-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--office-blue);
  border-radius: 8px;
  color: var(--office-blue);
  font-weight: 850;
}

.office-task-button.is-disabled,
.office-bulk-action.is-disabled,
.office-action.is-disabled {
  pointer-events: none;
  opacity: 0.48;
}

.office-panel-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.office-panel-grid--middle {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-panel-grid--bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.office-table-panel {
  min-width: 0;
  padding: 16px 16px 14px;
}

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

.office-panel-head h2 {
  color: var(--office-text);
  font-size: 1rem;
}

.office-panel-head a {
  color: var(--office-blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.office-panel-head b.orange { background: var(--office-orange); }
.office-panel-head b.blue { background: var(--office-blue); }
.office-panel-head b.purple { background: var(--office-purple); }

.office-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.office-table th,
.office-table td {
  padding: 9px 8px;
  border-bottom: 1px solid #e8edf5;
  color: var(--office-text);
  text-align: left;
  vertical-align: middle;
  font-size: 0.82rem;
}

.office-table th {
  color: #31415f;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.office-table--compact th,
.office-table--compact td {
  padding: 8px 6px;
  font-size: 0.76rem;
}

.office-person {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.office-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eefb;
  color: var(--office-blue);
  font-size: 0.67rem;
  font-weight: 900;
  flex: 0 0 auto;
}

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

.office-row-actions {
  display: flex;
  gap: 7px;
}

.office-action {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.62rem;
  font-weight: 900;
}

.office-action--wa { color: var(--office-green); }
.office-action--viber { color: var(--office-purple); }
.office-action--call { color: #394a6a; width: auto; padding: 0 8px; border-radius: 8px; }

.office-empty-cell {
  height: 76px;
  color: var(--office-muted) !important;
  text-align: center !important;
}

.office-bulk-action {
  margin-top: 16px;
}

.office-bulk-action--blue { border-color: #a9c3ff; color: var(--office-blue); }
.office-bulk-action--orange { border-color: #ffc66a; color: var(--office-orange); }
.office-bulk-action--red { border-color: #ffb0b4; color: var(--office-red); }
.office-bulk-action--purple { border-color: #bfa8ff; color: var(--office-purple); }

.office-mini-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.74rem;
}

@media (max-width: 1500px) {
  .office-task-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
  }

  .office-task-card {
    min-height: 214px;
    padding: 16px;
  }

  .office-task-icon {
    width: 52px;
    height: 52px;
  }

  .office-task-main strong {
    font-size: 1.75rem;
  }

  .office-table th,
  .office-table td {
    padding: 8px 6px;
  }
}

@media (max-width: 1180px) {
  .office-attention-header,
  .office-header-actions,
  .office-panel-grid--middle,
  .office-panel-grid--bottom {
    grid-template-columns: 1fr;
  }

  .office-attention-header {
    display: grid;
  }

  .office-header-actions {
    display: flex;
    flex-wrap: wrap;
  }

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

@media (max-width: 760px) {
  .office-task-grid {
    grid-template-columns: 1fr;
  }

  .office-table-panel {
    overflow-x: auto;
  }

  .office-table {
    min-width: 620px;
  }
}

@media (max-width: 760px) {
  .intelligence-hero-grid,
  .timeline-item,
  .event-feed,
  .recommendation-card,
  .instructor-today-card dl {
    grid-template-columns: 1fr;
  }

  .recommendation-card {
    align-items: start;
  }
}
.mobile-card input, .mobile-card select, .mobile-card textarea { width: 100%; min-height: 44px; margin: 5px 0; }
.mobile-day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.mobile-day-tabs a { min-width: 54px; min-height: 44px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid var(--border-soft); text-decoration: none; }
.mobile-bottom-nav { display: none; }
.mobile-sticky-actions { position: sticky; bottom: 74px; background: #fff; padding: 10px; border: 1px solid var(--border-soft); border-radius: 8px; }
.debt { color: var(--color-danger); }

@media (max-width: 720px) {
  .instructor-mobile-role .role-sidebar { display: none; }
  .instructor-mobile-role .role-layout { display: block; }
  .instructor-mobile-role .role-main-shell { min-width: 0; }
  .instructor-mobile-role .role-content { padding: 12px; }
  .mobile-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instructor-schedule-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instructor-schedule-timeline { display: none; }
  .instructor-schedule-portrait-note { display: block; }
  .instructor-schedule-mobile-days { display: grid; }
  .instructor-schedule-tabs { position: sticky; top: 0; z-index: 2; }
  .instructor-schedule-class { min-height: 96px; }
  .mobile-list-row, .mobile-agenda, .mobile-attendance-row { display: grid; }
  .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 8px; background: #fff; border-top: 1px solid var(--border-soft); }
  .mobile-bottom-nav a, .mobile-bottom-nav summary, .mobile-bottom-nav button { min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #eef4ff; color: var(--color-royal-navy); text-decoration: none; font-size: .85rem; }
  .mobile-bottom-nav .active { background: var(--color-hero-blue); color: #fff; }
  .mobile-more { position: relative; }
  .mobile-more div { position: absolute; right: 0; bottom: 52px; display: grid; min-width: 170px; gap: 6px; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); }
  .mobile-more:not([open]) div { display: none; }

  .instructor-mobile-role {
    background: #031329;
  }

  .instructor-mobile-role .role-content {
    padding: 10px;
  }

  .instructor-attendance-panel {
    gap: 10px;
    padding-bottom: 96px;
  }

  .instructor-attendance-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .instructor-attendance-kpis article {
    min-height: 76px;
    padding: 10px 8px;
  }

  .instructor-attendance-kpis span {
    font-size: 0.68rem;
  }

  .instructor-attendance-kpis strong {
    font-size: 1.55rem;
  }

  .instructor-attendance-info {
    align-items: stretch;
    padding: 12px;
  }

  .instructor-attendance-info p {
    font-size: 0.88rem;
  }

  .instructor-attendance-info button {
    min-width: 120px;
    padding: 0 10px;
    font-size: 0.83rem;
  }

  .instructor-attendance-list header,
  .instructor-attendance-row {
    grid-template-columns: 40px minmax(0, 1fr) 76px 86px 20px;
    gap: 6px;
  }

  .instructor-attendance-list header {
    padding: 10px 8px;
    font-size: 0.68rem;
  }

  .instructor-attendance-row {
    padding: 6px 8px;
  }

  .instructor-attendance-index {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .instructor-attendance-avatar {
    width: 44px;
    height: 44px;
  }

  .instructor-attendance-member {
    gap: 8px;
  }

  .instructor-attendance-member strong {
    font-size: 0.88rem;
    line-height: 1.15;
  }

  .instructor-attendance-member small {
    font-size: 0.8rem;
  }

  .instructor-attendance-toggle {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .instructor-attendance-toggle button,
  .instructor-payment-cell button,
  .instructor-payment-cell strong {
    min-height: 42px;
    font-size: 1.05rem;
  }

  .instructor-payment-cell button {
    font-size: 0.78rem;
  }

  .instructor-member-open {
    font-size: 1.55rem;
  }

  .instructor-payment-panel {
    grid-column: 1 / -1;
  }

  .instructor-payment-sheet {
    align-items: end;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  }

  .instructor-payment-sheet__panel {
    width: 100%;
    border-radius: 16px 16px 12px 12px;
  }

  .instructor-payment-sheet__actions {
    grid-template-columns: 1fr;
  }

  .instructor-payment-legend {
    gap: 10px;
    justify-content: flex-start;
    font-size: 0.82rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .instructor-mobile-role .role-sidebar { display: none; }
  .instructor-mobile-role .role-layout { display: block; }
  .instructor-mobile-role .role-content { padding: 8px; }
  .instructor-mobile-role .mobile-hero { padding: 10px 12px; }
  .instructor-schedule-page { max-width: none; gap: 8px; padding-bottom: 12px; }
  .instructor-schedule-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .instructor-schedule-kpis article { min-height: 58px; padding: 8px; }
  .instructor-schedule-kpis strong { font-size: 1.1rem; }
  .instructor-schedule-timeline { display: grid; grid-template-columns: 50px minmax(760px, 1fr); max-height: calc(100vh - 190px); overflow: auto; }
  .instructor-schedule-grid .instructor-schedule-class { padding: 4px 5px; gap: 0; }
  .instructor-schedule-grid .instructor-schedule-class .instructor-schedule-class__time { font-size: 12px; line-height: 1.05; }
  .instructor-schedule-grid .instructor-schedule-class strong { font-size: 0.74rem; line-height: 1.06; }
  .instructor-schedule-grid .instructor-schedule-class span,
  .instructor-schedule-grid .instructor-schedule-class small { font-size: 12px; line-height: 1.05; }
  .instructor-schedule-mobile-days, .instructor-schedule-portrait-note { display: none; }
  .mobile-bottom-nav { display: none; }
}

.communication-page .director-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.communication-page .director-kpis article,
.communication-page .role-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.communication-page .director-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.communication-page .member-inline-form textarea {
  min-height: 120px;
}

.communication-page pre {
  white-space: pre-wrap;
  background: #f5f7fb;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px;
}

.communication-crm-page .role-content {
  display: grid;
  gap: 16px;
  width: 100%;
}

.communication-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(12, 32, 93, 0.96), rgba(34, 84, 199, 0.92)),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.26), transparent 32%);
  box-shadow: 0 18px 40px rgba(15, 39, 113, 0.18);
}

.communication-hero__copy span {
  display: inline-flex;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.communication-hero__copy h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  line-height: 1.05;
}

.communication-hero__copy p {
  margin: 6px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.communication-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.communication-hero__facts article {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.communication-hero__facts small,
.communication-hero__facts span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.72rem;
}

.communication-hero__facts strong {
  display: block;
  margin: 3px 0;
  color: #fff;
  font-size: 0.96rem;
}

.communication-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.communication-tab-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon desc"
    "icon status";
  gap: 2px 10px;
  min-height: 116px;
  padding: 16px;
  text-align: left;
  color: #11214f;
  border: 1px solid #dbe4f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(28, 46, 99, 0.07);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.communication-tab-card:hover,
.communication-tab-card:focus-visible {
  transform: translateY(-1px);
  border-color: #87a7f7;
  box-shadow: 0 16px 34px rgba(28, 70, 160, 0.14);
  outline: none;
}

.communication-tab-card.is-active {
  border-color: #2456dc;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.communication-tab-card.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, #1f46c7, #5a7dff);
}

.communication-tab-card__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #1f46c7;
  background: #edf3ff;
  font-size: 1rem;
  font-weight: 900;
}

.communication-tab-card strong {
  grid-area: title;
  font-size: 0.94rem;
  line-height: 1.1;
}

.communication-tab-card small {
  grid-area: desc;
  color: #5d6a86;
  font-size: 0.78rem;
  line-height: 1.25;
}

.communication-tab-card em {
  grid-area: status;
  align-self: end;
  color: #1f46c7;
  font-size: 0.77rem;
  font-style: normal;
  font-weight: 800;
}

.communication-panel {
  min-height: 430px;
  padding: 18px;
  border: 1px solid #dce5f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(28, 46, 99, 0.08);
}

.communication-tab-panel {
  display: grid;
  gap: 14px;
}

.communication-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.communication-panel__header h2 {
  margin: 0;
  color: #11214f;
  font-size: 1.22rem;
}

.communication-panel__header p {
  margin: 4px 0 0;
  color: #65728d;
  font-size: 0.88rem;
}

.communication-action,
.communication-automation-list a,
.communication-template-list a,
.communication-template-list button,
.communication-automation-list > article > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.communication-action:hover,
.communication-automation-list a:hover,
.communication-template-list a:hover,
.communication-template-list button:hover,
.communication-automation-list > article > button:hover {
  transform: translateY(-1px);
}

.communication-action--primary {
  color: #fff;
  background: linear-gradient(135deg, #1f46c7, #426bf0);
  box-shadow: 0 10px 20px rgba(31, 70, 199, 0.18);
}

.communication-action--secondary,
.communication-template-list a,
.communication-template-list button,
.communication-automation-list a,
.communication-automation-list > article > button {
  color: #1f46c7;
  border: 1px solid #bdd0ff;
  background: #fff;
}

.communication-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.communication-row-actions a,
.communication-row-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #d7e2f6;
  border-radius: 8px;
  color: #1f46c7;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.communication-table-wrap {
  overflow: auto;
  border: 1px solid #e3e9f5;
  border-radius: 14px;
}

.communication-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.communication-table th {
  padding: 11px 12px;
  color: #fff;
  background: #10275e;
  font-size: 0.72rem;
  text-align: left;
  text-transform: uppercase;
}

.communication-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f8;
  color: #24304d;
  font-size: 0.84rem;
  vertical-align: top;
}

.communication-table td strong,
.communication-table td span {
  display: block;
}

.communication-table td span {
  margin-top: 2px;
  color: #6b7790;
  font-size: 0.76rem;
}

.communication-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #1f46c7;
  background: #edf3ff;
  font-size: 0.73rem;
  font-weight: 800;
}

.communication-badge--muted {
  color: #6b7280;
  background: #f1f3f7;
}

.communication-empty {
  color: #68748b;
  font-size: 0.88rem;
}

.communication-template-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
}

.communication-categories,
.communication-template-list,
.communication-wizard,
.communication-automation-list {
  display: grid;
  gap: 10px;
}

.communication-categories {
  align-content: start;
  padding: 12px;
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  background: #f8fbff;
}

.communication-categories button,
.communication-choice-grid button,
.communication-choice-grid span,
.communication-variable-bank button {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #d9e3f4;
  border-radius: 10px;
  color: #253252;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.communication-categories button.is-active,
.communication-choice-grid button.is-active {
  border-color: #2456dc;
  color: #1f46c7;
  background: #edf3ff;
}

.communication-template-list article,
.communication-automation-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #e4eaf5;
  border-radius: 14px;
  background: #fff;
}

.communication-template-list article p,
.communication-automation-list article p {
  margin: 3px 0 0;
  color: #63708a;
  font-size: 0.8rem;
  line-height: 1.3;
}

.communication-template-list article > span:not(.communication-badge) {
  color: #5f6c86;
  font-size: 0.78rem;
  font-weight: 700;
}

.communication-variable-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.communication-variable-bank button {
  min-height: 30px;
  color: #1f46c7;
  background: #f6f9ff;
  cursor: pointer;
}

.communication-wizard {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.communication-wizard section {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 14px;
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  background: #fbfcff;
}

.communication-wizard section > strong {
  color: #11214f;
}

.communication-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.communication-choice-grid--channels {
  grid-template-columns: 1fr;
}

.communication-choice-grid button:disabled {
  color: #8a94a8;
  background: #f2f4f8;
  cursor: not-allowed;
}

.communication-wizard label {
  display: grid;
  gap: 6px;
  color: #253252;
  font-size: 0.8rem;
  font-weight: 800;
}

.communication-wizard select,
.communication-wizard textarea {
  width: 100%;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  color: #1f2a44;
  font: inherit;
}

.communication-wizard select {
  height: 40px;
  padding: 0 10px;
}

.communication-wizard textarea {
  resize: vertical;
  min-height: 104px;
  padding: 10px;
}

.communication-conditional,
.communication-schedule-fields {
  display: grid;
  gap: 6px;
}

.communication-conditional[hidden],
.communication-schedule-fields[hidden] {
  display: none;
}

.communication-schedule-fields {
  grid-template-columns: 1fr 1fr;
}

.communication-review button {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: #9aa6bb;
  font-weight: 800;
}

.communication-automation-list article.is-disabled {
  opacity: 0.72;
  background: #fafbfe;
}

.communication-toggle {
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: #c9d2e3;
  cursor: pointer;
}

.communication-toggle span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}

.communication-toggle.is-on {
  background: linear-gradient(135deg, #1f46c7, #4f75f2);
}

.communication-toggle.is-on span {
  transform: translateX(20px);
}

.communication-toggle:disabled {
  cursor: not-allowed;
}

.communication-modal-open {
  overflow: hidden;
}

.communication-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 18, 48, 0.46);
}

.communication-modal[hidden] {
  display: none;
}

.communication-modal__card {
  position: relative;
  width: min(640px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 20px;
  border: 1px solid #dfe7f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 18, 48, 0.28);
}

.communication-modal--wide .communication-modal__card {
  width: min(920px, 100%);
}

.communication-modal__card h2 {
  margin: 0 34px 14px 0;
  color: #11214f;
  font-size: 1.24rem;
}

.communication-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  color: #23304d;
  background: #fff;
  cursor: pointer;
}

.communication-modal form,
.communication-modal label {
  display: grid;
  gap: 8px;
}

.communication-modal form {
  gap: 12px;
}

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

.communication-modal label {
  color: #253252;
  font-size: 0.8rem;
  font-weight: 800;
}

.communication-modal input,
.communication-modal select,
.communication-modal textarea,
.communication-conditional select,
.communication-schedule-fields input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d7e0ef;
  border-radius: 10px;
  padding: 8px 10px;
  color: #1f2a44;
  background: #fff;
  font: inherit;
}

.communication-modal textarea {
  resize: vertical;
}

.communication-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.communication-modal footer button,
.communication-prepared-list button,
.communication-prepared-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.communication-modal footer button:first-child {
  border: 1px solid #bdd0ff;
  color: #1f46c7;
  background: #fff;
}

.communication-modal footer button[type="submit"] {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #1f46c7, #426bf0);
  box-shadow: 0 10px 20px rgba(31, 70, 199, 0.18);
}

.communication-form-message {
  min-height: 18px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.communication-form-message.is-error {
  color: #bd2f2f;
}

.communication-form-message.is-success {
  color: #1e8a55;
}

.communication-prepared-list {
  display: grid;
  gap: 10px;
}

.communication-prepared-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e3e9f5;
  border-radius: 14px;
  background: #fbfcff;
}

.communication-prepared-list span,
.communication-prepared-list p {
  display: block;
  margin: 3px 0 0;
  color: #65728d;
  font-size: 0.8rem;
}

.communication-prepared-list p {
  max-height: 44px;
  overflow: hidden;
}

.communication-prepared-list button,
.communication-prepared-list a {
  border: 1px solid #bdd0ff;
  color: #1f46c7;
  background: #fff;
}

@media (max-width: 720px) {
  .communication-page .member-inline-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .communication-page .member-mini-table {
    min-width: 640px;
  }
}

@media (max-width: 1180px) {
  .communication-tabs,
  .communication-wizard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .communication-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .communication-hero {
    padding: 14px;
    border-radius: 14px;
  }

  .communication-hero__facts,
  .communication-tabs,
  .communication-template-layout,
  .communication-wizard {
    grid-template-columns: 1fr;
  }

  .communication-panel {
    padding: 14px;
  }

  .communication-panel__header {
    display: grid;
  }

  .communication-tab-card {
    min-height: 104px;
  }

  .communication-template-list article,
  .communication-automation-list article,
  .communication-prepared-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .communication-form-grid,
  .communication-schedule-fields {
    grid-template-columns: 1fr;
  }

  .communication-modal {
    padding: 10px;
  }

  .communication-modal__card {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }
}

.communication-crm-page .communication-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 14px;
}

.communication-crm-page .communication-page-header__copy {
  min-width: 0;
}

.communication-crm-page .communication-page-header h2 {
  margin: 0;
  color: #11214f;
  font-size: clamp(1.28rem, 1.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
}

.communication-crm-page .communication-page-header p {
  margin: 5px 0 0;
  max-width: 700px;
  color: #5f6b82;
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.45;
}

.communication-crm-page .communication-page-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
}

.communication-crm-page .communication-page-actions .communication-action {
  min-height: 38px;
  white-space: nowrap;
}

.communication-crm-page .communication-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.communication-crm-page .communication-tab-card {
  min-height: 90px;
  border-radius: 14px;
  padding: 13px;
  text-decoration: none;
}

.communication-crm-page .communication-tab-card strong {
  font-weight: 600;
}

.communication-crm-page .communication-tab-card em {
  font-weight: 600;
}

.communication-crm-page .communication-tab-card__icon {
  font-weight: 600;
}

.communication-crm-page .communication-tab-card--blue.is-active {
  border-color: #9db8f6;
  background: #f1f6ff;
}

.communication-crm-page .communication-tab-card--violet.is-active {
  border-color: #c6b7f5;
  background: #f7f3ff;
}

.communication-crm-page .communication-tab-card--green.is-active {
  border-color: #a8dfc6;
  background: #f0fbf6;
}

.communication-crm-page .communication-tab-card--orange.is-active {
  border-color: #f0c99b;
  background: #fff7ed;
}

.communication-crm-page .communication-tab-panel[hidden],
.communication-crm-page .communication-wizard-step[hidden] {
  display: none !important;
}

.communication-crm-page .communication-panel {
  padding: 16px;
  border-color: #d9e4f6;
  border-radius: 18px;
}

.communication-crm-page .communication-panel__header h2 {
  font-weight: 700;
}

.communication-crm-page .communication-panel__header p {
  font-weight: 400;
}

.communication-crm-page .communication-action,
.communication-crm-page .communication-row-actions a,
.communication-crm-page .communication-row-actions button,
.communication-crm-page .communication-template-list a,
.communication-crm-page .communication-template-list button,
.communication-crm-page .communication-automation-list > article > button {
  font-weight: 600;
}

.communication-campaign-list {
  display: grid;
  gap: 10px;
}

.communication-campaign-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.7fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e0e8f6;
  border-radius: 14px;
  background: #fbfdff;
}

.communication-campaign-card__main strong,
.communication-template-card__main strong,
.communication-automation-list article strong {
  display: block;
  color: #11214f;
  font-weight: 600;
}

.communication-campaign-card__main span,
.communication-campaign-card__meta,
.communication-template-card__meta {
  color: #61708b;
  font-size: 0.8rem;
  font-weight: 400;
}

.communication-campaign-card__meta,
.communication-template-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.communication-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 22px;
  border: 1px solid #bdd0ff;
  border-radius: 16px;
  background: #f4f7ff;
}

.communication-empty-state h3 {
  margin: 0;
  color: #11214f;
  font-size: 1.05rem;
  font-weight: 700;
}

.communication-empty-state p {
  margin: 0;
  max-width: 620px;
  color: #5f6d88;
  font-size: 0.9rem;
  font-weight: 400;
}

.communication-crm-page .communication-template-layout {
  grid-template-columns: 190px minmax(0, 1fr);
}

.communication-crm-page .communication-categories {
  background: #faf8ff;
  border-color: #d8ccf5;
}

.communication-crm-page .communication-categories button {
  justify-content: flex-start;
  font-weight: 600;
}

.communication-crm-page .communication-categories button.is-active {
  border-color: #bca7ef;
  color: #5b3db4;
  background: #f1ebff;
}

.communication-crm-page .communication-template-list {
  gap: 9px;
}

.communication-crm-page .communication-template-list article {
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto) auto;
  background: #fff;
}

.communication-template-card__main p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #63708a;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.communication-template-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.communication-variable-card {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid #bfd1ff;
  border-radius: 14px;
  background: #f3f7ff;
}

.communication-variable-card h3 {
  margin: 0;
  color: #11214f;
  font-size: 0.95rem;
  font-weight: 700;
}

.communication-variable-card p {
  margin: 0;
  color: #65728d;
  font-size: 0.82rem;
  font-weight: 400;
}

.communication-variable-card--inline {
  background: #f7fbff;
}

.communication-crm-page .communication-wizard {
  grid-template-columns: 1fr;
}

.communication-wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.communication-wizard-steps button {
  min-height: 38px;
  border: 1px solid #d5e0f1;
  border-radius: 11px;
  color: #40506f;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.communication-wizard-steps button.is-active {
  color: #12643e;
  border-color: #a8dfc6;
  background: #eefaf5;
}

.communication-crm-page .communication-wizard-step {
  min-height: 0;
  background: #fbfffd;
  border-color: #ccebdc;
}

.communication-recipient-estimate,
.communication-char-count {
  color: #5f6d88;
  font-size: 0.84rem;
  font-weight: 400;
}

.communication-wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.communication-wizard-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #bdd0ff;
  border-radius: 11px;
  color: #1f46c7;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.communication-wizard-actions button[type="submit"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #1f46c7, #426bf0);
}

.communication-wizard-actions button:disabled {
  color: #fff;
  background: #9aa6bb;
  cursor: not-allowed;
}

.communication-crm-page .communication-automation-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.communication-crm-page .communication-automation-list article {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  background: #fffaf4;
  border-color: #f0d5b8;
}

.communication-crm-page .communication-automation-list article.is-disabled {
  background: #fffdf9;
  opacity: 1;
}

.communication-crm-page .communication-badge {
  font-weight: 600;
}

@media (max-width: 980px) and (orientation: landscape) {
  .communication-crm-page .communication-page-header {
    gap: 12px;
    margin-top: 14px;
  }

  .communication-crm-page .communication-page-actions,
  .communication-crm-page .communication-tabs {
    overflow-x: auto;
  }

  .communication-crm-page .communication-page-actions .communication-action,
  .communication-crm-page .communication-tab-card {
    flex: 0 0 auto;
  }

  .communication-crm-page .communication-tabs {
    display: flex;
    padding-bottom: 4px;
  }

  .communication-crm-page .communication-tab-card {
    width: 210px;
  }
}

@media (max-width: 960px) {
  .communication-crm-page .communication-template-layout,
  .communication-crm-page .communication-automation-list,
  .communication-campaign-card {
    grid-template-columns: 1fr;
  }

  .communication-crm-page .communication-categories,
  .communication-wizard-steps {
    display: flex;
    overflow-x: auto;
  }

  .communication-crm-page .communication-categories button,
  .communication-wizard-steps button {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .communication-crm-page .communication-page-header {
    display: grid;
    gap: 12px;
    margin: 14px 0 12px;
  }

  .communication-crm-page .communication-page-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

.communication-crm-page .communication-page-actions .communication-action:last-child {
    grid-column: 1 / -1;
  }

  .communication-crm-page .communication-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .communication-crm-page .communication-tab-card {
    flex: 0 0 220px;
  }

  .communication-crm-page .communication-template-list article,
  .communication-crm-page .communication-automation-list article {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .communication-template-card__actions,
  .communication-wizard-actions {
    justify-content: stretch;
  }

  .communication-template-card__actions > *,
  .communication-wizard-actions button {
    flex: 1 1 auto;
  }
}
/* Sprint 11A Reports & Management Control */
.reports-page .role-content {
  display: grid;
  gap: 1.25rem;
}

.reports-hero {
  align-items: stretch;
  gap: 1rem;
}

.reports-period-summary,
.reports-period-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.reports-period-summary span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
}

.reports-period-form {
  align-self: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0.8rem;
}

.reports-period-form label {
  color: #fff;
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
}

.reports-period-form select,
.reports-period-form input {
  border: 0;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0 0.6rem;
}

.reports-period-form button {
  align-self: end;
  border: 0;
  border-radius: 8px;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  background: #fff;
  color: var(--ples-blue);
  font-weight: 800;
}

.reports-period-form .is-muted {
  opacity: 0.62;
}

.reports-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.reports-tabs a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: #fff;
  color: var(--ples-navy);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}

.reports-tabs a.active {
  background: var(--ples-blue);
  color: #fff;
}

.reports-grid,
.reports-control-grid,
.reports-columns {
  display: grid;
  gap: 1rem;
}

.reports-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reports-control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.reports-columns--compact {
  grid-template-columns: minmax(0, 22rem);
}

.reports-card,
.reports-section,
.reports-control {
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1rem;
}

.reports-kpi span,
.reports-card h2,
.reports-card h3,
.reports-section h2 {
  color: var(--ples-muted);
}

.reports-kpi {
  min-height: 7rem;
  display: grid;
  align-content: space-between;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.reports-kpi strong {
  color: var(--ples-navy);
  font-size: 1.65rem;
}

.reports-kpi:hover,
.reports-control:hover,
.reports-quick-action:hover,
.reports-change:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.09);
}

.reports-kpi-icon {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  background: rgba(31, 70, 199, 0.1);
  color: var(--ples-blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.reports-kpi small,
.reports-empty {
  color: var(--ples-muted);
}

.reports-card p,
.reports-row-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 0;
  color: var(--ples-navy);
}

.reports-row-link {
  text-decoration: none;
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  padding-top: 0.6rem;
}

.reports-control {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ples-navy);
  border-left: 5px solid var(--ples-blue);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.reports-control strong {
  font-size: 1.8rem;
}

.reports-control em {
  color: var(--ples-blue);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.reports-control--critical {
  border-left-color: #dc2626;
}

.reports-control--warning {
  border-left-color: #f59e0b;
}

.reports-table-wrap {
  overflow-x: auto;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 44rem;
}

.reports-table th,
.reports-table td {
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  padding: 0.65rem;
  text-align: left;
}

.reports-table th {
  color: var(--ples-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.reports-table a {
  color: var(--ples-blue);
  font-weight: 800;
  text-decoration: none;
}

.reports-badge,
.reports-rate,
.reports-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.reports-badge,
.reports-rate {
  padding: 0.28rem 0.5rem;
  font-size: 0.78rem;
}

.reports-badge--critical,
.reports-rate--bad {
  background: #fee2e2;
  color: #991b1b;
}

.reports-badge--warning,
.reports-rate--warn {
  background: #fef3c7;
  color: #92400e;
}

.reports-badge--neutral {
  background: #e8eef9;
  color: var(--ples-navy);
}

.reports-rate--good {
  background: #dcfce7;
  color: #166534;
}

.reports-action {
  min-height: 2rem;
  padding: 0 0.65rem;
  background: rgba(31, 70, 199, 0.08);
  color: var(--ples-blue);
  font-size: 0.8rem;
}

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

.reports-change,
.reports-quick-action {
  display: flex;
  gap: 0.8rem;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  background: #fff;
  color: var(--ples-navy);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.reports-change {
  min-height: 9rem;
  padding: 1rem;
  border-left: 5px solid #94a3b8;
}

.reports-change h3,
.reports-change p,
.reports-change small,
.reports-quick-action strong,
.reports-quick-action small {
  margin: 0;
}

.reports-change h3 {
  color: var(--ples-muted);
  font-size: 0.82rem;
}

.reports-change strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ples-navy);
  font-size: 1.45rem;
}

.reports-change small {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
  background: #eef2ff;
  color: var(--ples-blue);
  font-weight: 900;
}

.reports-change p,
.reports-quick-action small {
  margin-top: 0.45rem;
  color: var(--ples-muted);
  font-size: 0.86rem;
}

.reports-change__trend,
.reports-quick-action span {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--ples-blue);
  font-weight: 900;
}

.reports-change--positive {
  border-left-color: #16a34a;
}

.reports-change--positive .reports-change__trend,
.reports-change--positive small {
  background: #dcfce7;
  color: #166534;
}

.reports-change--negative {
  border-left-color: #dc2626;
}

.reports-change--negative .reports-change__trend,
.reports-change--negative small {
  background: #fee2e2;
  color: #991b1b;
}

.reports-change--warning {
  border-left-color: #f59e0b;
}

.reports-change--warning .reports-change__trend,
.reports-change--warning small {
  background: #fef3c7;
  color: #92400e;
}

.reports-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.reports-quick-action {
  min-height: 6.5rem;
  padding: 1rem;
  align-items: flex-start;
}

.reports-quick-action strong {
  display: block;
  color: var(--ples-navy);
}

.reports-table .is-negative td:last-child,
.reports-table .is-negative td:nth-last-child(2) {
  color: #b91c1c;
}

.reports-table .is-positive td:last-child,
.reports-table .is-positive td:nth-last-child(2) {
  color: #047857;
}

@media (max-width: 1180px) {
  .reports-grid,
  .reports-control-grid,
  .reports-change-grid,
  .reports-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .reports-grid,
  .reports-control-grid,
  .reports-columns,
  .reports-change-grid,
  .reports-quick-grid {
    grid-template-columns: 1fr;
  }

  .reports-period-form {
    align-self: stretch;
  }
}

/* Sprint Instructor Today Premium Dashboard */
.instructor-today-page .role-content {
  width: min(1400px, 92vw);
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 14px;
}

.instructor-today-page .role-main-shell {
  overflow: visible;
  padding-top: 0;
}

.instructor-today-page .role-prefooter {
  display: none;
}

.instructor-today-page .role-footer {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.instructor-today-hero {
  width: min(1400px, 92vw);
  min-height: 100px;
  margin: 14px auto 12px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2f8f, #1f46c7 55%, #2f7df6);
  color: #fff;
  box-shadow: 0 18px 38px rgba(15, 47, 143, 0.22);
}

.instructor-today-hero p,
.instructor-today-hero h1,
.instructor-today-hero span,
.instructor-today-hero small {
  margin: 0;
}

.instructor-today-hero p,
.instructor-card-label {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.74rem;
  font-weight: 900;
}

.instructor-today-hero h1 {
  margin-top: 4px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.instructor-today-hero span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.86);
}

.instructor-today-hero small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.instructor-picker label {
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 800;
}

.instructor-today-dashboard {
  display: grid;
  gap: 10px;
}

.instructor-day-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.instructor-day-nav a,
.instructor-empty-actions a,
.instructor-today-empty a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(31, 70, 199, 0.18);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ples-blue);
  font-weight: 850;
  text-decoration: none;
}

.instructor-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 12px;
}

.instructor-next-class,
.instructor-day-summary,
.instructor-today-list,
.instructor-payment-summary,
.instructor-today-actions a {
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.instructor-next-class {
  min-height: 220px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.instructor-card-label {
  color: var(--ples-blue);
}

.instructor-next-class h2 {
  margin: 0;
  color: var(--ples-navy);
  font-size: 1.9rem;
  line-height: 1.08;
}

.instructor-next-class > strong {
  color: var(--ples-navy);
  font-size: 1.5rem;
}

.instructor-next-class p,
.instructor-next-meta,
.instructor-muted,
.instructor-today-empty span {
  color: var(--ples-muted);
}

.instructor-next-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.instructor-next-meta span,
.instructor-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef4ff;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1;
}

.instructor-primary-action {
  width: fit-content;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  padding: 0 18px;
  background: linear-gradient(135deg, #1f46c7, #2f7df6);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 70, 199, 0.18);
}

.instructor-day-summary {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.instructor-day-summary header {
  display: grid;
  gap: 4px;
}

.instructor-day-summary a {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fbff;
  color: var(--ples-navy);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.instructor-day-summary a:hover,
.instructor-day-summary a:focus-visible {
  background: #eef4ff;
  transform: translateY(-1px);
}

.instructor-day-summary a span {
  color: var(--ples-muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.instructor-day-summary a strong {
  text-align: right;
}

.instructor-today-list,
.instructor-payment-summary {
  padding: 14px;
}

.instructor-today-list > header,
.instructor-payment-summary header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.instructor-today-list h2 {
  margin: 2px 0 0;
  color: var(--ples-navy);
}

.instructor-class-list {
  display: grid;
  gap: 7px;
  max-height: 380px;
  overflow: auto;
}

.instructor-class-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 110px 180px 86px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ples-navy);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.instructor-class-row:hover,
.instructor-class-row:focus-visible,
.instructor-today-actions a:hover,
.instructor-today-actions a:focus-visible,
.instructor-primary-action:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 70, 199, 0.22);
  background: #fbfdff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.09);
}

.instructor-class-row time,
.instructor-class-row b {
  font-weight: 900;
}

.instructor-class-row small {
  display: block;
  margin-top: 2px;
  color: var(--ples-muted);
}

.instructor-status {
  margin: 0;
  font-style: normal;
}

.instructor-status--success {
  background: #dcfce7;
  color: #166534;
}

.instructor-status--warning {
  background: #fef3c7;
  color: #92400e;
}

.instructor-status--warning::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.14);
  font-size: 0.68rem;
  font-weight: 950;
}

.instructor-status--active {
  background: #dbeafe;
  color: #1d4ed8;
}

.instructor-status--info {
  background: #eef4ff;
  color: var(--ples-blue);
}

.instructor-status--muted {
  background: #f1f5f9;
  color: #64748b;
}

.instructor-payment-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 0;
  color: var(--ples-navy);
}

.instructor-payment-summary small {
  display: block;
  margin: -4px 0 4px;
  color: var(--ples-muted);
  font-weight: 800;
}

.instructor-payment-link {
  min-height: 34px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid rgba(31, 70, 199, 0.18);
  border-radius: 10px;
  padding: 0 10px;
  color: var(--ples-blue);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.instructor-today-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.instructor-today-actions a {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ples-navy);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.instructor-today-actions a span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(31, 70, 199, 0.1);
  color: var(--ples-blue);
  font-weight: 950;
}

.instructor-today-actions a strong {
  align-self: end;
}

.instructor-today-actions a small {
  color: var(--ples-muted);
}

.instructor-today-actions a em {
  grid-row: span 2;
  color: var(--ples-blue);
  font-size: 1.4rem;
  font-style: normal;
}

.instructor-today-empty,
.instructor-empty-actions {
  display: grid;
  gap: 8px;
}

.instructor-today-empty div,
.instructor-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1180px) {
  .instructor-today-grid,
  .instructor-today-actions {
    grid-template-columns: 1fr;
  }

  .instructor-class-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .instructor-today-page .role-content,
  .instructor-today-hero {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
  }

  .instructor-today-hero {
    display: grid;
    min-height: 0;
    padding: 14px;
  }

  .instructor-today-hero h1 {
    font-size: 1.35rem;
  }

  .instructor-next-class h2 {
    font-size: 1.45rem;
  }
}

/* Instructor Moj panel final UX */
.instructor-panel-hero {
  width: min(1400px, 92vw);
  min-height: 0;
  margin: 14px auto 0;
  padding: 20px 24px 22px;
  display: flex;
  justify-content: flex-start;
  gap: 22px;
  align-items: flex-start;
  border-radius: 18px;
  background: linear-gradient(135deg, #071b54 0%, #123aa7 52%, #2f7df6 100%);
  color: #fff;
  box-shadow: 0 22px 46px rgba(15, 47, 143, 0.26);
}

.instructor-today-page.app-shell--connected-hero .role-main-shell,
.instructor-programs-page.app-shell--connected-hero .role-main-shell {
  background: #f6f8fc;
}

.instructor-today-page .page-hero--connected,
.instructor-programs-page .page-hero--connected {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(7, 27, 84, 0.16);
  background: linear-gradient(105deg, #172033 0%, #123aa7 48%, #2f7df6 100%);
  box-shadow: 0 8px 20px rgba(7, 27, 84, 0.16);
}

.instructor-today-page .page-hero--connected .instructor-panel-hero__copy,
.instructor-programs-page .page-hero--connected .instructor-panel-hero__copy {
  max-width: 980px;
}

.instructor-panel-hero p,
.instructor-panel-hero h1,
.instructor-panel-hero span,
.instructor-panel-hero small {
  margin: 0;
}

.instructor-panel-hero p {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.instructor-panel-hero h1 {
  margin-top: 5px;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.12;
}

.instructor-panel-hero__copy > span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.45;
}

.instructor-panel-hero__copy > small {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 500;
  line-height: 1.35;
}

.instructor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.instructor-hero-actions a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  padding: 0 17px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  text-shadow: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.instructor-hero-actions a:hover,
.instructor-hero-actions a:focus-visible {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.instructor-hero-actions a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.instructor-hero-actions a:active {
  transform: translateY(0);
}

.instructor-hero-actions a.is-active,
.instructor-hero-actions a[aria-current="page"] {
  border-color: #fff;
  background: #fff;
  color: #123aa7;
}

.instructor-today-dashboard {
  gap: 12px;
}

.instructor-today-list,
.instructor-weekly-tasks {
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.instructor-today-list > header,
.instructor-weekly-tasks > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.instructor-section-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.instructor-section-metrics strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef4ff;
  color: var(--ples-blue);
  font-size: 0.8rem;
  font-weight: 500;
}

.instructor-class-row {
  grid-template-columns: 116px minmax(170px, 1.35fr) minmax(100px, 0.9fr) 92px 106px;
  min-height: 54px;
  background: #fff;
  line-height: 1.4;
  font-weight: 400;
}

.instructor-class-row time,
.instructor-class-row > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.instructor-class-row span {
  color: #536174;
  font-weight: 400;
}

.instructor-class-row b {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f46c7, #2f7df6);
  color: #fff;
  font-weight: 600;
}

.instructor-weekly-tasks h2,
.instructor-today-list h2 {
  margin: 2px 0 0;
  color: var(--ples-navy);
  font-weight: 700;
  line-height: 1.2;
}

.instructor-task-progress {
  display: grid;
  gap: 6px;
  min-width: 170px;
  text-align: right;
}

.instructor-task-progress strong {
  color: var(--ples-navy);
  font-size: 0.86rem;
  font-weight: 600;
}

.instructor-task-progress span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf8;
}

.instructor-task-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #2f7df6);
}

.instructor-task-list {
  display: grid;
  gap: 8px;
}

.instructor-task-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fbfdff;
}

.instructor-task-row button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(31, 70, 199, 0.24);
  border-radius: 9px;
  background: #fff;
  color: var(--ples-blue);
  font-weight: 600;
  cursor: pointer;
}

.instructor-task-row button:disabled {
  background: #dcfce7;
  color: #166534;
  cursor: default;
}

.instructor-task-row a {
  display: grid;
  gap: 2px;
  color: var(--ples-navy);
  text-decoration: none;
}

.instructor-task-row span {
  color: #536174;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
}

.instructor-task-row strong {
  font-weight: 600;
  line-height: 1.3;
}

.instructor-see-all-tasks,
.instructor-cash-alert a {
  width: fit-content;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  padding: 0 12px;
  background: #eef4ff;
  color: var(--ples-blue);
  font-weight: 600;
  text-decoration: none;
}

.instructor-cash-alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid #f8c772;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff8e8;
  color: var(--ples-navy);
  box-shadow: var(--shadow-card);
}

.instructor-today-actions a:nth-child(1) {
  background: #eff6ff;
  border-color: #8ebeff;
}

.instructor-today-actions a:nth-child(2) {
  background: #f5f0ff;
  border-color: #c4a8ff;
}

.instructor-today-actions a:nth-child(3) {
  background: #fff1f5;
  border-color: #f9a8c2;
}

.instructor-today-page .instructor-card-label {
  letter-spacing: 0.04em;
  font-weight: 600;
  line-height: 1.2;
}

.instructor-today-page .instructor-today-empty {
  line-height: 1.45;
}

.instructor-today-page .instructor-today-empty strong {
  font-weight: 600;
}

.instructor-today-page .instructor-today-empty span {
  color: #536174;
  font-weight: 400;
}

.instructor-today-page .instructor-today-empty a {
  font-weight: 600;
}

.instructor-today-page .instructor-today-actions a {
  line-height: 1.35;
  font-weight: 400;
}

.instructor-today-page .instructor-today-actions a span {
  width: 30px;
  height: 30px;
  font-weight: 600;
}

.instructor-today-page .instructor-today-actions a strong {
  font-weight: 600;
  line-height: 1.25;
}

.instructor-today-page .instructor-today-actions a small {
  color: #536174;
  font-weight: 400;
  line-height: 1.45;
}

.instructor-today-page .instructor-today-actions a em {
  font-size: 1.18rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .instructor-role .mobile-bottom-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .instructor-panel-hero {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
    min-height: 0;
    padding: 16px;
    display: grid;
  }

  .instructor-today-page .page-hero--connected,
  .instructor-programs-page .page-hero--connected {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .instructor-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    overflow: visible;
    padding-bottom: 0;
  }

  .instructor-hero-actions a {
    min-width: 0;
    min-height: 44px;
    padding: 0 10px;
    white-space: normal;
    text-align: center;
  }

  .instructor-hero-actions a:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .instructor-section-metrics {
    justify-content: flex-start;
  }

  .instructor-programs-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .instructor-class-row {
    grid-template-columns: 92px minmax(0, 1fr) 96px;
    gap: 7px;
  }

  .instructor-class-row > span:nth-of-type(2) {
    grid-column: 2;
  }

  .instructor-class-row b {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .instructor-weekly-tasks > header,
  .instructor-today-list > header,
  .instructor-cash-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .instructor-task-progress {
    min-width: 0;
    text-align: left;
  }
}

@media (orientation: landscape) and (max-width: 960px) {
  .instructor-today-page .role-main-shell {
    min-height: auto;
  }

  .instructor-panel-hero {
    min-height: 0;
    padding: 12px 14px;
    align-items: start;
  }

  .instructor-panel-hero h1 {
    font-size: 1.55rem;
  }

  .instructor-panel-hero__copy > span {
    margin-top: 4px;
  }

  .instructor-panel-hero__copy > small {
    margin-top: 4px;
  }

  .instructor-panel-hero__side {
    gap: 8px;
  }

  .instructor-hero-actions {
    display: flex;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .instructor-hero-actions a {
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
  }

  .instructor-today-page .role-content {
    padding-bottom: 8px;
  }

  .instructor-today-dashboard {
    gap: 8px;
  }

  .instructor-today-list,
  .instructor-weekly-tasks {
    padding: 10px;
  }

  .instructor-class-list {
    max-height: 220px;
  }

  .instructor-class-row {
    grid-template-columns: 100px minmax(140px, 1fr) minmax(90px, 0.7fr) 86px 96px;
    min-height: 46px;
    padding: 7px 9px;
  }

  .instructor-class-row b {
    min-height: 30px;
  }

  .instructor-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instructor-see-all-tasks {
    grid-column: 1 / -1;
  }

  .instructor-today-actions {
    display: flex;
    overflow-x: auto;
    gap: 8px;
  }

  .instructor-today-actions a {
    flex: 0 0 min(31%, 220px);
    min-height: 58px;
    padding: 8px 10px;
  }
}
/* Sprint 12A Production readiness */
.auth-body--production {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 16%, rgba(31, 70, 199, 0.16), transparent 28rem),
    linear-gradient(135deg, #f5f7fb 0%, #e8eef9 100%);
  color: var(--ples-navy);
}

.production-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  width: min(30rem, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
}

.production-login__brand {
  display: grid;
  gap: 0.7rem;
}

.production-logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--ples-blue);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.production-logo--image {
  object-fit: contain;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid rgba(31, 70, 199, 0.16);
}

.production-login__brand p,
.production-login__brand span,
.login-support,
.production-login__footer {
  color: var(--ples-muted);
}

.production-login__brand h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0;
}

.production-login__card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.production-login__identity {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.production-login__identity strong {
  color: #061638;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1;
}

.production-login__identity span {
  color: var(--ples-muted);
  font-weight: 900;
}

.production-login__card .login-card__head {
  margin-bottom: 0.25rem;
}

.login-support {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.production-login__footer {
  border-top: 1px solid rgba(23, 32, 51, 0.08);
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.system-message-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--ples-bg);
  padding: 1rem;
}

.system-message-card {
  width: min(34rem, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(23, 32, 51, 0.08);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

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

.settings-section {
  background: #fff;
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.settings-section label {
  display: grid;
  gap: 0.3rem;
  color: var(--ples-navy);
  font-weight: 700;
}

.settings-section input,
.settings-section select {
  min-height: 2.4rem;
  border: 1px solid var(--ples-border);
  border-radius: 8px;
  padding: 0 0.65rem;
}

@media (max-width: 820px) {
  .production-login,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .production-login {
    align-content: start;
  }

  .instructor-today-actions {
    grid-template-columns: 1fr;
  }
}

/* Director academy settings premium business panel */
.settings-premium-page .role-content {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.settings-premium-hero {
  width: min(100%, 1080px);
  margin: 0 auto;
  border-radius: 22px;
  padding: 20px 22px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 36, 91, 0.98), rgba(31, 70, 199, 0.94)),
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.18), transparent 30%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(15, 36, 91, 0.24);
}

.settings-premium-hero__copy {
  display: grid;
  gap: 6px;
}

.settings-premium-hero__copy span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.settings-premium-hero__copy h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.settings-premium-hero__copy p {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.settings-premium-hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(118px, 1fr));
  gap: 10px;
}

.settings-premium-hero__facts article {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}

.settings-premium-hero__facts small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-premium-hero__facts strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.15;
}

.settings-business-form {
  display: grid;
  gap: 14px;
}

.settings-alert {
  margin: 0;
  grid-column: 1 / -1;
}

.settings-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.settings-card {
  background: #fff;
  border: 1px solid rgba(21, 37, 72, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(21, 37, 72, 0.08);
  padding: 18px 18px 16px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-card-form,
.settings-logo-uploader {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-card > .settings-card-form {
  flex: 1;
}

.settings-academy-layout {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  flex: 1;
}

.settings-academy-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
  align-items: end;
  flex: 1;
}

.settings-academy-form .settings-save {
  grid-column: 1 / -1;
}

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

.settings-card header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 58px;
}

.settings-card h2 {
  margin: 0;
  color: #172033;
  font-size: 1.02rem;
  line-height: 1.1;
}

.settings-card p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.25;
}

.settings-card__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #1f46c7;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(31, 70, 199, 0.08);
}

.settings-logo-preview {
  width: 96px;
  height: 96px;
  min-height: 96px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(31, 70, 199, 0.18);
  background: linear-gradient(135deg, #f7faff, #eef4ff);
  overflow: hidden;
}

.settings-card--academy .settings-logo-preview {
  min-height: 96px;
}

.settings-logo-preview--small {
  min-height: 60px;
}

.settings-logo-preview img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.settings-logo-preview strong {
  color: #1f46c7;
  font-size: 1.3rem;
}

.settings-logo-preview span {
  color: #1f46c7;
  font-weight: 900;
  font-size: 1.05rem;
}

.settings-logo-button {
  position: relative;
  display: inline-grid;
  width: 96px;
  height: 96px;
  cursor: pointer;
}

.settings-logo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-logo-button i {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #1f46c7;
  color: #fff;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(31, 70, 199, 0.24);
}

.settings-upload-drop {
  min-height: 94px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 16px;
  border: 1px dashed rgba(31, 70, 199, 0.34);
  border-radius: 16px;
  background: #f8fbff;
  color: #1f46c7;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.settings-upload-drop:hover {
  border-color: #1f46c7;
  background: #eef4ff;
  transform: translateY(-1px);
}

.settings-upload-drop input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-upload-drop strong {
  font-size: 0.92rem;
}

.settings-upload-drop small {
  color: #667085;
  font-size: 0.76rem;
}

.settings-field-grid,
.settings-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 12px;
}

.settings-field-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-field {
  display: grid;
  gap: 5px;
  color: #172033;
  font-weight: 800;
  font-size: 0.78rem;
}

.settings-field--compact {
  max-width: 170px;
}

.settings-field input,
.settings-field select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  padding: 0 11px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 650;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.settings-field input[type="color"] {
  padding: 4px;
}

.settings-field input:focus,
.settings-field select:focus {
  border-color: #1f46c7;
  box-shadow: 0 0 0 3px rgba(31, 70, 199, 0.12);
}

.settings-field input[readonly],
.settings-field select:disabled {
  color: #596579;
  background: #f8fafc;
}

.settings-input-affix {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #d8e0ec;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.settings-input-affix:focus-within {
  border-color: #1f46c7;
  box-shadow: 0 0 0 3px rgba(31, 70, 199, 0.12);
}

.settings-input-affix input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.settings-input-affix input:focus {
  box-shadow: none;
}

.settings-input-affix b {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 10px;
  background: #eef4ff;
  color: #1f46c7;
  font-size: 0.73rem;
  font-weight: 900;
}

.settings-field small,
.settings-card-note {
  color: #7a8699;
  font-size: 0.75rem;
  line-height: 1.3;
}

.settings-save {
  min-height: 41px;
  align-self: flex-end;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 0 20px;
  background: linear-gradient(135deg, #1f46c7, #1558e8);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(31, 70, 199, 0.22);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.settings-save::before {
  content: "✓";
  font-weight: 900;
}

.settings-save:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(31, 70, 199, 0.26);
}

.settings-save:active {
  transform: translateY(0);
}

.settings-save:disabled {
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.settings-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-metric {
  min-height: 72px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
}

.settings-metric span {
  color: #667085;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.settings-metric strong {
  color: #172033;
  font-size: 0.92rem;
}

.settings-metric em,
.settings-toggle-row em {
  color: #1f46c7;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.settings-duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.settings-duration-options--checks label {
  cursor: pointer;
}

.settings-duration-options--checks input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-duration-options span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #1f46c7;
  background: #fff;
  border: 1px solid #d8e0ec;
  font-size: 0.73rem;
  font-weight: 850;
}

.settings-duration-options--checks input:checked + span {
  color: #fff;
  background: #1f46c7;
  border-color: #1f46c7;
  box-shadow: none;
}

.settings-toggle-list {
  display: grid;
  gap: 10px;
}

.settings-toggle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
}

.settings-toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-toggle-row strong {
  display: block;
  color: #172033;
  font-size: 0.88rem;
}

.settings-toggle-row small {
  display: block;
  color: #667085;
  font-size: 0.76rem;
  line-height: 1.3;
}

.settings-toggle-switch {
  width: 38px;
  height: 22px;
  padding: 3px;
  border-radius: 999px;
  background: #d8e0ec;
}

.settings-toggle-switch i {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(23, 32, 51, 0.16);
}

.settings-toggle-row.is-active .settings-toggle-switch {
  background: #1f46c7;
}

.settings-toggle-row:has(input:checked) .settings-toggle-switch {
  background: #1f46c7;
}

.settings-toggle-row.is-active .settings-toggle-switch i {
  transform: translateX(16px);
}

.settings-toggle-row:has(input:checked) .settings-toggle-switch i {
  transform: translateX(16px);
}

.settings-toggle-row:not(.is-disabled) {
  cursor: pointer;
}

.settings-toggle-row:not(.is-disabled):hover {
  border-color: #c9d8f0;
  background: #f3f7ff;
}

.settings-toggle-row.is-disabled {
  opacity: 0.78;
  cursor: not-allowed;
}

.settings-advanced {
  background: #fff;
  border: 1px solid rgba(21, 37, 72, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(21, 37, 72, 0.06);
  padding: 14px 16px;
}

.settings-advanced summary {
  cursor: pointer;
  color: #172033;
  font-weight: 900;
}

.settings-advanced-grid {
  margin-top: 14px;
  margin-bottom: 14px;
}

@media (max-width: 920px) {
  .settings-premium-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .settings-premium-hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-card-grid {
    grid-template-columns: 1fr;
  }

  .settings-card-grid--simple .settings-card--academy,
  .settings-card-grid--simple .settings-card--finance {
    grid-column: auto;
  }

  .settings-field-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .settings-premium-page .role-content {
    padding-inline: 0;
  }

  .settings-premium-hero {
    border-radius: 18px;
    padding: 18px;
  }

  .settings-premium-hero__facts,
  .settings-field-grid,
  .settings-field-grid--wide,
  .settings-advanced-grid,
  .settings-metric-grid {
    grid-template-columns: 1fr;
  }

  .settings-academy-layout,
  .settings-academy-form {
    grid-template-columns: 1fr;
  }

  .settings-logo-uploader {
    justify-items: center;
  }

  .settings-card {
    border-radius: 16px;
    padding: 16px;
  }

.settings-save {
    width: 100%;
  }
}

/* Director access overview */
.director-access-page .role-content {
  max-width: none;
}

.access-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #102454 0%, #1f46c7 62%, #4f7cff 100%);
  box-shadow: 0 18px 45px rgba(17, 36, 84, 0.22);
}

.access-hero span,
.access-users-card header span,
.access-modal header span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-hero h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.access-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
}

.access-new-employee {
  position: relative;
  flex: 0 0 auto;
}

.access-new-employee summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 11px;
  background: #fff;
  color: #14244d;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.access-new-employee summary::-webkit-details-marker {
  display: none;
}

.access-new-employee[open] summary {
  border-color: var(--director-pink, #e91e63);
}

.access-new-employee a {
  display: block;
  min-width: 190px;
  padding: 10px 12px;
  color: #14244d;
  text-decoration: none;
  font-weight: 700;
}

.access-new-employee a:hover {
  background: #eef4ff;
}

.access-new-employee[open]::after {
  content: "";
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  height: 92px;
  border: 1px solid #dbe5f6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(17, 36, 84, 0.16);
  z-index: -1;
}

.access-new-employee[open] {
  z-index: 5;
}

.access-new-employee[open] a {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  background: #fff;
}

.access-alert {
  margin: 0 0 14px;
  padding: 11px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.access-alert--success {
  border: 1px solid #b8e3cb;
  background: #effaf3;
  color: #126c3c;
}

.access-alert--error {
  border: 1px solid #f6c2bd;
  background: #fff4f2;
  color: #b42318;
}

.access-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.access-role-card,
.access-users-card {
  border: 1px solid #dbe5f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 36, 84, 0.08);
}

.access-role-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 310px;
  padding: 18px;
}

.access-role-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.access-role-card small,
.access-table small {
  color: #6b7894;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-role-card__head strong {
  color: var(--director-pink, #e91e63);
  font-size: 1.15rem;
}

.access-role-card h2,
.access-users-card h2,
.access-modal h2 {
  margin: 4px 0 6px;
  color: #14244d;
}

.access-role-card p,
.access-modal p {
  margin: 0;
  color: #5f6d85;
  line-height: 1.45;
}

.access-progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eaf0fb;
}

.access-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f46c7, var(--director-pink, #e91e63));
}

.access-progress--small {
  height: 5px;
  margin: 6px 0;
}

.access-role-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.access-role-lists b {
  display: block;
  margin-bottom: 7px;
  color: #14244d;
  font-size: 0.84rem;
}

.access-role-lists ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-role-lists li {
  border-radius: 999px;
  background: #eef4ff;
  color: #1f46c7;
  font-size: 0.74rem;
  font-weight: 750;
  padding: 5px 8px;
}

.access-role-lists div:last-child li {
  background: #f7f4fb;
  color: #6b4b7f;
}

.access-users-card {
  margin-top: 16px;
  padding: 18px;
}

.access-users-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.access-users-card header span,
.access-modal header span {
  color: #1f46c7;
}

.access-filter-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.access-filter-form select,
.access-filter-form input,
.access-table select,
.access-table input,
.access-modal input {
  height: 38px;
  border: 1px solid #d4def0;
  border-radius: 10px;
  background: #fff;
  color: #14244d;
  font-size: 0.9rem;
  padding: 0 10px;
}

.access-table-wrap {
  overflow-x: auto;
}

.access-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.access-table th {
  padding: 12px 10px;
  background: #102454;
  color: #fff;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.access-table th:first-child {
  border-radius: 12px 0 0 12px;
}

.access-table th:last-child {
  border-radius: 0 12px 12px 0;
}

.access-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e1e8f5;
  color: #14244d;
  vertical-align: middle;
}

.access-employee {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.access-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eff4ff;
  color: #1f46c7;
  font-weight: 850;
}

.access-employee strong,
.access-level span {
  display: block;
  color: #14244d;
  font-weight: 800;
}

.access-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.access-badge.is-active {
  background: #eaf8ef;
  color: #13844b;
}

.access-badge.is-inactive {
  background: #fff1ef;
  color: #b42318;
}

.access-login {
  display: grid;
  gap: 8px;
}

.access-login form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  align-items: end;
  gap: 7px;
}

.access-login label {
  display: grid;
  gap: 4px;
  color: #6b7894;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.access-password-row,
.access-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.access-password-row span {
  color: #6b7894;
  letter-spacing: 0.08em;
}

.button-tiny {
  min-height: 31px;
  padding: 0 9px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.access-row-menu {
  position: relative;
}

.access-row-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d4def0;
  border-radius: 10px;
  background: #fff;
  color: #14244d;
  cursor: pointer;
  list-style: none;
}

.access-row-menu summary::-webkit-details-marker {
  display: none;
}

.access-row-menu[open] {
  z-index: 10;
}

.access-row-menu[open] a,
.access-row-menu[open] button {
  display: block;
  position: relative;
  min-width: 150px;
  padding: 9px 10px;
  border: 0;
  background: #fff;
  color: #14244d;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
}

.access-row-menu[open]::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 0;
  width: 170px;
  height: 116px;
  border: 1px solid #dbe5f6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(17, 36, 84, 0.16);
}

.access-empty {
  margin: 0;
  padding: 18px;
  color: #5f6d85;
}

.access-modal {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 28px 70px rgba(17, 36, 84, 0.28);
}

.access-modal::backdrop {
  background: rgba(12, 25, 57, 0.48);
}

.access-modal form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.access-modal--wide {
  width: min(860px, calc(100vw - 32px));
}

.access-modal header,
.access-modal footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.access-modal header button[data-access-close] {
  width: 34px;
  height: 34px;
  border: 1px solid #d4def0;
  border-radius: 10px;
  background: #fff;
  color: #14244d;
  font-size: 1.2rem;
  cursor: pointer;
}

.access-modal label:not(.access-check) {
  display: grid;
  gap: 6px;
  color: #14244d;
  font-weight: 750;
}

.access-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5f6d85;
  font-weight: 650;
}

.access-permission-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.access-permission-groups fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px;
  border: 1px solid #dbe5f6;
  border-radius: 14px;
}

.access-permission-groups legend {
  padding: 0 4px;
  color: #1f46c7;
  font-size: 0.75rem;
  font-weight: 850;
}

.access-permission-groups label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  background: #f7faff;
  color: #14244d;
  font-weight: 650;
}

.access-permission-groups label.is-disabled {
  opacity: 0.56;
}

.access-modal-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7faff;
}

@media (max-width: 1180px) {
  .access-role-grid,
  .access-permission-groups {
    grid-template-columns: 1fr;
  }

  .access-role-lists {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .access-hero,
  .access-users-card header,
  .access-filter-form,
  .access-modal footer {
    display: grid;
    justify-items: stretch;
  }

  .access-new-employee summary {
    justify-content: center;
    width: 100%;
  }
}

/* Sprint 16B Office Admin compaction and overview contrast */
.office-attention-page {
  --office-border: #cad6e8;
}

.office-attention-page .role-sidebar {
  padding-top: 24px;
  padding-bottom: 18px;
}

.office-attention-page .role-nav {
  gap: 6px;
}

.office-attention-page .role-nav a {
  min-height: 40px;
}

.office-quick-box {
  margin-top: 58px;
  padding: 14px 12px;
}

/* Academy cashdesk */
.academy-cashdesk-page .role-main-shell {
  min-width: 0;
}

.academy-cashdesk-page .role-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 22px 24px;
}

.academy-cashdesk-page .role-prefooter,
.academy-cashdesk-page .role-footer {
  display: none;
}

.cashdesk-page {
  width: 100%;
  display: grid;
  gap: 12px;
}

.billing-page-heading {
  align-items: center;
}

.billing-heading-text {
  min-width: 0;
}

.billing-heading-actions {
  flex: 0 0 auto;
}

.cashdesk-topbar {
  display: grid;
  grid-template-columns: minmax(230px, 1.15fr) minmax(520px, 2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #dde6f4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(12, 28, 67, 0.07);
}

.cashdesk-title h1 {
  margin: 0;
  color: #071436;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.cashdesk-title p {
  margin: 7px 0 0;
  color: #384766;
  font-size: 0.92rem;
}

.cashdesk-top-actions,
.cashdesk-table-actions,
.cashdesk-table-actions > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cashdesk-top-actions {
  justify-content: flex-end;
}

.cashdesk-alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.cashdesk-alert.is-success {
  background: #e8f8ef;
  color: #166534;
}

.cashdesk-alert.is-error {
  background: #fff1f1;
  color: #b42318;
}

.cashdesk-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 8px;
}

.cashdesk-kpis article,
.cashdesk-card,
.cashdesk-ledger-card {
  border: 1px solid #dce5f3;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 28, 67, 0.06);
}

.cashdesk-kpis article {
  min-height: 58px;
  padding: 10px 12px;
}

.cashdesk-kpis span {
  display: block;
  color: #65718a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cashdesk-kpis strong {
  display: block;
  margin-top: 6px;
  color: #3020c8;
  font-size: 1.18rem;
  line-height: 1;
}

.billing-kpi-panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8faff;
  box-shadow: 0 8px 20px rgba(12, 28, 67, 0.045);
  margin-bottom: 0;
}

.billing-kpi-card {
  --billing-kpi-bg: #eff6ff;
  --billing-kpi-border: #bfdbfe;
  --billing-kpi-icon: #2563eb;
  --billing-kpi-icon-bg: #dbeafe;
  --billing-kpi-text: #1e3a8a;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid var(--billing-kpi-border);
  border-radius: 12px;
  background: var(--billing-kpi-bg);
  color: var(--billing-kpi-text);
  box-shadow: 0 7px 16px rgba(12, 28, 67, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cashdesk-kpis .billing-kpi-card {
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 16px;
  border: 1px solid var(--billing-kpi-border);
  border-radius: 12px;
  background: var(--billing-kpi-bg);
}

.billing-kpi-card--daily {
  --billing-kpi-bg: #f7f1ff;
  --billing-kpi-border: #d8b4fe;
  --billing-kpi-icon: #7c3aed;
  --billing-kpi-icon-bg: #ede9fe;
  --billing-kpi-text: #1e1b4b;
}

.billing-kpi-card--weekly {
  --billing-kpi-bg: #effbf3;
  --billing-kpi-border: #bbf7d0;
  --billing-kpi-icon: #16a34a;
  --billing-kpi-icon-bg: #dcfce7;
  --billing-kpi-text: #14532d;
}

.billing-kpi-card--monthly {
  --billing-kpi-bg: #fff7ea;
  --billing-kpi-border: #fed7aa;
  --billing-kpi-icon: #f97316;
  --billing-kpi-icon-bg: #ffedd5;
  --billing-kpi-text: #7c2d12;
}

.billing-kpi-card--semester {
  --billing-kpi-bg: #eff6ff;
  --billing-kpi-border: #bfdbfe;
  --billing-kpi-icon: #2563eb;
  --billing-kpi-icon-bg: #dbeafe;
  --billing-kpi-text: #1e3a8a;
}

.billing-kpi-card:hover {
  border-color: var(--billing-kpi-icon);
  box-shadow: 0 10px 22px rgba(12, 28, 67, 0.075);
  transform: translateY(-1px);
}

.billing-kpi-card__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--billing-kpi-icon-bg);
  color: var(--billing-kpi-icon);
}

.cashdesk-kpis .billing-kpi-card__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--billing-kpi-icon-bg);
  color: var(--billing-kpi-icon);
  text-transform: none;
}

.billing-kpi-card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.billing-kpi-card__body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.cashdesk-kpis .billing-kpi-card__body span {
  color: var(--billing-kpi-text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.cashdesk-kpis .billing-kpi-card__body strong {
  margin: 0;
  color: var(--billing-kpi-text);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.cashdesk-period-picker,
.cashdesk-new-picker {
  position: relative;
}

.cashdesk-period-picker summary,
.cashdesk-new-picker summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #d8e1ef;
  border-radius: 7px;
  background: #fff;
  color: #071436;
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.cashdesk-new-picker summary {
  border-color: #321bd8;
  color: #fff;
  background: linear-gradient(135deg, #4d35e7, #2810be);
  box-shadow: 0 8px 18px rgba(50, 27, 216, 0.18);
}

.cashdesk-period-picker summary::-webkit-details-marker,
.cashdesk-new-picker summary::-webkit-details-marker {
  display: none;
}

.cashdesk-period-picker form,
.cashdesk-new-picker > div {
  position: absolute;
  z-index: 10;
  right: 0;
  top: calc(100% + 8px);
  width: 270px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 20, 54, 0.16);
}

.cashdesk-new-picker > div {
  width: 190px;
}

.cashdesk-new-picker a {
  padding: 9px 10px;
  border-radius: 8px;
  color: #071436;
  font-weight: 800;
}

.cashdesk-new-picker button {
  width: 100%;
  border: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #071436;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.cashdesk-new-picker a:hover,
.cashdesk-new-picker button:hover {
  background: #f3f6fb;
}

.cashdesk-period-picker label,
.cashdesk-form label {
  display: grid;
  gap: 5px;
  color: #263657;
  font-size: 0.78rem;
  font-weight: 800;
}

.cashdesk-period-picker input,
.cashdesk-form input,
.cashdesk-form select,
.cashdesk-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d4dfef;
  border-radius: 7px;
  padding: 8px 10px;
  color: #071436;
  font: inherit;
  background: #fff;
}

.cashdesk-period-picker div {
  display: flex;
  gap: 8px;
}

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

.cashdesk-main {
  min-width: 0;
}

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

.cashdesk-card {
  padding: 14px;
}

.cashdesk-card h2 {
  margin: 0 0 12px;
  color: #071436;
  font-size: 0.92rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.cashdesk-card p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #edf2fb;
}

.cashdesk-card p span,
.cashdesk-card small {
  color: #63708b;
  font-size: 0.78rem;
  font-weight: 700;
}

.cashdesk-card p strong {
  color: #071436;
  white-space: nowrap;
}

.billing-payroll-ready {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.billing-payroll-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
}

.billing-payroll-item + .billing-payroll-item {
  margin-top: 10px;
}

.billing-payroll-item header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: start;
}

.billing-payroll-item header strong,
.billing-payroll-item header span {
  min-width: 0;
}

.billing-payroll-item header span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.billing-payroll-item header b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #1d4ed8;
  white-space: nowrap;
}

.billing-payroll-form {
  gap: 8px;
}

.billing-payroll-confirm {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.billing-payroll-confirm input {
  width: auto;
}

.cashdesk-total {
  margin-top: 4px !important;
  border-bottom: 0 !important;
  text-transform: uppercase;
}

.cashdesk-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
}

.cashdesk-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cashdesk-filter-row label {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #d7e0ef;
  border-radius: 6px;
  color: #182849;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(12, 28, 67, 0.04);
}

.cashdesk-filter-row label.is-active {
  border-color: #3320d4;
  background: linear-gradient(135deg, #4d35e7, #2d19c4);
  color: #fff;
}

.cashdesk-filter-row input {
  position: absolute;
  opacity: 0;
}

.billing-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  overflow-x: visible;
}

.billing-filter-bar .cashdesk-filter-row {
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  gap: 8px;
}

.billing-filter-period {
  margin-left: 12px;
  padding-left: 14px;
  border-left: 1px solid #cbd5e1;
}

.cashdesk-filter-row .billing-filter-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0 14px;
  box-sizing: border-box;
  border-color: #d9e2f0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cashdesk-filter-row .billing-filter-button:hover {
  border-color: #b8c5db;
  background: #f8fbff;
  box-shadow: 0 7px 16px rgba(12, 28, 67, 0.06);
}

.cashdesk-filter-row .billing-filter-button:focus-within {
  outline: 3px solid rgba(77, 53, 231, 0.18);
  outline-offset: 2px;
}

.cashdesk-filter-row .billing-filter-button.is-active {
  border-color: #3320d4;
  background: linear-gradient(135deg, #4d35e7, #2d19c4);
  color: #fff;
  box-shadow: 0 7px 16px rgba(50, 27, 216, 0.16);
}

.cashdesk-ledger-card {
  overflow: hidden;
}

.cashdesk-table-scroll {
  overflow-x: auto;
}

.cashdesk-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  color: #071436;
}

.cashdesk-table th,
.cashdesk-table td {
  height: 54px;
  padding: 9px 13px;
  border-bottom: 1px solid #e7edf6;
  text-align: left;
  vertical-align: middle;
  font-size: 0.84rem;
}

.cashdesk-table th {
  height: 38px;
  color: #fff;
  background: linear-gradient(180deg, #071b43, #03112f);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.cashdesk-source {
  max-width: 260px;
  line-height: 1.35;
}

.cashdesk-table td small {
  display: block;
  margin-top: 2px;
  color: #071436;
  font-weight: 800;
}

.cashdesk-table .money {
  text-align: right;
  white-space: nowrap;
  font-weight: 900;
}

.cashdesk-table .income {
  color: #e11d48;
}

.cashdesk-table .expense {
  color: #172342;
}

.cashdesk-table .net.is-positive {
  color: #12833e;
}

.cashdesk-table .net.is-negative {
  color: #c2410c;
}

.cashdesk-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2638c7;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.cashdesk-icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 34px;
  border: 1px solid #d9e2ef;
  border-radius: 7px;
  color: #071436;
  background: #fff;
  font-weight: 900;
}

.cashdesk-muted,
.cashdesk-empty {
  color: #74819a;
}

.cashdesk-table tfoot th {
  height: 44px;
  color: #071436;
  background: #fff;
  font-size: 0.86rem;
}

.cashdesk-table-actions {
  justify-content: space-between;
  padding: 12px 0 0;
}

.cashdesk-table-actions .button,
.cashdesk-table-actions button.button,
.cashdesk-top-actions .button,
.cashdesk-period-picker .button {
  min-height: 38px;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 900;
  padding-inline: 14px;
  cursor: pointer;
}

.button.button-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
  border: 0;
}

.button.button-success {
  background: linear-gradient(135deg, #16854f, #23a968);
  color: #fff;
  border: 0;
}

.cashdesk-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cashdesk-state-grid div {
  min-height: 74px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid;
  border-radius: 8px;
}

.cashdesk-state-grid span {
  color: #1d2c4f;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.cashdesk-state-grid strong {
  font-size: 1.25rem;
  line-height: 1;
}

.tone-income {
  border-color: #fecdd3 !important;
  background: #fff7f8;
  color: #e11d48;
}

.tone-expense {
  border-color: #fed7aa !important;
  background: #fff8f0;
  color: #f97316;
}

.tone-net {
  border-color: #bbf7d0 !important;
  background: #f1fbf5;
  color: #16803d;
}

.tone-pending {
  border-color: #bfdbfe !important;
  background: #f4f8ff;
  color: #1d4ed8;
}

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

.cashdesk-form .is-wide,
.cashdesk-form textarea,
.cashdesk-form button {
  grid-column: 1 / -1;
}

.cashdesk-handover-card .button-success {
  min-height: 44px;
  justify-content: center;
  text-transform: uppercase;
}

.cashdesk-user-chip {
  display: grid;
  gap: 2px;
  margin: -2px 0 10px;
  padding: 9px 10px;
  border: 1px solid #dce5f3;
  border-radius: 8px;
  background: #f8fbff;
}

.cashdesk-user-chip strong {
  color: #071436;
  font-size: 0.92rem;
}

.cashdesk-user-chip span {
  color: #64728b;
  font-size: 0.76rem;
  font-weight: 800;
}

.cashdesk-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 14px;
}

.cashdesk-history-table {
  display: grid;
  gap: 0;
}

.cashdesk-history-head,
.cashdesk-history-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 0.8fr 0.8fr;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 6px 0;
  border-bottom: 1px solid #edf2fb;
  font-size: 0.78rem;
}

.cashdesk-history-head {
  min-height: 28px;
  color: #5f6b82;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cashdesk-history-row mark {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #16803d;
  background: #dcfce7;
  font-weight: 900;
}

.cashdesk-more-link {
  display: inline-flex;
  margin-top: 10px;
  color: #321bd8;
  font-weight: 900;
}

.cashdesk-show-all {
  padding: 10px 13px 0;
}

.cashdesk-show-all a {
  color: #321bd8;
  font-size: 0.84rem;
  font-weight: 900;
}

.cashdesk-empty-state {
  padding: 18px 0;
  color: #6b7894;
  font-weight: 800;
}

.cashdesk-empty-state::before {
  content: "↗";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 999px;
  color: #321bd8;
  background: #eef2ff;
  font-weight: 900;
}

.cashdesk-modal {
  width: min(640px, calc(100vw - 28px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
}

.cashdesk-modal::backdrop {
  background: rgba(7, 20, 54, 0.42);
  backdrop-filter: blur(3px);
}

.cashdesk-modal-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 20, 54, 0.28);
}

.cashdesk-modal-panel header,
.cashdesk-modal-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cashdesk-modal-panel h2 {
  margin: 0;
  color: #071436;
  font-size: 1.15rem;
}

.cashdesk-modal-panel header button {
  width: 34px;
  height: 34px;
  border: 1px solid #dce5f3;
  border-radius: 999px;
  color: #071436;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cashdesk-modal-panel footer {
  justify-content: flex-end;
}

.cashdesk-modal-panel footer .button {
  min-height: 40px;
  border-radius: 8px;
  font-weight: 900;
}

@media (max-width: 1320px) {
  .cashdesk-topbar {
    grid-template-columns: 1fr;
  }

  .cashdesk-top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1279px) {
  .billing-kpi-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-filter-bar {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .billing-filter-bar .cashdesk-filter-row {
    flex: 0 0 auto;
  }
}

@media (max-width: 1100px) {
  .cashdesk-layout,
  .cashdesk-bottom,
  .cashdesk-entry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .academy-cashdesk-page .role-content {
    padding: 12px;
  }

  .cashdesk-kpis,
  .cashdesk-state-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-kpi-panel {
    padding: 10px;
  }

  .cashdesk-top-actions,
  .cashdesk-table-actions,
  .cashdesk-table-actions > div {
    flex-wrap: wrap;
  }

  .cashdesk-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .billing-kpi-panel {
    grid-template-columns: 1fr;
  }

  .billing-kpi-card {
    min-height: 74px;
  }
}

.office-attention-header {
  padding: 22px 34px 12px 30px;
}

/* Office payroll */
.payroll-page-heading {
  align-items: center;
  gap: 12px;
}

.payroll-period-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.payroll-period-form label,
.payroll-employee-search label,
.payroll-inline-form label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
}

.payroll-period-form select,
.payroll-employee-search input,
.payroll-employee-popover input,
.payroll-inline-form input,
.payroll-inline-form select {
  min-height: 38px;
  border: 1px solid #d9e2f0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #071436;
  background: #fff;
  font: inherit;
}

.payroll-status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #d9e2f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.payroll-status-chip--open,
.payroll-status-chip--review {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.payroll-status-chip--locked,
.payroll-status-chip--confirmed {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.payroll-status-chip--paid {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #166534;
}

.payroll-status-chip--voided {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.payroll-focus-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 2.1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 28, 67, 0.055);
}

.payroll-detail-card,
.payroll-actions-card,
.payroll-empty-state,
.payroll-info-block {
  border: 1px solid #dce5f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(12, 28, 67, 0.055);
}

.payroll-employee-panel {
  position: relative;
  min-width: 0;
  padding: 0;
}

.payroll-section-kicker {
  color: #4d35e7;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-employee-panel h3 {
  margin: 5px 0 12px;
  color: #071436;
  font-size: 1rem;
}

.payroll-employee-dropdown {
  position: relative;
  width: min(100%, 360px);
}

.payroll-employee-dropdown summary {
  min-height: 66px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #d9e2f0;
  border-radius: 12px;
  background: #f8faff;
  color: #071436;
  cursor: pointer;
  list-style: none;
}

.payroll-employee-dropdown summary::-webkit-details-marker {
  display: none;
}

.payroll-employee-dropdown summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg) translateY(-2px);
}

.payroll-employee-dropdown[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.payroll-employee-popover {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  width: min(430px, calc(100vw - 48px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e2f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(7, 20, 54, 0.16);
}

.payroll-employee-popover input {
  width: 100%;
}

.payroll-employee-list {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
}

.payroll-employee-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1px solid #d9e2f0;
  border-radius: 10px;
  background: #fff;
  color: #071436;
}

.payroll-employee-card.is-active,
.payroll-employee-card:hover {
  border-color: #4d35e7;
  background: #f8f7ff;
}

.payroll-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  overflow: hidden;
  border-radius: 10px;
  background: #ede9fe;
  color: #4d35e7;
  font-size: 0.84rem;
  font-weight: 800;
}

.payroll-avatar--selected,
.payroll-employee-dropdown summary .payroll-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  border-radius: 12px;
}

.payroll-employee-photo,
.payroll-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex: 0 0 auto;
}

.payroll-avatar i {
  font-style: normal;
}

.payroll-employee-copy,
.payroll-employee-copy strong,
.payroll-employee-copy em,
.payroll-employee-card strong,
.payroll-employee-card em {
  display: block;
  font-style: normal;
  min-width: 0;
}

.payroll-employee-copy strong {
  line-height: 1.15;
}

.payroll-employee-copy em {
  line-height: 1.25;
}

.payroll-employee-card em {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.payroll-employee-card b {
  white-space: nowrap;
}

.payroll-model-line {
  margin: 12px 0 0;
  color: #334155;
  font-size: 0.86rem;
}

.payroll-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.payroll-kpi-card {
  --payroll-bg: #f7f1ff;
  --payroll-border: #d8b4fe;
  --payroll-icon: #7c3aed;
  min-width: 0;
  min-height: 112px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--payroll-border);
  border-radius: 12px;
  background: var(--payroll-bg);
  color: #111827;
  box-sizing: border-box;
}

.payroll-kpi-card--variable {
  --payroll-bg: #effbf3;
  --payroll-border: #bbf7d0;
  --payroll-icon: #16a34a;
}

.payroll-kpi-card--adjustment {
  --payroll-bg: #fff7ea;
  --payroll-border: #fed7aa;
  --payroll-icon: #f97316;
}

.payroll-kpi-card--net {
  --payroll-bg: #eff6ff;
  --payroll-border: #bfdbfe;
  --payroll-icon: #2563eb;
}

.payroll-kpi-card > span:not(.payroll-icon) {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px var(--payroll-border);
}

.payroll-kpi-card > span:not(.payroll-icon)::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid var(--payroll-icon);
  border-radius: 7px;
}

.payroll-kpi-card--variable > span:not(.payroll-icon)::before {
  inset: 12px 10px 10px;
  border-top: 0;
  border-right: 0;
  border-radius: 0;
  transform: skewX(-12deg);
}

.payroll-kpi-card--adjustment > span:not(.payroll-icon)::before {
  inset: 10px;
  border-radius: 50%;
}

.payroll-kpi-card--net > span:not(.payroll-icon)::before {
  inset: 13px 9px;
  border-radius: 5px;
}

.payroll-kpi-card p,
.payroll-kpi-card strong,
.payroll-kpi-card em {
  display: block;
  margin: 0;
}

.payroll-kpi-card p {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payroll-kpi-card strong {
  margin-top: 7px;
  color: #071436;
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}

.payroll-kpi-card em {
  margin-top: 6px;
  color: #475569;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.payroll-tabs {
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  padding: 0 0 4px;
  border-bottom: 1px solid #dce5f3;
}

.payroll-tabs a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 850;
  white-space: nowrap;
}

.payroll-tabs a.is-active {
  border-bottom-color: #2563eb;
  background: #f8fbff;
  color: #1d4ed8;
}

.payroll-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 14px;
}

.payroll-detail-card,
.payroll-actions-card,
.payroll-empty-state,
.payroll-info-block {
  padding: 16px;
}

.payroll-detail-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #edf2f7;
}

.payroll-detail-row span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.payroll-detail-row strong,
.payroll-detail-row em {
  display: block;
  font-style: normal;
}

.payroll-detail-row em {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.payroll-detail-row b {
  color: #071436;
  white-space: nowrap;
}

.payroll-actions-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.payroll-actions-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #edf2f7;
}

.payroll-actions-card dt {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.payroll-actions-card dd {
  margin: 0;
  color: #071436;
  font-weight: 850;
  text-align: right;
}

.payroll-inline-form {
  margin-top: 0;
}

.payroll-inline-form summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 1px solid #d9e2f0;
  border-radius: 9px;
  padding: 0 12px;
  box-sizing: border-box;
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 850;
  list-style: none;
}

.payroll-inline-form summary::-webkit-details-marker {
  display: none;
}

.payroll-inline-form--bonus summary {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.payroll-inline-form--deduction summary {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.payroll-inline-form form {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

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

.payroll-action-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.payroll-action-section h4 {
  margin: 0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-net-total {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.payroll-net-total span {
  color: #1e3a8a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-net-total strong {
  color: #071436;
  font-size: 1.45rem;
  line-height: 1;
}

.payroll-primary-action {
  margin-top: 12px;
}

.payroll-primary-action .button,
.payroll-inline-form .button-success {
  width: 100%;
  min-height: 46px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 850;
}

.payroll-paid-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  background: #ecfdf3;
  color: #166534;
  font-weight: 800;
}

.payroll-paid-note--warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.payroll-paid-note a {
  color: inherit;
  text-decoration: underline;
}

.payroll-billing-link {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
}

.payroll-table-card {
  overflow-x: auto;
}

.payroll-empty-state {
  color: #334155;
}

.payroll-info-block {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
  background: #eff6ff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
}

.payroll-info-block span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 950;
}

.payroll-icon,
.payroll-tab-icon,
.payroll-detail-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.payroll-icon::before,
.payroll-icon::after,
.payroll-tab-icon::before,
.payroll-tab-icon::after,
.payroll-detail-icon::before,
.payroll-detail-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.payroll-kpi-card {
  min-height: 98px;
  padding: 14px 16px;
}

.payroll-kpi-card > .payroll-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px var(--payroll-border);
}

.payroll-kpi-card strong {
  font-size: 1.28rem;
}

.payroll-kpi-card--net {
  border-width: 2px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1);
}

.payroll-kpi-card--net strong {
  color: #1d4ed8;
  font-size: 1.7rem;
}

.payroll-icon--wallet::before {
  width: 20px;
  height: 15px;
  border: 2px solid var(--payroll-icon, currentColor);
  border-radius: 5px;
}

.payroll-icon--wallet::after {
  width: 7px;
  height: 7px;
  right: 9px;
  border: 2px solid var(--payroll-icon, currentColor);
  border-radius: 50%;
}

.payroll-icon--trend::before {
  width: 21px;
  height: 14px;
  border-left: 2px solid var(--payroll-icon, currentColor);
  border-bottom: 2px solid var(--payroll-icon, currentColor);
  transform: translateY(2px);
}

.payroll-icon--trend::after {
  width: 17px;
  height: 11px;
  border-top: 2px solid var(--payroll-icon, currentColor);
  border-right: 2px solid var(--payroll-icon, currentColor);
  transform: rotate(-28deg) translate(1px, -1px);
}

.payroll-icon--adjust::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--payroll-icon, currentColor);
  border-radius: 50%;
}

.payroll-icon--adjust::after {
  width: 14px;
  height: 2px;
  background: var(--payroll-icon, currentColor);
  box-shadow: 0 -5px 0 -1px var(--payroll-icon, currentColor);
}

.payroll-icon--cash::before {
  width: 22px;
  height: 14px;
  border: 2px solid var(--payroll-icon, currentColor);
  border-radius: 4px;
}

.payroll-icon--cash::after {
  width: 8px;
  height: 8px;
  border: 2px solid var(--payroll-icon, currentColor);
  border-radius: 50%;
}

.payroll-icon--doc::before {
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.payroll-icon--doc::after {
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.payroll-icon--clock::before {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.payroll-icon--clock::after {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(2px, -1px);
}

.payroll-icon--message::before {
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.payroll-icon--message::after {
  width: 7px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-5px, 8px) rotate(-35deg);
}

.payroll-icon--info::before {
  width: 22px;
  height: 22px;
  border: 2px solid #1d4ed8;
  border-radius: 50%;
}

.payroll-icon--info::after {
  width: 2px;
  height: 9px;
  background: #1d4ed8;
  box-shadow: 0 -6px 0 #1d4ed8;
}

.payroll-tabs a {
  gap: 7px;
  min-height: 42px;
  font-weight: 700;
}

.payroll-tab-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.payroll-detail-row {
  grid-template-columns: 34px 150px minmax(0, 1fr) auto;
  min-height: 54px;
}

.payroll-detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f8faff;
  color: #4d35e7;
}

.payroll-detail-row--trend .payroll-detail-icon {
  color: #16a34a;
}

.payroll-detail-row--adjust .payroll-detail-icon {
  color: #f97316;
}

.payroll-detail-row--cash .payroll-detail-icon {
  color: #2563eb;
}

.payroll-delivery-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.payroll-delivery-card h4 {
  margin: 0;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-delivery-button {
  width: 100%;
  min-height: 48px;
  gap: 8px;
  justify-content: center;
  border-radius: 10px;
  font-weight: 900;
}

.payroll-delivery-soon {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payroll-delivery-soon span {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.payroll-modal {
  width: min(660px, calc(100vw - 32px));
  max-height: 80vh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(7, 20, 54, 0.28);
}

.payroll-modal::backdrop {
  background: rgba(7, 20, 54, 0.42);
}

.payroll-modal-panel {
  display: grid;
  max-height: 80vh;
  background: #fff;
}

.payroll-modal-panel header,
.payroll-modal-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.payroll-modal-panel header {
  border-bottom: 1px solid #e2e8f0;
}

.payroll-modal-panel footer {
  border-top: 1px solid #e2e8f0;
}

.payroll-modal-panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  cursor: pointer;
  font-size: 1.2rem;
}

.payroll-modal-person {
  display: flex;
  align-items: center;
  gap: 11px;
}

.payroll-modal-person h3,
.payroll-modal-person p {
  margin: 0;
}

.payroll-modal-body {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 14px 16px;
}

.payroll-modal-body dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payroll-modal-body dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payroll-modal-body dt {
  color: #64748b;
  font-weight: 800;
}

.payroll-modal-body dd {
  margin: 0;
  color: #071436;
  font-weight: 850;
}

.payroll-modal-body label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-weight: 800;
}

.payroll-modal-body textarea {
  min-height: 220px;
  max-height: 34vh;
  resize: vertical;
  overflow: auto;
  border: 1px solid #d9e2f0;
  border-radius: 10px;
  padding: 10px;
  color: #071436;
  background: #f8fafc;
  font: 0.84rem/1.45 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.payroll-modal-body input {
  min-height: 38px;
  border: 1px solid #d9e2f0;
  border-radius: 9px;
  padding: 8px 10px;
}

.payroll-modal-warning,
.payroll-copy-status {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 800;
}

.payroll-modal-warning {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.payroll-copy-status {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.payroll-message-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
}

.payroll-message-badge--sent {
  background: #ecfdf3;
  color: #166534;
}

.payroll-message-badge--failed {
  background: #fef2f2;
  color: #b91c1c;
}

.payroll-message-badge--pending {
  background: #fffbeb;
  color: #92400e;
}

.payroll-info-block {
  align-items: flex-start;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.payroll-info-block .payroll-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dbeafe;
}

.payroll-info-block strong,
.payroll-info-block p {
  display: block;
  margin: 0;
}

.payroll-info-block p {
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .payroll-focus-grid,
  .payroll-detail-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .payroll-page-heading,
  .payroll-period-form,
  .payroll-adjustment-actions {
    display: grid;
  }

  .payroll-employee-dropdown {
    width: 100%;
  }

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

  .payroll-employee-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .payroll-detail-row {
    grid-template-columns: 1fr;
    padding: 10px 0;
  }

  .payroll-modal {
    width: min(94vw, 680px);
    max-height: 90vh;
  }

  .payroll-modal-panel {
    max-height: 90vh;
  }

  .payroll-modal-panel footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .payroll-modal-panel footer .button {
    width: 100%;
    justify-content: center;
  }
}

.office-attention-header p {
  margin-top: 5px;
}

.office-header-actions {
  gap: 14px;
}

.office-header-actions time,
.office-bell,
.office-profile-pill {
  min-height: 48px;
}

.office-bell {
  width: 48px;
}

.office-attention-page .role-content {
  padding: 8px 28px 14px 26px;
}

.office-section-head {
  margin-bottom: 13px;
}

.office-section-head p {
  margin-top: 4px;
}

.office-task-grid {
  gap: 14px;
}

.office-task-card {
  min-height: 198px;
  padding: 16px 16px 14px;
}

.office-task-arrow {
  top: 24px;
  right: 16px;
  font-size: 26px;
}

.office-task-main {
  justify-content: center;
  gap: 13px;
}

.office-task-icon {
  width: 50px;
  height: 50px;
}

.office-task-main strong {
  font-size: 1.9rem;
}

.office-task-card h3 {
  margin-top: 11px;
  font-size: 0.9rem;
  line-height: 1.2;
}

.office-task-card p {
  display: -webkit-box;
  min-height: 32px;
  margin: 8px 0 12px;
  overflow: hidden;
  color: #465671;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.office-task-button,
.office-bulk-action {
  min-height: 36px;
}

.office-task-button.is-disabled,
.office-bulk-action.is-disabled,
.office-action.is-disabled {
  border-color: #d7dfeb;
  background: #f5f8fc;
  color: #708199;
  opacity: 1;
}

.office-panel-grid {
  gap: 14px;
  margin-top: 14px;
}

.office-table-panel {
  padding: 13px 13px 12px;
}

.office-panel-head {
  margin-bottom: 9px;
}

.office-panel-head h2 {
  font-size: 0.94rem;
}

.office-panel-head b {
  min-width: 20px;
  height: 20px;
  font-size: 11px;
}

.office-table th,
.office-table td {
  padding: 7px 6px;
}

.office-table th {
  height: 28px;
}

.office-table--compact th,
.office-table--compact td {
  padding: 6px 5px;
}

.office-avatar {
  width: 24px;
  height: 24px;
}

.office-action {
  width: 26px;
  height: 26px;
}

.office-empty-cell {
  height: 54px;
}

.office-bulk-action {
  margin-top: 11px;
}

.office-attention-page .role-prefooter {
  padding: 14px 28px;
}

.office-attention-page:not(.office-overview-page) .role-prefooter {
  background: #e6eef9;
  color: #061b3b;
}

.office-attention-page:not(.office-overview-page) .role-prefooter span {
  color: #32435f;
}

.office-overview-page .role-main-shell {
  background: #eaf0f8;
}

.office-overview-page .director-hero {
  min-height: 178px;
  padding: 24px 34px 16px;
  background:
    linear-gradient(90deg, rgba(20, 69, 183, 1) 0%, rgba(25, 84, 215, 0.94) 48%, rgba(31, 70, 199, 0.62) 100%),
    url("/static/img/director-hero-dance.png") right center / auto 100% no-repeat;
}

.office-overview-page .director-hero h1 {
  font-size: 2.1rem;
}

.office-overview-page .director-quick {
  margin-top: 16px;
}

.office-overview-page .director-quick div {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  width: min(720px, calc(100vw - 390px));
}

.office-overview-page .director-quick a {
  min-height: 40px;
  padding: 0 14px;
}

.office-overview-page .director-date,
.office-overview-page .director-profile {
  min-height: 48px;
}

.office-overview-page .role-content {
  padding: 22px 30px 24px;
}

.office-overview-priority {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.office-overview-page .office-attention-card,
.office-overview-page .director-kpi,
.office-overview-page .director-panel {
  border-color: #bfccde;
  box-shadow: 0 18px 36px rgba(16, 31, 63, 0.11);
}

.office-overview-page .office-attention-card {
  min-height: 132px;
  padding: 18px;
  border-top: 4px solid var(--director-blue);
}

.office-overview-page .office-attention-card--orange { border-top-color: #e98200; }
.office-overview-page .office-attention-card--red { border-top-color: #d82732; }
.office-overview-page .office-attention-card--purple { border-top-color: #6d40dc; }

.office-overview-page .office-attention-card strong {
  margin-top: 14px;
  color: #061b3b;
  font-size: 2.35rem;
}

.office-overview-page .office-attention-card p {
  margin-top: 7px;
  color: #34435d;
}

.office-overview-page .director-kpi {
  min-height: 118px;
  padding: 20px;
  border-top: 4px solid var(--director-blue);
}

.office-overview-page .director-kpi--green { border-top-color: #16804d; background: linear-gradient(180deg, #fff, #f4fbf7); }
.office-overview-page .director-kpi--orange { border-top-color: #e98200; background: linear-gradient(180deg, #fff, #fff8f0); }
.office-overview-page .director-kpi--purple { border-top-color: #6d40dc; background: linear-gradient(180deg, #fff, #f8f5ff); }
.office-overview-page .director-kpi--blue { background: linear-gradient(180deg, #fff, #f3f7ff); }

.office-overview-page .director-kpi__icon {
  width: 58px;
  height: 58px;
  font-size: 1.35rem;
  font-weight: 950;
}

.office-overview-page .director-kpi p {
  color: #122345;
}

.office-overview-page .director-kpi strong {
  margin-top: 6px;
  color: #061b3b;
  font-size: 2.45rem;
}

.office-overview-page .director-kpi span {
  margin-top: 8px;
  color: #334155;
}

.office-overview-page .kpi-state--green { color: #17613c; }
.office-overview-page .kpi-state--orange { color: #a65300; }
.office-overview-page .kpi-state--purple { color: #5932b8; }
.office-overview-page .kpi-state--blue { color: #174fb8; }

.office-overview-page .director-main-grid {
  gap: 16px;
  margin-top: 16px;
}

.office-overview-page .director-panel {
  min-height: 300px;
  padding: 20px;
  border-top: 4px solid var(--director-blue);
}

.office-overview-panel--groups { border-top-color: #16804d !important; }
.office-overview-panel--activity { border-top-color: #6d40dc !important; }

.office-overview-page .director-panel h2 {
  color: #061b3b;
}

.office-overview-page .director-row,
.office-overview-page .director-activity,
.office-overview-page .office-simple-events article {
  border-bottom-color: #d7e0ed;
}

.office-overview-page .director-row span,
.office-overview-page .director-activity span,
.office-overview-page .office-simple-events span {
  color: #3c4b63;
}

.office-overview-page .role-prefooter {
  margin-top: auto;
  padding: 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #0a2f6b 0%, #174fb8 58%, #0d3c8a 100%);
  color: #fff;
  box-shadow: 0 -16px 34px rgba(16, 31, 63, 0.16);
}

.office-overview-page .director-income {
  border-right-color: rgba(255, 255, 255, 0.22);
}

.office-overview-page .director-income h2,
.office-overview-page .director-reports h2,
.office-overview-page .director-income th,
.office-overview-page .director-income td {
  color: #fff;
}

.office-overview-page .director-income th,
.office-overview-page .director-income td {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

.office-overview-page .director-income tbody tr:last-child td:not(:first-child) {
  color: #b7ffca;
}

.office-overview-page .director-reports a {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: none;
}

.office-overview-page .role-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #031329;
}

@media (max-width: 1500px) {
  .office-task-card {
    min-height: 190px;
    padding: 14px;
  }

  .office-task-icon {
    width: 46px;
    height: 46px;
  }

  .office-task-main strong {
    font-size: 1.75rem;
  }

  .office-table th,
  .office-table td {
    padding: 6px 5px;
  }
}

@media (max-width: 1180px) {
  .office-overview-page .director-quick div {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-overview-priority,
  .office-overview-page .director-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .office-overview-priority,
  .office-overview-page .director-kpis {
    grid-template-columns: 1fr;
  }
}

/* Sprint 17B Office Overview rebuild */
.office-overview-page {
  background: #eaf1f9;
}

.office-overview-page .role-main-shell {
  background: #edf3fa;
}

.office-overview-page .role-content {
  display: grid;
  gap: 22px;
  padding: 22px 30px 18px;
}

.office-overview-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 28px 34px 18px;
  background: #fff;
  color: #061b3b;
  border-bottom: 1px solid #d8e2f0;
  box-shadow: 0 12px 30px rgba(20, 41, 82, 0.06);
}

.office-overview-header h1,
.office-overview-header p,
.office-section-head--overview h2,
.office-section-head--overview p {
  margin: 0;
}

.office-overview-header h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.office-overview-header p {
  margin-top: 7px;
  color: #2f4264;
}

.office-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.office-overview-actions time,
.office-action-menu summary,
.office-action-menu__trigger {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  background: #fff;
  color: #061b3b;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(16, 31, 63, 0.06);
}

.office-action-menu {
  position: relative;
}

.office-action-menu summary,
.office-action-menu__trigger {
  cursor: pointer;
  list-style: none;
  background: #1857e8;
  color: #fff;
  border-color: #1857e8;
  font: inherit;
}

.office-action-menu summary::-webkit-details-marker {
  display: none;
}

.office-action-menu summary span,
.office-action-menu__trigger span {
  font-size: 1.35rem;
  line-height: 1;
}

.office-action-menu div {
  position: absolute;
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 190px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #d8e2f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 31, 63, 0.16);
}

.office-action-menu a {
  padding: 10px 12px;
  border-radius: 7px;
  color: #061b3b;
  text-decoration: none;
  font-weight: 800;
}

.office-action-menu a:hover {
  background: #edf4ff;
}

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

.office-kpi,
.office-location-card,
.office-location-empty {
  border: 1px solid #d4dfed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 15px 32px rgba(16, 31, 63, 0.09);
}

.office-kpi {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
}

.office-kpi p,
.office-kpi strong,
.office-kpi small {
  display: block;
  margin: 0;
}

.office-kpi p {
  color: #14284f;
  font-size: 0.72rem;
  font-weight: 900;
}

.office-kpi strong {
  margin-top: 7px;
  color: #071637;
  font-size: 1.95rem;
  line-height: 1;
}

.office-kpi small {
  margin-top: 10px;
  color: #335175;
  font-weight: 750;
}

.office-kpi__icon,
.office-location-icon,
.office-group-dot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.office-kpi__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: #fff;
}

.office-kpi__icon::before {
  font-weight: 950;
}

.office-kpi__icon--users::before { content: "U"; }
.office-kpi__icon--check::before { content: "✓"; }
.office-kpi__icon--calendar::before { content: "▦"; }
.office-kpi__icon--person::before { content: "I"; }
.office-kpi__icon--wallet::before { content: "□"; }
.office-kpi__icon--cash::before { content: "€"; }

.office-kpi--blue .office-kpi__icon { background: #1857e8; box-shadow: 0 10px 20px rgba(24, 87, 232, 0.26); }
.office-kpi--green .office-kpi__icon { background: #28b84e; box-shadow: 0 10px 20px rgba(40, 184, 78, 0.24); }
.office-kpi--purple .office-kpi__icon { background: #7048e8; box-shadow: 0 10px 20px rgba(112, 72, 232, 0.24); }
.office-kpi--orange .office-kpi__icon { background: #f48a10; box-shadow: 0 10px 20px rgba(244, 138, 16, 0.24); }
.office-kpi--teal .office-kpi__icon { background: #0daeb3; box-shadow: 0 10px 20px rgba(13, 174, 179, 0.24); }
.office-kpi--pink .office-kpi__icon { background: #ec2e67; box-shadow: 0 10px 20px rgba(236, 46, 103, 0.24); }

.office-section-head--overview {
  margin-bottom: 10px;
}

.office-section-head--overview h2 {
  color: #061b3b;
  font-size: 1.25rem;
}

.office-section-head--overview p {
  margin-top: 7px;
  color: #334969;
}

.office-locations {
  display: grid;
  gap: 14px;
}

.office-location-card {
  overflow: hidden;
}

.office-location-head {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(360px, 2fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #dbe4f1;
}

.office-location-title,
.office-location-summary,
.office-schedule-link,
.office-overview-person,
.office-status,
.office-group-name {
  display: flex;
  align-items: center;
}

.office-location-title {
  gap: 12px;
  min-width: 0;
  color: #061b3b;
  text-decoration: none;
}

.office-location-title strong {
  font-size: 1.18rem;
}

.office-location-title em {
  padding: 7px 10px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #1857e8;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 850;
}

.office-location-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1857e8;
  box-shadow: 0 9px 18px rgba(24, 87, 232, 0.22);
}

.office-location-icon::before {
  content: "⌖";
  color: #fff;
  font-weight: 950;
}

.office-location-summary {
  flex-wrap: wrap;
  gap: 18px;
  color: #122345;
  font-size: 0.9rem;
  font-weight: 800;
}

.office-schedule-link {
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #1857e8;
  border-radius: 8px;
  color: #1857e8;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.office-group-table-wrap {
  overflow-x: auto;
}

.office-group-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.office-group-table th,
.office-group-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #e2e9f3;
  color: #122345;
  text-align: left;
  vertical-align: middle;
}

.office-group-table th {
  background: #f7faff;
  color: #1e355c;
  font-size: 0.72rem;
  font-weight: 950;
}

.office-group-table tbody tr:last-child td {
  border-bottom: 0;
}

.office-group-name {
  gap: 12px;
  color: #122345;
  text-decoration: none;
  font-weight: 800;
}

.office-group-dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1857e8;
}

.office-group-dot::before {
  content: "•";
  color: #fff;
  font-size: 1.2rem;
}

.office-group-dot--green { background: #28b84e; }
.office-group-dot--orange { background: #f48a10; }
.office-group-dot--purple { background: #7048e8; }
.office-group-dot--teal { background: #0daeb3; }
.office-group-dot--slate { background: #64748b; }

.office-overview-person {
  gap: 10px;
}

.office-overview-person strong {
  font-weight: 800;
}

.office-paid {
  font-weight: 900;
}

.office-paid--green { color: #169245; }
.office-paid--orange { color: #ea7600; }
.office-paid--red { color: #e11d48; }
.office-paid--neutral { color: #536b95; }

.office-status {
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
}

.office-status i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.office-status--green { background: #e8f8ee; color: #159447; }
.office-status--orange { background: #fff3df; color: #ea7600; }
.office-status--red { background: #ffe8ee; color: #e11d48; }
.office-status--neutral { background: #edf3fa; color: #536b95; }

.office-row-chevron {
  color: #0b3270;
  font-size: 1.5rem;
  text-decoration: none;
}

.office-location-empty,
.office-location-no-groups {
  padding: 22px;
  color: #334969;
}

.office-location-empty h3,
.office-location-empty p {
  margin: 0;
}

.office-location-empty p {
  margin-top: 6px;
}

.office-location-empty a {
  display: inline-flex;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1857e8;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.office-overview-page .role-prefooter {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 30px;
  background: #dfeaf6;
  color: #061b3b;
  box-shadow: none;
}

.office-overview-page .role-prefooter span {
  color: #385171;
}

.office-overview-page .role-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 30px;
  border-top: 1px solid #c7d5e7;
  background: #cfddeb;
  color: #061b3b;
}

.office-overview-page .role-footer strong,
.office-overview-page .role-footer span,
.office-overview-page .role-footer em {
  color: #061b3b;
  font-style: normal;
}

@media (max-width: 1500px) {
  .office-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .office-overview-header,
  .office-location-head,
  .office-overview-page .role-prefooter,
  .office-overview-page .role-footer {
    grid-template-columns: 1fr;
  }

  .office-overview-header,
  .office-overview-page .role-prefooter,
  .office-overview-page .role-footer {
    display: grid;
  }

  .office-overview-actions {
    justify-content: start;
  }

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

@media (max-width: 760px) {
  .office-overview-page .role-content,
  .office-overview-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .office-kpi-grid {
    grid-template-columns: 1fr;
  }

  .office-location-summary {
    gap: 10px;
  }
}

/* Sprint 17C final Office Overview polish */
.office-overview-page {
  --office-ink: #07183d;
  --office-muted: #607390;
  --office-line: #cbd8ea;
  --office-blue: #1558e8;
  background: #e8eff8;
}

.office-overview-page .role-layout {
  background: #e8eff8;
}

.office-overview-page .role-main-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 42% 0%, rgba(255, 255, 255, 0.88) 0, rgba(255, 255, 255, 0.46) 260px, rgba(232, 239, 248, 0) 560px),
    linear-gradient(180deg, #dfe9f5 0, #edf3f9 285px, #e8eff8 100%);
}

.office-overview-page .role-sidebar {
  padding: 20px 12px 16px;
  background: linear-gradient(180deg, #041634 0%, #071c3d 48%, #031126 100%);
  box-shadow: 10px 0 28px rgba(3, 17, 38, 0.22);
}

.office-overview-page .director-brand {
  min-height: 78px;
  padding: 8px 10px 16px;
  border-bottom: 1px solid rgba(185, 204, 232, 0.16);
}

.office-overview-page .director-brand strong {
  font-size: 1.68rem;
  letter-spacing: 0;
}

.office-overview-page .director-brand small {
  margin-top: 3px;
  color: #d7e4f6;
  font-size: 0.73rem;
  letter-spacing: 0.035em;
}

.office-overview-page .role-nav {
  gap: 5px;
  margin-top: 16px;
}

.office-overview-page .role-nav small {
  margin: 16px 10px 6px;
  color: rgba(226, 236, 250, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
}

.office-overview-page .role-nav a {
  min-height: 39px;
  padding: 0 11px;
  border-radius: 8px;
  color: #dce8f8;
  font-weight: 700;
}

.office-overview-page .role-nav a.active {
  background: linear-gradient(135deg, #115bf0 0%, #0847d6 100%);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(17, 91, 240, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.office-overview-page .office-nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.office-overview-page .role-nav a.active .office-nav-icon {
  background: rgba(255, 255, 255, 0.16);
}

.office-overview-page .role-sidebar form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(185, 204, 232, 0.14);
}

.office-overview-page .role-logout {
  min-height: 36px;
  border-color: rgba(185, 204, 232, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dce8f8;
}

.office-overview-page .office-user-card {
  margin-top: auto;
  border-color: rgba(185, 204, 232, 0.24);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.office-overview-header {
  min-height: 86px;
  padding: 22px 34px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(183, 199, 220, 0.78);
  box-shadow: 0 14px 30px rgba(36, 64, 104, 0.08);
}

.office-overview-header h1 {
  color: var(--office-ink);
  font-size: 2.05rem;
  font-weight: 900;
}

.office-overview-header p {
  color: var(--office-muted);
  font-size: 1rem;
}

.office-overview-actions time,
.office-action-menu summary,
.office-action-menu__trigger {
  min-height: 48px;
  border-radius: 8px;
}

.office-action-menu summary,
.office-action-menu__trigger {
  border-color: #0647d9;
  background: linear-gradient(135deg, #1564f5 0%, #0645d2 100%);
  box-shadow: 0 14px 26px rgba(21, 100, 245, 0.24);
}

.office-overview-page .role-content {
  gap: 18px;
  width: min(100%, 1560px);
  padding: 20px 28px 16px;
}

.office-kpi-grid {
  gap: 12px;
}

.office-kpi {
  min-height: 126px;
  padding: 20px 18px;
  border: 1px solid var(--office-line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 18px 36px rgba(22, 45, 84, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.office-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(22, 45, 84, 0.15);
}

.office-kpi p {
  color: #172b55;
  font-size: 0.7rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.office-kpi strong {
  color: var(--office-ink);
  font-size: 2.05rem;
  font-weight: 950;
}

.office-kpi small {
  color: var(--office-muted);
  font-size: 0.86rem;
}

.office-kpi__icon--premium {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 24px rgba(17, 43, 92, 0.2);
}

.office-kpi--blue .office-kpi__icon { background: linear-gradient(135deg, #2f7dff, #0a4bd8); }
.office-kpi--green .office-kpi__icon { background: linear-gradient(135deg, #54d96e, #1b9a44); }
.office-kpi--purple .office-kpi__icon { background: linear-gradient(135deg, #9b6dff, #5a32d8); }
.office-kpi--orange .office-kpi__icon { background: linear-gradient(135deg, #ffba36, #ef7a05); }
.office-kpi--teal .office-kpi__icon { background: linear-gradient(135deg, #26d2d9, #07959e); }
.office-kpi--pink .office-kpi__icon { background: linear-gradient(135deg, #ff6292, #df1554); }

.office-section-head--overview {
  margin: 2px 0 8px;
}

.office-section-head--overview h2 {
  font-size: 1.32rem;
  font-weight: 900;
}

.office-section-head--overview p {
  color: #48607f;
}

.office-locations {
  gap: 14px;
}

.office-location-card,
.office-location-empty {
  border-color: #c9d6e8;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(22, 45, 84, 0.1);
}

.office-location-head {
  grid-template-columns: minmax(245px, 1.05fr) minmax(380px, 2fr) auto;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.office-location-title strong {
  font-size: 1.22rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: none;
}

.office-location-title em {
  border-radius: 8px;
  background: #e8f0ff;
  color: #1558e8;
}

.office-location-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f7dff, #0a4bd8);
  box-shadow: 0 12px 24px rgba(21, 88, 232, 0.24);
}

.office-location-summary span {
  color: #172b55;
}

.office-schedule-link {
  min-height: 42px;
  border-color: #1558e8;
  color: #0647d9;
  box-shadow: 0 10px 20px rgba(21, 88, 232, 0.08);
}

.office-group-table th {
  height: 38px;
  background: #f2f6fb;
  color: #203961;
  border-bottom: 1px solid #d9e3f0;
}

.office-group-table td {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom-color: #dfe7f2;
}

.office-group-table tbody tr:hover {
  background: #f8fbff;
}

.office-group-dot {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.52);
}

.office-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #dceaff;
  color: #1558e8;
  font-size: 0.78rem;
  font-weight: 900;
}

.office-status {
  border-radius: 8px;
}

.office-overview-page .role-prefooter {
  min-height: 50px;
  padding: 13px 28px;
  border-top: 1px solid #c7d6e8;
  background: #dce8f5;
  color: #0b234c;
}

.office-overview-page .role-footer {
  min-height: 46px;
  padding: 13px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #314762;
}

.office-overview-page .role-footer strong,
.office-overview-page .role-footer span,
.office-overview-page .role-footer em {
  color: #f2f6fb;
}

.office-overview-page .role-footer span {
  color: #d8e3f0;
}

/* Sprint 17E Office Overview final visual polish */
.office-overview-hero {
  position: relative;
  isolation: isolate;
  min-height: 108px;
  padding: 20px 32px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 18, 48, 0.96) 0%, rgba(10, 72, 186, 0.94) 52%, rgba(24, 108, 235, 0.9) 100%),
    url("/static/img/director-hero-dance.png") right 8% center / auto 126px no-repeat;
  border: 0;
  color: #fff;
  box-shadow: 0 22px 48px rgba(9, 50, 130, 0.22);
}

.office-overview-hero-layer {
  position: relative;
  z-index: 20;
}

.office-overview-hero-layer .office-overview-hero {
  padding-right: min(420px, 34vw);
}

.office-overview-actions-layer {
  position: absolute;
  top: 20px;
  right: 32px;
  z-index: 120;
}

.office-overview-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 74% 16%, rgba(255, 255, 255, 0.28), transparent 240px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 58%);
}

.office-overview-hero h1 {
  color: #fff;
  font-size: 2.32rem;
  line-height: 0.98;
}

.office-overview-hero p {
  margin-top: 6px;
  color: #cfe2ff;
  font-size: 0.98rem;
  font-weight: 700;
}

.office-overview-hero .office-overview-actions,
.office-overview-actions-layer .office-overview-actions {
  align-self: center;
  align-items: center;
}

.office-overview-hero .office-overview-actions time,
.office-overview-hero .office-action-menu summary,
.office-overview-actions-layer .office-overview-actions time,
.office-overview-actions-layer .office-action-menu__trigger {
  min-height: 44px;
  border-color: rgba(214, 229, 255, 0.34);
  background: rgba(2, 19, 55, 0.34);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 24px rgba(2, 16, 45, 0.2);
  backdrop-filter: blur(8px);
}

.office-overview-hero .office-action-menu summary,
.office-overview-actions-layer .office-action-menu__trigger {
  background: linear-gradient(135deg, #176cff 0%, #064bd8 100%);
}

.office-action-menu {
  z-index: 30;
}

.office-action-menu summary:focus-visible,
.office-action-menu__trigger:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.office-action-menu[open] summary,
.office-action-menu__trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.56);
}

.office-action-menu .office-action-menu__panel {
  position: absolute;
  top: 100%;
  right: 0;
  left: auto;
  z-index: 140;
  width: 230px;
  min-width: 210px;
  max-width: calc(100vw - 32px);
  margin-top: 10px;
  padding: 7px;
  border: 1px solid #cbd8ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(5, 23, 55, 0.22);
}

.office-action-menu .office-action-menu__panel[hidden] {
  display: none;
}

.office-action-menu__panel--high-layer {
  z-index: 140;
}

.office-action-menu .office-action-menu__panel a,
.office-action-menu .office-action-menu__panel > span {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 9px;
  color: #09224a;
  font-weight: 850;
}

.office-action-menu .office-action-menu__panel a:hover,
.office-action-menu .office-action-menu__panel a:focus-visible {
  background: #edf4ff;
  color: #0647d9;
  outline: none;
}

.office-action-menu__icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #e8f0ff;
  color: #1558e8;
  font-size: 0.86rem;
  font-weight: 950;
}

.office-action-menu__icon--member::before { content: "+"; }
.office-action-menu__icon--group::before { content: "G"; }
.office-action-menu__icon--message::before { content: "!"; }

.office-overview-page .role-content {
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 10px;
}

.office-kpi-grid {
  align-items: stretch;
  gap: 10px;
}

.office-kpi {
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 16px 15px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(16, 38, 78, 0.14);
}

.office-kpi > div {
  min-width: 0;
}

.office-kpi strong {
  margin-top: 5px;
  font-size: 2.2rem;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}

.office-kpi[data-office-kpi="cash"] strong {
  font-size: 1.86rem;
}

.office-kpi p {
  font-size: 0.68rem;
  line-height: 1.18;
}

.office-kpi small {
  margin-top: 8px;
  line-height: 1.25;
}

.office-kpi__icon--premium {
  width: 50px;
  height: 50px;
  font-size: 1.18rem;
}

.office-section-head--overview {
  margin: 0 0 4px;
}

.office-location-head {
  grid-template-columns: minmax(330px, 1.2fr) minmax(390px, 1.55fr) auto;
  gap: 12px;
  min-height: 82px;
  padding: 12px 15px;
}

.office-location-title {
  gap: 13px;
  align-items: center;
}

.office-location-name {
  display: grid;
  gap: 2px;
}

.office-location-title strong {
  font-size: 1.38rem;
  line-height: 1.02;
  text-transform: uppercase;
}

.office-location-title small {
  color: #5d7190;
  font-size: 0.86rem;
  font-weight: 800;
}

.office-location-title em {
  margin-left: 2px;
  padding: 6px 9px;
  border: 1px solid #d5e2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.office-location-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
}

.office-location-summary {
  gap: 8px;
}

.office-location-summary > span {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  background: #f7fbff;
  color: #132d58;
  white-space: nowrap;
}

.office-schedule-link {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border-color: #0b55e6;
  background: #f7fbff;
  color: #0748cf;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.office-schedule-link:hover,
.office-schedule-link:focus-visible {
  border-color: #0641bd;
  background: #eaf2ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(21, 88, 232, 0.14);
  outline: 3px solid rgba(21, 88, 232, 0.16);
  outline-offset: 2px;
}

.office-group-table {
  min-width: 980px;
  table-layout: fixed;
}

.office-group-table th,
.office-group-table td {
  padding: 8px 14px;
  line-height: 1.28;
}

.office-group-row {
  cursor: pointer;
  outline: none;
  user-select: none;
  position: relative;
}

.office-group-row td:first-child {
  position: relative;
  padding-left: 22px;
}

.office-group-row td:first-child::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 34px;
  border-radius: 999px;
  background: var(--group-accent, #1857e8);
  transform: translateY(-50%);
}

.office-group-row:hover,
.office-group-row:focus-visible {
  background: #f1f7ff;
}

.office-group-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(21, 88, 232, 0.35);
}

.office-schedule-summary {
  display: inline-block;
  color: #284365;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
  white-space: nowrap;
}

.office-group-table th {
  height: 36px;
  background: #eaf1f9;
  color: #17345f;
  font-weight: 900;
}

.office-group-table td {
  border-bottom-color: #d4deeb;
}

.office-group-table th:nth-child(4),
.office-group-table th:nth-child(5),
.office-group-table td:nth-child(4),
.office-group-table td:nth-child(5) {
  text-align: center;
}

.office-group-table th:nth-child(7),
.office-group-table td:nth-child(7) {
  width: 72px;
  text-align: center;
}

.office-group-dot {
  background: var(--group-accent, #1857e8);
}

.office-row-chevron {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.office-row-chevron:hover,
.office-row-chevron:focus-visible {
  background: #e8f0ff;
  outline: none;
}

.office-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #fff;
  background: linear-gradient(135deg, #dceaff, #b9d1ff);
  box-shadow: 0 7px 14px rgba(16, 42, 82, 0.14);
}

.office-avatar img,
.office-avatar > span {
  grid-area: 1 / 1;
}

.office-avatar img {
  position: relative;
  z-index: 2;
}

.office-avatar img[hidden] {
  display: none;
}

.office-avatar > span {
  z-index: 1;
}

.office-avatar--green { background: linear-gradient(135deg, #ddf8e8, #3abf62); color: #064d25; }
.office-avatar--orange { background: linear-gradient(135deg, #fff0d2, #f28a10); color: #6d3300; }
.office-avatar--purple { background: linear-gradient(135deg, #eee6ff, #7148e8); color: #32146f; }
.office-avatar--teal { background: linear-gradient(135deg, #d9fbfd, #0daeb3); color: #064e55; }
.office-avatar--slate { background: linear-gradient(135deg, #edf3f9, #64748b); color: #223247; }

.office-overview-person {
  gap: 9px;
}

.office-overview-person strong,
.office-overview-person small {
  display: block;
}

.office-overview-person strong {
  line-height: 1.12;
}

.office-overview-person small {
  margin-top: 2px;
  color: #6a7c96;
  font-size: 0.72rem;
  font-weight: 750;
}

.office-paid {
  white-space: nowrap;
}

.office-status {
  min-height: 30px;
  min-width: 118px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  line-height: 1;
  font-weight: 900;
}

.office-status i {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72);
}

.office-status--green { background: #d8f5e3; color: #0b7b34; border-color: #96dfad; }
.office-status--orange { background: #ffefd4; color: #b95500; border-color: #ffc47d; }
.office-status--red { background: #ffdde7; color: #c8103e; border-color: #ff9fb7; }
.office-status--neutral { background: #e4eef9; color: #3e5b7f; border-color: #b9cde5; }

.office-location-no-groups {
  padding: 15px 18px;
}

.office-overview-page .role-prefooter {
  background: #d7e4f1;
  border-top-color: #c3d3e6;
  padding-top: 12px;
  padding-bottom: 12px;
}

.office-overview-page .role-footer {
  background: #283d59;
  padding-top: 12px;
  padding-bottom: 12px;
}

.office-overview-page .director-brand strong {
  color: #fff;
}

.office-overview-page .director-brand strong span {
  color: #8fbcff;
}

.office-overview-page .role-nav a {
  gap: 10px;
}

.office-overview-page .role-nav a.active {
  background: linear-gradient(135deg, #1d67ff 0%, #073dbf 100%);
  box-shadow: 0 12px 24px rgba(16, 79, 220, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.office-overview-page .office-nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
}

@media (max-height: 820px) and (min-width: 900px) {
  .office-overview-page .role-sidebar {
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .office-overview-page .director-brand {
    min-height: 68px;
    padding-bottom: 12px;
  }

  .office-overview-page .role-nav small {
    margin-top: 10px;
  }

  .office-overview-page .role-nav a {
    min-height: 35px;
  }
}

@media (max-width: 1500px) {
  .office-kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .office-kpi {
    gap: 10px;
    padding-inline: 12px;
  }

  .office-kpi strong {
    font-size: 1.9rem;
  }

  .office-kpi[data-office-kpi="cash"] strong {
    font-size: 1.45rem;
  }

  .office-kpi__icon--premium {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 1180px) {
  .office-overview-hero {
    min-height: 126px;
    background:
      linear-gradient(90deg, rgba(5, 18, 48, 0.98) 0%, rgba(10, 72, 186, 0.95) 100%),
      url("/static/img/director-hero-dance.png") right -80px center / auto 132px no-repeat;
  }

  .office-overview-hero-layer .office-overview-hero {
    padding-right: 20px;
    padding-bottom: 78px;
  }

  .office-overview-actions-layer {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 18px;
  }

  .office-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .office-location-head {
    grid-template-columns: 1fr;
  }

  .office-location-summary {
    justify-content: flex-start;
  }

  .office-registers-page .office-register-search {
    min-width: min(100%, 420px);
  }
}

@media (max-width: 760px) {
  .office-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-overview-hero {
    padding: 18px 20px;
    padding-bottom: 126px;
  }

  .office-overview-hero h1 {
    font-size: 2rem;
  }

  .office-action-menu .office-action-menu__panel {
    right: 0;
    left: auto;
    width: min(230px, calc(100vw - 40px));
  }

  .office-overview-actions-layer .office-overview-actions {
    width: 100%;
    justify-content: space-between;
  }

  .office-registers-page .office-overview-actions-layer .office-overview-actions {
    align-items: stretch;
  }
}

.office-registers-page .role-content {
  gap: 10px;
}

.office-registers-page .office-overview-hero {
  min-height: 126px;
}

.office-registers-page .office-overview-hero h1 {
  margin-bottom: 5px;
  font-size: clamp(2.2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
}

.office-registers-page .office-overview-hero p {
  margin-top: 0;
  max-width: 620px;
}

.office-register-actions {
  gap: 10px;
  align-items: end;
}

.office-register-search {
  display: grid;
  gap: 3px;
  min-width: clamp(360px, 28vw, 420px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.office-register-search__control {
  position: relative;
  display: block;
}

.office-register-search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #4b6385;
  border-radius: 50%;
  transform: translateY(-55%);
  pointer-events: none;
}

.office-register-search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 99px;
  background: #4b6385;
  transform: rotate(45deg);
}

.office-register-search input {
  height: 42px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.94);
  color: #102b55;
  font-weight: 850;
  outline: none;
}

.office-register-search input:focus {
  box-shadow: 0 0 0 3px rgba(143, 188, 255, 0.32);
}

.office-register-search__clear {
  position: absolute;
  right: 7px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: #e8eef7;
  color: #253f68;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.office-register-search__clear:hover,
.office-register-search__clear:focus-visible {
  background: #d7e4f3;
  outline: none;
}

.office-register-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #0748cf;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(4, 24, 78, 0.22);
}

.office-register-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.office-register-tab {
  --register-bg: #eff6ff;
  --register-border: #bfdbfe;
  --register-icon: #3b82f6;
  --register-accent: #2563eb;
  --register-text: #1e3a8a;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 84px;
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid var(--register-border);
  border-radius: 8px;
  background: var(--register-bg);
  color: var(--register-text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 38, 78, 0.055);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.office-register-tab[data-register-tab="members"] {
  --register-bg: #f3e8ff;
  --register-border: #d8b4fe;
  --register-icon: #8b5cf6;
  --register-accent: #7c3aed;
  --register-text: #1e1b4b;
}

.office-register-tab[data-register-tab="instructors"] {
  --register-bg: #ecfdf3;
  --register-border: #bbf7d0;
  --register-icon: #22c55e;
  --register-accent: #16a34a;
  --register-text: #14532d;
}

.office-register-tab[data-register-tab="groups"] {
  --register-bg: #fff7e6;
  --register-border: #fed7aa;
  --register-icon: #f59e0b;
  --register-accent: #ea580c;
  --register-text: #7c2d12;
}

.office-register-tab[data-register-tab="locations"] {
  --register-bg: #eff6ff;
  --register-border: #bfdbfe;
  --register-icon: #3b82f6;
  --register-accent: #2563eb;
  --register-text: #1e3a8a;
}

.office-register-tab strong,
.office-register-tab em {
  display: block;
}

.office-register-tab__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--register-icon);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--register-border) 70%, transparent);
}

.office-register-tab__icon::before,
.office-register-tab__icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.office-register-tab__icon--member::before,
.office-register-tab__icon--instructor::before {
  top: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.office-register-tab__icon--member::after,
.office-register-tab__icon--instructor::after {
  bottom: 7px;
  width: 18px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
}

.office-register-tab__icon--group::before {
  top: 9px;
  left: 8px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 10px 0 0 -2px currentColor;
}

.office-register-tab__icon--group::after {
  bottom: 8px;
  left: 7px;
  width: 20px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
}

.office-register-tab__icon--location::before {
  top: 7px;
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 10px 2px;
  transform: rotate(-45deg);
}

.office-register-tab__icon--location::after {
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.office-register-tab strong {
  color: var(--register-text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.15;
}

.office-register-tab em {
  margin-top: 4px;
  color: var(--register-text);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.2;
}

.office-register-tab:hover {
  border-color: var(--register-accent);
  box-shadow: 0 14px 28px rgba(16, 38, 78, 0.105);
  transform: translateY(-1px);
}

.office-register-tab.is-active {
  border-color: var(--register-accent);
  border-width: 2px;
  background: color-mix(in srgb, var(--register-bg) 86%, #ffffff);
  box-shadow: 0 16px 34px rgba(16, 38, 78, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.62);
  transform: none;
}

.office-register-tab.is-active::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: var(--register-accent);
}

.office-register-tab:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--register-accent) 30%, transparent);
  outline-offset: 2px;
}

.office-register-workspace .office-member-table-card {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(16, 38, 78, 0.12);
}

.office-register-workspace .office-member-table-head {
  padding: 11px 14px;
}

.office-register-workspace .office-member-table {
  min-width: 860px;
}

.office-register-workspace .office-member-table th,
.office-register-workspace .office-member-table td {
  padding: 8px 12px;
}

.office-register-workspace .office-member-table th {
  background: #edf3fb;
  color: #304968;
  font-weight: 900;
  letter-spacing: 0;
}

.office-register-workspace .office-member-table tbody tr {
  cursor: pointer;
}

.office-register-workspace .office-member-table tbody tr:hover {
  background: #f1f7ff;
}

.office-register-workspace .office-member-table tbody tr:focus-visible {
  outline: 3px solid rgba(21, 88, 232, 0.24);
  outline-offset: -3px;
  background: #eef6ff;
}

.office-register-workspace [data-empty-row],
.office-register-workspace [data-empty-state] {
  cursor: default;
}

.office-register-workspace [data-empty-row]:hover,
.office-register-workspace [data-empty-state]:hover {
  background: transparent;
}

.office-register-schedule-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.office-register-schedule-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 16px;
}

.office-register-schedule-panel p {
  margin: 0;
  padding: 0 16px;
  color: var(--color-muted);
  font-weight: 700;
}

.office-register-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.office-register-person strong {
  color: #07163a;
  font-weight: 900;
}

.office-register-workspace .office-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.office-register-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 14px 10px;
}

.office-register-filters button {
  min-height: 30px;
  border: 1px solid #d5e0ee;
  border-radius: 999px;
  padding: 0 11px;
  background: #fff;
  color: #334b6c;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.office-register-filters button:hover,
.office-register-filters button:focus-visible {
  border-color: #9bb8e2;
  outline: none;
}

.office-register-filters button.is-active {
  border-color: #1558e8;
  background: #edf5ff;
  color: #0b45c2;
}

.office-register-workspace .button-small {
  white-space: nowrap;
  min-height: 30px;
}

@media (max-width: 1180px) {
  .office-register-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .office-register-search {
    min-width: 100%;
  }
}

@media (max-width: 767px) {
  .office-register-tabs {
    grid-template-columns: 1fr;
  }

  .office-register-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .office-register-new {
    width: 100%;
  }
}

.office-register-checks,
.office-register-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #f8fbff;
}

.office-register-checks legend {
  width: 100%;
  color: #09235d;
  font-weight: 950;
}

.office-register-checks label,
.office-register-group-list label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d4dfef;
  border-radius: 999px;
  background: #fff;
  color: #173366;
  font-weight: 850;
}

.office-register-group-list label span {
  display: grid;
  line-height: 1.2;
}

.office-register-group-list small {
  color: #6b7f9f;
  font-size: 0.72rem;
}

.office-member-form--simple .office-member-form-grid,
.office-instructor-form .office-member-form-grid {
  grid-template-columns: 1fr;
}

.office-member-form--simple .form-section,
.office-instructor-form .form-section,
.office-instructor-form .office-member-groups {
  border-radius: 16px;
}

/* Academy Office Form Design System v1.0 */
.office-form-page {
  --office-form-blue: #edf6ff;
  --office-form-blue-border: #8ebeff;
  --office-form-violet: #f5f0ff;
  --office-form-violet-border: #c5a8ff;
  --office-form-green: #edfff7;
  --office-form-green-border: #8edfc0;
  --office-form-warning: #fff7ed;
  --office-form-warning-border: #f7c78f;
  --office-form-danger: #fff1f2;
  --office-form-danger-border: #f0a3ad;
  --office-form-radius: 12px;
  --office-form-border: #d8e4f2;
  --office-form-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-form-page .role-content,
.office-form-page .office-form-hero,
.office-form-container {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.office-form-page .role-content {
  gap: 12px;
}

.office-form-hero {
  min-height: 176px;
}

.office-form-hero .director-hero__copy span {
  display: block;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.5;
}

.office-form-hero__actions {
  align-items: flex-end;
  gap: 10px;
}

.office-form-hero__actions .button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #061638;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(0, 20, 80, 0.14);
}

.office-form-hero__actions .button:hover,
.office-form-hero__actions .button:focus-visible {
  background: #fff;
  color: #061638;
  transform: none;
}

.office-form-container {
  display: grid;
  gap: 12px;
}

.office-form-identity,
.office-form-section,
.office-form-actions {
  border: 1px solid var(--office-form-border);
  border-radius: var(--office-form-radius);
  background: #fff;
  box-shadow: var(--office-form-shadow);
}

.office-form-identity {
  padding: 14px;
  border-top: 3px solid var(--office-form-blue-border);
}

.office-form-section {
  padding: 13px 14px;
}

.office-form-section--pastel-blue {
  border-color: var(--office-form-blue-border);
  background: var(--office-form-blue);
}

.office-form-section--pastel-violet {
  border-color: var(--office-form-violet-border);
  background: var(--office-form-violet);
}

.office-form-section--pastel-blue input,
.office-form-section--pastel-blue select,
.office-form-section--pastel-blue textarea,
.office-form-section--pastel-violet input,
.office-form-section--pastel-violet select,
.office-form-section--pastel-violet textarea {
  background: #fff;
}

.office-form-section__head {
  min-height: 42px;
  margin: 0 0 10px;
  padding: 0 0 9px;
  border-bottom: 1px solid #e4ecf6;
}

.office-form-section__head > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.office-form-section__head p,
.office-form-section__head span:first-child {
  margin: 0;
  color: #1558e8;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.office-form-section__head h2 {
  margin: 0;
  color: #07163a;
  font-size: 1rem;
  line-height: 1.1;
}

.office-form-section__head > span {
  display: block;
  margin-top: 4px;
  color: #667b98;
  font-size: 0.84rem;
  font-weight: 750;
}

.office-form-page label {
  gap: 5px;
  color: #263b5c;
  font-size: 0.84rem;
  font-weight: 850;
}

.office-form-page input,
.office-form-page select,
.office-form-page textarea {
  min-height: 40px;
  border: 1px solid #d8e4f2;
  border-radius: 10px;
  color: #07163a;
  font-size: 0.95rem;
}

.office-form-page input:focus,
.office-form-page select:focus,
.office-form-page textarea:focus {
  border-color: #1558e8;
  outline: 3px solid rgba(21, 88, 232, 0.14);
}

.office-form-note {
  margin: 8px 0 0;
  padding: 9px 10px;
  border: 1px solid #d7e2f1;
  border-radius: 10px;
  background: #f8fbff;
  color: #526985;
  font-weight: 800;
}

.office-form-note--success,
.office-schedule-preview-status.is-free {
  border-color: var(--office-form-green-border);
  background: var(--office-form-green);
  color: #176947;
}

.office-form-note.has-conflict,
.office-schedule-preview-status.has-conflict {
  border-color: var(--office-form-warning-border);
  background: var(--office-form-warning);
  color: #945300;
}

.office-form-dual-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.office-form-dual-picker__panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #fff;
}

.office-form-dual-picker__controls {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.office-form-dual-picker__controls .button,
.office-group-picker__panel-head .button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.office-form-dual-picker select {
  min-height: 144px;
}

.office-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 0 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.office-form-actions .button {
  min-height: 42px;
  min-width: 132px;
}

.office-schedule-identity-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.office-schedule-identity-card div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(142, 190, 255, 0.68);
  border-radius: 10px;
  background: #fff;
}

.office-schedule-identity-card strong {
  color: #526985;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.office-schedule-identity-card span {
  color: #07163a;
  font-weight: 900;
  overflow-wrap: anywhere;
}

/* Mobile-first Office member edit form */
.office-member-form-page .role-content {
  width: min(100%, 1200px);
  margin-inline: auto;
  gap: 10px;
}

.office-member-edit-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  width: min(100%, 1200px);
  margin-inline: auto;
  min-height: 96px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 18, 48, 0.98) 0%, rgba(10, 72, 186, 0.95) 100%),
    url("/static/img/director-hero-dance.png") right -40px center / auto 132px no-repeat;
  box-shadow: 0 18px 36px rgba(16, 42, 82, 0.16);
}

.office-member-edit-header h1 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
}

.office-member-edit-header p {
  margin: 4px 0 0;
  color: #cfe0ff;
}

.office-member-edit-header .button {
  min-height: 44px;
  border-color: #fff;
  background: #fff;
  color: #0748cf;
}

.office-member-edit-form {
  display: grid;
  gap: 10px;
  width: min(100%, 1200px);
  margin-inline: auto;
}

.office-member-edit-stack {
  display: grid;
  gap: 10px;
}

.office-member-form-page .form-section,
.office-member-edit-card,
.office-member-edit-actions {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(16, 42, 82, 0.08);
}

.office-member-form-page .form-section {
  padding: 10px 12px;
}

.office-member-form-page .section-head,
.office-member-form-page .form-section__head {
  min-height: 40px;
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid #e4ecf6;
}

.office-member-form-page .section-head > div,
.office-member-form-page .form-section__head {
  display: flex;
  gap: 9px;
  align-items: center;
}

.office-member-form-page .section-head p,
.office-member-form-page .form-section__head span {
  margin: 0;
  color: #1558e8;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.office-member-form-page .section-head h2,
.office-member-form-page .form-section__head h2 {
  margin: 0;
  color: #07163a;
  font-size: 1rem;
  line-height: 1.1;
}

.office-member-edit-card--profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 10px 12px;
  border-top: 3px solid #1558e8;
}

.office-member-edit-photo {
  display: flex;
  gap: 12px;
  align-items: center;
}

.office-member-edit-photo .member-photo-preview {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.office-member-edit-photo__copy {
  display: grid;
  gap: 4px;
}

.office-member-edit-photo__copy strong {
  color: #07163a;
  font-size: 1rem;
}

.office-member-photo-button {
  display: inline-flex;
  width: fit-content;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #1558e8;
  border-radius: 8px;
  background: #edf5ff;
  color: #0b45c2;
  font-weight: 950;
  cursor: pointer;
}

.office-member-photo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.office-member-edit-photo small {
  color: #667b98;
  font-weight: 800;
}

.office-member-edit-registry .readonly-value,
.office-member-edit-registry label {
  min-width: 0;
}

.office-member-form-page .member-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.office-member-form-page .office-member-form label {
  gap: 4px;
  font-size: 0.82rem;
}

.office-member-form-page .office-member-form input,
.office-member-form-page .office-member-form select {
  min-height: 38px;
  font-size: 0.95rem;
}

.office-member-field-error {
  display: block;
  grid-column: 1 / -1;
  color: #b42318;
  font-size: 0.85rem;
  font-weight: 850;
}

.office-member-form-page .office-member-form input:has(+ .office-member-field-error),
.office-member-form-page .office-member-form select:has(+ .office-member-field-error) {
  border-color: #d64545;
}

.office-member-adult-note {
  display: none;
  padding: 10px 12px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #f8fbff;
  color: #526985;
  font-weight: 850;
}

.office-group-picker {
  gap: 12px;
}

.office-member-form-page .office-group-picker {
  grid-template-columns: minmax(0, 1fr) minmax(96px, 124px) minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.office-member-edit-groups {
  overflow: hidden;
  border: 1.5px solid #cbb8f5;
  background: #fff;
}

.office-member-form-page .office-member-groups__head {
  align-items: flex-start;
  margin: -2px -4px 12px;
  padding: 11px 12px;
  border: 1px solid #e1d6fb;
  border-bottom-color: #cbb8f5;
  border-radius: 8px;
  background: #f7f3ff;
}

.office-member-form-page .office-member-groups__head > div {
  display: grid;
  gap: 3px;
}

.office-member-form-page .office-member-groups__head span {
  color: #6d40dc;
  font-weight: 700;
}

.office-member-form-page .office-member-groups__head h2 {
  font-weight: 700;
}

.office-member-form-page .office-member-groups__head p {
  margin: 0;
  color: #667085;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
}

.office-group-picker__selected,
.office-group-picker__available {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.office-group-picker__panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.office-group-picker__panel-head h3 {
  margin: 0;
  color: #172554;
  font-size: 0.92rem;
  font-weight: 600;
}

.office-group-picker__count {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #d8ccf5;
  border-radius: 999px;
  background: #faf8ff;
  color: #5b42a4;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
}

.office-member-form-page .office-group-picker .office-form-dual-picker__panel {
  min-height: 286px;
  padding: 12px;
  border: 1px solid #d9d2ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 24px rgba(52, 64, 84, 0.06);
}

.office-member-form-page .office-group-picker .office-form-dual-picker__controls {
  align-self: center;
}

.office-member-form-page .office-group-picker .office-form-dual-picker__controls .button {
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border-color: #cbb8f5;
  background: #f7f3ff;
  color: #43217f;
  font-size: 0.86rem;
  line-height: 1;
}

.office-member-form-page .office-group-picker .office-form-dual-picker__controls .button:not(:disabled):hover,
.office-member-form-page .office-group-picker .office-form-dual-picker__controls .button:not(:disabled):focus-visible {
  border-color: #9f7aea;
  background: #efe7ff;
  box-shadow: 0 8px 18px rgba(91, 66, 164, 0.16);
}

.office-member-form-page .office-group-picker .office-form-dual-picker__controls .button:disabled {
  cursor: not-allowed;
  border-color: #e3e8f2;
  background: #f3f6fb;
  color: #8b95a7;
  opacity: 1;
}

.office-member-form-page .office-group-picker select {
  min-height: 230px;
  max-height: 250px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid #d8e1f0;
  border-radius: 9px;
  background: #fcfdff;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

.office-member-form-page .office-group-picker select:focus {
  border-color: #8e6df0;
  outline: 3px solid rgba(109, 64, 220, 0.14);
}

.office-member-form-page .office-group-picker option {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 7px;
  color: #172554;
  font-size: 0.9rem;
  font-weight: 500;
}

.office-member-form-page .office-group-picker option:checked {
  background: linear-gradient(0deg, #ede7ff, #ede7ff);
  color: #3d1976;
  font-weight: 600;
}

.office-member-form-page .office-group-picker button {
  min-height: 40px;
}

.office-member-empty-groups {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d8ccf5;
  border-radius: 8px;
  background: #faf8ff;
  color: #5f6b7a;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.35;
}

.office-member-empty-groups span {
  display: block;
}

.office-member-empty-groups span {
  margin-top: 2px;
  color: #667b98;
  font-size: 0.82rem;
  font-weight: 400;
}

.office-member-empty-groups[hidden] {
  display: none;
}

.office-member-group-meta {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: #f8fbff;
}

.office-member-group-meta[hidden] {
  display: none;
}

.office-member-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.office-member-edit-actions .button {
  min-height: 40px;
}

.office-member-form-page .role-footer {
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 0;
}

/* Premium compact Office group edit form */
.office-group-edit-page .role-content {
  width: min(100%, 1180px);
  margin-inline: auto;
  gap: 10px;
}

.office-group-edit-page .role-hero {
  width: min(100%, 1180px);
  min-height: 96px;
  margin-inline: auto;
  padding: 16px 20px;
  border-radius: 8px;
}

.office-group-edit-page .director-hero__copy h1 {
  font-size: 1.5rem;
}

.office-group-edit-page .director-hero__copy p {
  margin-top: 4px;
}

.office-group-edit-page .director-hero__meta {
  align-items: center;
}

.office-group-edit-page .director-hero__meta .button {
  min-height: 40px;
  border-color: #fff;
  background: #fff;
  color: #0748cf;
}

.office-group-edit-form {
  display: grid;
  gap: 10px;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.office-group-edit-profile {
  grid-template-columns: minmax(240px, 0.85fr) minmax(360px, 1.15fr);
  min-height: 108px;
  padding: 10px 12px;
}

.office-group-edit-profile .group-color-preview {
  min-height: 76px;
  padding: 10px 12px;
  border-radius: 8px;
}

.office-group-edit-profile .group-color-preview strong {
  font-size: 1.2rem;
}

.office-group-edit-profile__fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  align-items: end;
}

.office-group-edit-profile__fields small {
  grid-column: 1 / -1;
  color: #667b98;
  font-size: 0.8rem;
  font-weight: 800;
}

.office-group-edit-columns {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
  gap: 10px;
  align-items: start;
}

.office-group-edit-page .member-form-column {
  display: grid;
  gap: 10px;
}

.office-group-edit-page .form-section {
  padding: 10px 12px;
}

.office-group-edit-page .member-form-grid {
  gap: 7px 12px;
}

.office-group-edit-page label {
  gap: 4px;
}

.office-group-edit-page input,
.office-group-edit-page select {
  min-height: 38px;
}

.office-group-edit-page textarea {
  min-height: 62px;
  max-height: 90px;
  resize: vertical;
}

.office-group-basic-grid .wide,
.office-group-instructors-grid label:last-child {
  grid-column: 1 / -1;
}

.office-group-edit-actions {
  margin-top: 0;
}

.office-group-edit-page .role-footer {
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 0;
}

/* Premium Office instructor profile, aligned with member profile */
.office-instructor-profile-page .role-content {
  gap: 12px;
}

.office-instructor-profile-page .role-prefooter {
  display: none;
}

.office-instructor-card-hero {
  margin: 0;
}

.office-instructor-kpi-row article {
  min-height: 74px;
}

.office-instructor-profile-page .office-member-profile-panels {
  min-width: 0;
}

.office-instructor-profile-page .office-member-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.office-instructor-profile-page .office-member-overview-main,
.office-instructor-profile-page .office-member-overview-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.office-instructor-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.office-instructor-group-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e4f2;
  border-radius: 8px;
  background: #f8fbff;
}

.office-instructor-group-card strong {
  color: #07163a;
  font-weight: 950;
}

.office-instructor-group-card span,
.office-instructor-group-card small {
  color: #5d7190;
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.office-instructor-profile-page .office-member-actions {
  margin-top: 12px;
}

.office-instructor-profile-page .role-footer {
  padding-top: 10px;
  padding-bottom: 10px;
}

.office-group-profile-page .role-content {
  gap: 12px;
}

.office-group-profile-page .role-prefooter {
  display: none;
}

.office-group-profile-page .member-card-shell {
  display: block;
}

.office-group-profile-page .member-workspace {
  display: grid;
  gap: 12px;
}

.office-group-kpi-row article {
  min-height: 74px;
}

.office-group-kpi-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-group-profile-page .member-tabs {
  margin: 0;
}

.office-group-profile-page .office-member-profile-panels {
  min-width: 0;
}

.office-group-profile-page .office-member-overview-grid {
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
}

.office-group-overview-card {
  min-width: 0;
}

.office-group-profile-page .role-footer {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 767px) {
  .office-instructor-profile-page .office-member-overview-grid,
  .office-instructor-group-list,
  .office-group-profile-page .office-member-overview-grid {
    grid-template-columns: 1fr;
  }

  .office-instructor-profile-page .office-member-overview-main,
  .office-instructor-profile-page .office-member-overview-side,
  .office-group-profile-page .office-member-overview-main,
  .office-group-profile-page .office-member-overview-side {
    display: contents;
  }

  .office-instructor-profile-page .office-member-overview-main > article:first-child {
    order: 1;
  }

  .office-instructor-profile-page .office-member-overview-main > article:last-child {
    order: 2;
  }

  .office-instructor-profile-page .office-member-overview-side > article:first-child {
    order: 3;
  }

  .office-instructor-profile-page .office-member-overview-side > article:last-child {
    order: 4;
  }

  .office-group-profile-page .office-member-overview-main > article:first-child {
    order: 1;
  }

  .office-group-profile-page .office-member-overview-main > article:last-child {
    order: 2;
  }

  .office-group-profile-page .office-member-overview-side > article:first-child {
    order: 3;
  }

  .office-group-profile-page .office-member-overview-side > article:last-child {
    order: 4;
  }
}

@media (max-width: 760px) {
  .office-form-page .role-content,
  .office-form-page .office-form-hero,
  .office-form-container {
    width: 100%;
  }

  .office-form-hero {
    min-height: 0;
    padding: 16px;
  }

  .office-form-hero__actions {
    align-items: stretch;
  }

  .office-form-hero__actions .button {
    width: 100%;
  }

  .office-form-dual-picker,
  .office-schedule-identity-card {
    grid-template-columns: 1fr;
  }

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

  .office-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    margin: 0 -12px;
    border-top: 1px solid #d8e4f2;
    background: #fff;
    box-shadow: 0 -12px 24px rgba(16, 42, 82, 0.14);
  }

  .office-form-actions .button {
    width: 100%;
    min-height: 48px;
  }

  .office-member-form-page .role-content {
    width: 100%;
    padding-bottom: 88px;
  }

  .office-member-edit-header {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px;
    background:
      linear-gradient(90deg, rgba(5, 18, 48, 0.98) 0%, rgba(10, 72, 186, 0.95) 100%);
  }

  .office-member-edit-header h1 {
    font-size: 1.25rem;
  }

  .office-member-edit-header .button {
    width: fit-content;
  }

  .office-member-edit-form {
    width: 100%;
    gap: 10px;
  }

  .office-member-form-page .form-section,
  .office-member-edit-card {
    padding: 11px;
  }

  .office-member-form-page .section-head,
  .office-member-form-page .form-section__head {
    min-height: 38px;
  }

  .office-member-edit-card--profile {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .office-member-edit-photo .member-photo-preview {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .office-member-form-page .member-form-grid,
  .office-member-form-page .office-group-picker {
    grid-template-columns: 1fr;
  }

  .office-member-form-page .office-member-form input,
  .office-member-form-page .office-member-form select {
    min-height: 44px;
  }

  .office-member-adult-note {
    font-size: 0.9rem;
  }

  .office-member-form-page .office-group-picker {
    display: flex;
    flex-direction: column;
  }

  .office-group-picker__available {
    order: 1;
  }

  .office-member-form-page .office-group-picker .office-form-dual-picker__controls {
    order: 2;
  }

  .office-group-picker__selected {
    order: 3;
  }

  .office-member-form-page .office-group-picker select {
    min-height: 150px;
    max-height: 190px;
  }

  .office-member-form-page .office-group-picker button {
    width: 100%;
    min-height: 44px;
  }

  .office-member-edit-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 8px;
    margin: 0 -12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    background: #fff;
    box-shadow: 0 -12px 24px rgba(16, 42, 82, 0.14);
  }

  .office-member-edit-actions .button {
    min-height: 48px;
  }

  .office-group-edit-page .role-content {
    width: 100%;
    padding-bottom: 88px;
  }

  .office-group-edit-page .role-hero {
    width: 100%;
    min-height: 0;
    padding: 14px;
  }

  .office-group-edit-page .director-hero__meta {
    display: flex;
    flex-wrap: wrap;
  }

  .office-group-edit-form {
    width: 100%;
  }

  .office-group-edit-profile,
  .office-group-edit-profile__fields,
  .office-group-edit-columns,
  .office-group-edit-page .member-form-grid {
    grid-template-columns: 1fr;
  }

  .office-group-edit-page .member-form-column {
    display: contents;
  }

  .office-group-edit-columns > .member-form-column:first-child > .form-section:nth-child(1) {
    order: 1;
  }

  .office-group-edit-columns > .member-form-column:first-child > .form-section:nth-child(2) {
    order: 2;
  }

  .office-group-edit-columns > .member-form-column:last-child > .form-section:nth-child(1) {
    order: 3;
  }

  .office-group-edit-columns > .member-form-column:first-child > .form-section:nth-child(3) {
    order: 4;
  }

  .office-group-edit-columns > .member-form-column:last-child > .form-section:nth-child(2) {
    order: 5;
  }

  .office-group-edit-columns > .member-form-column:last-child > .form-section:nth-child(3) {
    order: 6;
  }

  .office-group-edit-page input,
  .office-group-edit-page select {
    min-height: 44px;
  }

  .office-group-edit-actions a {
    display: none;
  }

  .office-member-form-page .role-footer {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.office-guardian-fields[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .office-register-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .office-register-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .office-register-search {
    min-width: 0;
    width: 100%;
  }

  .office-register-new {
    width: 100%;
  }

  .office-register-tabs {
    grid-template-columns: 1fr;
  }

  .office-register-tab {
    min-height: 84px;
    padding: 16px;
  }
}
/* Instructor cash handover */
.instructor-cash-page .role-prefooter { display: none; }
.instructor-cash-shell { width: min(100%, 900px); margin: 0 auto; padding: 0 0 calc(92px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.instructor-cash-hero { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 2px; padding: 16px; border-radius: 20px; background: linear-gradient(135deg, #061638 0%, #0d2359 58%, #31139a 100%); color: #fff; box-shadow: 0 18px 38px rgba(4, 18, 48, 0.22); }
.instructor-cash-hero span, .instructor-cash-card header span { color: #a9c7ff; font-size: 0.76rem; font-weight: 950; letter-spacing: 0; text-transform: uppercase; }
.instructor-cash-hero h1 { margin: 2px 0; font-size: clamp(1.35rem, 4vw, 1.9rem); line-height: 1.05; }
.instructor-cash-hero p { margin: 0; color: #d7e3ff; font-weight: 800; }
.instructor-cash-hero a { min-height: 42px; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; font-weight: 950; text-decoration: none; }
.instructor-cash-hero time { grid-column: 1 / -1; color: #d7e3ff; font-weight: 900; }
.instructor-cash-form { display: grid; gap: 12px; }
.instructor-cash-card { display: grid; gap: 12px; padding: 14px; border: 1px solid #dbe4f2; border-radius: 18px; background: #fff; box-shadow: 0 14px 30px rgba(4, 18, 48, 0.08); }
.instructor-cash-card header { display: flex; align-items: center; gap: 8px; }
.instructor-cash-card header span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: #eef4ff; color: #1558e8; }
.instructor-cash-card h2 { margin: 0; color: #061638; font-size: 1rem; }
.instructor-cash-person { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: #f8fbff; }
.instructor-cash-avatar { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; overflow: hidden; border-radius: 14px; background: #eef4ff; color: #1558e8; font-weight: 950; }
.instructor-cash-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.instructor-cash-person small, .instructor-cash-card label, .instructor-cash-total small, .instructor-cash-stats small { color: #526985; font-size: 0.78rem; font-weight: 950; text-transform: uppercase; }
.instructor-cash-person strong, .instructor-cash-person select { display: block; margin-top: 3px; color: #061638; font-size: 1rem; font-weight: 950; }
.instructor-cash-person em { display: block; margin-top: 2px; color: #526985; font-style: normal; font-weight: 850; }
.instructor-cash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.instructor-cash-card label { display: grid; gap: 6px; }
.instructor-cash-card input, .instructor-cash-card select, .instructor-cash-card textarea { width: 100%; min-height: 44px; border: 1px solid #dbe4f2; border-radius: 12px; padding: 0 11px; background: #fff; color: #061638; font-size: 0.96rem; font-weight: 850; }
.instructor-cash-card textarea { min-height: 78px; padding: 10px 11px; resize: vertical; }
.instructor-cash-total { display: grid; gap: 3px; padding: 14px; border-radius: 16px; background: #eef0ff; color: #4f46e5; }
.instructor-cash-total strong { color: #312e81; font-size: clamp(2rem, 9vw, 3rem); line-height: 1; }
.instructor-cash-total span { color: #526985; font-weight: 850; }
.instructor-cash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.instructor-cash-stats div { display: grid; gap: 4px; padding: 12px; border-radius: 14px; background: #f8fbff; }
.instructor-cash-stats strong { font-size: 1.15rem; }
.instructor-cash-stats .is-green strong { color: #128a35; }
.instructor-cash-stats .is-red strong { color: #c2410c; }
.instructor-cash-amount span, .instructor-cash-password { display: flex; align-items: center; gap: 8px; }
.instructor-cash-amount input { font-size: 1.2rem; }
.instructor-cash-amount b { flex-shrink: 0; color: #1558e8; font-weight: 950; }
.instructor-cash-info, .instructor-cash-empty, .instructor-cash-alert { margin: 0; padding: 10px; border-radius: 12px; background: #f8fbff; color: #526985; font-weight: 850; }
.instructor-cash-alert.is-success { background: #ecfdf3; color: #128a35; }
.instructor-cash-alert.is-error { background: #fff1f2; color: #b91c1c; }
.instructor-cash-password button { min-height: 44px; border: 1px solid #dbe4f2; border-radius: 12px; padding: 0 12px; background: #f8fbff; color: #1558e8; font-weight: 950; }
.instructor-cash-submit { min-height: 54px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #1558e8, #5b21d6); color: #fff; font-weight: 950; }
.instructor-cash-submit:disabled, .instructor-cash-card input:disabled { cursor: not-allowed; opacity: 0.55; }
.instructor-cash-details summary { min-height: 44px; color: #1558e8; font-weight: 950; }
.instructor-cash-details div, .instructor-cash-history div { display: grid; gap: 4px; padding: 11px; border-radius: 14px; background: #f8fbff; }
.instructor-cash-history { display: grid; gap: 9px; }
.instructor-cash-history time, .instructor-cash-details span, .instructor-cash-history span, .instructor-cash-history p { margin: 0; color: #526985; font-weight: 850; }
.instructor-cash-history strong, .instructor-cash-details strong { color: #061638; }
@media (max-width: 640px) {
  .instructor-cash-shell { padding-inline: 2px; }
  .instructor-cash-hero, .instructor-cash-card { border-radius: 16px; }
  .instructor-cash-grid, .instructor-cash-stats { grid-template-columns: 1fr; }
}

/* Sprint 29 cash premium polish */
.instructor-cash-shell { width: min(100%, 850px); }
.instructor-cash-hero { min-height: 0; padding: 15px 16px; background: radial-gradient(circle at 88% 12%, rgba(123, 92, 255, 0.32), transparent 34%), linear-gradient(135deg, #050d22 0%, #0a1c48 58%, #28106e 100%); transition: transform 180ms ease, box-shadow 180ms ease; }
.instructor-cash-hero h1 { font-size: clamp(1.55rem, 5vw, 2.15rem); letter-spacing: 0; }
.instructor-cash-hero p { font-size: 0.9rem; }
.instructor-cash-hero time { grid-column: auto; font-size: 0.82rem; }
.instructor-cash-hero a { justify-self: end; transition: background 180ms ease, transform 180ms ease; }
.instructor-cash-hero a:hover, .instructor-cash-hero a:focus-visible { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }
.instructor-cash-person { border: 1px solid #e6edf8; }
.instructor-cash-readonly-field { max-height: 44px; background: #f8fbff !important; }
.instructor-cash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.instructor-cash-kpis div { display: grid; gap: 6px; min-height: 104px; align-content: center; padding: 13px; border: 1px solid #e6edf8; border-radius: 16px; background: #f8fbff; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.instructor-cash-kpis div:hover { transform: translateY(-2px); border-color: #c9d8f0; box-shadow: 0 12px 28px rgba(4, 18, 48, 0.08); }
.instructor-cash-kpis small { color: #526985; font-size: 0.74rem; font-weight: 950; }
.instructor-cash-kpis strong { color: #061638; font-size: clamp(1.1rem, 4vw, 1.55rem); line-height: 1.05; }
.instructor-cash-kpis .is-total { background: #eef0ff; }
.instructor-cash-kpis .is-total strong { color: #4f46e5; }
.instructor-cash-kpis .is-green { background: #ecfdf3; }
.instructor-cash-kpis .is-green strong { color: #128a35; }
.instructor-cash-kpis .is-red { background: #fff7ed; }
.instructor-cash-kpis .is-red strong { color: #c2410c; }
.instructor-cash-zero, .instructor-cash-success { display: grid; gap: 6px; padding: 16px; border: 1px solid #dbe4f2; border-radius: 16px; background: #f8fbff; color: #526985; font-weight: 850; }
.instructor-cash-zero strong, .instructor-cash-success strong { color: #061638; font-size: 1rem; }
.instructor-cash-success { border-color: #bbf7d0; background: #ecfdf3; color: #128a35; animation: cashFadeIn 180ms ease both; }
.instructor-cash-success strong { color: #128a35; }
.instructor-cash-amount span { min-height: 58px; padding: 5px 7px 5px 0; border: 1px solid #dbe4f2; border-radius: 16px; background: #fff; }
.instructor-cash-amount input { min-height: 52px; border: 0; font-size: 1.45rem; }
.instructor-cash-amount b { display: inline-grid; place-items: center; min-width: 54px; min-height: 36px; border-radius: 999px; background: #eef4ff; }
.instructor-cash-password { min-height: 50px; padding-left: 10px; border: 1px solid #dbe4f2; border-radius: 14px; background: #fff; }
.instructor-cash-password input { border: 0; }
.instructor-cash-lock { width: 16px; height: 16px; border: 2px solid #1558e8; border-radius: 4px; position: relative; flex-shrink: 0; }
.instructor-cash-lock::before { content: ""; position: absolute; left: 2px; top: -9px; width: 8px; height: 8px; border: 2px solid #1558e8; border-bottom: 0; border-radius: 8px 8px 0 0; }
.instructor-cash-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease; box-shadow: 0 12px 24px rgba(21, 88, 232, 0.24); }
.instructor-cash-submit:hover, .instructor-cash-submit:focus-visible { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(21, 88, 232, 0.3); }
.instructor-cash-submit:active { transform: translateY(1px); }
.instructor-cash-submit__icon { width: 16px; height: 18px; border: 2px solid currentColor; border-radius: 9px 9px 6px 6px; position: relative; }
.instructor-cash-submit__icon::after { content: ""; position: absolute; left: 5px; top: 4px; width: 4px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(40deg); }
.instructor-cash-form.is-submitting .instructor-cash-submit::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.6); border-top-color: #fff; border-radius: 50%; animation: cashSpin 800ms linear infinite; }
.instructor-cash-details { transition: box-shadow 180ms ease; }
.instructor-cash-details[open] { box-shadow: 0 16px 34px rgba(4, 18, 48, 0.1); }
.instructor-cash-details summary { cursor: pointer; transition: color 180ms ease; }
.instructor-cash-details summary::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 180ms ease; }
.instructor-cash-details[open] summary::before { transform: rotate(45deg); }
.instructor-cash-details div, .instructor-cash-history div { border: 1px solid #e6edf8; transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.instructor-cash-details div:hover, .instructor-cash-history div:hover { transform: translateY(-1px); border-color: #c9d8f0; box-shadow: 0 10px 24px rgba(4, 18, 48, 0.07); }
.instructor-cash-details b { color: #061638; }
.instructor-cash-details em, .instructor-cash-details small { color: #526985; font-style: normal; font-weight: 850; }
.instructor-cash-history small { width: fit-content; padding: 4px 8px; border-radius: 999px; background: #ecfdf3; color: #128a35; font-weight: 950; }
@keyframes cashFadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cashSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .instructor-cash-kpis { grid-template-columns: 1fr; }
  .instructor-cash-hero { grid-template-columns: 1fr auto; }
  .instructor-cash-hero time { grid-column: 1 / -1; }
}

/* Instructor cash handover aligned with shared Premium Hero */
.instructor-cash-page .role-content {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.instructor-cash-page .office-form-hero {
  width: min(100%, 1080px);
  margin: 14px auto 12px;
}

.instructor-cash-premium-hero .director-date {
  font-weight: 500;
}

.instructor-cash-shell {
  width: min(100%, 1080px);
  gap: 12px;
}

.instructor-cash-card {
  border-radius: 14px;
}

.instructor-cash-card header span {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.instructor-cash-card h2 {
  font-weight: 700;
  line-height: 1.2;
}

.instructor-cash-person small,
.instructor-cash-card label,
.instructor-cash-kpis small {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.instructor-cash-person strong,
.instructor-cash-person select {
  font-weight: 600;
}

.instructor-cash-person em,
.instructor-cash-info,
.instructor-cash-empty,
.instructor-cash-history time,
.instructor-cash-details span,
.instructor-cash-history span,
.instructor-cash-history p,
.instructor-cash-details em,
.instructor-cash-details small {
  color: #536174;
  font-weight: 400;
  line-height: 1.45;
}

.instructor-cash-card input,
.instructor-cash-card select,
.instructor-cash-card textarea {
  font-weight: 500;
}

.instructor-cash-kpis div {
  min-height: 96px;
  border-radius: 14px;
}

.instructor-cash-kpis strong {
  font-weight: 700;
}

.instructor-cash-kpis .is-total {
  border-color: #c7d8ff;
  background: #eff6ff;
}

.instructor-cash-kpis .is-green {
  border-color: #bbf7d0;
  background: #ecfdf3;
}

.instructor-cash-kpis .is-red {
  border-color: #fed7aa;
  background: #fff7ed;
}

.instructor-cash-success {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  border-color: #9ee6bb;
  border-radius: 14px;
  background: #ecfdf3;
  box-shadow: 0 12px 26px rgba(18, 138, 53, 0.08);
  color: #176947;
  font-weight: 400;
}

.instructor-cash-success strong {
  color: #176947;
  font-weight: 600;
}

.instructor-cash-success span {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #315b42;
  font-weight: 400;
}

.instructor-cash-success b {
  color: #061638;
  font-weight: 700;
}

.instructor-cash-alert.is-success {
  border: 1px solid #9ee6bb;
  border-radius: 14px;
  background: #ecfdf3;
  color: #176947;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(18, 138, 53, 0.08);
}

.instructor-cash-submit,
.instructor-cash-password button,
.instructor-cash-details summary {
  font-weight: 600;
}

.instructor-cash-submit b {
  font-weight: 600;
}

@media (orientation: landscape) and (max-width: 960px) {
  .instructor-cash-page .office-form-hero {
    min-height: 0;
    padding: 12px 14px;
  }

  .instructor-cash-page .office-form-hero .director-hero__copy h1 {
    font-size: 1.45rem;
  }

  .instructor-cash-page .office-form-hero__actions {
    flex-wrap: nowrap;
  }

  .instructor-cash-card {
    padding: 10px;
  }

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

  .instructor-cash-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .instructor-cash-page .office-form-hero {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
  }

  .instructor-cash-page .office-form-hero__actions {
    align-items: stretch;
  }

  .instructor-cash-page .office-form-hero__actions .button {
    width: 100%;
  }

  .instructor-cash-success {
    grid-template-columns: 1fr;
  }
}

/* Global Typography Polish */
html {
  text-rendering: optimizeLegibility;
}

body {
  font-weight: var(--weight-regular);
  line-height: var(--line-normal);
  letter-spacing: 0;
}

body,
input,
select,
textarea,
button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p,
li,
td,
dd,
small,
span,
input,
select,
textarea {
  line-height: var(--line-normal);
}

.role-hero p,
.director-hero__copy > p,
.office-form-premium-hero .director-hero__copy span,
.office-overview-hero p,
.instructor-panel-hero p,
.instructor-card-label,
.mobile-hero p,
.instructor-cash-hero span,
.instructor-cash-card header span {
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

.role-hero h1,
.director-hero h1,
.director-final-dashboard .director-hero h1,
.office-overview-hero h1,
.office-member-card-hero h1,
.instructor-panel-hero h1,
.mobile-hero h1,
.instructor-cash-hero h1 {
  font-weight: var(--weight-bold);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: none;
}

.role-hero span,
.director-hero__copy > p,
.director-hero__copy > span,
.office-form-premium-hero .director-hero__copy span,
.instructor-panel-hero__copy > span,
.instructor-panel-hero__copy > small,
.mobile-hero span,
.instructor-cash-hero p,
.instructor-cash-hero time {
  font-weight: var(--weight-medium);
}

.role-nav small,
.director-dashboard .role-nav small,
.director-final-dashboard .role-nav small {
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
}

.role-nav a,
.role-nav .is-locked,
.role-logout,
.director-dashboard .role-nav a,
.director-dashboard .role-logout {
  font-weight: var(--weight-medium);
}

.role-nav a.active,
.director-dashboard .role-nav a.active {
  font-weight: var(--weight-semibold);
}

.director-sidebar-footer,
.premium-sidebar-footer,
.role-footer,
.role-prefooter {
  font-weight: var(--weight-medium);
}

.button,
button,
[type="button"],
[type="submit"],
.director-quick a,
.premium-hero-action,
.office-form-hero-actions .button,
.office-schedule-week-nav a,
.office-schedule-compact-button,
.office-schedule-new-menu summary,
.instructor-hero-actions a,
.instructor-primary-action,
.instructor-payment-link,
.instructor-see-all-tasks,
.mobile-action,
.mobile-link,
.touch-actions a,
.touch-actions button,
.instructor-cash-submit,
.instructor-cash-password button,
.instructor-cash-details summary {
  font-weight: var(--weight-semibold);
  line-height: 1.18;
  letter-spacing: 0;
}

label,
legend,
.director-field,
.form-section label,
.office-form-section label,
.member-form label,
.instructor-cash-card label {
  font-weight: var(--weight-semibold);
  line-height: 1.3;
}

input,
select,
textarea,
option {
  font-weight: var(--weight-medium);
  letter-spacing: 0;
}

input::placeholder,
textarea::placeholder {
  font-weight: var(--weight-regular);
  color: #6b7788;
}

.role-card,
.director-panel,
.director-kpi,
.office-final-card,
.office-final-panel,
.instructor-today-list,
.instructor-weekly-tasks,
.instructor-today-actions a,
.instructor-cash-card,
.mobile-card,
.reports-card,
.office-member-kpi,
.office-member-table-card {
  font-weight: var(--weight-regular);
}

.role-card h2,
.role-card h3,
.section-head h2,
.director-panel h2,
.office-final-panel-head h2,
.instructor-today-list h2,
.instructor-weekly-tasks h2,
.reports-card h2,
.office-profile-card h2 {
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.role-card strong,
.director-panel strong,
.office-final-card strong,
.office-final-panel strong,
.instructor-today-actions a strong,
.instructor-task-row strong,
.instructor-class-row > strong,
.office-member-person strong,
.member-card-hero h1,
.instructor-cash-person strong {
  font-weight: var(--weight-semibold);
}

.director-kpi strong,
.kpi-card strong,
.office-member-kpi strong,
.instructor-cash-kpis strong,
.member-attendance-kpis strong,
.reports-kpi strong {
  font-weight: var(--weight-bold);
  line-height: 1.08;
}

.director-kpi p,
.director-kpi span,
.kpi-card span,
.office-member-kpi span,
.office-member-kpi small,
.instructor-cash-kpis small,
.member-attendance-kpis span,
.reports-card p,
.reports-card small,
.activity-list span,
.instructor-muted,
.instructor-class-row span,
.instructor-class-row small,
.instructor-task-row span {
  font-weight: var(--weight-regular);
}

.instructor-class-row__main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.instructor-class-row__main small {
  color: #64748b;
  font-size: var(--text-xs);
  line-height: var(--line-normal);
}

.instructor-class-row__main small a,
.instructor-class-row__actions a {
  color: #1d4ed8;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.instructor-class-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.instructor-class-open {
  border-radius: 999px;
  background: #0f172a;
  color: #fff !important;
  padding: 8px 12px;
}

.instructor-programs-panel,
.instructor-program-detail-content article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.instructor-programs-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.instructor-programs-page-content {
  display: grid;
  gap: 16px;
}

.instructor-programs-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.instructor-programs-page-header h2 {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  line-height: var(--line-tight);
}

.instructor-programs-page-header strong {
  border-radius: 999px;
  background: #eef4ff;
  color: #1d4ed8;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 8px 11px;
  white-space: nowrap;
}

.instructor-programs-panel > header,
.instructor-program-card__title,
.director-program-assignments > header,
.director-program-assignment-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

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

.instructor-program-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-left: 5px solid #93c5fd;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.instructor-program-card--violet { border-left-color: #c4b5fd; }
.instructor-program-card--pink { border-left-color: #f9a8d4; }
.instructor-program-card--mint { border-left-color: #99f6e4; }
.instructor-program-card--orange { border-left-color: #fdba74; }
.instructor-program-card--cyan { border-left-color: #67e8f9; }
.instructor-program-card--green { border-left-color: #86efac; }
.instructor-program-card--neutral { border-left-color: #cbd5e1; }

.instructor-program-card__title strong {
  color: #0f172a;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--line-tight);
}

.instructor-program-card__title span,
.instructor-program-card__groups small,
.director-program-muted {
  color: #64748b;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
}

.instructor-program-card__title em {
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: var(--text-xs);
  font-style: normal;
  font-weight: var(--weight-semibold);
  padding: 5px 9px;
}

.instructor-program-card__meta,
.instructor-program-card__groups,
.instructor-program-detail-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.instructor-program-card__meta span,
.instructor-program-card__groups span,
.instructor-program-detail-groups span {
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 6px 9px;
}

.instructor-program-card > a {
  margin-top: auto;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.instructor-program-empty {
  grid-column: 1 / -1;
}

.instructor-program-detail {
  display: grid;
  gap: 16px;
}

.instructor-program-detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.instructor-program-detail-kpis article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.instructor-program-detail-kpis span,
.director-program-section-label {
  color: #64748b;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.instructor-program-detail-kpis strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
}

.instructor-program-detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.instructor-program-detail-content article {
  padding: 16px;
}

.instructor-program-detail-content article:last-child {
  grid-column: 1 / -1;
}

.instructor-program-detail-content h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.instructor-program-detail-content p {
  margin: 0;
  color: #334155;
  font-weight: var(--weight-regular);
  line-height: var(--line-relaxed);
}

.instructor-program-future-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.instructor-program-future-grid article {
  border: 1px dashed rgba(59, 130, 246, 0.28);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.instructor-program-future-grid strong {
  display: block;
  color: #0f172a;
  font-weight: var(--weight-semibold);
}

.instructor-program-future-grid span {
  color: #64748b;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.director-program-assignments,
.director-program-assignment-card {
  display: grid;
  gap: 16px;
}

.director-program-assignment-summary {
  display: flex;
  gap: 8px;
}

.director-program-assignment-summary strong {
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: 7px 10px;
}

.director-program-assignment-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 10px;
}

.director-program-assignment-form label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
}

.director-program-assignment-form select,
.director-program-assignment-form input {
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  padding: 9px 10px;
  text-transform: none;
}

.director-program-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.director-program-assignment-grid article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.director-program-assignment-grid h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.director-program-assignment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 10px 0;
}

.director-program-assignment-row:first-of-type {
  border-top: 0;
}

.director-program-assignment-row strong,
.director-program-assignment-row span,
.director-program-assignment-row small {
  display: block;
}

.director-program-assignment-row strong {
  color: #0f172a;
  font-weight: var(--weight-semibold);
}

.director-program-assignment-row span,
.director-program-assignment-row small {
  color: #64748b;
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
}

@media (max-width: 920px) {
  .instructor-program-card-grid,
  .instructor-program-detail-content,
  .director-program-assignment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instructor-program-detail-kpis,
  .instructor-program-future-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-program-assignment-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .instructor-programs-panel > header,
  .director-program-assignments > header,
  .director-program-assignment-card__header {
    flex-direction: column;
  }

  .instructor-program-card-grid,
  .instructor-program-detail-content,
  .director-program-assignment-grid,
  .director-program-assignment-form {
    grid-template-columns: 1fr;
  }

  .instructor-program-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instructor-program-future-grid {
    grid-template-columns: 1fr;
  }

  .instructor-class-row__actions {
    justify-content: stretch;
  }

  .instructor-class-row__actions a {
    flex: 1;
    text-align: center;
  }
}

table,
.instructor-table,
.member-table,
.office-member-table,
.reports-table {
  font-weight: var(--weight-regular);
  line-height: 1.32;
}

th,
.instructor-table th,
.member-table th,
.office-member-table th,
.reports-table th {
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

td,
.instructor-table td,
.member-table td,
.office-member-table td,
.reports-table td {
  font-weight: var(--weight-regular);
  line-height: 1.35;
}

.status,
.status-badge,
[class*="status-"],
.event-badge,
.daily-badge,
.member-payment-pill,
.instructor-status,
.reports-rate {
  font-weight: var(--weight-semibold);
  line-height: 1.2;
}

.instructor-schedule-class {
  font-weight: var(--weight-regular);
}

.instructor-schedule-class strong {
  font-weight: var(--weight-semibold);
}

.instructor-schedule-class small,
.instructor-schedule-grid .instructor-schedule-class span {
  font-weight: var(--weight-medium);
}

.instructor-schedule-time-axis b,
.instructor-schedule-column header strong {
  font-weight: var(--weight-semibold);
}

.instructor-schedule-class:hover,
.instructor-schedule-class:focus-visible {
  transform: translateY(-1px);
}

.instructor-attendance-row,
.attendance-member-row,
.member-file-row {
  font-weight: var(--weight-regular);
}

.instructor-attendance-row strong,
.attendance-member-row strong,
.member-file-row strong {
  font-weight: var(--weight-semibold);
}

.instructor-attendance-toggle button:active {
  transform: translateY(1px);
}

.office-overview-hero h1,
.office-overview-page .director-brand strong {
  text-shadow: none;
}

@media (max-width: 760px) {
  body {
    font-size: max(14px, var(--text-base));
    line-height: var(--line-normal);
  }

  .role-hero h1,
  .director-hero h1,
  .instructor-panel-hero h1,
  .mobile-hero h1 {
    line-height: 1.12;
  }

  .button,
  button,
  .office-schedule-week-nav a,
  .office-schedule-compact-button,
  .office-schedule-new-menu summary,
  .instructor-hero-actions a {
    font-size: max(13px, 0.86rem);
  }
}
