    /* STAT ROW */
    .srow {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 11px;
      margin-bottom: 16px;
    }

    /* 5-column variant of .srow, for rows of 5 summary cards (e.g. Fees
       Details' 5th "Total Fees Yet to Be Paid" card). Already referenced
       by class name elsewhere (coord-dash.html, dashboard.html) but had
       no matching rule, so those rows were silently falling back to the
       base 4-column .srow grid; this adds the missing definition without
       changing .srow itself, so no other page's layout is affected. */
    .srow-5 {
      grid-template-columns: repeat(5, 1fr);
    }

    .sc {
      background: #fff;
      border: 1.5px solid var(--brd);
      border-radius: 12px;
      padding: 13px 15px;
      display: flex;
      align-items: flex-start;
      gap: 11px;
      box-shadow: 0 2px 6px rgba(0, 48, 135, .04);
    }

    .sc-ic {
      width: 38px;
      height: 38px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.05rem;
      flex-shrink: 0;
    }

    .sc-n {
      font-size: 1.6rem;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 2px;
    }

    .sc-l {
      font-size: .69rem;
      color: var(--mut);
      font-weight: 600;
    }

    .sc-s {
      font-size: .62rem;
      color: var(--mut2);
      margin-top: 1px;
    }

    /* TWO COL */
    .two {
      display: grid;
      grid-template-columns: 1fr 308px;
      gap: 14px;
      align-items: start;
    }

    /* CARD */
    .dc {
      background: #fff;
      border: 1.5px solid var(--brd);
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 13px;
      box-shadow: 0 2px 5px rgba(0, 48, 135, .04);
    }

    /* Student Data Updates — category card grid: 3 -> 2 -> 1 columns */
    .ac-du-card-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
    }
    @media (max-width: 900px) {
      .ac-du-card-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 560px) {
      .ac-du-card-grid { grid-template-columns: 1fr; }
    }
    .ac-du-card {
      background: #fff;
      border: 1.5px solid var(--brd);
      border-radius: 14px;
      padding: 18px;
      box-shadow: 0 2px 5px rgba(0, 48, 135, .04);
      display: flex;
      flex-direction: column;
      gap: 4px;
      transition: box-shadow .15s, transform .15s, border-color .15s;
    }
    .ac-du-card:hover {
      box-shadow: 0 6px 16px rgba(0, 48, 135, .11);
      transform: translateY(-2px);
      border-color: var(--navy);
    }
    .ac-du-card .ac-du-icon {
      font-size: 1.35rem;
      width: 42px; height: 42px;
      display: flex; align-items: center; justify-content: center;
      background: var(--nlight);
      border-radius: 10px;
      margin-bottom: 10px;
    }
    .ac-du-card .ac-du-title { font-size: .88rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
    .ac-du-card .ac-du-sub { font-size: .68rem; color: var(--mut); margin-bottom: 8px; }
    .ac-du-card .ac-du-fields { font-size: .65rem; color: var(--mut2, var(--mut)); line-height: 1.7; margin-bottom: 12px; flex: 1; padding-top: 8px; border-top: 1px solid var(--nlight); }
    .ac-du-card button { width: 100%; }

    .dc-h {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 11px;
    }

    .dc-t {
      font-size: .78rem;
      font-weight: 700;
      color: var(--navy);
    }

    .dc-a {
      font-size: .7rem;
      color: var(--navy);
      font-weight: 600;
      cursor: pointer;
    }

    /* ── Live Session Cards (Live Now / Upcoming) ── */
    .fliv-card {
      position: relative;
      border: 1.5px solid var(--brd);
      border-radius: 14px;
      padding: 14px 16px 14px 20px;
      margin-bottom: 10px;
      background: #fff;
      box-shadow: 0 2px 8px rgba(0, 48, 135, .05);
      transition: box-shadow .2s, transform .2s;
    }
    .fliv-card:last-child { margin-bottom: 0; }
    .fliv-card::before {
      content: '';
      position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px;
      border-radius: 4px;
      background: var(--brd2);
    }
    .fliv-card.is-today {
      border-color: var(--rbr);
      box-shadow: 0 4px 16px rgba(192, 57, 43, .12);
    }
    .fliv-card.is-today::before { background: var(--red); }
    .fliv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
    .fliv-titlewrap { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
    .fliv-icon {
      width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.02rem; background: var(--nlight);
    }
    .fliv-card.is-today .fliv-icon { background: var(--rbg); }
    .fliv-title { font-size: .85rem; font-weight: 800; color: var(--txt); line-height: 1.35; }
    .fliv-plat { font-size: .65rem; color: var(--mut); font-weight: 600; margin-top: 2px; }
    .fliv-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
    .fliv-chip {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: .66rem; font-weight: 700; color: var(--mut);
      background: var(--nlight); padding: 4px 10px; border-radius: 100px;
      white-space: nowrap;
    }
    .fliv-actions {
      display: flex; gap: 7px; flex-wrap: wrap; align-items: center;
      padding-top: 11px; border-top: 1px dashed var(--brd);
    }
    .fliv-pill {
      font-size: .62rem; font-weight: 800; padding: 4px 11px; border-radius: 100px;
      white-space: nowrap; letter-spacing: .2px; flex-shrink: 0;
    }
    .fliv-pill.locked { background: var(--rbg); color: var(--red); border: 1px solid var(--rbr); }
    .fliv-pill.unlocked { background: var(--gbg); color: var(--grn); border: 1px solid var(--gbr); }
    .fliv-empty {
      text-align: center; padding: 26px 16px; color: var(--mut); font-size: .76rem;
      display: flex; flex-direction: column; align-items: center; gap: 6px;
    }
    .fliv-empty .fliv-empty-ic { font-size: 1.6rem; opacity: .55; }

    /* ── Access Control — professional table ── */
    .ac-table-card { border: 1.5px solid var(--brd); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 48, 135, .05); background: #fff; }
    .ac-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
    .ac-table thead th {
      position: sticky; top: 0; z-index: 2;
      background: var(--navy); color: #fff;
      padding: 11px 14px; text-align: left;
      font-size: .63rem; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
      white-space: nowrap; border-bottom: none;
    }
    .ac-table tbody tr { border-bottom: 1px solid var(--brd); transition: background .15s; }
    .ac-table tbody tr:nth-child(even) { background: #fafbfd; }
    .ac-table tbody tr:hover { background: var(--nlight); }
    .ac-table tbody tr:last-child { border-bottom: none; }
    .ac-table td { padding: 11px 14px; vertical-align: middle; }
    .ac-person { display: flex; align-items: center; gap: 10px; }
    .ac-avatar {
      width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: .68rem; font-weight: 800; color: #fff;
      box-shadow: 0 2px 4px rgba(0,0,0,.12);
    }
    .ac-pname { font-weight: 700; color: var(--txt); font-size: .79rem; line-height: 1.25; }
    .ac-pemail { font-size: .67rem; color: var(--mut); margin-top: 1px; }
    .ac-role-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .65rem; font-weight: 800; padding: 4px 11px; border-radius: 100px; white-space: nowrap; }
    .ac-scope-box { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
    .ac-scope-all { display: inline-flex; align-items: center; gap: 5px; font-size: .66rem; font-weight: 700; color: var(--teal); background: #e3f6f4; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
    .ac-scope-prog { display: inline-flex; align-items: center; gap: 4px; font-size: .66rem; font-weight: 800; color: var(--blu); background: var(--bbg); padding: 3px 9px; border-radius: 6px; width: fit-content; }
    .ac-scope-sems { display: flex; flex-wrap: wrap; gap: 3px; }
    .ac-scope-sem { font-size: .61rem; font-weight: 700; color: var(--pur); background: var(--pbg); padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
    .ac-status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: .67rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
    .ac-status-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
    .ac-actbtn { border: none; border-radius: 6px; padding: 4px 10px; font-size: .64rem; font-weight: 700; cursor: pointer; transition: filter .15s; }
    .ac-actbtn:hover { filter: brightness(.94); }
    .ac-stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
    .ac-stat { background: #fff; border: 1.5px solid var(--brd); border-radius: 12px; padding: 11px 14px; box-shadow: 0 2px 6px rgba(0, 48, 135, .04); display: flex; align-items: center; gap: 10px; }
    .ac-stat-ic { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }
    .ac-stat-n { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1; }
    .ac-stat-l { font-size: .63rem; color: var(--mut); font-weight: 700; margin-top: 2px; }

    /* FORMS */
    label {
      display: block;
      font-size: .76rem;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 4px;
    }

    input,
    select,
    textarea {
      width: 100%;
      padding: 9px 11px;
      border-radius: 7px;
      background: #fff;
      border: 1.5px solid var(--brd2);
      color: var(--txt);
      font-family: 'Inter', sans-serif;
      font-size: .84rem;
      outline: none;
      transition: border-color .2s;
      margin-bottom: 11px;
    }

    input:focus,
    select:focus,
    textarea:focus {
      border-color: var(--navy);
      box-shadow: 0 0 0 3px rgba(0, 48, 135, .08);
    }

    .row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 13px;
    }

    .row3 {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 11px;
    }

    /* BUTTONS */
    .btn {
      padding: 7px 16px;
      border-radius: 7px;
      border: none;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
      font-size: .8rem;
      font-weight: 600;
      transition: all .15s;
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .btn-navy {
      background: var(--navy);
      color: #fff;
    }

    .btn-navy:hover {
      background: var(--navy2);
    }

    .btn-green {
      background: var(--grn);
      color: #fff;
    }

    .btn-red {
      background: var(--red);
      color: #fff;
    }

    .btn-gold {
      background: var(--gold);
      color: #fff;
    }

    .btn-ghost {
      background: transparent;
      border: 1.5px solid var(--brd2);
      color: var(--mut);
    }

    .btn-ghost:hover {
      border-color: var(--navy);
      color: var(--navy);
    }

    .btn-primary {
      background: var(--navy);
      color: #fff;
    }

    .btn-primary:hover {
      background: var(--navy2);
    }

    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .5);
      z-index: 800;
      align-items: center;
      justify-content: center;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-box {
      background: #fff;
      border-radius: 14px;
      padding: 26px 28px;
      max-width: 640px;
      width: 95%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
      max-height: 92vh;
      overflow-y: auto;
    }

    .cp-toggle {
      position: relative;
      width: 38px;
      height: 20px;
      background: var(--brd2);
      border-radius: 100px;
      cursor: pointer;
      transition: background .15s;
      flex-shrink: 0;
    }

    .cp-toggle.on {
      background: var(--grn);
    }

    .cp-toggle::after {
      content: '';
      position: absolute;
      top: 2px;
      left: 2px;
      width: 16px;
      height: 16px;
      background: #fff;
      border-radius: 50%;
      transition: transform .15s;
      box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    }

    .cp-toggle.on::after {
      transform: translateX(18px);
    }

    .cp-page-body {
      min-height: 200px;
      width: 100%;
    }

    .cp-page-inner {
      width: 100%;
    }

    .btn-outline {
      background: transparent;
      border: 1.5px solid var(--navy);
      color: var(--navy);
    }

    .btn-sm {
      padding: 4px 10px;
      font-size: .7rem;
    }

    .btn-lg {
      padding: 10px 22px;
      font-size: .88rem;
    }

    /* TAGS */
    .tag {
      display: inline-block;
      padding: 2px 8px;
      border-radius: 100px;
      font-size: .65rem;
      font-weight: 700;
    }

    .tag-navy {
      background: var(--nlight);
      color: var(--navy);
    }

    .tag-green {
      background: var(--gbg);
      color: var(--grn);
    }

    .tag-orange {
      background: var(--obg);
      color: var(--org);
    }

    .tag-gold {
      background: var(--glight);
      color: var(--gold);
    }

    .tag-red {
      background: var(--rbg);
      color: var(--red);
    }

    .tag-purple {
      background: var(--pbg);
      color: var(--pur);
    }

    .tag-blue {
      background: var(--bbg);
      color: var(--blu);
    }

    /* TABLE */
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: .78rem;
    }

    th {
      background: var(--nlight);
      padding: 8px 11px;
      text-align: left;
      color: var(--navy);
      font-weight: 700;
      font-size: .68rem;
      border-bottom: 2px solid var(--brd2);
    }

    td {
      padding: 7px 11px;
      border-bottom: 1px solid var(--brd);
      vertical-align: middle;
    }

    tr:last-child td {
      border-bottom: none;
    }

    tr:hover td {
      background: #f8f9ff;
    }

    /* MISC */
    .badge-count {
      background: var(--navy);
      color: #fff;
      border-radius: 100px;
      padding: 1px 7px;
      font-size: .68rem;
      font-weight: 700;
      margin-left: 5px;
    }

    .slot-chip {
      display: inline-block;
      background: var(--obg);
      color: var(--org);
      border: 1px solid var(--obr);
      border-radius: 7px;
      padding: 3px 9px;
      font-size: .75rem;
      font-weight: 600;
      margin: 2px;
    }

    .cal-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-auto-rows: 62px;
      gap: 4px;
      margin-bottom: 7px;
    }

    .cal-dh {
      text-align: center;
      font-size: .66rem;
      color: var(--mut);
      font-weight: 700;
      padding: 3px 0;
    }

    .cal-d {
      aspect-ratio: 1;
      border-radius: 7px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .78rem;
      cursor: pointer;
      background: var(--bg);
      border: 1.5px solid transparent;
      transition: all .14s;
      user-select: none;
    }

    .cal-d:hover {
      border-color: var(--navy);
      color: var(--navy);
    }

    .cal-d.sel {
      background: var(--navy);
      color: #fff;
      border-color: var(--navy);
    }

    .cal-d.emp {
      background: transparent;
      cursor: default;
    }

    .cal-d.has-alt {
      border-color: var(--gold);
      position: relative;
    }

    .cal-d.has-alt::after {
      content: '🔄';
      position: absolute;
      top: 1px;
      right: 2px;
      font-size: .45rem;
      line-height: 1;
    }

    .sm-cal-d.has-alt {
      border-color: var(--gold) !important;
      position: relative;
    }

    .sm-cal-d.has-alt::after {
      content: '🔄';
      position: absolute;
      top: 1px;
      right: 2px;
      font-size: .44rem;
      line-height: 1;
    }

    /* Alteration detail modal */
    #alt-detail-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .45);
      z-index: 600;
      align-items: center;
      justify-content: center;
    }

    #alt-detail-modal.open {
      display: flex;
    }

    .alt-modal-box {
      background: #fff;
      border-radius: 14px;
      padding: 20px 22px;
      max-width: 480px;
      width: 92%;
      box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
      max-height: 88vh;
      overflow-y: auto;
    }

    .cf-ban {
      background: var(--rbg);
      border: 1.5px solid var(--rbr);
      border-radius: 9px;
      padding: 9px 12px;
      font-size: .78rem;
      color: var(--red);
      margin-bottom: 11px;
      display: none;
    }

    .cf-ban.on {
      display: flex;
      align-items: center;
      gap: 7px;
    }

    .code-blk {
      background: #1a1f36;
      color: #a8e6cf;
      border-radius: 7px;
      padding: 9px 12px;
      font-family: monospace;
      font-size: .7rem;
      overflow-x: auto;
      white-space: pre-wrap;
      max-height: 260px;
      overflow-y: auto;
    }
