@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy-900: #0A1B31;
  --navy-800: #0E2542;
  --navy-700: #133258;
  --navy-600: #1C4374;
  --navy-500: #2A5891;
  --blue-700: #043F7B;
  --blue-600: #0554A3;
  --blue-500: #1268BE;
  --blue-400: #3C8AD8;
  --blue-300: #7DB2E8;
  --blue-100: #D7E7F8;
  --blue-50: #EEF5FD;
  --red-700: #8E181D;
  --red-600: #BE2026;
  --red-500: #D8353B;
  --red-100: #FBDDDE;
  --red-50: #FDF0F0;
  --green-600: #137547;
  --green-500: #1E9C60;
  --green-100: #D7F2E4;
  --amber-600: #9A6400;
  --amber-500: #C6880A;
  --amber-400: #DEB461;
  --amber-100: #FBEACB;
  --grey-0: #FFFFFF;
  --grey-25: #FAFBFC;
  --grey-50: #F4F6F9;
  --grey-100: #E9EDF3;
  --grey-200: #D7DEE8;
  --grey-300: #B9C4D3;
  --grey-400: #8E9BAE;
  --grey-500: #6B7889;
  --grey-600: #4E5A6B;
  --grey-700: #38424F;
  --grey-800: #232B36;
  --grey-900: #151A22;

  --font-primary: "Inter", "Helvetica Neue", Helvetica, Archivo, system-ui, sans-serif;
  --font-script: "Caveat", "Brush Script MT", cursive;

  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10,27,49,0.09), 0 1px 2px rgba(10,27,49,0.05);
  --shadow-md: 0 4px 12px rgba(10,27,49,0.10), 0 1px 3px rgba(10,27,49,0.06);
  --shadow-lg: 0 12px 28px rgba(10,27,49,0.14), 0 2px 6px rgba(10,27,49,0.07);

  --sidebar-w: 264px;
  --topbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--grey-50);
  color: var(--grey-900);
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background-color .13s ease, border-color .13s ease, color .13s ease, transform .08s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:disabled { background: var(--grey-300); cursor: not-allowed; }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-navy:disabled { background: var(--grey-200); color: var(--grey-400); cursor: not-allowed; }
.btn-secondary { background: var(--grey-0); color: var(--grey-800); border-color: var(--grey-200); }
.btn-secondary:hover { background: var(--grey-50); }
.btn-secondary:disabled { color: var(--grey-400); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--blue-600); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: var(--red-700); }

/* ---------- Form fields ---------- */
.field { margin-bottom: 18px; text-align: left; }
.field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--grey-700);
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  background: var(--grey-0); color: var(--grey-900);
  outline: none;
  transition: border-color .13s ease, box-shadow .13s ease;
}
.field input::placeholder { color: var(--grey-400); }
.field input:focus, .field select:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.field input:disabled { background: var(--grey-50); color: var(--grey-500); }
.field-hint { font-size: 12px; color: var(--grey-500); margin-top: 6px; }
.field-error { font-size: 12px; color: var(--red-600); margin-top: 6px; }

/* ---------- Auth card (registration/signin) ---------- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px; background: var(--grey-50);
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--grey-0);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 28px 24px; text-align: center;
}
.auth-logo {
  width: 144px; height: 144px; border-radius: var(--radius-md);
  background: var(--navy-700); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; letter-spacing: .02em;
  margin: 0 auto 16px;
}
.auth-logo-img { width: 70%; height: 70%; object-fit: contain; }
.auth-title { font-size: 18px; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; }
.auth-subtitle { font-size: 13px; color: var(--grey-500); margin-bottom: 22px; }
.auth-switch { margin-top: 18px; font-size: 13px; color: var(--grey-600); }
.auth-card .field { margin-bottom: 16px; }
.auth-card .field input { height: 40px; padding: 10px 12px; font-size: 14px; }
.auth-card .btn { height: 38px; font-size: 14px; padding: 11px 14px; }
.auth-banner {
  text-align: left; font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.auth-banner.info { background: var(--blue-50); color: var(--blue-700); }
.auth-banner.success { background: var(--green-100); color: var(--green-600); }
.auth-banner.error { background: var(--red-50); color: var(--red-700); }
.role-picker { display: flex; gap: 8px; margin-bottom: 18px; }
.role-pill {
  flex: 1; border: 1px solid var(--grey-200); border-radius: var(--radius-sm);
  padding: 10px 6px; font-size: 12px; font-weight: 600; color: var(--grey-600);
  cursor: pointer; text-align: center; background: var(--grey-0);
  transition: all .13s ease;
}
.role-pill.active { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-700); }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
  width: var(--sidebar-w); flex: 0 0 var(--sidebar-w);
  background: var(--navy-700);
  background-image: linear-gradient(180deg, var(--navy-800), var(--navy-700) 40%, var(--navy-600));
  color: #fff; display: flex; flex-direction: column;
  padding: 22px 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.sidebar-brand .mark {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px;
}
.mark-img { width: 62%; height: 62%; object-fit: contain; }
.sidebar-brand .txt { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sidebar-brand .txt strong { display: block; font-size: 13px; letter-spacing: 0; color: #fff; text-transform: none; margin-top: 1px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-md); background: rgba(255,255,255,.06); margin-bottom: 22px; }
.sidebar-user .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue-500); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: 0 0 auto;
}
.sidebar-user > div { min-width: 0; }
.sidebar-user .name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .role { font-size: 11px; color: rgba(255,255,255,.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .team { display: flex; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,.4); margin-top: 1px; }
.sidebar-user .team-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .team-more { flex: 0 0 auto; }
.sidebar-section-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 18px 4px 8px; }
.sidebar-section-label.active { color: rgba(255,255,255,.85); }
.sidebar-collapse-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; padding: 0; cursor: pointer;
}
.sidebar-collapse-toggle:hover { color: rgba(255,255,255,.65); }
.sidebar-collapse-toggle .chev { font-size: 12px; transition: transform .15s ease; transform: rotate(-90deg); }
.sidebar-collapse-toggle .chev.open { transform: rotate(0deg); }
.sidebar-collapsible { overflow: hidden; max-height: 800px; flex-shrink: 0; transition: max-height .2s ease, opacity .2s ease; opacity: 1; }
.sidebar-collapsible.collapsed { max-height: 0; opacity: 0; }
.sidebar-role-label {
  display: flex; align-items: center; justify-content: space-between; width: calc(100% - 8px);
  margin: 18px 4px 2px; padding: 7px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.1); color: #fff; font-size: 12.5px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; flex-shrink: 0;
}
.sidebar-role-label .chev { font-size: 12px; transition: transform .15s ease; transform: rotate(-90deg); }
.sidebar-role-label .chev.open { transform: rotate(0deg); }
.sidebar-role-body.collapsed, .role-section-body.collapsed { display: none; }
.role-section { margin-top: 26px; }
.role-section-label {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px;
  background: var(--navy-800); color: #fff; border: 0; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 800; cursor: pointer; text-align: left;
}
.role-section-label .muted { margin-left: auto; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); }
.role-section-label .chev { transition: transform .15s ease; transform: rotate(-90deg); }
.role-section-label .chev.open { transform: rotate(0deg); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-brand, .sidebar-user, .sidebar-section-label, .sidebar-foot { flex-shrink: 0; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.82); font-size: 13.5px; font-weight: 500; cursor: pointer; border: none; background: none;
  text-align: left; width: 100%;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }
.sidebar-link .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); flex: 0 0 auto; }
.sidebar-link .badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700; background: rgba(255,255,255,.14);
  padding: 2px 7px; border-radius: var(--radius-pill);
}
.sidebar-foot { margin-top: auto; padding-top: 16px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
  height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: var(--grey-0); border-bottom: 1px solid var(--grey-100);
  position: sticky; top: 0; z-index: 5;
}
.app-topbar h1 { font-size: 17px; font-weight: 700; color: var(--navy-800); }
.topbar-title-group { display: flex; align-items: center; gap: 10px; }
.topbar-logo { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.viewas { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--grey-500); }
.viewas select {
  height: 34px; padding: 0 8px; border-radius: var(--radius-sm); border: 1px solid var(--grey-200);
  background: var(--grey-0); color: var(--navy-800); font-size: 13px; font-weight: 600; cursor: pointer;
}
.viewas.active select { border-color: var(--amber-500); background: #fff7e0; }
.topbar-signout {
  flex: 0 0 auto; height: 28px; padding: 0 11px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--grey-200); color: var(--grey-500);
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.topbar-help.active { background: var(--blue-50); border-color: var(--blue-300); color: var(--blue-700); }
.topbar-signout:hover { background: var(--grey-50); color: var(--navy-800); }
.app-content { flex: 1; padding: 28px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ---------- Cards / catalog ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 6px; }
.page-title { font-size: 26px; font-weight: 800; color: var(--navy-800); margin-bottom: 6px; }
.page-subtitle { font-size: 14px; color: var(--grey-500); margin-bottom: 26px; }

.script-accent { font-family: var(--font-script); font-weight: 600; color: var(--blue-100); }

.dash-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; max-width: 460px; }
.dash-stat-grid .stat-card .val .of { font-size: 13px; font-weight: 500; color: var(--grey-500); }

.continue-banner {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: color-mix(in oklch, var(--blue-500) 8%, white); border: 1px solid var(--blue-100);
  border-radius: var(--radius-md); padding: 13px 14px; margin-bottom: 22px; cursor: pointer;
}
.continue-banner .bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); flex: 0 0 auto; }
.continue-banner .t1 { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-800); }
.continue-banner .t2 { display: block; font-size: 12px; color: var(--grey-500); margin-top: 2px; }

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-head span:first-child { font-size: 15px; font-weight: 600; color: var(--navy-800); }
.section-head .muted { font-size: 13px; color: var(--grey-500); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.course-group { margin-bottom: 28px; }
.course-group:last-child { margin-bottom: 0; }
.course-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--grey-500); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  cursor: pointer; font-family: inherit;
}
.course-group-label:hover { color: var(--grey-700); }
.course-group-label .chev { display: inline-block; font-size: 13px; transition: transform .15s ease; transform: rotate(-90deg); }
.course-group-label .chev.open { transform: rotate(0deg); }
.card-grid.collapsed { display: none; }
.course-card {
  background: var(--grey-0); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; border: 1px solid var(--grey-100); overflow: hidden;
  transition: box-shadow .13s ease, transform .13s ease; text-align: left; padding: 0; cursor: pointer; font: inherit; color: inherit;
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.course-thumb {
  aspect-ratio: 16/7; position: relative;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
}
.course-thumb-title {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: 70%; max-height: 58%; object-fit: contain; pointer-events: none;
}
.course-thumb .badge {
  position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; color: #fff;
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.course-thumb .badge.badge-not-started { background: rgba(255,255,255,.28); }
.course-thumb .badge.badge-in-progress { background: var(--blue-500); }
.course-thumb .badge.badge-complete { background: var(--green-500); }
.course-thumb .cat {
  position: absolute; left: 12px; bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.82);
}
.course-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; }
.course-body h3 { font-size: 15px; font-weight: 600; color: var(--navy-800); }
.course-body .meta { font-size: 12.5px; color: var(--grey-400); }
.bar-track { height: 5px; background: var(--grey-100); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue-500); border-radius: var(--radius-pill); transition: width .32s ease; }
.badge-complete ~ .bar-track .bar-fill, .bar-fill.complete { background: var(--green-500); }

/* ---------- Course player ---------- */
.player-shell { display: flex; min-height: 100vh; }
.player-sidebar {
  width: 264px; flex: 0 0 264px; background: var(--navy-700);
  background-image: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  color: #fff; padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.player-sidebar .back-link { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 16px; cursor: pointer; }
.player-sidebar .back-link:hover { color: #fff; }
.player-course-title { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.player-course-title strong { display: block; font-size: 14.5px; text-transform: none; letter-spacing: 0; color: #fff; margin-top: 2px; }
.player-progress { margin: 18px 0; }
.player-progress .row { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.player-progress .row strong { color: #fff; font-size: 12px; }
.player-progress .bar-track { background: rgba(255,255,255,.15); }
.module-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.42); margin: 16px 4px 6px; }
.lesson-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
  cursor: pointer; border-left: 2px solid transparent;
}
.lesson-item:hover { background: rgba(255,255,255,.06); }
.lesson-item.active { background: rgba(255,255,255,.1); border-left-color: var(--red-500); }
.lesson-check {
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
}
.lesson-check.done { background: var(--green-500); border-color: var(--green-500); }
.lesson-item .txt { display: flex; flex-direction: column; }
.lesson-item .txt .t { font-size: 13px; font-weight: 500; color: #fff; }
.lesson-item .txt .m { font-size: 11px; color: rgba(255,255,255,.5); }

.player-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--grey-50); }
.player-topbar {
  height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px;
  background: var(--grey-0); border-bottom: 1px solid var(--grey-100);
}
.player-topbar .crumb { font-size: 11px; color: var(--grey-500); letter-spacing: .03em; text-transform: uppercase; }
.player-topbar .lesson-title { font-size: 14.5px; font-weight: 700; color: var(--navy-800); }
.player-body { flex: 1; padding: 32px 36px; max-width: 760px; width: 100%; margin: 0 auto; }
.lesson-kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red-600); }
.lesson-meta { color: var(--grey-400); font-size: 12px; }
.lesson-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 22px; }
.lesson-heading-row .lesson-heading { margin: 0; }
.lesson-heading { font-size: 28px; font-weight: 800; color: var(--navy-800); margin: 8px 0 22px; }

.banner-block {
  background: linear-gradient(120deg, var(--navy-700), var(--blue-700));
  color: #fff; border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 18px;
}
.banner-block .eyebrow { color: var(--blue-200, #bcd8f5); opacity: .85; }
.banner-block h4 { font-size: 20px; font-weight: 700; margin: 4px 0 8px; }
.banner-block p { font-size: 14px; opacity: .9; line-height: 1.6; }

.content-block { margin-bottom: 18px; }
.content-block .img-credit { font-size: 12.5px; font-style: italic; color: var(--grey-600); text-align: center; margin-top: 8px; }
.content-block h5 { font-size: 17px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.content-block p { color: var(--grey-700); line-height: 1.7; margin-bottom: 10px; }
.content-block ul { padding-left: 20px; color: var(--grey-700); line-height: 1.8; }

/* A generic two-up layout — each side renders whatever block type it's
   given via the normal block renderer, so e.g. a download card can sit
   next to a photo. Stacks on narrow widths like the other two-column
   blocks (.text-image-block). */
.columns-block { display: flex; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; align-items: flex-start; }
.columns-block .columns-col { flex: 1 1 260px; min-width: 240px; }

.callout { border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 18px; border-left: 3px solid; }
.callout .eyebrow { margin-bottom: 6px; }
.callout p { font-size: 13.5px; line-height: 1.6; }
.callout.key { background: var(--blue-50); border-color: var(--blue-500); }
.callout.key .eyebrow { color: var(--blue-600); }
.callout.required { background: var(--red-50); border-color: var(--red-600); }
.callout.required .eyebrow { color: var(--red-600); }
.callout.note { background: var(--grey-50); border-color: var(--grey-300); }
.callout.callout-lg { padding: 22px 24px; border-left-width: 5px; }
.callout.callout-lg .eyebrow { font-size: 13px; }
.callout.callout-lg p { font-size: 16px; }
.callout.note .eyebrow { color: var(--grey-600); }

.video-block {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-700));
  border-radius: var(--radius-lg); padding: 18px; margin-bottom: 14px; color: #fff; position: relative;
  cursor: pointer; user-select: none;
}
.video-block .top-row { display: flex; justify-content: space-between; align-items: flex-start; }
.video-block .req-pill { background: var(--red-600); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); }
.video-block .watched-pill { background: var(--green-500); font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill); }
.video-block .play-wrap { display: flex; align-items: center; justify-content: center; padding: 34px 0 18px; }
.video-block .play-btn {
  width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(255,255,255,.65);
  display: flex; align-items: center; justify-content: center; font-size: 20px; transition: background .13s ease;
}
.video-block:hover .play-btn { background: rgba(255,255,255,.12); }
.video-block .video-el { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); background: #000; cursor: default; display: block; border: 0; }
.video-block .video-el.portrait { --vh: max(320px, calc(100vh - 260px)); height: var(--vh); width: min(100%, calc(var(--vh) * 9 / 16)); aspect-ratio: 9/16; margin: 0 auto; }
.video-block .cap { font-size: 13px; opacity: .85; text-align: center; }
.video-block .credit { font-size: 12.5px; font-style: italic; opacity: .7; text-align: center; margin-top: 4px; }
.video-block .title { font-weight: 700; font-size: 14.5px; margin-top: 10px; }

/* A real (src) video is the content, not a placeholder card, so it
   drops the navy gradient card and runs full width of the column
   instead of being boxed in with padding. */
.video-block-real {
  background: none; padding: 0; color: var(--navy-800); cursor: default;
}
.video-block-real .top-row { margin-bottom: 8px; }
.video-block-real .cap { color: var(--grey-600); opacity: 1; }
.video-block-real .title { color: var(--navy-800); }

.flip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; margin-bottom: 14px; }
.flip-grid.flip-grid-stack { grid-template-columns: 1fr; }
.flip-grid.flip-grid-lg { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.flip-card {
  perspective: 1000px; height: 150px; cursor: pointer;
}
.flip-grid-lg .flip-card { height: 260px; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-md);
  padding: 14px; display: flex; flex-direction: column; justify-content: space-between;
}
.flip-front, .flip-back { background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600)); color: #fff; }
.flip-back { transform: rotateY(180deg); font-size: 12.5px; line-height: 1.5; overflow-y: auto; }
.flip-back.has-photo { justify-content: flex-end; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.flip-face .tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.flip-face .lbl { font-size: 14px; font-weight: 700; }
.flip-face .cta { font-size: 11px; opacity: .75; }
.flip-grid-lg .flip-face .lbl { font-size: 17px; }
.flip-face .lbl-large { font-size: 40px; font-weight: 700; }
.flip-grid-lg .flip-icon { width: 84px; height: 84px; }
.flip-grid-lg .flip-back-icon { width: 80px; height: 80px; }

/* Always-visible step sequence — an alternative to .flip-grid for content
   that should read at a glance (photo, title, description all showing)
   instead of needing a click to reveal. */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; margin-bottom: 14px; }
.step-card {
  position: relative; display: flex; flex-direction: column; background: var(--grey-0);
  border: 1px solid var(--grey-200); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.step-card:not(:last-child)::after {
  content: ""; position: absolute; top: 75px; right: -22px; width: 14px; height: 14px;
  border-top: 3px solid var(--blue-300); border-right: 3px solid var(--blue-300); transform: rotate(45deg);
}
.step-photo { position: relative; height: 150px; background-size: cover; background-position: center; background-color: var(--grey-100); }
.step-num {
  position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--red-600); color: #fff; font-weight: 700; font-size: 14px; line-height: 30px;
  text-align: center; box-shadow: var(--shadow-sm);
}
.step-body { padding: 16px 18px 18px; }
.step-tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 4px; }
.step-title { font-size: 18px; font-weight: 700; color: var(--navy-800); margin-bottom: 6px; }
.step-desc { font-size: 13.5px; line-height: 1.65; color: var(--grey-700); }
.step-card.no-num .step-num { display: none; }

/* Larger photo variant — for card sets where the photo itself matters
   (e.g. faces, on-field action) and shouldn't be cropped as tightly. */
.steps-grid-lg-photo .step-photo { height: 260px; }
@media (max-width: 700px) {
  .steps-grid-lg-photo .step-photo { height: 200px; }
}

/* Horizontal variant: photo on the left, title + description on the
   right, stacked one per row instead of a grid — used for card sets
   where each card should read as a wide row (e.g. severe weather). */
.steps-grid.steps-grid-horizontal { grid-template-columns: 1fr; gap: 14px; }
.steps-grid-horizontal .step-card { flex-direction: row; align-items: stretch; }
.steps-grid-horizontal .step-card::after { display: none; }
.steps-grid-horizontal .step-photo { flex: 0 0 220px; height: auto; min-height: 150px; }
.steps-grid-horizontal .step-body { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 700px) {
  .steps-grid-horizontal .step-card { flex-direction: column; }
  .steps-grid-horizontal .step-photo { flex: 0 0 auto; height: 150px; }
}

.accordion-photo-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: start; }
.accordion-photo-layout.photos-right { grid-template-columns: 2fr 1fr; }
.accordion-photos { display: flex; flex-direction: column; gap: 12px; }
.accordion-photos img { width: 100%; height: auto; border-radius: var(--radius-md); cursor: zoom-in; display: block; }
@media (max-width: 700px) { .accordion-photo-layout, .accordion-photo-layout.photos-right { grid-template-columns: 1fr; } }
.accordion-item { border: 1px solid var(--grey-200); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; background: var(--grey-0); }
.accordion-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--navy-800); }
.accordion-head .chev { transition: transform .15s ease; color: var(--grey-400); }
.accordion-item.open .chev { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.accordion-item.open .accordion-body { max-height: 640px; }
.accordion-item.open .accordion-body.has-map { max-height: 2000px; }
.accordion-map { display: block; width: 100%; max-width: 900px; margin: 4px auto 0; background: #fff; border: 1px solid var(--grey-200, #e3e6ec); border-radius: var(--radius-md); cursor: zoom-in; }
.accordion-map-actions { display: flex; justify-content: space-between; gap: 12px; max-width: 900px; margin: 8px auto 0; font-size: 12px; color: var(--grey-500); }
.accordion-map-actions a { font-weight: 700; }
.topbar-action { margin-left: auto; padding: 8px 16px; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.topbar-action:hover { opacity: .9; }
@media (max-width: 700px) { .topbar-action { padding: 6px 12px; font-size: 12px; } }
.accordion-body-inner { padding: 0 16px 14px; font-size: 13px; color: var(--grey-600); line-height: 1.6; }

.quiz-block { background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.quiz-kicker { font-size: 11px; font-weight: 700; color: var(--blue-600); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.quiz-select-hint { font-size: 12px; color: var(--grey-500); margin-bottom: 10px; }
.quiz-q { font-size: 15.5px; font-weight: 700; color: var(--navy-800); margin-bottom: 14px; }
.quiz-opt {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm); margin-bottom: 8px; cursor: pointer; font-size: 13.5px; color: var(--grey-800);
  transition: border-color .13s ease, background .13s ease;
}
.quiz-opt:hover { border-color: var(--blue-300); }
.quiz-opt.selected { border-color: var(--blue-500); background: var(--blue-50); }
.quiz-opt .mark { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--grey-300); flex: 0 0 auto; }
.quiz-opt.multi .mark { border-radius: 4px; }
.quiz-opt.selected .mark { background: var(--blue-500); border-color: var(--blue-500); }
.quiz-opt.correct { border-color: var(--green-500); background: var(--green-100); }
.quiz-opt.incorrect { border-color: var(--red-500); background: var(--red-50); }
/* Matching and put-in-order knowledge checks */
.match-row, .order-row {
  display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 13.5px; color: var(--grey-800); background: var(--grey-0);
}
.match-item, .order-text { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.match-select {
  flex: 0 0 290px; width: 290px; min-width: 0; max-width: 55%; padding: 7px 10px; font: inherit; font-size: 13px; color: var(--grey-800);
  border: 1px solid var(--grey-300); border-radius: var(--radius-sm); background: var(--grey-0);
}
.match-select:disabled { opacity: .85; }
.order-num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-50); color: var(--blue-600);
  font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.order-btns { flex: 0 0 auto; display: inline-flex; gap: 4px; }
.order-btn {
  width: 28px; height: 28px; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); background: var(--grey-0);
  color: var(--grey-600); font-size: 11px; cursor: pointer; line-height: 1;
}
.order-btn:hover:not(:disabled) { border-color: var(--blue-400); color: var(--blue-600); }
.order-btn:disabled { opacity: .35; cursor: default; }
.match-row.correct, .order-row.correct { border-color: var(--green-500); background: var(--green-100); }
.match-row.incorrect, .order-row.incorrect { border-color: var(--red-500); background: var(--red-50); }
@media (max-width: 600px) {
  .match-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .match-select { flex: none; max-width: none; width: 100%; }
}
.quiz-feedback { font-size: 13px; padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 8px; }
.quiz-feedback.ok { background: var(--green-100); color: var(--green-600); }
.quiz-feedback.bad { background: var(--red-50); color: var(--red-700); }

.player-footer {
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; background: var(--grey-0); border-top: 1px solid var(--grey-100);
}
.player-footer .hint { font-size: 12.5px; color: var(--grey-500); }

/* ---------- Dashboard ---------- */
.role-tabs { display: flex; gap: 6px; margin-bottom: 22px; background: var(--grey-100); padding: 4px; border-radius: var(--radius-md); width: fit-content; }
.role-tab { padding: 9px 18px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--grey-600); cursor: pointer; border: none; background: none; }
.role-tab.active { background: var(--grey-0); color: var(--navy-800); box-shadow: var(--shadow-sm); }
.role-tab .n { color: var(--grey-400); font-weight: 500; margin-left: 4px; }

.level-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.level-tabs select { margin-left: auto; font-size: 12px; padding: 4px 8px; height: 28px; width: auto; }
.level-tab {
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600;
  color: var(--grey-600); cursor: pointer; border: 1px solid var(--grey-200); background: var(--grey-0);
}
.level-tab.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.level-tab .n { color: var(--grey-400); font-weight: 500; margin-left: 4px; }
.level-tab.active .n { color: rgba(255,255,255,.65); }

.level-select {
  height: 20px; width: 88px; max-width: 88px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 0 2px;
  font-size: 10px; background: var(--grey-0); color: var(--grey-700); outline: none;
}
.level-select:focus { border-color: var(--blue-400); }
.perm-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--grey-100); color: var(--grey-500); white-space: nowrap; }
.perm-pill.systemAdmin { background: var(--navy-700); color: #fff; }
.perm-pill.admin { background: var(--blue-100, #dbeafe); color: var(--blue-600, #1d4ed8); }
.perm-pill.educator { background: var(--green-100); color: var(--green-600); }
.perm-select { width: 104px; max-width: 104px; }
.perm-select.systemAdmin { font-weight: 700; color: var(--navy-700); }
.coach-status-select.cleared { border-color: var(--green-500); color: var(--green-600); font-weight: 600; }
.coach-status-select.not-cleared { border-color: var(--amber-500); color: var(--amber-600); font-weight: 600; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--grey-0); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat-card .lbl { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey-400); margin-bottom: 6px; }
.stat-card .val { font-size: 24px; font-weight: 800; color: var(--navy-800); }
.stat-card .sub { font-size: 12px; color: var(--grey-500); }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; }
.toolbar input, .toolbar select {
  height: 38px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 0 12px;
  background: var(--grey-0); font-size: 13px; outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--blue-400); }
/* Custom chevron so it sits 12px in from the right edge instead of hugging it. */
.toolbar select {
  -webkit-appearance: none; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23596579' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar .spacer { flex: 1; }

.switch-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--grey-700); user-select: none; }
.switch-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-toggle .switch-slider {
  position: relative; width: 38px; height: 22px; border-radius: var(--radius-pill);
  background: var(--grey-200); transition: background .18s ease; flex: 0 0 auto;
}
.switch-toggle .switch-slider::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform .18s ease; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.switch-toggle input:checked + .switch-slider { background: var(--blue-500); }
.switch-toggle input:checked + .switch-slider::before { transform: translateX(16px); }
.switch-toggle input:focus-visible + .switch-slider { outline: 2px solid var(--blue-400); outline-offset: 2px; }

.col-picker { position: relative; }
.col-picker-panel {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 260px; max-height: 360px;
  overflow-y: auto; background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: 10px;
}
.col-picker-panel.hidden { display: none; }
.col-picker-head {
  display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px;
  border-bottom: 1px solid var(--grey-50); margin-bottom: 6px;
}
.col-picker-head span { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-400); }
.col-picker-head button { background: none; border: none; color: var(--blue-600); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.col-picker-head button:hover { text-decoration: underline; }
.col-picker-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey-400);
  padding: 8px 4px 4px;
}
.col-picker-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--grey-700); cursor: pointer; user-select: none;
}
.col-picker-item:hover { background: var(--grey-25); }
.col-picker-item input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--blue-500); flex: 0 0 auto; }

.table-wrap {
  background: var(--grey-0); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: auto; max-height: 85vh;
}
table.progress-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 640px; }
table.progress-table th {
  text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--grey-500); padding: 12px 16px; border-bottom: 1px solid var(--grey-100); white-space: nowrap;
  background: var(--grey-25);
}
table.progress-table th.sortable { cursor: pointer; user-select: none; }
table.progress-table th.sortable:hover { color: var(--navy-800); }
table.progress-table th.sortable.active { color: var(--blue-600); }
table.progress-table th.th-check, table.progress-table td.td-check { width: 44px; padding-right: 4px; }
table.progress-table th.group-th {
  text-align: center; background: var(--grey-100); border-left: 1px solid var(--grey-0); border-right: 1px solid var(--grey-0);
  cursor: pointer; user-select: none;
}
table.progress-table th.group-th:hover { color: var(--navy-800); background: var(--grey-150, var(--grey-100)); }
table.progress-table th.group-th .chev {
  display: inline-block; font-size: 16px; line-height: 1; vertical-align: -2px; margin-right: 4px;
  transition: transform .15s ease; transform: rotate(-90deg);
}
table.progress-table th.group-th .chev.open { transform: rotate(0deg); }
table.progress-table th.group-th.collapsed { background: var(--blue-50); color: var(--blue-600); }
table.progress-table th.group-spacer-th, table.progress-table td.group-spacer-td {
  width: 36px; text-align: center; background: var(--blue-50);
}
table.progress-table td.group-spacer-td::after { content: "···"; color: var(--grey-400); font-weight: 700; letter-spacing: 1px; }
table.progress-table td { padding: 12px 16px; border-bottom: 1px solid var(--grey-50); font-size: 13.5px; vertical-align: middle; }
table.progress-table tr:last-child td { border-bottom: none; }
table.progress-table input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--blue-500); }

/* Freeze the header row(s) so module titles stay visible while scrolling
   down through coaches, and freeze the checkbox + name columns so the
   person's name stays visible while scrolling across module columns.
   Together they keep "who" and "which module" both on screen at once. */
table.progress-table thead th { position: sticky; top: 0; z-index: 4; }
table.progress-table thead tr.thead-row2 th { top: var(--head-row1-h, 41px); }

table.progress-table .col-check { position: sticky; left: 0; }
table.progress-table .col-name { position: sticky; left: 0; }
table.progress-table.has-check .col-name { left: var(--check-col-w, 44px); }

table.progress-table td.col-check, table.progress-table td.col-name { position: sticky; z-index: 2; background: var(--grey-0); }
table.progress-table th.col-check, table.progress-table th.col-name { z-index: 6; }
table.progress-table td.col-name { box-shadow: 2px 0 4px -2px rgba(10,27,49,.12); }

.bulk-bar {
  display: flex; align-items: center; gap: 10px; background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.bulk-bar #bulk-count { font-size: 13px; font-weight: 600; color: var(--navy-800); margin-right: 4px; }
.bulk-bar select {
  height: 34px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 0 10px;
  font-size: 12.5px; background: var(--grey-0); color: var(--grey-700); outline: none;
}
.student-cell { display: flex; align-items: center; gap: 10px; }
.student-cell-link { cursor: pointer; border-radius: var(--radius-sm); margin: -4px; padding: 4px; }
.student-cell-link:hover { background: var(--grey-50); }
.student-cell-link:hover .nm { color: var(--blue-600); }
.student-cell .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-600); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 auto; }
.student-cell .nm { font-weight: 600; color: var(--navy-800); }
.student-cell .sub { font-size: 11.5px; color: var(--grey-400); white-space: normal; max-width: 280px; line-height: 1.5; }
.status-pill { display: inline-block; min-width: 62px; text-align: center; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); }
.status-pill.complete { background: var(--green-100); color: var(--green-600); }
.status-pill.not_started { background: var(--grey-100); color: var(--grey-500); }
.status-pill.issue { background: var(--red-100, #fde2e2); color: var(--red-600); }

/* In-progress pills double as a mini progress bar: a hard-stop gradient
   fills to the module's actual completion percentage, and the native
   title tooltip spells out the exact number on hover. */
.status-pill.in_progress {
  color: #c13e16; cursor: default;
  background: linear-gradient(to right, #f9b869 var(--pct, 0%), #fde7c2 var(--pct, 0%));
  transition: background .2s ease;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--grey-400); font-size: 13.5px; }

.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--green-600); font-weight: 600; }
.live-dot .d { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.scenario-opt-row { display: flex; flex-direction: column; gap: 8px; }
.scenario-letter { display:inline-flex; flex:0 0 22px; width:22px; height:22px; border-radius:50%; background:var(--grey-100); color:var(--grey-600); font-size:11px; font-weight:700; align-items:center; justify-content:center; margin-right:8px; }

/* ---------- Quote, text+image, lightbox, checklist ---------- */
/* Bold italic slogan variant of a quote (block option tagline: true) */
.quote-block.tagline { font-family: var(--font-primary); font-weight: 800; font-style: italic; font-size: clamp(15px, 3.6vw, 25px); line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; color: var(--blue-500); }
@media (max-width: 600px) { .quote-block.tagline { white-space: normal; text-wrap: balance; font-size: 20px; } }
.quote-block {
  font-family: var(--font-script); font-size: 26px; color: var(--blue-600);
  line-height: 1.4;
}

.text-image-block { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.text-image-block.img-left { flex-direction: row-reverse; }
.text-image-block .ti-text { flex: 1 1 260px; min-width: 240px; }
.text-image-block .ti-logo { display: block; max-width: 140px; max-height: 50px; object-fit: contain; margin: -28px 0 12px; }
.text-image-block .ti-text h5 { font-size: 16px; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.text-image-block .ti-text p { color: var(--grey-700); line-height: 1.7; }
.text-image-block .ti-image-wrap { flex: 1 1 260px; min-width: 240px; }
.text-image-block .ti-image {
  aspect-ratio: 4/3; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  position: relative; overflow: hidden; cursor: pointer;
}
.text-image-block .ti-image img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.text-image-block .ti-placeholder { cursor: default; }
.text-image-block .ti-caption {
  position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; color: rgba(255,255,255,.85);
  background: rgba(10,15,22,.45); padding: 3px 9px; border-radius: var(--radius-pill);
}
.text-image-block .ti-credit { margin-top: 8px; font-size: 12.5px; font-style: italic; color: var(--grey-600); text-align: center; }

/* Shared one-shot diagonal shine sweep, used on the chart lightbox and the
   flip-card zoom modal when they open. */
.shine-sweep {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 2;
}
.shine-sweep::after {
  content: ""; position: absolute; top: -60%; bottom: -60%; left: -60%; width: 65%;
  background: linear-gradient(75deg, transparent, rgba(255,255,255,.12) 35%, rgba(255,255,255,.28) 50%, rgba(255,255,255,.12) 65%, transparent);
  transform: translateX(-120%) skewX(-18deg); opacity: 0;
}
.shine-sweep.play::after { animation: shineSweep 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes shineSweep {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  15% { opacity: .8; }
  70% { opacity: .8; }
  100% { transform: translateX(220%) skewX(-18deg); opacity: 0; }
}

.lightbox-scrim {
  position: fixed; inset: 0; background: rgba(10,15,22,.82); z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 32px;
  opacity: 0; transition: opacity .26s cubic-bezier(.2,.8,.2,1); cursor: zoom-out;
}
.lightbox-scrim.in { opacity: 1; }
.lightbox-scrim.out { opacity: 0; }
.lightbox-fig { position: relative; max-width: 90vw; max-height: 85vh; margin: 0; transform: scale(.85); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
.lightbox-scrim.in .lightbox-fig { transform: scale(1); }
.lightbox-scrim.out .lightbox-fig { transform: scale(.85); }
.lightbox-fig img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-md); display: block; background: #fff; }
.lightbox-fig figcaption { color: #fff; text-align: center; font-size: 13px; margin-top: 10px; opacity: .85; }

.checklist-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px; cursor: pointer; border-bottom: 1px solid var(--grey-50);
}
.checklist-row:last-child { border-bottom: none; }
.checklist-box {
  width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid var(--grey-300); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff;
}
.checklist-row.checked .checklist-box { background: var(--green-500); border-color: var(--green-500); }
.checklist-row.checked .checklist-label { text-decoration: line-through; color: var(--grey-400); }
.checklist-label { font-size: 13.5px; color: var(--grey-800); }

.field-row { padding: 9px 4px; border-bottom: 1px solid var(--grey-50); font-size: 13.5px; color: var(--grey-800); }
.field-row:last-child { border-bottom: none; }
.field-link { color: var(--red-600); font-weight: 600; text-decoration: underline; }
.field-address { color: var(--grey-600, var(--grey-800)); }
.field-note { font-size: 12.5px; color: var(--grey-800); margin-top: 2px; font-weight: 600; }

.flip-back-term { display: block; color: var(--red-600); font-weight: 700; font-size: 13px; margin-bottom: 6px; }

/* ---------- Audio, download, link button, upload, sign-off, form blocks ---------- */
.audio-block { background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; margin-bottom: 18px; }
.audio-caption { font-size: 13.5px; font-weight: 600; color: var(--navy-800); margin-bottom: 10px; }
.audio-empty { font-size: 13px; color: var(--grey-400); font-style: italic; }

.download-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--grey-50); }
.download-row:last-child { border-bottom: none; }
.download-ext {
  width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-700);
  display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; flex: 0 0 auto;
}
.download-meta { flex: 1; min-width: 0; }
.download-meta .nm { font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
.download-meta .sub { font-size: 11.5px; color: var(--grey-400); }

.link-button {
  display: inline-flex; align-items: center; justify-content: center; background: var(--navy-700); color: #fff;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; text-decoration: none;
}
.link-button:hover { background: var(--navy-800); text-decoration: none; }

.upload-btn {
  display: inline-flex; align-items: center; justify-content: center; background: var(--navy-700); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.upload-btn:hover { background: var(--navy-800); }
.upload-status { margin-top: 12px; font-size: 13px; color: var(--green-600); display: flex; align-items: center; gap: 8px; }
.upload-check { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: var(--green-500); color: #fff; align-items: center; justify-content: center; font-size: 11px; }
.upload-status a.upload-remove { font-size: 12px; color: var(--grey-500); }
.upload-photo-preview {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin-bottom: 12px;
  background: var(--grey-100); border: 1px solid var(--grey-200);
}
.upload-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }

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

.form-fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* ---------- Flip card zoom-and-flip modal ---------- */
.flipzoom-scrim {
  position: fixed; inset: 0; z-index: 9500; background: rgba(10,15,22,.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .26s cubic-bezier(.2,.8,.2,1); cursor: zoom-out;
}
.flipzoom-scrim.in { opacity: 1; }
.flipzoom-card {
  width: min(50vw, 640px); height: min(50vh, 480px); min-width: 280px; min-height: 320px;
  perspective: 1400px; cursor: pointer;
  transform: scale(.35); opacity: 0;
  transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .38s cubic-bezier(.2,.8,.2,1);
}
.flipzoom-card.zoom-in { transform: scale(1); opacity: 1; }
.flipzoom-card.zoom-out { transform: scale(.35); opacity: 0; }
.flipzoom-inner {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.4,.1,.2,1);
}
.flipzoom-inner.flipped { transform: rotateY(180deg); }
.flipzoom-face {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
}
.flipzoom-front {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  color: #fff; justify-content: space-between; overflow: hidden;
}
.flipzoom-front .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.flipzoom-front .lbl { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.25; }
.flipzoom-front .lbl-large { font-size: clamp(30px, 4.2vw, 46px); }
.flipzoom-front .cta { font-size: 13px; opacity: .75; }
.flipzoom-back {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  color: #fff; transform: rotateY(180deg); justify-content: center; gap: 10px; overflow-y: auto; text-align: center; align-items: center;
}
.flipzoom-back.has-photo { justify-content: flex-end; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.flipzoom-back .flip-back-term { color: var(--red-600); font-size: clamp(18px, 2.4vw, 26px); margin-bottom: 4px; }
.flipzoom-back .def { font-size: clamp(14px, 1.6vw, 17px); line-height: 1.6; color: rgba(255,255,255,.92); max-width: 46ch; }
.flipzoom-audio { margin-top: 14px; width: min(90%, 340px); cursor: default; }
.flip-icon { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; object-fit: contain; opacity: .9; }
.flipzoom-icon { top: 28px; right: 28px; width: 72px; height: 72px; }
.flipzoom-icon.icon-xl { width: 110px; height: 110px; }
.flip-back-icon { display: block; width: 44px; height: 44px; object-fit: contain; margin: 0 auto 8px; flex: 0 0 auto; }
.flipzoom-back-icon { width: 120px; height: 120px; margin-bottom: 4px; }
.flipzoom-back-icon.icon-xl { width: 180px; height: 180px; }

@media (max-width: 700px) {
  .flipzoom-card { width: 88vw; height: 64vh; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
}

.try-again { font-weight: 600; }

/* ---------- Certificate screen ---------- */
.cert-hero {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  border-radius: var(--radius-xl); padding: 48px 40px; text-align: center; color: #fff;
}
.cert-crest {
  width: 72px; height: 72px; border-radius: var(--radius-md); background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 18px;
}
.cert-crest-img { width: 62%; height: 62%; object-fit: contain; }
.cert-hero .eyebrow { color: rgba(255,255,255,.75); justify-content: center; display: flex; }
.cert-script { font-family: var(--font-script); font-size: 56px; margin: 6px 0 14px; }
.cert-hero p { max-width: 52ch; margin: 0 auto 28px; color: rgba(255,255,255,.85); font-size: 15px; line-height: 1.6; }
.cert-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Any .avatar can render a photo instead of initials (see TSC_Util.avatarHtml) */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Profile ---------- */
.profile-rows { display: flex; flex-direction: column; gap: 8px; }
.profile-row {
  display: flex; justify-content: space-between; align-items: center; background: var(--grey-50);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.profile-row span { font-size: 13px; color: var(--grey-500); }
.profile-row strong { font-size: 13px; font-weight: 600; color: var(--navy-800); text-align: right; }
.profile-row strong a { color: var(--blue-600); }

.profile-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
  color: #fff; margin-bottom: 24px;
}
.profile-hero-avatar { position: relative; flex: 0 0 auto; }
.profile-hero-avatar .avatar { border: 3px solid #fff; background: var(--navy-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; border-radius: 50%; }
.profile-avatar-label { position: relative; display: block; cursor: pointer; }
.profile-avatar-edit {
  position: absolute; right: -4px; bottom: -4px; background: #fff; color: var(--navy-700);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 0 10px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
}
.profile-hero-id { flex: 1 1 240px; min-width: 240px; }
.profile-role-badge {
  display: inline-block; background: var(--red-600); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 0 12px; height: 26px; line-height: 26px;
  border-radius: var(--radius-pill);
}
.coach-status-badge {
  display: inline-block; margin-left: 8px; background: rgba(255,255,255,.22); color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; padding: 0 12px; height: 26px; line-height: 26px;
  border-radius: var(--radius-pill); border: none; font-family: inherit;
}
.coach-status-badge.cleared { background: var(--green-500); }
.coach-status-badge.toggle { cursor: pointer; }
.coach-status-badge.toggle:hover { filter: brightness(1.1); }
.profile-hero-sub { display: inline-block; margin-left: 10px; font-size: 13px; color: rgba(255,255,255,.75); }
.profile-hero-sub span { white-space: nowrap; }
@media (max-width: 860px) {
  .profile-hero-sub { display: block; margin-left: 0; margin-top: 8px; }
  .profile-hero-sub .sep { display: none; }
  .profile-hero-sub span:not(.sep) { display: block; }
}
.fin-slots { display: flex; flex-direction: column; }
.fin-slot { padding: 12px 0; border-top: 1px solid var(--grey-100); }
.fin-slot:first-child { border-top: none; padding-top: 0; }
.fin-slot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.fin-slot-label { font-size: 14px; font-weight: 600; color: var(--navy-800); }
.fin-slot .doc-row { border-top: none; padding: 6px 0; }
.profile-hero-name { font-size: 36px; line-height: 1.15; font-weight: 700; color: #fff; margin: 10px 0 14px; }
.profile-hero-progress { max-width: 420px; }
.profile-hero-progress .track { height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,.18); overflow: hidden; }
.profile-hero-progress .fill { height: 100%; background: #fff; border-radius: var(--radius-pill); transition: width .32s cubic-bezier(.2,.8,.2,1); }
.profile-hero-progress .lbl { margin-top: 8px; font-size: 13px; font-weight: 600; color: #fff; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,340px), 1fr)); gap: 24px; }
.profile-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.profile-card { background: var(--grey-0); border: 1px solid var(--grey-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.profile-card-title { font-size: 18px; font-weight: 700; color: var(--navy-800); margin-bottom: 14px; }
.profile-card-count { font-size: 13px; font-weight: 500; color: var(--grey-500); margin-left: 6px; }

.team-rows { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--grey-100); }
.team-row:first-child { border-top: none; padding-top: 0; }
.team-chip {
  flex: 0 0 auto; min-width: 36px; height: 24px; padding: 0 6px; border-radius: var(--radius-sm);
  background: var(--blue-50); color: var(--blue-600); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.team-row-name { font-size: 14px; font-weight: 600; color: var(--navy-800); }

.course-status-block + .course-status-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--grey-100); }
.course-status-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  width: 100%; background: none; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; text-align: left;
}
.course-status-block.open .course-status-head { margin-bottom: 8px; }
.course-status-head-main { display: flex; align-items: flex-start; gap: 8px; }
.course-status-head .chev { flex: 0 0 auto; display: inline-block; font-size: 13px; color: var(--grey-400); margin-top: 2px; transition: transform .15s ease; transform: rotate(-90deg); }
.course-status-head .chev.open { transform: rotate(0deg); }
.course-status-title { font-size: 15px; font-weight: 700; color: var(--navy-800); }
.course-status-meta { font-size: 12.5px; color: var(--grey-500); margin-top: 2px; }
.course-status-body { overflow: hidden; }
.course-status-block:not(.open) .course-status-body { display: none; }
.course-progress-track { height: 6px; border-radius: var(--radius-pill); background: var(--grey-100); overflow: hidden; margin-bottom: 12px; }
.course-progress-fill { height: 100%; border-radius: var(--radius-pill); transition: width .32s cubic-bezier(.2,.8,.2,1); }
.lesson-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 10px; }
.lesson-dot {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 10px; color: #fff; font-weight: 700;
}
.lesson-dot.complete { background: var(--green-500); }
.lesson-dot.in_progress { background: var(--blue-50); border: 2px solid var(--blue-600); }
.lesson-dot.not_started { background: transparent; border: 2px solid var(--grey-300); }
.lesson-row-title { flex: 1; font-size: 14px; color: var(--navy-800); }
.lesson-row-status { font-size: 12.5px; color: var(--grey-500); }

.profile-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.profile-card-title-row .profile-card-title { margin-bottom: 0; }
.course-status-actions { display: flex; gap: 6px; }
.course-status-actions .btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }

.requirement-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.req-filter-pill {
  height: 30px; padding: 0 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600;
  background: #fff; color: var(--grey-700); border: 1px solid var(--grey-200); cursor: pointer;
}
.req-filter-pill.active { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.requirement-rows { display: flex; flex-direction: column; }
.requirement-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--grey-100);
}
.requirement-row:first-child { border-top: none; padding-top: 0; }
.requirement-row.hidden { display: none; }
.requirement-title { font-size: 15px; font-weight: 600; color: var(--navy-800); }
.requirement-meta { font-size: 13px; color: var(--grey-500); margin-top: 2px; }
.requirement-toggle { cursor: pointer; border: none; }

.doc-upload-label input[type="file"] { display: none; }
.doc-rows { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--grey-100); }
.doc-row:first-child { border-top: none; padding-top: 0; }
.doc-chip {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--blue-50);
  color: var(--blue-600); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.doc-row-main { flex: 1; min-width: 0; }
.doc-row-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row-name a { color: var(--navy-800); }
.doc-row-name a:hover { color: var(--blue-600); }
.doc-row-meta { font-size: 13px; color: var(--grey-500); margin-top: 2px; }
.doc-remove {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: none; background: none;
  color: var(--grey-400); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.doc-remove:hover { background: var(--red-50); color: var(--red-600); }
.doc-empty { font-size: 13.5px; color: var(--grey-500); }

.fin-doc-upload-label input[type="file"] { display: none; }
.fin-doc-note { font-size: 12.5px; font-style: italic; color: var(--grey-500); margin-bottom: 10px; }

/* ---------- Sign-out confirmation dialog ---------- */
.confirm-scrim {
  position: fixed; inset: 0; background: rgba(10,15,22,.45); z-index: 70;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.confirm-card {
  width: 100%; max-width: 340px; background: var(--grey-0); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.confirm-title { font-size: 16px; font-weight: 700; color: var(--navy-800); }
.confirm-card p { font-size: 13.5px; color: var(--grey-500); margin-bottom: 8px; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn { flex: 1; }

/* ---------- Mobile bottom tab bar (course dashboard/catalog shell) ---------- */
.mobile-tabbar { display: none; }
.player-menu-toggle { display: none; }

@media (max-width: 860px) {
  .app-sidebar { display: none; }
  .app-content, .player-body { padding: 16px 16px 84px; }
  .text-image-block, .text-image-block.img-left { flex-direction: column; }
  /* The desktop row's large negative top margin on .ti-logo only makes
     sense while align-items:center is vertically centering ti-text
     against a taller ti-image beside it — once the block stacks into a
     column, that margin has nothing to counteract and just pulls the
     logo up out of the block entirely. */
  .text-image-block .ti-logo { margin-top: -8px; }
  .cert-hero { padding: 32px 22px; }
  .cert-script { font-size: 40px; }
  .app-shell { position: relative; }

  .app-topbar {
    background: linear-gradient(120deg, var(--navy-800), var(--navy-700) 55%, var(--blue-600));
    border-bottom: none;
  }
  .app-topbar h1 { color: #fff; }
  .topbar-logo { display: block; width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
  .topbar-signout { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); }
  .viewas { color: rgba(255,255,255,.85); }
  .viewas span { display: none; }
  .topbar-signout:hover { background: rgba(255,255,255,.1); color: #fff; }
  .topbar-help.active { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); color: #fff; }

  .mobile-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--grey-0); border-top: 1px solid var(--grey-100);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: none; background: none; padding: 6px 4px; min-height: 44px;
    font-size: 10.5px; font-weight: 600; color: var(--grey-400);
  }
  .mobile-tab .ic { font-size: 17px; }
  .mobile-tab.active { color: var(--blue-600); }

  .player-footer, .player-topbar { padding-left: 16px; padding-right: 16px; }

  /* Off-canvas course-contents drawer */
  .player-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 61;
    margin-left: -300px; transition: margin-left .2s cubic-bezier(.2,.8,.2,1);
    box-shadow: none;
  }
  .player-sidebar.open { margin-left: 0; box-shadow: var(--shadow-xl); }
  .player-scrim {
    display: none; position: fixed; inset: 0; z-index: 60; background: rgba(10,15,22,.45);
    backdrop-filter: blur(3px);
  }
  .player-scrim.open { display: block; }
  .player-menu-toggle {
    display: inline-flex; width: 36px; height: 36px; border-radius: var(--radius-sm);
    border: 1px solid var(--grey-200); background: var(--grey-0); align-items: center; justify-content: center;
    margin-right: 10px; flex: 0 0 auto; cursor: pointer;
  }
}

/* Cleared / not-cleared mark under the dashboard avatar */
.student-cell .avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 0 0 auto; }
.clear-mark { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; }
.clear-mark.ok { background: var(--green-500); }
.clear-mark.no { background: var(--red-600); }

/* Module on/off (Educator+) */
.module-toggle-note { font-size: 13px; color: var(--grey-500); background: var(--grey-100, #f4f5f7); border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; }
.course-card-wrap { position: relative; display: flex; flex-direction: column; }
.course-card-wrap > .course-card { flex: 1; width: 100%; }
.course-card.is-hidden-module { opacity: .55; }
.sidebar-link.is-hidden-module { opacity: .5; font-style: italic; }
.module-switch { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 6px; border-radius: 999px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-md); font-size: 11px; font-weight: 700; color: var(--grey-700, #333); cursor: pointer; }
.module-switch input { position: absolute; opacity: 0; pointer-events: none; }
.module-switch-track { width: 30px; height: 16px; border-radius: 999px; background: var(--grey-400, #aab); position: relative; transition: background .15s; }
.module-switch-knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.module-switch input:checked + .module-switch-track { background: var(--green-500, #2e9e5b); }
.module-switch input:checked + .module-switch-track .module-switch-knob { transform: translateX(14px); }
.module-switch input:focus-visible + .module-switch-track { outline: 2px solid var(--blue-600, #1a56db); outline-offset: 2px; }

/* Dashboard: module turned off for learners */
th.col-module-hidden, td.col-module-hidden { background: rgba(0,0,0,.06); }
th.col-module-hidden::after { content: " (hidden)"; font-weight: 500; opacity: .7; }

/* Manage Modules page */
.role-tabs { display: flex; gap: 6px; margin: 0 0 18px; flex-wrap: wrap; }
.role-tab { border: 1px solid var(--grey-200, #d8dbe0); background: var(--grey-0, #fff); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 13px; font-weight: 600; color: var(--grey-600, #555); cursor: pointer; }
.role-tab.active { background: var(--blue-600, #1a56db); border-color: var(--blue-600, #1a56db); color: #fff; }
.course-group-label.static { cursor: default; }
.module-manage-list { background: var(--grey-0, #fff); border: 1px solid var(--grey-100, #eee); border-radius: var(--radius-lg, 12px); overflow: hidden; margin-bottom: 8px; }
.module-manage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--grey-100, #eee); }
.module-manage-row:first-child { border-top: 0; }
.module-manage-row.is-hidden-module { opacity: .6; }
.module-manage-title { font-weight: 600; font-size: 14px; }
.module-switch.inline { position: static; box-shadow: none; background: transparent; flex-shrink: 0; }
.course-group-label.static { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-manage-title { flex: 1 1 200px; }
.module-manage-title .muted { color: var(--grey-500); font-weight: 400; font-style: italic; }
.module-level-boxes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; }
.module-level-boxes label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }

/* ---------- Roster: Add user / Import users ---------- */
.confirm-card.roster-card { max-width: 620px; max-height: calc(100vh - 40px); overflow: auto; gap: 12px; }
.roster-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.roster-card-body { display: flex; flex-direction: column; gap: 12px; }
.roster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.roster-grid .roster-wide { grid-column: 1 / -1; }
.roster-team-add { display: flex; gap: 8px; }
.roster-team-add input { flex: 1; }
.roster-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.roster-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--blue-50); color: var(--blue-700); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 12.5px; }
.roster-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 6px; }
.roster-note { font-size: 13.5px; color: var(--grey-500); margin: 0; }
.roster-pw { font-family: ui-monospace, Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: .08em; background: var(--grey-50); border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; user-select: all; }
.roster-import-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.roster-file { cursor: pointer; display: inline-flex; align-items: center; }
.roster-filename { font-size: 12.5px; color: var(--grey-500); }
.roster-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey-800); cursor: pointer; }
.roster-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-count { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grey-100); color: var(--grey-800); }
.pill-count.ok { background: var(--green-100); color: var(--green-600); }
.pill-count.bad { background: var(--red-50); color: var(--red-700); }
.roster-preview-wrap { max-height: 260px; overflow: auto; border: 1px solid var(--grey-100); border-radius: var(--radius-sm); }
table.roster-preview { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.roster-preview th, table.roster-preview td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--grey-50); white-space: nowrap; }
table.roster-preview th { position: sticky; top: 0; background: var(--grey-50); color: var(--grey-500); font-weight: 600; }
table.roster-preview tr.error td { background: var(--red-50); color: var(--red-700); }
table.roster-preview tr.skip td { color: var(--grey-400); }
@media (max-width: 560px) { .roster-grid { grid-template-columns: 1fr; } }

/* ---------- Roster: edit, archive, rollover, history ---------- */
.confirm-card.roster-card.wide { max-width: 860px; }
.field-hint-inline { font-weight: 400; color: var(--grey-400); font-size: 12px; }
.roster-warn { background: #fff4e0; color: #8a5300; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 4px; }
.roster-extra { border-top: 1px solid var(--grey-100); margin-top: 14px; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.roster-extra-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.roster-extra-row .roster-note { flex: 1 1 240px; }
.roster-welcome-list { max-height: 220px; overflow: auto; border: 1px solid var(--grey-100); border-radius: var(--radius-sm); }
.roster-welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--grey-50); font-size: 13px; }
.roster-welcome-row:last-child { border-bottom: 0; }
.roster-filter { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--grey-200, #d8dde5); border-radius: var(--radius-sm); font-size: 13.5px; }
.roster-preview-wrap.tall { max-height: 340px; }
table.roster-preview.wrap td { white-space: normal; }
table.roster-preview tr.hidden { display: none; }
table.roster-preview tr.warn td { background: #fff4e0; color: #8a5300; }
table.roster-preview input.ro-new { width: 100%; min-width: 180px; height: 28px; padding: 0 8px; border: 1px solid var(--grey-200, #d8dde5); border-radius: 6px; font-size: 12.5px; }
.pill-count.warn { background: #fff4e0; color: #8a5300; }
.profile-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.archived-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--grey-100); color: var(--grey-500); border-radius: 999px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
tr.row-archived td { opacity: .55; }
.row-edit-link { border: 0; background: none; color: var(--blue-600); font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 2px 0 0; display: block; }
.row-edit-link:hover { text-decoration: underline; }
.roster-menu { min-width: 200px; padding: 6px; right: 0; left: auto; }
.roster-menu-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; font-size: 13.5px; color: var(--grey-800); border-radius: 6px; cursor: pointer; }
.roster-menu-item:hover { background: var(--grey-25); }
.toolbar-actions { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.toolbar-actions-row { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* Compliance report */
.cr-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cr-filters .roster-filter { flex: 1 1 220px; margin: 0; }
.cr-item { font-size: 13px; line-height: 1.4; }
.cr-item.cr-expired b, .cr-item.cr-issue b { color: #B42318; }
.cr-item.cr-expiring b { color: #B54708; }
.cr-item.cr-missing b { color: var(--grey-800); }
.cr-team { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cr-t-ready { background: #E7F6EC; color: #0F6B33; }
.cr-t-soon { background: #FEF3E2; color: #B54708; }
.cr-t-notready { background: #FDECEA; color: #B42318; }
.cr-t-nocoach { background: var(--grey-25); color: var(--grey-800); }

/* Dashboard toolbar: two compact lines (filters, then actions) */
.toolbar-compact { gap: 8px; margin-bottom: 10px; }
.toolbar-compact input, .toolbar-compact select { height: 30px; font-size: 12px; padding: 0 10px; }
.toolbar-compact select { padding-right: 26px; background-position: right 9px center; }
.toolbar-compact .grow { flex: 0 1 260px; min-width: 160px; }
.toolbar-compact .btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.toolbar-compact .switch-toggle { font-size: 12px; gap: 7px; }
.toolbar-compact .switch-toggle .switch-slider { width: 30px; height: 18px; }
.toolbar-compact .switch-toggle .switch-slider::before { width: 14px; height: 14px; }
.toolbar-compact .switch-toggle input:checked + .switch-slider::before { transform: translateX(12px); }
.toolbar-actions-line { margin-bottom: 16px; }

/* New / Returning tag, contact visibility, DOB editor */
.tenure-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: var(--radius-pill); white-space: nowrap; }
.tenure-badge.new { background: #dbeafe; color: #1e5aa8; }
.tenure-badge.mini { font-size: 8.5px; padding: 1px 6px; margin-top: 3px; line-height: 1.3; }
.profile-hero-name .tenure-badge { font-size: 12px; padding: 3px 11px; margin-left: 12px; vertical-align: middle; }
.contact-visibility { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.contact-vis-note { font-size: 12.5px; color: var(--grey-500); }
.contact-vis-note.hidden-info { color: #B42318; }
.dob-editor { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.dob-editor.hidden { display: none; }
.dob-editor input { height: 32px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 0 10px; font-size: 13px; }
.dob-edit-link { display: inline; margin-left: 8px; }
.contact-toggle-field .switch-toggle { align-items: center; }

.stat-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-row .dash-stat-grid { margin-bottom: 0; flex: 1 1 360px; }
.stat-row .contacts-btn { flex: 0 0 auto; text-decoration: none; }
.stat-row .contacts-btn { height: 26px; padding: 0 10px; font-size: 11.5px; display: inline-flex; align-items: center; }
table.contact-sheet { table-layout: auto; width: 100%; }
table.contact-sheet th:nth-child(-n+3), table.contact-sheet td:nth-child(-n+3) { white-space: nowrap; }
table.contact-sheet td:nth-child(n+4) { white-space: normal; }
table.contact-sheet th:nth-child(1), table.contact-sheet td:nth-child(1) { min-width: 200px; }
table.contact-sheet th:nth-child(3), table.contact-sheet td:nth-child(3) { min-width: 130px; }

.lic-editor { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lic-editor.hidden, #lic-other.hidden { display: none; }
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 12.5px; }
.lic-opt { display: flex; gap: 6px; align-items: center; }
#lic-other { height: 32px; width: 100%; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); padding: 0 10px; font-size: 13px; }
.lic-groups { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lic-group-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-500, #6b7280); margin-bottom: 4px; }

/* ---------- System Settings (#/settings) ---------- */
.sa-tabs { flex-wrap: wrap; max-width: 100%; }
.sa-body { display: flex; flex-direction: column; gap: 4px; }
.sa-intro { font-size: 13.5px; color: var(--grey-600, var(--grey-500)); line-height: 1.55; background: var(--blue-50); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 16px; max-width: 900px; }
.sa-note { font-size: 12.5px; color: var(--grey-500); margin-top: 12px; line-height: 1.5; max-width: 900px; }
.sa-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.sa-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--grey-700, #333); cursor: pointer; }
.sa-empty { font-size: 13.5px; color: var(--grey-500); padding: 14px 16px; background: var(--grey-0); border: 1px dashed var(--grey-200); border-radius: var(--radius-md); }
.sa-table { width: 100%; border-collapse: collapse; background: var(--grey-0); font-size: 13.5px; }
.sa-table.sa-wide { border: 1px solid var(--grey-200); border-radius: var(--radius-md); overflow: hidden; }
.sa-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey-400); padding: 10px 12px; border-bottom: 1px solid var(--grey-100); background: var(--grey-50); }
.sa-table td { padding: 10px 12px; border-bottom: 1px solid var(--grey-50); vertical-align: middle; }
.sa-table tr:last-child td { border-bottom: none; }
.sa-table .num { text-align: right; white-space: nowrap; }
.sa-table tr.off td { opacity: .55; }
.sa-table tr.off td.sa-actions, .sa-table tr.off td:has(.module-switch) { opacity: 1; }
.sa-sub-line { font-size: 12px; color: var(--grey-500); margin-top: 2px; }
.sa-actions { white-space: nowrap; text-align: right; }
.sa-actions .btn { margin-left: 2px; }
.btn.danger { color: var(--red-600); }
.btn.danger:hover { background: var(--red-50); }
.sa-chip { display: inline-block; font-size: 12px; font-weight: 600; background: var(--grey-100); color: var(--navy-800); border-radius: 999px; padding: 2px 10px; margin: 0 4px 4px 0; }
.sa-chips { display: flex; flex-wrap: wrap; margin-top: 6px; }
.sa-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--blue-50); color: var(--blue-600); border-radius: 4px; padding: 2px 6px; }
.sa-tag.core { background: var(--grey-100); color: var(--grey-600, #556); }
.sa-tag.arch { background: var(--amber-100); color: var(--amber-600); }
.sa-checks { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); max-height: 200px; overflow: auto; }
.sa-checks label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 400; cursor: pointer; }
.sa-static { font-size: 14px; color: var(--navy-800); font-weight: 600; }
.sa-ex-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; }
.sa-ex-row input { width: 80px; }
.sa-ex-row select { width: auto; }
.sa-error { margin: 4px 0; }
.sa-stats { margin-bottom: 18px; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 16px; }
.sa-block { margin-bottom: 16px; }
.sa-block.off { opacity: .6; }
.sa-sub { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-400); margin: 14px 0 4px; }
.sa-bar { height: 8px; background: var(--grey-100); border-radius: 999px; overflow: hidden; min-width: 90px; flex: 1; }
.sa-bar.big { height: 12px; }
.sa-bar-fill { height: 100%; border-radius: 999px; background: var(--blue-500); }
.sa-bar-fill.good { background: var(--green-500); }
.sa-bar-fill.mid { background: var(--amber-500); }
.sa-bar-fill.low { background: var(--red-500); }
.sa-prog { display: flex; align-items: center; gap: 10px; }
.sa-prog span { font-size: 12.5px; color: var(--grey-600, #556); min-width: 42px; text-align: right; }
.sa-details { border-top: 1px solid var(--grey-100); padding: 8px 0; }
.sa-details summary { cursor: pointer; font-weight: 600; color: var(--navy-800); padding: 4px 0; }
.sa-details .muted { font-weight: 400; color: var(--grey-500); }
.sa-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.sa-email { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .sa-email { grid-template-columns: 1fr; } }
.sa-email textarea { width: 100%; font: inherit; font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); resize: vertical; }
.sa-email .field input { width: 100%; }
.sa-when { font-size: 13px; color: var(--grey-500); margin-bottom: 12px; }
.sa-vars { font-size: 12.5px; color: var(--grey-500); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sa-var { font: inherit; font-family: ui-monospace, Menlo, monospace; font-size: 12px; border: 1px solid var(--grey-200); background: var(--grey-0); color: var(--blue-600); border-radius: 6px; padding: 2px 8px; cursor: pointer; }
.sa-var:hover { background: var(--blue-50); }
.sa-saved { font-size: 13px; color: var(--green-600); font-weight: 600; }
.sa-mail { background: var(--grey-0); border: 1px solid var(--grey-200); border-radius: var(--radius-md); padding: 16px; }
.sa-mail-subj { font-weight: 700; color: var(--navy-800); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--grey-100); }
.sa-mail pre { white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55; margin: 0; color: var(--grey-800); }

/* System Settings: compact role pills, move handles, completion cards */
.sa-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.sa-pill { cursor: pointer; }
.sa-pill input { position: absolute; opacity: 0; pointer-events: none; }
.sa-pill span { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--grey-200); background: var(--grey-0); color: var(--grey-600, #556); }
.sa-pill input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.sa-pill input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.sa-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sa-type { cursor: pointer; }
.sa-type input { position: absolute; opacity: 0; pointer-events: none; }
.sa-type span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); height: 100%; }
.sa-type strong { font-size: 13.5px; color: var(--navy-800); }
.sa-type em { font-style: normal; font-size: 12px; color: var(--grey-500); }
.sa-type input:checked + span { border-color: var(--blue-500); background: var(--blue-50); }
.sa-move { width: 64px; white-space: nowrap; }
th.sa-move { padding: 0; }
.sa-handle { cursor: grab; color: var(--grey-400); font-size: 15px; letter-spacing: -2px; padding: 0 6px 0 2px; user-select: none; }
.sa-arrows { display: inline-flex; flex-direction: column; gap: 0; vertical-align: middle; }
.sa-arrows button { border: none; background: none; color: var(--grey-400); font-size: 9px; line-height: 11px; padding: 0 4px; cursor: pointer; }
.sa-arrows button:hover { color: var(--blue-600); }
tr.dragging { opacity: .4; }
.sa-group-title { display: flex; align-items: center; gap: 8px; }
.sa-count { font-size: 12px; font-weight: 500; margin-left: 6px; }
.sa-table th.sortable { cursor: pointer; user-select: none; }
.sa-table th.sortable:hover, .sa-table th.sortable.active { color: var(--navy-800); }
.sa-sort { font-size: 9px; }
.req-upload { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-left: auto; margin-right: 10px; }
.field .sa-inline input[type="checkbox"], .field .sa-checks input[type="checkbox"] { width: 16px; height: 16px; padding: 0; flex: 0 0 auto; accent-color: var(--blue-500); }
.field .sa-inline { display: inline-flex; font-weight: 500; margin: 0; }
.sa-roletable { border: 1px solid var(--grey-200); border-radius: var(--radius-sm); }
.sa-roletable th:not(:first-child), .sa-roletable td:not(:first-child) { text-align: center; width: 1%; white-space: nowrap; }
.field .sa-roletable input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--blue-500); }
.sa-dash-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; font-size: 13px; }
.sa-dash-tools .muted { margin-right: auto; }
.sa-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.sa-sec.wide { grid-column: 1 / -1; }
.sa-sec { padding: 0; }
.sa-sec-head { display: flex; align-items: center; gap: 6px; padding: 12px 14px; }
.sa-sec-toggle { flex: 1; display: flex; align-items: center; gap: 8px; border: none; background: none; text-align: left; cursor: pointer; padding: 0; font: inherit; }
.sa-sec-toggle .profile-card-title { margin: 0; font-size: 16px; }
.sa-sec-toggle .chev { display: inline-block; color: var(--grey-400); transition: transform .15s ease; }
.sa-sec.collapsed .sa-sec-toggle .chev { transform: rotate(-90deg); }
.sa-sec-body { padding: 0 20px 20px; }
.sa-sec.collapsed .sa-sec-body { display: none; }
.sa-sec.dragging { opacity: .45; }
.sa-sec .sa-stats { margin-bottom: 0; }
/* Keep dashboard sections inside their column at any width */
.sa-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sa-dash { grid-template-columns: minmax(0, 1fr); } }
.sa-sec { min-width: 0; max-width: 100%; }
.sa-sec-body { min-width: 0; overflow-x: auto; }
.sa-sec-body .sa-table { table-layout: auto; }
.sa-sec-body .sa-note { max-width: none; overflow-wrap: anywhere; }
.sa-sec-body .sa-table th, .sa-sec-body .sa-table td.num { white-space: nowrap; }
.sa-store-head { margin: 8px 0 12px; font-size: 14px; color: var(--grey-600, #556); }
.sa-store-head strong { color: var(--navy-800); font-size: 20px; }
.sa-store-pct { margin-left: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.sa-store-pct.good { background: var(--green-100); color: var(--green-600); }
.sa-store-pct.mid { background: var(--amber-100); color: var(--amber-600); }
.sa-store-pct.low { background: var(--red-50); color: var(--red-700); }
.sa-store-list { list-style: none; margin: 14px 0 0; padding: 0; }
.sa-store-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--grey-50); font-size: 13.5px; }
.sa-store-list li:last-child { border-bottom: none; }
.sa-store-name { display: flex; flex-direction: column; min-width: 0; color: var(--navy-800); font-weight: 600; }
.sa-store-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--grey-500); }
.sa-store-size { white-space: nowrap; color: var(--grey-600, #556); }

/* ---------- Help page ---------- */
.help-item { border: 1px solid var(--grey-200); border-radius: var(--radius-md); margin-bottom: 8px; background: var(--grey-0); overflow: hidden; }
.help-item summary { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 14px; align-items: center; padding: 13px 16px; cursor: pointer; list-style: none; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary:hover { background: var(--grey-25); }
.help-title { font-weight: 700; font-size: 14px; color: var(--navy-800); }
.help-desc { font-size: 13px; color: var(--grey-500); }
.help-item .chev { color: var(--grey-400); transition: transform .15s ease; }
.help-item[open] .chev { transform: rotate(180deg); }
.help-item[open] summary { border-bottom: 1px solid var(--grey-100); }
.help-body { padding: 16px 18px 18px; }
.help-where { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--blue-700); background: var(--blue-50); border-radius: var(--radius-pill); padding: 3px 10px; margin-bottom: 12px; }
.help-steps { margin: 12px 0 0 20px; padding: 0; font-size: 13.5px; line-height: 1.55; color: var(--grey-800); }
.help-steps li { margin-bottom: 7px; padding-left: 4px; }
.help-steps code, .help-body code { background: var(--grey-100); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.help-tip { margin-top: 12px; font-size: 13px; color: var(--amber-600); background: var(--amber-100); border-radius: var(--radius-md); padding: 9px 12px; }
.help-video { aspect-ratio: 16/9; max-width: 640px; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.help-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.help-video-soon { aspect-ratio: auto; padding: 18px; background: var(--grey-50); border: 1px dashed var(--grey-300); color: var(--grey-500); font-size: 13px; text-align: center; }
.help-video-soon span { margin-right: 6px; color: var(--grey-400); }
.help-shots { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.help-shots figure { margin: 0; max-width: 420px; }
.help-shots img { width: 100%; border: 1px solid var(--grey-200); border-radius: var(--radius-md); display: block; }
.help-shots figcaption { font-size: 12px; color: var(--grey-500); margin-top: 4px; }
.help-section { margin-bottom: 22px; }
@media (max-width: 700px) { .help-item summary { grid-template-columns: 1fr auto; } .help-desc { display: none; } }

/* Side-by-side comparison chart (block type "compare") */
.compare-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: var(--radius-md); background: var(--grey-0); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare-table th, .compare-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.compare-table thead th { background: var(--navy-800); color: #fff; font-weight: 600; }
.compare-table tbody th { font-weight: 600; color: var(--navy-800); background: var(--grey-50); width: 34%; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td { color: var(--grey-800); }

/* Map block (view-player.js mapBlock) */
.map-block { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--blue-100); background: var(--blue-50); z-index: 0; }
.map-block.map-offline { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--navy-600); height: auto !important; min-height: 120px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.map-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.map-legend-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); }
.map-legend-item.office .dot { background: #C8102E; }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45); box-sizing: border-box; }
.map-pin.office span { background: #C8102E; }

/* ---------- About TSC additions: large titles, inline links, cover photos, info-graphic, map labels ---------- */
.title-lg > h5, .title-lg .ti-text h5, .text-image-block.title-lg .ti-text h5 { font-size: 24px; line-height: 1.2; }
.inline-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-links .link-button { margin: 0; }
.text-image-block .ti-logo-below { display: block; max-width: 150px; max-height: 130px; object-fit: contain; margin-top: 14px; }
.text-image-block.ti-half .ti-text, .text-image-block.ti-half .ti-image { flex: 1 1 0; min-width: 260px; }
.text-image-block.ti-cover .ti-image img { object-fit: cover; }
.text-image-block.ti-full { flex-direction: column; align-items: stretch; }
.text-image-block.ti-full .ti-image { width: 100%; flex: none; }
.text-image-block.ti-full .ti-image img { object-fit: cover; }
.text-image-block.ti-full.img-left { flex-direction: column-reverse; }

.infographic { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); background: var(--grey-0); padding: 18px; }
.ig-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ig-stat { text-align: center; padding: 20px 12px 18px; border-radius: var(--radius-lg); background: var(--blue-50); border-top: 4px solid var(--blue-600); }
.ig-stat.accent { background: var(--navy-800); border-top-color: var(--red-600); }
.ig-value { font-size: 40px; font-weight: 800; line-height: 1; color: var(--navy-800); letter-spacing: -.02em; }
.ig-stat.accent .ig-value { color: #fff; }
.ig-label { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-600); }
.ig-stat.accent .ig-label { color: rgba(255,255,255,.8); }
.ig-sub { margin-top: 4px; font-size: 12.5px; color: var(--grey-600); }
.ig-stat.accent .ig-sub { color: rgba(255,255,255,.7); }
.ig-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.ig-fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 3px solid var(--red-600); background: var(--grey-50); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.ig-fact-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-500); }
.ig-fact-text { font-size: 14px; font-weight: 600; color: var(--navy-800); }

.leaflet-tooltip.map-label { background: transparent; border: 0; box-shadow: none; padding: 0; pointer-events: auto; cursor: pointer; }
.leaflet-tooltip.map-label::before { display: none; }
.map-label .map-label-text { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--navy-800); font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: transform .15s ease, font-size .15s ease; transform-origin: center; }
.map-label.hot { z-index: 1000 !important; }
.map-label.hot .map-label-text { transform: scale(1.3); background: var(--navy-800); color: #fff; }

.gap-above { margin-top: 44px; }
.text-image-block.ti-full { gap: 14px; }
.text-image-block.ti-full .ti-text { flex: none; }

/* Journey: numbered path of moments (e.g. the family journey) */
.journey { list-style: none; padding: 0; margin: 14px 0 4px; display: grid; grid-template-columns: repeat(var(--jcols, 4), 1fr); gap: 22px 10px; }
.journey-stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.journey-stop::after { content: ""; position: absolute; top: 34px; left: calc(50% + 40px); width: calc(100% - 80px + 10px); height: 2px; background: var(--blue-300); }
.journey-stop.row-end::after { display: none; }
.journey-icon { position: relative; width: 68px; height: 68px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); border: 2px solid var(--blue-600); box-shadow: 0 3px 8px rgba(5,84,163,.25); display: flex; align-items: center; justify-content: center; }
.journey-icon img { width: 36px; height: 36px; object-fit: contain; filter: brightness(0) invert(1); }
.journey-num { position: absolute; top: -4px; left: -4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--blue-600); border: 2px solid var(--blue-600); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.journey-label { font-size: 14px; font-weight: 600; color: var(--navy-800); line-height: 1.3; }
@media (max-width: 600px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-stop::after { display: none; }
}
.journey-desc { font-size: 13px; line-height: 1.4; color: var(--grey-700); }
.journey-stop { padding: 0 4px; }

/* Flip cards: oversized letter for anagrams (L-E-A-D) */
.flip-face .tag.tag-big { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: 0; opacity: 1; }
.flipzoom-front .tag.tag-big { font-size: clamp(60px, 8vw, 80px); letter-spacing: 0; opacity: 1; }

/* Self-rating 1-5 */
.rating-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey-600); margin-bottom: 6px; }
.rating-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px; border: 1px solid var(--blue-100); border-radius: 10px; background: #fff; margin-bottom: 8px; }
.rating-row.lowest { border-color: var(--amber-500); background: var(--amber-100); }
.rating-text { color: var(--grey-700); line-height: 1.4; }
.rating-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.rating-btn { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue-300); background: #fff; color: var(--blue-600); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.rating-btn:hover { background: var(--blue-50); }
.rating-btn.selected { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); border-color: var(--blue-600); color: #fff; }
.rating-summary { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--blue-50); color: var(--navy-800); }
@media (max-width: 600px) { .rating-row { flex-direction: column; align-items: flex-start; } }

/* Step cards with an icon instead of a photo */
.step-photo.step-photo-icon { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); }
.step-photo-icon img { width: 64px; height: 64px; object-fit: contain; filter: brightness(0) invert(1); }

/* ---------- Top bar search ---------- */
.app-search { position: relative; }
.app-search input {
  width: 220px; height: 28px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--grey-200); background: var(--grey-0); color: var(--navy-800);
  font-size: 12px; font-weight: 500;
}
.app-search input:focus { outline: none; border-color: var(--blue-300); box-shadow: 0 0 0 3px var(--blue-50); }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 420px; max-width: calc(100vw - 24px);
  max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 50;
}
.search-results[hidden] { display: none; }
.search-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 9px 12px;
  background: none; border: 0; border-bottom: 1px solid var(--grey-100); cursor: pointer; font-family: inherit;
}
.search-item:last-child { border-bottom: 0; }
.search-item.active, .search-item:hover { background: var(--blue-50); }
.search-crumb { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.search-title { font-size: 14px; font-weight: 700; color: var(--navy-800); }
.search-snip { font-size: 12px; color: var(--grey-500); line-height: 1.4; }
.search-results mark { background: #fff1b8; color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { padding: 14px; font-size: 13px; color: var(--grey-500); }
@media (max-width: 900px) {
  .app-search input { width: 120px; }
  .search-results { position: fixed; top: var(--topbar-h); left: 12px; right: 12px; width: auto; }
}
.search-hist-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-500); }
.search-hist-clear { background: none; border: 0; cursor: pointer; font: inherit; color: var(--blue-600); text-transform: none; letter-spacing: 0; font-size: 12px; }
.search-hist-clear:hover { text-decoration: underline; }
.search-hist { font-size: 13px; color: var(--navy-800); flex-direction: row; }
.player-topbar .app-search { margin-left: 14px; }
@media (max-width: 900px) { .player-topbar .app-search input { width: 90px; } }

/* Favorites */
.fav-btn { cursor: pointer; font-size: 17px; line-height: 1; color: var(--grey-400); user-select: none; padding: 2px 4px; border-radius: 4px; }
.fav-btn:hover, .fav-btn:focus-visible { color: var(--red-500); }
.fav-btn.on { color: var(--red-500); }
.course-thumb .fav-btn { position: absolute; bottom: 7px; right: 8px; color: rgba(255,255,255,.85); font-size: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.course-thumb .fav-btn.on { color: #ff6b70; }
.lesson-item .fav-btn { margin-left: auto; font-size: 14px; color: rgba(255,255,255,.45); opacity: 0; }
.lesson-item:hover .fav-btn, .lesson-item .fav-btn.on, .lesson-item .fav-btn:focus-visible { opacity: 1; }
.lesson-item .fav-btn.on { color: #ff6b70; }
.player-course-title .fav-btn { font-size: 15px; color: rgba(255,255,255,.6); vertical-align: middle; }
.player-course-title .fav-btn.on { color: #ff6b70; }
.player-topbar .lesson-title .fav-btn { font-size: 18px; vertical-align: middle; }
.section-head-right { display: inline-flex; align-items: center; gap: 12px; }
.fav-filter { border: 1px solid var(--grey-300, #cfd5de); background: #fff; color: var(--navy-800); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fav-filter.on { background: var(--red-100); border-color: var(--red-500); color: var(--red-600); }
.fav-empty { padding: 28px; text-align: center; color: var(--grey-500); background: #fff; border: 1px dashed var(--grey-300, #cfd5de); border-radius: var(--radius-sm); }
.course-group-label.static { cursor: default; }
.fav-lessons { display: flex; flex-direction: column; gap: 8px; }
.fav-lesson-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--grey-200, #e3e7ee); border-radius: var(--radius-sm); padding: 10px 14px; }
.fav-lesson-link { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--navy-800); flex: 1; }
.fav-lesson-link .muted { font-size: 12.5px; color: var(--grey-500); }

/* System Settings → Analytics */
.an-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 14px 0; }
.an-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--grey-400); }
.an-filters select, .an-ctl select { height: 34px; padding: 0 10px; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); background: var(--grey-0); font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--grey-800); }
.an-tiles { margin-bottom: 16px; }
.an-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 8px; }
.an-card { background: var(--grey-0); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px 18px; min-width: 0; }
.an-card.an-wide { grid-column: 1 / -1; }
.an-card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; color: var(--navy-800); }
.an-card-head .muted { font-size: 12px; color: var(--grey-500); }
.an-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.an-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.an-chart { position: relative; width: 100%; }
.an-empty { padding: 28px 8px; text-align: center; }
.an-detail { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.an-detail-q { font-weight: 700; color: var(--navy-800); margin-bottom: 2px; }
.an-ok { color: var(--green-600); font-weight: 600; }
.an-bad { color: var(--red-600); font-weight: 600; }
.an-qrow { cursor: pointer; }
.an-qrow:hover td { background: var(--blue-50); }
.an-more { margin-top: 10px; }
.an-exports { margin: 16px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.an-web-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.an-web-row .field { margin-bottom: 0; min-width: 220px; }
.an-web-row .btn { margin-bottom: 2px; }
@media (max-width: 900px) { .an-grid { grid-template-columns: minmax(0, 1fr); } }

.an-ctl-r { display: flex; flex-wrap: wrap; gap: 8px; }
.an-ctl:has(> span:empty:first-child) { justify-content: flex-end; }

/* Analytics: collapsible sections */
.an-fold > summary { cursor: pointer; list-style: none; user-select: none; }
.an-fold > summary::-webkit-details-marker { display: none; }
.an-fold > summary::before { content: "▸"; display: inline-block; width: 14px; color: var(--grey-400); font-size: 12px; transition: transform .15s; }
.an-fold[open] > summary::before { transform: rotate(90deg); }
.an-card.an-fold:not([open]) > .an-card-head { margin-bottom: 0; }
.an-sec { margin-top: 6px; }
.an-sec > summary.sa-sub { margin: 14px 0 4px; }
.an-fold-all { margin-left: auto; display: flex; gap: 6px; }

.an-online-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--navy-800); }
.an-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }

.an-clock { font-variant-numeric: tabular-nums; }

/* New-version notice */
.update-banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 16px; background: var(--navy-800); color: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(10,27,49,.35); font-size: 14px; }
.update-banner-reload { background: var(--blue-500); color: #fff; border: 0; border-radius: 6px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.update-banner-reload:hover { background: var(--blue-400); }
.update-banner-dismiss { background: transparent; color: #fff; border: 0; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.update-banner-dismiss:hover { opacity: 1; }

/* Login access: lock / reset password, forgot password link */
.auth-forgot { text-align: right; margin: -6px 0 14px; font-size: 13px; }
.locked-tag { background: var(--red-50); color: var(--red-700); }
.roster-login-access { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.roster-login-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lock-state { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--green-100); color: var(--green-600); border-radius: 999px; padding: 2px 8px; margin-right: 6px; }
.lock-state.locked { background: var(--red-50); color: var(--red-700); }
.lock-opt { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 8px 0; }
.lock-until { margin: 0 0 8px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.lock-until select, .lock-until input { padding: 8px 10px; border: 1px solid var(--grey-300, #ccc); border-radius: 8px; font: inherit; }
