:root {
  color-scheme: light;
  --bg: #eef3f7;
  --panel: #ffffff;
  --text: #06366f;
  --muted: #7b8790;
  --line: #dce5ed;
  --brand: #0b3a78;
  --brand-dark: #072f63;
  --ice-blue: #0889bb;
  --cta: #e1261c;
  --gold: #f7a614;
  --ok: #18794e;
  --warn: #a15c00;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Arial Rounded MT Bold", Avenir Next, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.98), rgba(255,255,255,0) 24rem),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 38%, #e8eef4 100%);
  color: var(--text);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { min-height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: rgba(244, 250, 253, .96);
  border-bottom: 0;
  box-shadow: 0 14px 38px rgba(6, 54, 111, .08);
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
}
.brand-logo img {
  display: block;
  width: clamp(9.5rem, 18vw, 14rem);
  height: auto;
}
.nav { display: flex; flex-wrap: wrap; gap: .35rem; }
.nav a {
  padding: .7rem .95rem;
  border-radius: 999px;
  color: #75818b;
  font-size: .85rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.nav a.active { background: #e6f3fa; color: var(--brand-dark); }
.nav a[href="/auth/logout"] { color: var(--cta); }
.container { width: min(1120px, calc(100% - 2rem)); margin: 1.25rem auto 3rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.panel {
  background: var(--panel);
  border: 0;
  border-radius: 22px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 18px 42px rgba(18, 50, 83, .12);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.stack { display: grid; gap: 1.5rem; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.between { justify-content: space-between; }
h1, h2, h3 {
  margin: 0 0 .75rem;
  line-height: 1.06;
  color: var(--brand);
  font-weight: 950;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.85rem);
  letter-spacing: .01em;
  font-style: italic;
  text-transform: uppercase;
}
h2 { font-size: 1.45rem; }
h3 { font-size: 1rem; }
p { color: var(--muted); margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.metric { font-size: 1.8rem; font-weight: 760; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: .2rem .5rem;
  font-size: .78rem;
  color: var(--muted);
  background: #fbfcfe;
}
.badge.ok { color: var(--ok); border-color: #b7e2cc; background: #edf8f2; }
.badge.warn { color: var(--warn); border-color: #f3d19b; background: #fff8eb; }
form { display: grid; gap: .85rem; }
label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 650; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .65rem .7rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 6rem; resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.05rem;
  background: var(--cta);
  color: white;
  font: inherit;
  font-weight: 950;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(225, 38, 28, .24);
}
.button.secondary, button.secondary {
  background: #e6f3fa;
  color: var(--brand);
  box-shadow: none;
}
.button.danger, button.danger { background: var(--danger); }
table { width: 100%; border-collapse: collapse; background: var(--panel); }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.empty { padding: 2rem; text-align: center; color: var(--muted); }
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(6,54,111,.18), rgba(6,54,111,.42)),
    radial-gradient(circle at 60% 8%, rgba(255,255,255,.7), rgba(255,255,255,0) 20rem),
    linear-gradient(135deg, #edf7fb 0%, #cfdbe6 45%, #0b3a78 46%, #0b3a78 100%);
}
.login-card {
  width: min(500px, 100%);
  padding: clamp(1.4rem, 4vw, 2.15rem);
}
.login-logo {
  display: block;
  width: min(21rem, 100%);
  height: auto;
  margin: 0 auto 1rem;
}
.login-card h1 {
  font-size: clamp(2.45rem, 9vw, 4.1rem);
  margin-bottom: .65rem;
  text-transform: none;
  letter-spacing: 0;
  text-align: center;
}
.login-copy {
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 1.35rem;
  text-align: center;
}
.section-banner {
  margin: -1.25rem -1.25rem 1.1rem;
  padding: .9rem 1.25rem;
  background: var(--ice-blue);
  color: white;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 950;
}
.progress-card {
  display: grid;
  gap: 1rem;
}
.ring-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient(var(--ring-color, var(--ice-blue)) calc(var(--value, 0) * 1%), #edf3f7 0);
  color: var(--brand);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 850;
}
.ring::before {
  content: attr(data-value);
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: white;
}
.ring-label {
  text-align: center;
  color: var(--brand);
  font-size: clamp(1rem, 2.8vw, 1.55rem);
  font-weight: 950;
}
@media (max-width: 680px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .container { width: calc(100% - 1rem); margin-top: .5rem; }
  h1 { font-size: 2.15rem; }
  .ring-row { gap: .45rem; }
}

/* ── Week Schedule Calendar ───────────────────────────── */
.week-grid-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.week-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, minmax(140px, 1fr));
  grid-template-rows: 52px repeat(32, 40px); /* overridden by inline style at runtime */
  height: calc(100vh - 210px);
  min-height: 400px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  min-width: 800px;
  background: #f8fafc;
}
.week-day-header {
  padding: 5px 6px;
  font-weight: 700;
  font-size: .8rem;
  text-align: center;
  background: #0889bb;
  color: #fff;
  letter-spacing: .04em;
  border-left: 1px solid rgba(255,255,255,.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.week-day-header:first-of-type { border-left: none; }
.wdh-name { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.wdh-date { font-size: .7rem; font-weight: 400; opacity: .85; }
.week-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: .75rem 0 .5rem;
}
.week-nav-label {
  font-weight: 600;
  font-size: .95rem;
  flex: 1;
  text-align: center;
}
.week-time-label {
  padding: 2px 6px 0;
  font-size: .7rem;
  color: #94a3b8;
  text-align: right;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.week-class-card {
  background: #0889bb;
  color: #fff;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: .7rem;
  overflow: hidden;
  text-decoration: none;
  margin: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  transition: filter .15s;
}
.week-class-card:hover { filter: brightness(1.1); }
.wcc-name { font-weight: 700; line-height: 1.2; }
.wcc-meta { opacity: .85; }
.wcc-cap { opacity: .75; }
.wcc-bar {
  height: 3px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  margin-top: 3px;
}
.wcc-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

/* ── Schedule block cards ─────────────────────────────── */
.week-block-card {
  background: #0f6f9a;
  color: #fff;
  border-radius: 5px;
  padding: 6px 8px;
  font-size: .75rem;
  overflow: hidden;
  text-decoration: none;
  margin: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  transition: filter .15s;
  gap: 2px;
}
.week-block-card:hover { filter: brightness(1.1); }
.wbc-session { font-size: .68rem; opacity: .82; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbc-count   { font-weight: 700; font-size: .8rem; line-height: 1.3; }
.wbc-levels  { font-size: .68rem; opacity: .9; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbc-enroll  { font-size: .68rem; opacity: .75; }
.wbc-bar {
  height: 3px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  margin-top: 3px;
}
.wbc-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 2px;
}

/* ── Day detail page ──────────────────────────────────── */
.session-hero { margin-bottom: 1rem; }
.session-hero h2 { margin: 0 0 .25rem; }
.session-hero p  { margin: 0; color: #64748b; font-size: .9rem; }
.day-class-card { margin-bottom: 1rem; }
.dcc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  gap: .75rem;
}
.dcc-meta {
  display: flex;
  gap: 1.5rem;
  font-size: .85rem;
  color: #475569;
  margin-bottom: .5rem;
  flex-wrap: wrap;
}
.dcc-capacity { margin-bottom: .5rem; font-size: .85rem; }
.dcc-roster { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.day-roster-chip {
  font-size: .75rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-weight: 500;
}
.day-roster-chip.ok   { background: #dcfce7; color: #166534; }
.day-roster-chip.warn { background: #fef9c3; color: #854d0e; }

/* ── Class Detail / Attendance ────────────────────────── */
.attendance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: 1rem;
}
.attendance-tab {
  padding: .3rem .75rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f8fafc;
  font-size: .8rem;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.attendance-tab.active,
.attendance-tab:hover {
  background: #0889bb;
  color: #fff;
  border-color: #0889bb;
}
.attendance-table { width: 100%; }
.attendance-select {
  padding: .25rem .5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .85rem;
}

/* ── Coach Cards ──────────────────────────────────────── */
.coach-card {
  padding: .85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: .6rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.coach-name { font-weight: 700; }
.coach-email { font-size: .8rem; color: #64748b; }
.coach-badges { display: flex; flex-wrap: wrap; gap: .3rem; }
.status-chip {
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #64748b;
}
.status-chip.ok   { background: #dcfce7; color: #15803d; }
.status-chip.warn { background: #fef9c3; color: #a16207; }
.status-chip.danger { background: #fee2e2; color: #b91c1c; }

/* ── Session Hero ─────────────────────────────────────── */
.session-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%); color: #fff; }
.session-hero h2 { color: #fff; margin-bottom: .5rem; }
.session-meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.meta-chip {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}
.date-chip-plain { background: rgba(255,255,255,.15); color: #e0f2fe; }
.price-chip      { background: rgba(255,255,255,.15); color: #bbf7d0; }
.policy-chip     { background: rgba(255,255,255,.12); color: #fde68a; }
.first-day-hint  { color: rgba(255,255,255,.75); font-size: .85rem; margin-top: .5rem; }

/* ── Schedule Builder ─────────────────────────────────── */
.builder-panel { border-left: 4px solid #3b82f6; }
.builder-header { margin-bottom: 1.25rem; }
.builder-step {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.step-label {
  font-weight: 700;
  font-size: .95rem;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}
.inline-label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.inline-label select { font-weight: 400; }

.date-preview-placeholder { padding: .5rem 0; }
.date-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .75rem 0;
}
.date-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem .25rem .75rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
}
.date-chip.blacked-out {
  background: #f1f5f9;
  color: #94a3b8;
  text-decoration: line-through;
}
.btn-chip {
  all: unset;
  cursor: pointer;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .7rem;
  background: rgba(0,0,0,.12);
  line-height: 1;
}
.btn-chip:hover { background: rgba(0,0,0,.25); }
.date-chip form { display: contents; }

/* ── Class row builder (div-based grid, avoids tbody innerHTML issues) ── */
.class-row,
.class-row-header {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 7.5rem 7.5rem 5rem 2.5rem;
  align-items: center;
  gap: .6rem;
  padding: .45rem .25rem;
}
.class-row-header {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: .3rem;
  margin-bottom: .1rem;
}
.class-row + .class-row { border-top: 1px solid #f1f5f9; }
.class-row input[type="number"] { text-align: center; }
.table-scroll { overflow-x: auto; }

.btn-remove {
  all: unset;
  cursor: pointer;
  color: #ef4444;
  font-size: 1.1rem;
  padding: 0 .3rem;
  opacity: .6;
  text-align: center;
}
.btn-remove:hover { opacity: 1; }

.btn-delete {
  all: unset;
  cursor: pointer;
  font-size: 1rem;
  opacity: .5;
  padding: .1rem .3rem;
}
.btn-delete:hover { opacity: 1; }

.btn-secondary {
  background: #f8fafc;
  color: #334155;
  border: 1.5px solid #cbd5e1;
}
.btn-secondary:hover { background: #e2e8f0; }

.btn-primary {
  background: #1d4ed8;
  color: #fff;
}
.btn-primary:hover { background: #1e40af; }

.builder-actions {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  padding: .1rem .55rem;
  vertical-align: middle;
  margin-left: .35rem;
}

.hint { color: #64748b; font-size: .85rem; margin: .3rem 0; }

/* ── New session form: day-of-week checkboxes ── */
.days-fieldset {
  border: 1.5px solid #e2e8f0;
  border-radius: .5rem;
  padding: .75rem 1rem;
  margin: .5rem 0;
}
.days-fieldset legend {
  font-weight: 600;
  font-size: .9rem;
  padding: 0 .35rem;
}
.day-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: .5rem;
}
.day-checkboxes label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: .4rem;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
}
.day-checkboxes input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

/* ── Session calendar ── */
.session-calendar { }
.cal-meta { margin-bottom: .75rem; }
.cal-months {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.cal-month {
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 18rem;
}
.cal-month caption {
  font-weight: 700;
  font-size: .95rem;
  text-align: left;
  padding: 0 0 .5rem;
  color: #1e293b;
}
.cal-month th {
  width: 2.4rem;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  padding-bottom: .3rem;
}
.cal-month td {
  width: 2.4rem;
  height: 2.2rem;
  text-align: center;
  vertical-align: middle;
  padding: .1rem;
}
.cal-month td span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #94a3b8;
  font-size: .8rem;
}
.cal-day button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter .1s;
}
.cal-active button {
  background: #3b82f6;
  color: #fff;
}
.cal-active button:hover { filter: brightness(1.12); }
.cal-blacked-out button {
  background: #f1f5f9;
  color: #94a3b8;
  text-decoration: line-through;
}
.cal-blacked-out button:hover { filter: brightness(.95); }

/* ── Ice block config panel ── */
.block-config {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .75rem;
  padding: .75rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.block-config-label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .8rem;
  font-weight: 600;
  color: #475569;
}
.block-config-label input {
  width: auto;
  padding: .3rem .5rem;
  font-size: .85rem;
}
.block-config-to {
  font-size: .8rem;
  color: #94a3b8;
  padding-bottom: .3rem;
}
.block-config-unit {
  font-size: .75rem;
  color: #94a3b8;
}

/* ── Per-day class builder ── */
.day-builder {
  border: 1.5px solid #e2e8f0;
  border-radius: .5rem;
  margin-bottom: .75rem;
  overflow: hidden;
}
.day-builder-summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.day-builder-summary::-webkit-details-marker { display: none; }
.day-builder-summary::before {
  content: "▶";
  font-size: .65rem;
  color: #94a3b8;
  transition: transform .15s;
}
.day-builder[open] > .day-builder-summary::before { transform: rotate(90deg); }
.day-builder-name { font-size: .95rem; color: #1e293b; }
.day-builder-count {
  font-size: .78rem;
  font-weight: 500;
  color: #64748b;
}
.day-builder > form,
.day-date-chips {
  padding: .75rem 1rem;
}
.day-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  padding-bottom: 0;
}
.day-date-chip {
  display: inline-block;
  padding: .15rem .5rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 500;
}

/* ── Calendar extra (makeup) and addable states ── */
.cal-extra button {
  background: #22c55e;
  color: #fff;
}
.cal-extra button:hover { filter: brightness(1.1); }
.cal-addable button {
  background: transparent;
  color: #cbd5e1;
  border: 1.5px dashed #cbd5e1;
}
.cal-addable button:hover {
  background: #f0fdf4;
  color: #22c55e;
  border-color: #22c55e;
}

/* ── Calendar legend ── */
.cal-legend {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: .75rem;
  font-size: .78rem;
  color: #64748b;
}
.leg-active, .leg-blacked, .leg-extra {
  display: inline-block;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
}
.leg-active  { background: #3b82f6; }
.leg-blacked { background: #f1f5f9; border: 1px solid #cbd5e1; }
.leg-extra   { background: #22c55e; }

/* ── Date summary (effective dates per day) ── */
.date-summary {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.eff-day-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem;
}
.eff-day-name {
  font-weight: 600;
  font-size: .85rem;
  color: #1e293b;
  min-width: 6rem;
}
.eff-count {
  font-size: .75rem;
  color: #64748b;
  min-width: 4.5rem;
}
.eff-dates {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}
.eff-date {
  display: inline-block;
  padding: .1rem .45rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 500;
}

/* ── Notification bell ───────────────────────────────────────────────────── */
.notif-bell-wrap {
  position: fixed;
  top: .6rem;
  right: 1.25rem;
  z-index: 300;
  display: flex;
  align-items: center;
}
.notif-bell-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: .65rem .75rem;
  font-size: 1.2rem;
  line-height: 1;
  color: #75818b;
  border-radius: 999px;
  position: relative;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.notif-bell-btn:hover { background: #e6f3fa; color: var(--brand-dark); }
.notif-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 .25rem;
  background: var(--cta);
  color: #fff;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
}
.notif-dropdown {
  position: absolute;
  top: calc(100% + .35rem);
  right: 0;
  width: 320px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 200;
  overflow: hidden;
}
.notif-dropdown-header {
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.notif-dropdown-body {
  max-height: 340px;
  overflow-y: auto;
}
.notif-row {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .2rem;
  position: relative;
}
.notif-row:last-child { border-bottom: none; }
.notif-unread { background: #f0f7ff; }
.notif-row-title { font-size: .85rem; font-weight: 700; color: var(--text); }
.notif-row-body { font-size: .8rem; color: var(--muted); }
.notif-read-btn {
  align-self: flex-end;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .7rem;
  padding: .1rem .45rem;
  cursor: pointer;
  color: var(--muted);
}
.notif-read-btn:hover { background: var(--bg); }
.notif-empty { padding: .75rem 1rem; color: var(--muted); font-size: .85rem; }

/* ── Coach dashboard schedule row ────────────────────────────────────────── */
.class-card-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.class-card-row .card-link { flex: 1 1 200px; text-decoration: none; }
.class-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: .65rem;
  padding: .85rem 1rem;
  transition: box-shadow .15s;
}
.class-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.09); }
.class-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .35rem;
  flex-wrap: wrap;
  gap: .25rem;
}
.level-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ice-blue);
}
.class-time { font-size: .75rem; color: var(--muted); }
.class-card-name { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.class-card-meta { font-size: .78rem; color: var(--muted); }

/* ── Weekly strip ────────────────────────────────────────────────────────── */
.week-strip {
  display: flex;
  justify-content: space-between;
  gap: .4rem;
  background: var(--bg);
  border-radius: .75rem;
  padding: .65rem .85rem;
  margin-bottom: 1rem;
}
.week-day-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-width: 2.5rem;
  padding: .55rem .25rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--muted);
  background: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.week-day-pill.has-class {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}
.week-day-pill.today:not(.has-class) {
  border-color: var(--brand);
  color: var(--brand);
}
.week-day-pill.today.has-class {
  box-shadow: 0 0 0 2.5px rgba(11, 58, 120, .35);
}
.week-pill-day {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}
.week-pill-num {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
}

/* ── Inline date checkboxes ──────────────────────────────────────────────── */
.date-check-list { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.date-check-inline {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .5rem;
  border-radius: .4rem;
  cursor: pointer;
  font-size: .88rem;
}
.date-check-inline:hover { background: var(--bg); }
.date-check-inline input[type="checkbox"] { width: auto; margin: 0; flex-shrink: 0; padding: 0; }
.date-check-inline.disabled { opacity: .5; cursor: not-allowed; }
.date-check-label { font-weight: 500; }

/* ── Coach dashboard class pills (clickable) ─────────────────────────────── */
.coach-week-strip { justify-content: flex-start; gap: .55rem; }
.coach-class-pill { cursor: pointer; flex: 0 0 auto; width: 3rem; }
.coach-class-pill.selected {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(7, 47, 99, .28);
}
.coach-class-details { margin-top: .25rem; }
.coach-class-detail .card-link { text-decoration: none; display: block; }
.coach-dash-card {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  transition: box-shadow .15s;
}
.coach-dash-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.coach-dash-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .4rem;
  flex-wrap: wrap;
  gap: .25rem;
}
.coach-dash-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: .3rem;
  flex-wrap: wrap;
  gap: .4rem;
}
.absence-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: #fff8eb;
  color: var(--warn);
  border: 1px solid #f3d19b;
  border-radius: 999px;
  padding: .1rem .5rem;
  font-size: .72rem;
  font-weight: 600;
}
.coach-dash-time {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .25rem;
}
.coach-club-chip {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  margin-bottom: .35rem;
}
.club-group-header td {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  padding: .75rem .75rem .25rem;
  background: transparent;
}
.cal-club-chip {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue);
  opacity: .85;
  margin: .1rem 0 .15rem;
}

/* ── Parent dashboard ────────────────────────────────────────────────────── */
.parent-dashboard { padding-bottom: 1.25rem; }
.skater-tabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.skater-tab {
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  box-shadow: none;
  letter-spacing: .02em;
}
.skater-tab.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(7,47,99,.22);
}
.skater-header { margin-bottom: .85rem; }
.skater-name-big { font-size: 1.35rem; font-weight: 900; color: var(--brand); }
.skater-level-tag {
  display: inline-flex;
  margin-top: .2rem;
  background: #e6f3fa;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.parent-class-section { margin-bottom: 1.25rem; }

/* Date pill calendar strip (parent view) */
.date-cal-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .5rem .1rem .75rem;
  scrollbar-width: none;
}
.date-cal-strip::-webkit-scrollbar { display: none; }
.date-pill {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  width: 3.1rem;
  padding: .55rem .2rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  background: transparent;
}
.date-pill.active {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(7,47,99,.25);
}
.date-pill-mon {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1;
}
.date-pill-num {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

/* Parent class card (coach info) */
.parent-class-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  flex-wrap: wrap;
}
.coach-avatar-wrap { flex-shrink: 0; }
.coach-avatar-img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.coach-avatar-initials {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: .03em;
}
.parent-class-info { flex: 1; min-width: 0; }
.parent-class-coach { font-weight: 800; font-size: 1rem; color: var(--brand); margin-bottom: .25rem; }
.parent-class-level {
  display: inline-flex;
  background: #e6f3fa;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: .5rem;
}
.parent-class-row {
  display: flex;
  gap: .5rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .2rem;
  align-items: baseline;
}
.parent-class-label { font-weight: 700; color: var(--text); font-size: .75rem; min-width: 3.5rem; }
.absent-btn {
  margin-top: .75rem;
  width: 100%;
  background: #fff3f2;
  color: var(--cta);
  border: 1.5px solid #fbd4d1;
  box-shadow: none;
}
.absent-btn:hover { background: #fde8e7; }

/* Collapsible actions accordion */
.actions-accordion {
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.actions-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
  color: var(--brand);
  padding: 1rem 1.75rem;
  list-style: none;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.actions-accordion summary::-webkit-details-marker { display: none; }
.actions-accordion[open] summary { border-bottom: 1px solid var(--line); }
.accordion-body {
  padding: 1.25rem 1.75rem;
  background: var(--panel);
}
.button-sm {
  padding: .45rem .85rem;
  font-size: .78rem;
  min-height: 0;
}
