  /* ══════════════════════════════════════════════════
    LUMINWELL — AMBASSADOR INTERFACE
    ambassador.css
  ══════════════════════════════════════════════════ */

  @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

  /* ── Design tokens ───────────────────────────────── */
  :root {
    --font: 'DM Sans', system-ui, sans-serif;

    /* Ambassador sidebar — deep navy (distinct from student teal-blue) */
    --sb-bg:    #0f2d45;
    --sb-deep:  #081e30;
    --sb-text:  #e8f4fd;
    --sb-muted: rgba(232,244,253,.52);
    --sb-soft:  rgba(232,244,253,.35);
    --sb-hover: rgba(255,255,255,.07);
    --sb-active:rgba(255,255,255,.14);
    --sb-line:  rgba(255,255,255,.10);
    --sb-width: 230px;

    /* Brand teal accent */
    --teal:      #2d9674;
    --teal-deep: #1a6b52;
    --teal-pale: rgba(45,150,116,.1);
    --teal-mid:  rgba(45,150,116,.22);

    /* Amber accent (ambassador-specific) */
    --amber:      #d97706;
    --amber-pale: rgba(217,119,6,.1);
    --amber-mid:  rgba(217,119,6,.22);

    /* Page + surface */
    --page-bg:   #f0f4f8;
    --surface:   #ffffff;
    --border:    #e2e8f0;
    --border-soft:#edf1f6;
    --text:      #0c1929;
    --muted:     #64748b;
    --soft:      #94a3b8;

    /* Semantic colours */
    --green:  #059669;
    --red:    #e11d48;
    --blue:   #175d92;

    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(12,25,41,.07);
    --shadow:    0 4px 16px rgba(12,25,41,.10);
    --shadow-lg: 0 8px 32px rgba(12,25,41,.14);

    /* Radius */
    --rf: 999px;
  }

  /* ── Reset ───────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html, body { height: 100%; }
  body {
    font-family: var(--font); font-size: 14px;
    color: var(--text); background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
  }
  a   { text-decoration: none; color: inherit; }
  button { font-family: var(--font); cursor: pointer; }
  input, textarea, select { font-family: var(--font); }

  /* State inputs (CSS-only interactivity) */
  .state-input { position: absolute; width: 0; height: 0; opacity: 0; pointer-events: none; }

  /* ══════════════════════════════════════════════════
    APP SHELL
  ══════════════════════════════════════════════════ */
  .app { display: flex; min-height: 100dvh; }
  .main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }

  /* ══════════════════════════════════════════════════
    SIDEBAR
  ══════════════════════════════════════════════════ */
  .sidebar {
    width: var(--sb-width); flex-shrink: 0;
    background: var(--sb-bg); color: var(--sb-text);
    display: flex; flex-direction: column;
    padding: 18px 14px 14px; overflow: hidden;
  }

  /* Head */
  .sidebar__head {
    display: flex; align-items: center; gap: 9px;
    padding: 0 6px 16px; margin-bottom: 6px;
    border-bottom: 1px solid var(--sb-line);
  }
  .sidebar__logo-img { width: 28px; height: 28px; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
  .sidebar__logo-wrap { display: flex; flex-direction: column; gap: 1px; }
  .sidebar__logo      { font-size: 11px; font-weight: 700; letter-spacing: .18em; line-height: 1; }
  .sidebar__role-tag  {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px; border-radius: var(--rf);
    background: rgba(45,150,116,.25); border: 1px solid rgba(45,150,116,.35);
    font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #6ee7c7; width: fit-content; margin-top: 3px;
  }

  /* Nav blocks */
  .sidebar__block { margin-bottom: 20px; }
  .sidebar__block--fill { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-bottom: 0; }
  .sidebar__label {
    padding: 0 8px 8px; font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--sb-soft);
  }

  .sb-nav { display: flex; flex-direction: column; gap: 1px; }
  .sb-nav__link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 9px;
    color: var(--sb-text); font-size: 13px; font-weight: 500;
    transition: background .15s; position: relative;
  }
  .sb-nav__link:hover     { background: var(--sb-hover); }
  .sb-nav__link.is-active {
    background: var(--sb-active);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
    font-weight: 700;
  }
  .sb-nav__icon { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
  .sb-nav__badge {
    margin-left: auto; min-width: 18px; height: 18px; border-radius: var(--rf);
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    padding: 0 5px;
  }
  .sb-nav__badge--amber { background: var(--amber); }
  .sb-nav__badge--teal  { background: var(--teal); }

  /* Alerts section (sidebar) */
  .sb-alerts { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; }
  .sb-alert {
    padding: 9px 10px; border-radius: 9px;
    border-left: 3px solid transparent;
    background: rgba(255,255,255,.04);
    display: flex; flex-direction: column; gap: 3px;
    cursor: pointer; transition: background .15s;
  }
  .sb-alert:hover { background: var(--sb-hover); }
  .sb-alert--red    { border-left-color: var(--red); }
  .sb-alert--amber  { border-left-color: var(--amber); }
  .sb-alert__title { font-size: 12px; font-weight: 600; line-height: 1.3; }
  .sb-alert__meta  { font-size: 11px; color: var(--sb-muted); }

  /* Footer */
  .sidebar__foot {
    padding-top: 14px; margin-top: auto;
    border-top: 1px solid var(--sb-line);
    display: flex; flex-direction: column; gap: 10px; flex-shrink: 0;
  }
  .sidebar__foot-user { display: flex; align-items: center; gap: 10px; }
  .sidebar__signout {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 9px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
    color: var(--sb-muted); font-size: 11px; font-weight: 700; font-family: var(--font);
    cursor: pointer; text-decoration: none; width: 100%;
    transition: background .14s, color .14s;
  }
  .sidebar__signout:hover { background: rgba(225,29,72,.15); color: #fca5a5; border-color: rgba(225,29,72,.3); }
  .sidebar__signout svg { width: 13px; height: 13px; flex-shrink: 0; }
  .sidebar__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
  }
  .sidebar__name    { font-size: 13px; font-weight: 800; line-height: 1.2; }
  .sidebar__stats   { font-size: 11px; color: var(--sb-muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
  .sidebar__stats svg { width: 10px; height: 10px; }

  /* ══════════════════════════════════════════════════
    TOPBAR
  ══════════════════════════════════════════════════ */
  .topbar {
    height: 56px; padding: 0 24px;
    display: flex; align-items: center; gap: 12px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .topbar__left  { display: flex; align-items: center; gap: 10px; }
  .topbar__logo-img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
  .topbar__title { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
  .topbar__divider { width: 1px; height: 18px; background: var(--border); }
  .topbar__sub { font-size: 13px; color: var(--muted); }
  .topbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .topbar__crisis {
    padding: 5px 12px; border-radius: var(--rf);
    background: rgba(239,68,68,.09); color: #b91c1c;
    font-size: 12px; font-weight: 700; border: none;
    transition: background .14s;
  }
  .topbar__crisis:hover { background: rgba(239,68,68,.15); }
  .topbar__icon-btn {
    width: 32px; height: 32px; border-radius: 8px; border: none;
    background: transparent; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    transition: background .14s, color .14s; position: relative;
  }
  .topbar__icon-btn:hover { background: rgba(12,25,41,.05); color: var(--text); }
  .topbar__icon-btn svg { width: 17px; height: 17px; }
  .topbar__icon-btn .notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); border: 1.5px solid var(--surface);
  }
  .topbar__today {
    padding: 5px 12px; border-radius: var(--rf);
    background: var(--page-bg); border: 1.5px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--muted);
    display: flex; align-items: center; gap: 5px;
  }
  .topbar__today svg { width: 13px; height: 13px; }

  /* ── Notification dropdown (CSS-only) ── */
  .notif-wrap { position: relative; }
  .notif-toggle { display: none; }
  .notif-toggle + .topbar__icon-btn { cursor: pointer; }
  .notif-drop {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: 330px; background: var(--surface); border-radius: 16px;
    border: 1.5px solid var(--border);
    box-shadow: 0 8px 32px rgba(15,45,69,.18), 0 2px 8px rgba(15,45,69,.08);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility 0s .18s;
    z-index: 200;
  }
  .notif-toggle:checked ~ .topbar__icon-btn { background: rgba(12,25,41,.07); color: var(--text); }
  .notif-toggle:checked ~ .notif-drop {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(0); transition: opacity .18s, transform .18s;
  }
  .notif-drop__head {
    padding: 14px 18px 10px; border-bottom: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: space-between;
  }
  .notif-drop__title { font-size: 13px; font-weight: 800; letter-spacing: -0.01em; }
  .notif-drop__mark  {
    font-size: 11px; color: var(--teal-deep); font-weight: 700;
    background: none; border: none; cursor: pointer; font-family: var(--font);
  }
  .notif-list { display: flex; flex-direction: column; padding: 6px 0; max-height: 340px; overflow-y: auto; }
  .notif-item {
    display: flex; gap: 12px; padding: 11px 18px;
    transition: background .12s; cursor: pointer; text-decoration: none;
  }
  .notif-item:hover { background: var(--page-bg); }
  .notif-item--unread { background: rgba(45,150,116,.04); }
  .notif-item--unread:hover { background: rgba(45,150,116,.08); }
  .notif-item__icon {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .notif-item__icon svg { width: 15px; height: 15px; }
  .notif-item__body { flex: 1; min-width: 0; }
  .notif-item__title { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.35; }
  .notif-item__meta  { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .notif-item__dot   {
    width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
    flex-shrink: 0; margin-top: 5px; align-self: flex-start;
  }
  .notif-drop__foot {
    padding: 10px 18px; border-top: 1px solid var(--border-soft); text-align: center;
  }
  .notif-drop__foot a {
    font-size: 12px; font-weight: 700; color: var(--teal-deep); text-decoration: none;
  }
  .notif-drop__foot a:hover { text-decoration: underline; }

  /* ══════════════════════════════════════════════════
    PAGE WRAPPER
  ══════════════════════════════════════════════════ */
  .amb-page  { flex: 1; overflow-y: auto; background: var(--page-bg); }
  .amb-inner { padding: 26px 26px 60px; display: flex; flex-direction: column; gap: 24px; }

  /* ── Page header ─────────────────────────────────── */
  .amb-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 16px; flex-wrap: wrap;
  }
  .amb-header__text { display: flex; flex-direction: column; }
  .amb-header__title {
    font-size: 24px; font-weight: 800; letter-spacing: -0.04em;
    color: var(--text); line-height: 1.2;
  }
  .amb-header__sub {
    font-size: 13px; color: var(--muted); margin-top: 4px;
  }
  .amb-header__actions { display: flex; align-items: center; gap: 8px; }

  /* ── Buttons ─────────────────────────────────────── */
  .btn-primary {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: 10px;
    background: var(--sb-bg); color: #fff;
    font-size: 13px; font-weight: 700; font-family: var(--font);
    border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 2px 10px rgba(15,45,69,.25);
    transition: background .14s, box-shadow .14s;
  }
  .btn-primary:hover { background: var(--sb-deep); box-shadow: 0 4px 16px rgba(15,45,69,.32); }
  .btn-primary svg { width: 14px; height: 14px; }

  .btn-secondary {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: 10px;
    background: var(--surface); border: 1.5px solid var(--border);
    color: var(--muted); font-size: 13px; font-weight: 700; font-family: var(--font);
    cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm);
    transition: all .14s;
  }
  .btn-secondary:hover { border-color: var(--sb-bg); color: var(--sb-bg); }
  .btn-secondary svg { width: 14px; height: 14px; }

  .btn-teal {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: 10px;
    background: var(--teal); color: #fff;
    font-size: 13px; font-weight: 700; font-family: var(--font);
    border: none; cursor: pointer; text-decoration: none;
    box-shadow: 0 2px 8px rgba(45,150,116,.25);
    transition: background .14s;
  }
  .btn-teal:hover { background: var(--teal-deep); }
  .btn-teal svg { width: 14px; height: 14px; }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 8px;
    background: transparent; border: none; color: var(--muted);
    font-size: 12px; font-weight: 600; font-family: var(--font);
    cursor: pointer; text-decoration: none; transition: all .14s;
  }
  .btn-ghost:hover { background: var(--page-bg); color: var(--text); }
  .btn-ghost svg { width: 13px; height: 13px; }

  /* ══════════════════════════════════════════════════
    STATS ROW (4-col)
  ══════════════════════════════════════════════════ */
  .stats-row {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 14px;
  }
  .stat-card {
    background: var(--surface); border-radius: 14px;
    border: 1px solid var(--border); padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 14px;
  }
  .stat-card__icon {
    width: 42px; height: 42px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .stat-card__icon svg { width: 18px; height: 18px; }
  .stat-card__icon--navy  { background: rgba(15,45,69,.1);   color: var(--sb-bg); }
  .stat-card__icon--teal  { background: rgba(45,150,116,.1); color: var(--teal); }
  .stat-card__icon--amber { background: rgba(217,119,6,.1);  color: var(--amber); }
  .stat-card__icon--green { background: rgba(5,150,105,.1);  color: #059669; }
  .stat-card__icon--red   { background: rgba(225,29,72,.08); color: var(--red); }
  .stat-card__val   { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
  .stat-card__label { font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 500; }
  .stat-card__delta {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 700; margin-top: 4px;
  }
  .stat-card__delta--up   { color: #059669; }
  .stat-card__delta--down { color: var(--red); }
  .stat-card__delta svg { width: 10px; height: 10px; }

  /* ══════════════════════════════════════════════════
    TWO-COLUMN LAYOUT
  ══════════════════════════════════════════════════ */
  .two-col { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
  .left-col { display: flex; flex-direction: column; gap: 20px; }
  .right-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 26px; }

  /* ══════════════════════════════════════════════════
    SECTION CARD
  ══════════════════════════════════════════════════ */
  .section-card {
    background: var(--surface); border-radius: 16px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    overflow: hidden;
  }
  .section-card__head {
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
  }
  .section-card__title {
    font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 8px;
  }
  .section-card__title-icon {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
  }
  .section-card__title-icon svg { width: 14px; height: 14px; }
  .section-card__title-icon--navy  { background: rgba(15,45,69,.1);   color: var(--sb-bg); }
  .section-card__title-icon--teal  { background: rgba(45,150,116,.1); color: var(--teal); }
  .section-card__title-icon--amber { background: rgba(217,119,6,.1);  color: var(--amber); }
  .section-card__title-icon--green { background: rgba(5,150,105,.1);  color: #059669; }
  .section-card__title-icon--red   { background: rgba(225,29,72,.08); color: var(--red); }
  .section-card__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
  .section-card__empty {
    padding: 28px 20px; text-align: center;
    color: var(--soft); font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  }
  .section-card__empty svg { width: 28px; height: 28px; opacity: .4; }

  /* ══════════════════════════════════════════════════
    SESSION / AGENDA CARD
  ══════════════════════════════════════════════════ */
  .session-item {
    display: flex; align-items: stretch; gap: 0;
    border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--surface); overflow: hidden;
    transition: box-shadow .18s, border-color .18s;
  }
  .session-item:hover { box-shadow: var(--shadow); border-color: rgba(15,45,69,.2); }

  .session-item__accent { width: 4px; flex-shrink: 0; }

  .session-item__body {
    flex: 1; padding: 13px 14px;
    display: flex; align-items: center; gap: 13px;
  }
  .session-item__time-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 50px; }
  .session-item__time     { font-size: 13px; font-weight: 800; color: var(--text); line-height: 1; }
  .session-item__dur      { font-size: 10px; color: var(--soft); margin-top: 2px; }
  .session-item__divider  { width: 1px; height: 36px; background: var(--border-soft); flex-shrink: 0; }
  .session-item__avatar {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; border: 2px solid rgba(255,255,255,.7);
    box-shadow: 0 1px 6px rgba(12,25,41,.1);
  }
  .session-item__info { flex: 1; min-width: 0; }
  .session-item__name { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
  .session-item__meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .session-item__meta svg { width: 11px; height: 11px; }
  .session-item__tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
  .session-item__tag {
    padding: 2px 8px; border-radius: var(--rf);
    font-size: 10px; font-weight: 700;
    background: var(--page-bg); border: 1px solid var(--border); color: var(--muted);
  }

  /* Prep status pill */
  .prep-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--rf);
    font-size: 10px; font-weight: 700;
  }
  .prep-pill--done  { background: rgba(45,150,116,.1); color: var(--teal-deep); border: 1px solid var(--teal-mid); }
  .prep-pill--none  { background: rgba(217,119,6,.1);  color: #92400e; border: 1px solid var(--amber-mid); }
  .prep-pill svg    { width: 9px; height: 9px; }

  /* Session type badge */
  .type-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--rf);
    font-size: 10px; font-weight: 700;
  }
  .type-badge--video   { background: rgba(15,45,69,.08); color: var(--sb-bg); border: 1px solid rgba(15,45,69,.15); }
  .type-badge--person  { background: rgba(45,150,116,.1); color: var(--teal-deep); border: 1px solid var(--teal-mid); }
  .type-badge--chat    { background: rgba(217,119,6,.1);  color: #92400e; border: 1px solid var(--amber-mid); }
  .type-badge svg      { width: 9px; height: 9px; }

  .session-item__actions { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; justify-content: center; flex-shrink: 0; }
  .btn-join {
    padding: 8px 14px; border-radius: 8px;
    background: var(--teal); color: #fff;
    font-size: 11px; font-weight: 800; font-family: var(--font);
    border: none; cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    white-space: nowrap; transition: background .14s;
    box-shadow: 0 1px 6px rgba(45,150,116,.3);
  }
  .btn-join:hover { background: var(--teal-deep); }
  .btn-join svg { width: 11px; height: 11px; }
  .btn-prep {
    padding: 7px 14px; border-radius: 8px;
    border: 1.5px solid var(--border); background: transparent;
    color: var(--muted); font-size: 11px; font-weight: 700; font-family: var(--font);
    cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    white-space: nowrap; transition: all .14s;
  }
  .btn-prep:hover { border-color: var(--sb-bg); color: var(--sb-bg); }
  .btn-prep svg { width: 11px; height: 11px; }

  /* ══════════════════════════════════════════════════
    CLIENT CARDS
  ══════════════════════════════════════════════════ */
  .student-card {
    display: flex; align-items: center; gap: 13px;
    padding: 13px 16px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .18s, border-color .18s;
    text-decoration: none; color: inherit;
  }
  .student-card:hover { box-shadow: var(--shadow); border-color: rgba(15,45,69,.2); }
  .student-card__avatar {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,.7); box-shadow: 0 1px 6px rgba(12,25,41,.1);
  }
  .student-card__info { flex: 1; min-width: 0; }
  .student-card__name { font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
  .student-card__meta { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .student-card__meta svg { width: 11px; height: 11px; }
  .student-card__right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }

  /* Mood mini-bar (5 dots) */
  .mood-bar { display: flex; gap: 3px; align-items: center; }
  .mood-dot {
    width: 9px; height: 9px; border-radius: 50%;
    border: 1.5px solid transparent;
  }
  .mood-dot--great  { background: #34d399; }
  .mood-dot--good   { background: #6ee7b7; }
  .mood-dot--okay   { background: #fbbf24; }
  .mood-dot--low    { background: #f87171; }
  .mood-dot--empty  { background: var(--border); border-color: var(--border-soft); }

  /* Flag */
  .flag-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--rf);
    font-size: 10px; font-weight: 800;
  }
  .flag-badge--red   { background: rgba(225,29,72,.1); color: #b91c1c; border: 1px solid rgba(225,29,72,.2); }
  .flag-badge--amber { background: rgba(217,119,6,.1); color: #92400e; border: 1px solid var(--amber-mid); }
  .flag-badge--none  { background: var(--page-bg); color: var(--soft); border: 1px solid var(--border-soft); }
  .flag-badge svg    { width: 9px; height: 9px; }

  /* ══════════════════════════════════════════════════
    TASK LIST
  ══════════════════════════════════════════════════ */
  .task-item {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 11px 0; border-bottom: 1px solid var(--border-soft);
  }
  .task-item:last-child { border-bottom: none; }
  .task-item__check {
    width: 18px; height: 18px; border-radius: 5px;
    border: 2px solid var(--border); background: transparent; flex-shrink: 0; margin-top: 1px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: all .14s;
  }
  .task-item__check--done { background: var(--teal); border-color: var(--teal); }
  .task-item__check--done svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 2.5; }
  .task-item__body  { flex: 1; min-width: 0; }
  .task-item__title { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
  .task-item__title--done { text-decoration: line-through; color: var(--soft); }
  .task-item__meta  { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
  .task-item__meta svg { width: 11px; height: 11px; }
  .priority-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
  }
  .priority-dot--high   { background: var(--red); }
  .priority-dot--medium { background: var(--amber); }
  .priority-dot--low    { background: var(--teal); }

  /* ══════════════════════════════════════════════════
    BOOKING REQUEST CARD
  ══════════════════════════════════════════════════ */
  .booking-req {
    padding: 12px 14px; border-radius: 11px;
    border: 1.5px solid var(--border); background: var(--surface);
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: var(--shadow-sm);
  }
  .booking-req__head { display: flex; align-items: center; gap: 10px; }
  .booking-req__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
  }
  .booking-req__name { font-size: 13px; font-weight: 800; }
  .booking-req__meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .booking-req__new  { margin-left: auto; }
  .booking-req__actions { display: flex; gap: 7px; }
  .btn-accept {
    flex: 1; padding: 7px; border-radius: 8px;
    background: var(--teal); color: #fff;
    font-size: 11px; font-weight: 800; font-family: var(--font);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: background .14s;
  }
  .btn-accept:hover { background: var(--teal-deep); }
  .btn-accept svg { width: 11px; height: 11px; }
  .btn-decline {
    flex: 1; padding: 7px; border-radius: 8px;
    border: 1.5px solid var(--border); background: transparent;
    color: var(--muted); font-size: 11px; font-weight: 700; font-family: var(--font);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: all .14s;
  }
  .btn-decline:hover { border-color: var(--red); color: var(--red); }
  .btn-decline svg { width: 11px; height: 11px; }

  /* ══════════════════════════════════════════════════
    NOTIFICATION ROW
  ══════════════════════════════════════════════════ */
  .notif-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
  }
  .notif-row:last-child { border-bottom: none; }
  .notif-row__dot {
    width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  }
  .notif-row__dot--red   { background: var(--red); }
  .notif-row__dot--amber { background: var(--amber); }
  .notif-row__dot--teal  { background: var(--teal); }
  .notif-row__dot--blue  { background: var(--blue); }
  .notif-row__dot--grey  { background: var(--soft); }
  .notif-row__text { flex: 1; font-size: 12px; line-height: 1.55; }
  .notif-row__text strong { font-weight: 700; color: var(--text); }
  .notif-row__time { font-size: 11px; color: var(--soft); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

  /* ══════════════════════════════════════════════════
    QUICK-ACTION PANEL
  ══════════════════════════════════════════════════ */
  .quick-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .quick-action {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 13px 13px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--surface);
    cursor: pointer; text-decoration: none; color: inherit;
    transition: all .16s; box-shadow: var(--shadow-sm);
  }
  .quick-action:hover { border-color: var(--sb-bg); box-shadow: var(--shadow); transform: translateY(-1px); }
  .quick-action__icon {
    width: 32px; height: 32px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
  }
  .quick-action__icon svg { width: 15px; height: 15px; }
  .quick-action__icon--navy  { background: rgba(15,45,69,.1);   color: var(--sb-bg); }
  .quick-action__icon--teal  { background: rgba(45,150,116,.1); color: var(--teal); }
  .quick-action__icon--amber { background: rgba(217,119,6,.1);  color: var(--amber); }
  .quick-action__icon--green { background: rgba(5,150,105,.1);  color: #059669; }
  .quick-action__icon--red   { background: rgba(225,29,72,.08); color: var(--red); }
  .quick-action__label { font-size: 12px; font-weight: 700; color: var(--text); line-height: 1.3; }

  /* ══════════════════════════════════════════════════
    AVAILABILITY GRID
  ══════════════════════════════════════════════════ */
  .avail-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  }
  .avail-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
  .avail-day__label { font-size: 10px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
  .avail-slot {
    width: 100%; height: 28px; border-radius: 6px;
    border: 1.5px solid var(--border); background: var(--page-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; color: var(--soft);
    cursor: pointer; transition: all .14s;
  }
  .avail-slot--open   { background: var(--teal-pale); border-color: var(--teal-mid); color: var(--teal-deep); }
  .avail-slot--booked { background: rgba(15,45,69,.1); border-color: rgba(15,45,69,.2); color: var(--sb-bg); }
  .avail-slot--off    { background: var(--page-bg); border-color: var(--border); color: var(--soft); }

  /* ══════════════════════════════════════════════════
    SECTION DIVIDER LABEL
  ══════════════════════════════════════════════════ */
  .divider-label {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    text-transform: uppercase; color: var(--soft);
    display: flex; align-items: center; gap: 10px;
  }
  .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

  /* ══════════════════════════════════════════════════
    TABS (CSS-only radio)
  ══════════════════════════════════════════════════ */
  .tab-bar {
    display: flex; gap: 2px;
    background: var(--page-bg); border: 1.5px solid var(--border);
    border-radius: 11px; padding: 3px;
    box-shadow: var(--shadow-sm);
  }
  .tab-radio { display: none; }
  .tab-pill {
    flex: 1; padding: 8px 14px; border-radius: 8px; text-align: center;
    font-size: 13px; font-weight: 600; color: var(--muted);
    cursor: pointer; transition: all .15s; white-space: nowrap;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .tab-pill svg { width: 13px; height: 13px; }
  .tab-radio:checked + .tab-pill {
    background: var(--surface); color: var(--text); font-weight: 700;
    box-shadow: var(--shadow-sm);
  }
  .tab-panel { display: none; }
  #tab1:checked ~ .tab-panels #panel1 { display: flex; flex-direction: column; gap: 12px; }
  #tab2:checked ~ .tab-panels #panel2 { display: flex; flex-direction: column; gap: 12px; }
  #tab3:checked ~ .tab-panels #panel3 { display: flex; flex-direction: column; gap: 12px; }
  #tab4:checked ~ .tab-panels #panel4 { display: flex; flex-direction: column; gap: 12px; }

  /* ══════════════════════════════════════════════════
    WELFARE ALERT
  ══════════════════════════════════════════════════ */
  .welfare-alert {
    display: flex; align-items: flex-start; gap: 11px;
    padding: 13px 14px; border-radius: 12px;
    border-left: 4px solid var(--red);
    background: rgba(225,29,72,.05); border-top: 1px solid rgba(225,29,72,.12);
    border-right: 1px solid rgba(225,29,72,.12); border-bottom: 1px solid rgba(225,29,72,.12);
  }
  .welfare-alert--amber {
    border-left-color: var(--amber);
    background: rgba(217,119,6,.05);
    border-top-color: rgba(217,119,6,.12);
    border-right-color: rgba(217,119,6,.12);
    border-bottom-color: rgba(217,119,6,.12);
  }
  .welfare-alert__icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
  .welfare-alert__icon--red   { background: rgba(225,29,72,.12); color: var(--red); }
  .welfare-alert__icon--amber { background: rgba(217,119,6,.12); color: var(--amber); }
  .welfare-alert__icon svg { width: 15px; height: 15px; }
  .welfare-alert__title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 3px; }
  .welfare-alert__sub   { font-size: 12px; color: var(--muted); line-height: 1.55; }
  .welfare-alert__actions { display: flex; gap: 6px; margin-top: 8px; }
  .btn-welfare-act {
    padding: 6px 12px; border-radius: 7px;
    font-size: 11px; font-weight: 800; font-family: var(--font);
    cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px; transition: all .14s;
  }
  .btn-welfare-act--red { background: var(--red); color: #fff; border: none; }
  .btn-welfare-act--red:hover { background: #b91c1c; }
  .btn-welfare-act--outline {
    background: transparent; border: 1.5px solid var(--border);
    color: var(--muted);
  }
  .btn-welfare-act--outline:hover { border-color: var(--text); color: var(--text); }

  /* ══════════════════════════════════════════════════
    NOTE EDITOR
  ══════════════════════════════════════════════════ */
  .note-field {
    display: flex; flex-direction: column; gap: 6px;
  }
  .note-field__label {
    font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .07em;
  }
  .note-field__input {
    width: 100%; padding: 11px 14px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--page-bg);
    font-family: var(--font); font-size: 13px; color: var(--text);
    resize: vertical; line-height: 1.65; outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .note-field__input:focus {
    border-color: rgba(15,45,69,.3);
    box-shadow: 0 0 0 3px rgba(15,45,69,.07);
    background: var(--surface);
  }

  /* ══════════════════════════════════════════════════
    WEEK STRIP (mini calendar)
  ══════════════════════════════════════════════════ */
  .week-strip {
    display: flex; gap: 5px;
  }
  .week-day {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px; border-radius: 10px; cursor: pointer;
    transition: all .14s;
  }
  .week-day:hover { background: var(--page-bg); }
  .week-day--today {
    background: var(--sb-bg); color: #fff;
    box-shadow: 0 2px 8px rgba(15,45,69,.25);
  }
  .week-day--has-session { position: relative; }
  .week-day__label { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .65; }
  .week-day--today .week-day__label { opacity: .75; }
  .week-day__num   { font-size: 15px; font-weight: 800; line-height: 1; }
  .week-day__dot {
    width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
  }
  .week-day--today .week-day__dot { background: rgba(255,255,255,.65); }

  /* ══════════════════════════════════════════════════
    MESSAGE PREVIEW ROW
  ══════════════════════════════════════════════════ */
  .msg-preview {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 0; border-bottom: 1px solid var(--border-soft);
    cursor: pointer; transition: opacity .14s;
  }
  .msg-preview:last-child { border-bottom: none; }
  .msg-preview:hover { opacity: .8; }
  .msg-preview__avatar {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; box-shadow: 0 1px 4px rgba(12,25,41,.1);
  }
  .msg-preview__name  { font-size: 13px; font-weight: 700; }
  .msg-preview__text  { font-size: 12px; color: var(--muted); line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .msg-preview__right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .msg-preview__time  { font-size: 10px; color: var(--soft); }
  .msg-preview__unread {
    min-width: 17px; height: 17px; border-radius: var(--rf);
    background: var(--red); color: #fff;
    font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px;
  }

  /* ══════════════════════════════════════════════════
    FORM ELEMENTS
  ══════════════════════════════════════════════════ */
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; }
  .form-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
  .form-input {
    padding: 10px 13px; border-radius: 9px;
    border: 1.5px solid var(--border); background: var(--surface);
    font-family: var(--font); font-size: 13px; color: var(--text); outline: none;
    transition: border-color .15s, box-shadow .15s;
  }
  .form-input:focus { border-color: rgba(15,45,69,.3); box-shadow: 0 0 0 3px rgba(15,45,69,.07); }
  .form-select {
    padding: 10px 13px; border-radius: 9px;
    border: 1.5px solid var(--border); background: var(--surface);
    font-family: var(--font); font-size: 13px; color: var(--text); outline: none;
    appearance: none; cursor: pointer;
  }

  /* ══════════════════════════════════════════════════
    MISC UTILITIES
  ══════════════════════════════════════════════════ */
  .badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--rf);
    font-size: 11px; font-weight: 700;
  }
  .badge--new   { background: rgba(5,150,105,.1); color: #065f46; border: 1px solid rgba(5,150,105,.2); }
  .badge--info  { background: rgba(15,45,69,.08); color: var(--sb-bg); border: 1px solid rgba(15,45,69,.15); }
  .badge--warn  { background: rgba(217,119,6,.1); color: #92400e; border: 1px solid var(--amber-mid); }
  .badge--alert { background: rgba(225,29,72,.1); color: #b91c1c; border: 1px solid rgba(225,29,72,.2); }
  .badge svg    { width: 9px; height: 9px; }

  .privacy-strip {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 16px; border-radius: 11px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 12px; color: var(--muted); line-height: 1.6;
    box-shadow: var(--shadow-sm);
  }
  .privacy-strip svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--teal); }

  /* ══════════════════════════════════════════════════
    SIDEBAR COLLAPSE  (CSS-only · :has checkbox)
  ══════════════════════════════════════════════════ */
  .sb-collapse-btn {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    color: var(--sb-muted); cursor: pointer; margin-left: auto;
    transition: background .15s, color .15s;
  }
  .sb-collapse-btn:hover { background: rgba(255,255,255,.18); color: var(--sb-text); }
  .sb-collapse-btn svg { width: 13px; height: 13px; pointer-events: none; }
  .sb-collapse-btn .icon-expand { display: none; }
  .sb-collapse-btn .icon-collapse { display: block; }

  /* Animate sidebar width */
  .sidebar { transition: width .22s cubic-bezier(.4,0,.2,1), padding .22s cubic-bezier(.4,0,.2,1); overflow: hidden; }

  /* ── Collapsed state ──────────────────────────── */
  .app:has(#sb-toggle:checked) .sidebar {
    width: 64px; padding: 14px 8px;
  }
  .app:has(#sb-toggle:checked) .sidebar__head {
    justify-content: center; gap: 0; flex-direction: column;
    align-items: center; padding-bottom: 12px;
  }
  .app:has(#sb-toggle:checked) .sidebar__logo-wrap  { display: none; }
  .app:has(#sb-toggle:checked) .sb-collapse-btn     { margin: 6px 0 0; width: 38px; height: 28px; }
  .app:has(#sb-toggle:checked) .sb-collapse-btn .icon-collapse { display: none; }
  .app:has(#sb-toggle:checked) .sb-collapse-btn .icon-expand   { display: block; }

  .app:has(#sb-toggle:checked) .sidebar__label       { display: none; }
  .app:has(#sb-toggle:checked) .sb-nav              { gap: 4px; }
  .app:has(#sb-toggle:checked) .sb-nav__link {
    justify-content: center; padding: 10px 4px; gap: 0; font-size: 0;
  }
  .app:has(#sb-toggle:checked) .sb-nav__icon        { width: 20px; height: 20px; opacity: 1; }
  .app:has(#sb-toggle:checked) .sb-nav__badge       { display: none; }
  .app:has(#sb-toggle:checked) .sidebar__block--fill { display: none; }
  .app:has(#sb-toggle:checked) .sidebar__foot       { align-items: center; padding-top: 12px; }
  .app:has(#sb-toggle:checked) .sidebar__signout    { display: none; }
  .app:has(#sb-toggle:checked) .sidebar__name       { display: none; }
  .app:has(#sb-toggle:checked) .sidebar__stats      { display: none; }

  /* ── Chart bars ───────────────────────────────── */
  .chart-bars {
    display: flex; align-items: stretch; gap: 10px; height: 120px;
    padding: 0 4px;
  }
  .chart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; flex: 1; }
  .chart-col__bar {
    width: 100%; border-radius: 5px 5px 0 0; min-height: 4px; flex-shrink: 0;
    transition: opacity .14s;
  }
  .chart-col__bar:hover { opacity: .75; }
  .chart-col__val   { font-size: 11px; font-weight: 800; color: var(--text); }
  .chart-col__label { font-size: 10px; color: var(--soft); font-weight: 600; letter-spacing: .03em; }
  .chart-col--today  .chart-col__bar { background: var(--sb-bg); }
  .chart-col--teal   .chart-col__bar { background: linear-gradient(180deg, #4db896 0%, #2d9676 100%); }
  .chart-col--green  .chart-col__bar { background: linear-gradient(180deg, #34d399 0%, #059669 100%); }
  .chart-col--amber  .chart-col__bar { background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%); }
  .chart-col--blue   .chart-col__bar { background: linear-gradient(180deg, #60a5fa 0%, #175d92 100%); }
  /* keep legacy aliases */
  .chart-col--active .chart-col__bar { background: linear-gradient(180deg, #4db896 0%, #2d9676 100%); }
  .chart-col--low    .chart-col__bar { background: #cbd5e1; }
  .chart-legend {
    display: flex; gap: 14px; flex-wrap: wrap;
  }
  .chart-legend__item {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--muted); font-weight: 600;
  }
  .chart-legend__dot {
    width: 9px; height: 9px; border-radius: 3px;
  }
