/* Student & renter look — Fife Flight Centre.
   Everything is scoped to body.student-ui so staff screens keep their
   dense layout. One accent (the logo's steel blue), near-black type,
   grey tinted surfaces instead of shadows, large type for what matters. */

/* ---------- shared by every login (brand on the login screen) ---------- */
.login-brand { display: block; width: min(260px, 70vw); height: auto; margin: 0 auto 22px; }
.brand-logo, .avatar-wrap { display: none; }

/* ---------- tokens ---------- */
body.student-ui {
  --ffc: #3a7899;
  --ffc-600: #2f6582;
  --ffc-700: #25526b;
  --ffc-50: #edf4f7;
  --ffc-100: #d7e7ef;
  --ink: #0f1b22;
  --ink-2: #53636d;
  --ink-3: #8a98a1;
  --fill: #eef1f3;
  --fill-2: #e4e9ec;
  --hair: rgba(15, 27, 34, .08);
  --surface: #ffffff;
  --page: #f5f7f8;
  --ok-ink: #1f7a4d;
  --warn-ink: #9a5b0b;
  --warn-bg: #fdf3e2;
  --r-card: 20px;
  --r-ctl: 12px;
  --tabbar-h: 64px;
  /* the older names the rest of the app uses */
  --accent: var(--ffc);
  --accent-ink: #fff;
  --muted: var(--ink-2);
  --line: var(--hair);
  --card: var(--surface);
  --bg: var(--page);

  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
}

/* ---------- top bar: logo + account ---------- */
.student-ui #topbar {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
}
.student-ui .topbar-inner { max-width: 760px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); }
.student-ui .brand-icon, .student-ui .brand-name, .student-ui #user-label,
.student-ui #btn-change-pw, .student-ui #btn-logout { display: none; }
.student-ui .brand-logo { display: block; height: 32px; width: auto; }
.student-ui .avatar-wrap { display: block; position: relative; }
.student-ui .avatar-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ffc-50); color: var(--ffc-700); font: 600 13px/1 Inter, sans-serif; letter-spacing: .02em;
}
.student-ui .avatar-btn:focus-visible { outline: 2px solid var(--ffc); outline-offset: 2px; }
.student-ui .avatar-menu {
  position: absolute; right: 0; top: 44px; min-width: 200px; z-index: 40;
  background: var(--surface); border-radius: 14px; padding: 6px;
  box-shadow: 0 10px 30px rgba(15, 27, 34, .14), 0 1px 3px rgba(15, 27, 34, .08);
}
.student-ui .avatar-menu-name { padding: 8px 10px 6px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.student-ui .avatar-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: var(--ink);
  padding: 9px 10px; border-radius: 9px; cursor: pointer;
}
.student-ui .avatar-menu button:hover { background: var(--fill); }

/* ---------- layout & type ---------- */
.student-ui #view { max-width: 760px; padding: 18px 20px 48px; }
.student-ui .student-head { margin: 22px 0 18px; }
.student-ui .student-head h1 { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.student-ui .student-head .sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); }
.student-ui h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.student-ui h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.student-ui .sub { color: var(--ink-2); }
.student-ui strong { font-weight: 600; }

/* ---------- cards: tinted planes, no stripes, no heavy shadows ---------- */
.student-ui .card {
  background: var(--surface); border: 0; border-radius: var(--r-card);
  box-shadow: 0 1px 2px rgba(15, 27, 34, .04);
  padding: 18px 20px; margin-bottom: 12px;
}
.student-ui .card.next-lesson, .student-ui .card.last-flight, .student-ui .card.next-flight,
.student-ui .card.my-instructors { border-left: 0; }
.student-ui .card h2 { margin: 0 0 12px; }

/* next lesson: the hero */
.student-ui .next-lesson { padding: 22px 22px 18px; }
.student-ui .next-lesson > .sub { font-size: 13px; font-weight: 600; color: var(--ffc); text-transform: none; letter-spacing: 0; }
.student-ui .nl-when { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin: 6px 0 6px; }
.student-ui .nl-times { font-size: 16px; color: var(--ink); }
.student-ui .nl-times strong { font-weight: 600; }
.student-ui .nl-meta { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.student-ui .nl-actions { margin-top: 16px; gap: 10px; }

/* last flight / next exercise */
.student-ui .last-flight-head { gap: 10px; }
.student-ui .next-flight-title { font-size: 16px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.student-ui .fact-chip { background: var(--fill); color: var(--ink-2); border: 0; border-radius: 999px; font-weight: 500; font-size: 12px; padding: 4px 10px; }
.student-ui .last-flight-notes { background: var(--fill); border: 0; border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink); }
.student-ui .carry-note { background: var(--warn-bg); color: var(--warn-ink); border: 0; border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.student-ui .all-done-note { color: var(--ok-ink); font-size: 13px; font-weight: 500; }

/* progress */
.student-ui .progress-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: stretch; }
.student-ui .big-progress { flex: none; width: 100%; }
.student-ui .big-progress > div:first-child { font-size: 14px !important; margin-bottom: 8px !important; color: var(--ink-2); }
.student-ui .big-progress > div:first-child strong { color: var(--ink); }
.student-ui .progress-track { height: 8px; border-radius: 999px; background: var(--fill); overflow: hidden; }
.student-ui .progress-fill { background: var(--ffc); border-radius: 999px; }
.student-ui .time-totals { gap: 28px; margin-left: 0; font-weight: 600; }
.student-ui .time-totals > span { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.student-ui .time-totals .sub { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }

/* ---------- controls ---------- */
.student-ui .btn {
  border-radius: var(--r-ctl); border: 0; background: var(--fill); color: var(--ink);
  font: 600 14px/1.2 Inter, sans-serif; padding: 11px 16px; min-height: 42px;
  transition: transform .12s ease, background-color .15s ease;
}
.student-ui .btn:hover { background: var(--fill-2); }
.student-ui .btn:active { transform: scale(.97); }
.student-ui .btn-sm { min-height: 34px; padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.student-ui .btn-primary { background: var(--ffc); color: #fff; }
.student-ui .btn-primary:hover { background: var(--ffc-600); }
.student-ui .btn-danger { background: #fbe9e9; color: #a32626; }
.student-ui .btn-danger:hover { background: #f6d9d9; }
.student-ui .btn:disabled { opacity: .45; transform: none; }
.student-ui .btn:focus-visible, .student-ui .page-tab:focus-visible, .student-ui .chip:focus-visible,
.student-ui .sc-cell:focus-visible, .student-ui .slot-btn:focus-visible { outline: 2px solid var(--ffc); outline-offset: 2px; }

.student-ui label.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.student-ui input[type=text], .student-ui input[type=email], .student-ui input[type=tel],
.student-ui input[type=password], .student-ui input[type=date], .student-ui select, .student-ui textarea {
  background: var(--fill); border: 1px solid transparent; border-radius: var(--r-ctl);
  font: 15px Inter, sans-serif; color: var(--ink); min-height: 44px; padding: 10px 12px;
}
.student-ui input:focus, .student-ui select:focus, .student-ui textarea:focus { outline: none; background: #fff; border-color: var(--ffc); box-shadow: 0 0 0 3px var(--ffc-100); }

/* chips & segmented controls (Book tab, Bookings view switch, Progress switch) */
.student-ui .chip { background: var(--fill); border: 0; border-radius: 999px; padding: 9px 15px; font: 500 14px Inter, sans-serif; color: var(--ink); }
.student-ui .chip.on { background: var(--ink); color: #fff; }
.student-ui .seg-toggle, .student-ui .seg-switch {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
  background: var(--fill); border: 0; border-radius: 11px; padding: 3px; overflow: visible;
}
.student-ui .seg-switch { display: grid; width: 100%; max-width: 340px; margin: 0 0 16px; }
.student-ui .seg-toggle button, .student-ui .seg-switch button {
  border: 0; background: transparent; border-radius: 9px; padding: 7px 14px; font: 600 13px Inter, sans-serif; color: var(--ink-2); cursor: pointer;
}
.student-ui .seg-toggle button.on, .student-ui .seg-switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 34, .12); }
.student-ui .book-modes { gap: 10px; }
.student-ui .book-mode { border: 0; background: var(--fill); border-radius: 16px; padding: 14px 16px; }
.student-ui .book-mode strong { font-size: 15px; }
.student-ui .book-mode.on { background: var(--ffc-50); box-shadow: inset 0 0 0 2px var(--ffc); }

/* lists */
.student-ui .bk-row, .student-ui .bk-prop-row { border-top: 1px solid var(--hair); }
.student-ui .bk-row-next, .student-ui .bk-row-today { background: var(--ffc-50); border-radius: 14px; padding-left: 8px; padding-right: 8px; border-top-color: transparent; }
.student-ui .bk-next-tag, .student-ui .late-badge { border-radius: 999px; }
.student-ui .bk-next-tag { background: var(--ffc); }
.student-ui .bk-day { font-weight: 700; letter-spacing: -0.02em; }
.student-ui .bk-month { color: var(--ink-3); font-weight: 600; letter-spacing: .06em; }
.student-ui .bk-prop-miss { background: var(--warn-bg); border-radius: 14px; border-top-color: transparent; }
.student-ui .bk-run { background: var(--ffc-50); color: var(--ffc-700); }
.student-ui .logbook .log-row { border-left-width: 3px; border-top: 1px solid var(--hair); border-radius: 0; }
.student-ui .logbook .log-row:hover { background: var(--fill); }

/* calendars */
.student-ui .sc-grid { gap: 4px; }
.student-ui .sc-dow { color: var(--ink-3); font-weight: 600; }
.student-ui .sc-cell { border: 0; background: var(--fill); border-radius: 12px; min-height: 58px; }
.student-ui .sc-out { background: transparent; }
.student-ui .sc-today { outline: 2px solid var(--ffc); outline-offset: -2px; }
.student-ui .sc-sel { background: var(--ffc-50) !important; box-shadow: inset 0 0 0 2px var(--ffc); }
.student-ui .sc-chip { background: #fff; border-radius: 6px; font-weight: 500; }
.student-ui .sc-chip.sc-next { background: var(--ffc); color: #fff; }
.student-ui .sc-cell.av-good { background: #e3f3ea !important; color: #155c38; }
.student-ui .sc-cell.av-few { background: #fbf0d9 !important; color: #7a4a06; }
.student-ui .sc-cell.av-full { background: #f9e4e4 !important; color: #8a2424; }
.student-ui .sc-cell.av-none { background: var(--fill) !important; color: var(--ink-3); }
.student-ui .av-legend i { border: 0; border-radius: 4px; }
.student-ui .slot-btn { border: 0; background: var(--fill); border-radius: 14px; padding: 12px 14px; }
.student-ui .slot-btn strong { font-size: 15px; }
.student-ui .slot-btn:hover { background: var(--fill-2); }
.student-ui .slot-btn.on { background: var(--ffc-50); box-shadow: inset 0 0 0 2px var(--ffc); }
.student-ui .bk-confirm { border: 0; background: var(--ffc-50); border-radius: 16px; padding: 16px; }

/* syllabus cards (Progress) */
.student-ui .phase-chip { border-radius: 999px; font-weight: 600; }
.student-ui .flight-card { border: 0; border-left: 3px solid; border-radius: 0 14px 14px 0; box-shadow: none; background: var(--surface); }
.student-ui .flight-card:hover { background: #fbfcfc; }
.student-ui .status-badge { border-radius: 999px; font-weight: 600; }

/* ---------- tabs: segmented bar on wide screens, bottom tab bar on phones ---------- */
.student-ui .student-tabs {
  display: inline-flex; gap: 2px; border: 0; margin: 4px 0 0; padding: 3px;
  background: var(--fill); border-radius: 12px; overflow: visible;
}
.student-ui .student-tabs .page-tab {
  display: inline-flex; align-items: center; gap: 7px; border: 0; margin: 0;
  padding: 8px 14px; border-radius: 9px; background: transparent;
  font: 600 14px Inter, sans-serif; color: var(--ink-2); cursor: pointer;
}
.student-ui .student-tabs .page-tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 27, 34, .12); }
.student-ui .tab-ico { width: 18px; height: 18px; flex: none; }

@media (max-width: 720px) {
  .student-ui #view { padding: 8px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  .student-ui .student-head { margin: 14px 0 16px; }
  .student-ui .student-head h1 { font-size: 30px; }
  .student-ui .student-tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-radius: 0;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
    border-top: 1px solid var(--hair);
  }
  .student-ui .student-tabs .page-tab {
    flex-direction: column; gap: 3px; padding: 6px 0 4px; font-size: 11px; font-weight: 600;
    background: transparent !important; box-shadow: none !important; color: var(--ink-3);
  }
  .student-ui .student-tabs .page-tab.active { color: var(--ffc); }
  .student-ui .tab-ico { width: 24px; height: 24px; }
  .student-ui .card { border-radius: 18px; padding: 16px 16px; }
  .student-ui .nl-when { font-size: 28px; }
  .student-ui .btn { min-height: 44px; }
  .student-ui #toast { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }
}

/* ---------- sheets (modals) ---------- */
.student-ui .modal-backdrop { background: rgba(15, 27, 34, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.student-ui .modal { border-radius: 22px; box-shadow: 0 24px 60px rgba(15, 27, 34, .22); padding: 22px; animation: ffc-pop .18s ease-out; }
.student-ui .modal h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .student-ui .modal-backdrop { align-items: flex-end; padding: 0; }
  .student-ui .modal { width: 100%; max-width: none; border-radius: 22px 22px 0 0; max-height: 88vh; padding: 12px 18px calc(18px + env(safe-area-inset-bottom)); animation: ffc-sheet .24s cubic-bezier(.2, .8, .2, 1); }
  .student-ui .modal::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--fill-2); margin: 0 auto 12px; }
  .student-ui .modal-actions { flex-direction: column-reverse; }
  .student-ui .modal-actions .btn { width: 100%; }
}

/* ---------- toast ---------- */
.student-ui #toast { background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 18px; font: 500 14px Inter, sans-serif; box-shadow: 0 10px 30px rgba(15, 27, 34, .25); }

/* ---------- motion ---------- */
.student-ui .tab-enter { animation: ffc-fade .22s ease-out; }
@keyframes ffc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ffc-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ffc-sheet { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .student-ui .tab-enter, .student-ui .modal { animation: none; }
  .student-ui .btn { transition: none; }
}

/* ---------- lesson names ---------- */
.student-ui .lesson-name { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.student-ui .lesson-full { margin-top: 4px; }
.student-ui .lesson-full summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ffc); list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.student-ui .lesson-full summary::-webkit-details-marker { display: none; }
.student-ui .lesson-full summary::after { content: "›"; transition: transform .15s ease; font-size: 14px; }
.student-ui .lesson-full[open] summary::after { transform: rotate(90deg); }
.student-ui .lesson-full p { margin: 6px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.student-ui .lesson-dur { display: inline-block; margin-top: 6px; font-size: 12px; }
.student-ui .fc-title { font-weight: 600; font-size: 14px; }
.student-ui .fc-full { font-size: 12px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.student-ui .log-code { font-size: 12px; color: var(--ink-3); font-weight: 500; }

/* ---------- step-1 touch-ups ---------- */
.student-ui .book-card > h2 { display: none; }
.student-ui .sb-title { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.student-ui .bk-form .field { margin-bottom: 18px; }
.student-ui .bk-form .field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.student-ui .book-common { margin-bottom: 18px; }
.student-ui .mini-track { background: var(--fill); border-radius: 999px; }
.student-ui .mini-fill { background: var(--ffc); border-radius: 999px; }
.student-ui .sc-nav .btn { min-height: 36px; min-width: 40px; }
.student-ui .sc-nav strong { font-size: 16px; }
.student-ui .kv > div > span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.student-ui .kv > div { font-size: 15px; }
.student-ui label.field input, .student-ui label.field select, .student-ui label.field textarea { width: 100%; }

/* login */
.student-ui .login-wrap { max-width: 380px; padding-top: 8vh; }
.student-ui .login-wrap h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; }
.student-ui .login-wrap > .sub { display: block; text-align: center; margin-bottom: 18px; }
.student-ui .login-wrap .card { padding: 22px; }
.student-ui .login-wrap .btn-primary { min-height: 46px; font-size: 15px; }

/* ---------- logbook (pilot-logbook columns) ---------- */
.student-ui .logbook-card { padding: 16px 0 12px; }
.student-ui .logbook-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 18px 12px; }
.student-ui .logbook-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--hair); }
.student-ui .logbook-table { border-collapse: separate; border-spacing: 0; font-size: 13px; white-space: nowrap; min-width: 100%; }
.student-ui .logbook-table th, .student-ui .logbook-table td { padding: 7px 9px; border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair); text-align: left; }
.student-ui .logbook-table thead th { background: #f8fafb; font-size: 11px; font-weight: 600; color: var(--ink-2); text-align: center; vertical-align: bottom; line-height: 1.25; }
.student-ui .logbook-table thead th span { font-weight: 500; color: var(--ink-3); font-size: 10px; }
.student-ui .logbook-table .lb-group { color: var(--ink); }
.student-ui .logbook-table .lb-night { background: #f1f4f7; }
.student-ui .logbook-table thead .lb-night { background: #e9eef2; }
.student-ui .logbook-table .lb-num { text-align: right; font-variant-numeric: tabular-nums; min-width: 44px; }
.student-ui .logbook-table .lb-total { font-weight: 600; }
.student-ui .logbook-table .lb-reg { font-weight: 600; }
.student-ui .logbook-table .lb-date { position: sticky; left: 0; z-index: 1; background: #fff; font-variant-numeric: tabular-nums; box-shadow: 1px 0 0 var(--hair); }
.student-ui .logbook-table thead .lb-date { background: #f8fafb; z-index: 2; }
.student-ui .logbook-table tbody tr { cursor: pointer; }
.student-ui .logbook-table tbody tr:hover td { background: var(--ffc-50); }
.student-ui .logbook-table tfoot th, .student-ui .logbook-table tfoot td { background: #f8fafb; font-weight: 700; border-bottom: 0; }
.student-ui .logbook-table .lb-tot-label { text-align: right; position: sticky; left: 0; }
.student-ui .logbook-note { padding: 10px 18px 0; margin: 0; font-size: 12px; }

.student-ui #view.view-wide { max-width: 1240px; }
.student-ui #view.view-wide .student-tabs, .student-ui #view.view-wide .student-head, .student-ui #view.view-wide .seg-switch { max-width: 1240px; }

/* =====================================================================
   Staff (instructors, schedulers, admin): same brand, dense layout,
   five-area header with the current area's pages beneath, and search.
   ===================================================================== */
.hub-nav, .search-btn { display: none; }
body.staff-ui {
  --accent: #3a7899; --accent-ink: #fff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
}
.staff-ui .btn-primary { background: #3a7899; border-color: #3a7899; }
.staff-ui .btn-primary:hover { background: #2f6582; }
.staff-ui #topbar { background: #fff; color: #0f1b22; border-bottom: 1px solid rgba(15, 27, 34, .08); }
.staff-ui .topbar-inner { max-width: 1400px; padding: 8px 20px; gap: 18px; }
.staff-ui .brand-icon, .staff-ui .brand-name, .staff-ui #user-label, .staff-ui #btn-change-pw, .staff-ui #btn-logout { display: none; }
.staff-ui .brand-logo { display: block; height: 28px; width: auto; }
.staff-ui .brand { flex: none; }
.staff-ui .hub-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.staff-ui .hub-nav::-webkit-scrollbar { display: none; }
.staff-ui .hub {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  padding: 8px 12px; border-radius: 9px; font: 600 14px Inter, sans-serif; color: #53636d;
}
.staff-ui .hub:hover { background: #f1f4f6; color: #0f1b22; }
.staff-ui .hub.on { background: #edf4f7; color: #25526b; }
.staff-ui .nav-ico { width: 18px; height: 18px; flex: none; }
.staff-ui .hub-badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: #e0ecf2; color: #25526b; }
.staff-ui .hub-badge.warn { background: #fdf0d8; color: #8a5208; }
.staff-ui .hub-badge.alert { background: #fbe4e4; color: #9b1c1c; }
.quick-book { display: none; }
.staff-ui .quick-book:not(.hidden) { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border: 0; border-radius: 999px;
  background: var(--accent, #3A7899); color: #fff; font: 600 13px Inter, sans-serif; cursor: pointer; margin-right: 8px; box-shadow: 0 1px 2px rgba(15, 27, 34, .12); }
.staff-ui .quick-book:hover { filter: brightness(1.08); }
.staff-ui .quick-book svg { width: 15px; height: 15px; }
.staff-ui .search-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(15, 27, 34, .1); background: #f7f9fa; color: #8a98a1;
  border-radius: 9px; padding: 6px 10px; font: 500 13px Inter, sans-serif; cursor: pointer;
}
.staff-ui .search-btn svg { width: 16px; height: 16px; }
.staff-ui .search-btn kbd { font: 600 11px Inter, sans-serif; background: #fff; border: 1px solid rgba(15, 27, 34, .1); border-radius: 5px; padding: 0 5px; color: #53636d; }
.staff-ui .search-btn:hover { border-color: #3a7899; color: #3a7899; }
.staff-ui .avatar-wrap { display: block; position: relative; }
.staff-ui .avatar-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: #edf4f7; color: #25526b; font: 600 12px/1 Inter, sans-serif; }
.staff-ui .avatar-menu { position: absolute; right: 0; top: 42px; min-width: 200px; z-index: 40; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 10px 30px rgba(15, 27, 34, .14), 0 1px 3px rgba(15, 27, 34, .08); }
.staff-ui .avatar-menu-name { padding: 8px 10px 6px; font-size: 13px; color: #53636d; border-bottom: 1px solid rgba(15, 27, 34, .08); margin-bottom: 4px; }
.staff-ui .avatar-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; color: #0f1b22; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.staff-ui .avatar-menu button:hover { background: #f1f4f6; }
/* the current area's pages */
.staff-ui .sub-tabs { gap: 18px; margin: -6px 0 18px; }
.staff-ui .sub-tabs.empty { display: none; }
.staff-ui .sub-tabs .page-tab { padding: 10px 0; margin: 0; background: none; font-weight: 600; font-size: 14px; }
.staff-ui .sub-tabs .page-tab.active { color: #0f1b22; border-bottom-color: #0f1b22; }
@media (max-width: 900px) {
  .staff-ui .search-btn span, .staff-ui .search-btn kbd { display: none; }
  .staff-ui .hub span { display: none; }
  .staff-ui .hub { padding: 8px 10px; }
}
/* search pop-up */
.staff-ui .modal.modal-cmdk { max-width: 560px; padding: 0; overflow: hidden; align-self: flex-start; margin-top: 12vh; border-radius: 14px; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(15, 27, 34, .08); }
.cmdk-input .nav-ico { color: #8a98a1; }
.cmdk-input input { flex: 1; border: 0 !important; outline: none; box-shadow: none !important; font: 16px Inter, sans-serif; padding: 4px 0; background: transparent; }
.cmdk-input kbd { font: 600 11px Inter, sans-serif; border: 1px solid rgba(15, 27, 34, .12); border-radius: 5px; padding: 1px 6px; color: #8a98a1; }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left; font: 500 14px Inter, sans-serif; color: #0f1b22; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.cmdk-item em { font-style: normal; font-size: 12px; color: #8a98a1; }
.cmdk-item.on, .cmdk-item:hover { background: #edf4f7; }
.cmdk-none { padding: 10px; margin: 0; }

/* standby days on the Pick-a-day calendar (more than 4 weeks ahead, no instructor free) */
.student-ui .sc-cell.av-standby { background: #faf5ff !important; border: 1px dashed #a78bfa !important; color: #1f2937; }
.student-ui .sc-cell.av-standby.sc-sel { box-shadow: inset 0 0 0 2px #7c3aed; }
