/* ==========================================================================
   AeU International OS - stylesheet
   Two deliberately different skins:
     .side-uni   internal console (staff) - dense, dark sidebar, serif display
     .side-agent agent portal             - light, top nav, warm, rounded
   ========================================================================== */

:root {
  --ink: #152030;
  --ink-2: #3A4453;
  --ink-3: #68748A;
  --line: #E3E6EB;
  --line-2: #EFF1F4;
  --paper: #F6F7F9;
  --white: #FFFFFF;

  --ok-bg: #DCEDE2; --ok-fg: #17603C;
  --info-bg: #DEE9F5; --info-fg: #1E3249;
  --warn-bg: #FBEFD6; --warn-fg: #8A5A00;
  --bad-bg: #F7DEDE; --bad-fg: #8E1F2B;
  --mute-bg: #E6E9ED; --mute-fg: #3A4453;

  /* AeU */
  --brand: #C32026;
  --brand-ink: #FFFFFF;
  --brand-soft: #FBEDEE;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,20,19,.04), 0 8px 24px rgba(20,20,19,.04);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- demo strip */

.demo-strip {
  background: #152030; color: #DDE3EB;
  font-size: 12.5px; letter-spacing: .01em;
  padding: 7px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.demo-strip strong { color: #fff; font-weight: 600; }
.demo-strip .spacer { flex: 1 1 auto; }
.demo-strip a {
  color: #AFBCCB; border-bottom: 1px solid rgba(255,255,255,.25);
  padding-bottom: 1px;
}
.demo-strip a:hover { color: #fff; border-color: #fff; }
.demo-strip a.on { color: #fff; font-weight: 600; border-color: #fff; }
.demo-strip .dot { color: #5A6A7E; }

/* =============================================================== UNIVERSITY */

.side-uni { background: var(--paper); }

.u-shell { display: flex; min-height: calc(100vh - 32px); }

.u-rail {
  width: 248px; flex: 0 0 248px;
  background: #16263A; color: #E8EFEC;
  padding: 26px 18px; display: flex; flex-direction: column; gap: 26px;
}
.u-rail .mark { display: flex; flex-direction: column; gap: 9px; }
.u-rail .mark .logo-tile {
  width: 148px; height: auto; background: #fff;
  border-radius: 9px; padding: 9px 11px; box-sizing: border-box;
}
.u-rail .mark .sub {
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #8FA5BD;
}
.u-tenant {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 9px; background: #27425F;
}
.u-tenant .badge {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.u-tenant .t-name { font-size: 13.5px; font-weight: 600; color: #F6F7F9; line-height: 1.25; }
.u-tenant .t-role { font-size: 11.5px; color: #93A8C0; }

.u-nav { display: flex; flex-direction: column; gap: 1px; }
.u-nav a {
  padding: 10px 13px; border-radius: 8px;
  font-size: 14.5px; color: #C2CEDC;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.u-nav a:hover { background: #223B55; color: #fff; }
.u-nav a[aria-current="page"] { background: #27425F; color: #F6F7F9; font-weight: 600; }
.u-nav .count {
  font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: #2E4A6B; color: #D3DEEC;
}
.u-nav .lbl {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #71889F; padding: 14px 13px 5px;
}

.u-me {
  margin-top: auto; border-top: 1px solid #2C4868; padding-top: 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.u-me .k { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #7E95AE; }
.u-me .n { font-size: 14px; font-weight: 600; color: #F6F7F9; }
.u-me .r { font-size: 12.5px; color: #93A8C0; }

.u-main { flex: 1 1 auto; min-width: 0; padding: 26px 30px 48px; }

.u-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 20px;
}
.u-head h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400; font-size: 32px; line-height: 1.1; margin: 0 0 4px;
}
.u-head .meta { font-size: 13.5px; color: var(--ink-3); }
.u-head .tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.crumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 7px; }
.crumb a:hover { color: var(--ink); }

/* ==================================================================== AGENT */

.side-agent { background: #FDFAF8; }

.a-top {
  background: #fff; border-bottom: 1px solid #EDE5E0;
  padding: 0 28px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.a-brand { display: flex; align-items: center; gap: 13px; }
.a-brand .logo {
  font-size: 19px; font-weight: 700; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 7px;
}
.a-brand .logo .cube {
  width: 24px; height: 24px; border-radius: 7px;
  background: #C32026; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.a-brand .forwho {
  padding-left: 13px; border-left: 1px solid #EDE5E0;
  display: flex; align-items: center; gap: 8px;
}
.a-brand .forwho .badge {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
}
.a-brand .forwho span { font-size: 13px; color: var(--ink-2); }

.a-nav { display: flex; align-items: center; gap: 3px; }
.a-nav a {
  padding: 9px 14px; border-radius: 999px;
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
}
.a-nav a:hover { background: #F7F1EE; }
.a-nav a[aria-current="page"] { background: #1E3249; color: #fff; font-weight: 600; }

.a-who { display: flex; align-items: center; gap: 12px; }
.a-bell {
  position: relative; width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid #EDE5E0; background: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.a-bell .pip {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: #C32026; color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.a-who .me { text-align: right; line-height: 1.25; }
.a-who .me .n { font-size: 13.5px; font-weight: 600; }
.a-who .me .o { font-size: 12px; color: var(--ink-3); }
.a-who .av {
  width: 38px; height: 38px; border-radius: 999px; background: #1E3249; color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.a-main { max-width: 1240px; margin: 0 auto; padding: 30px 28px 56px; }

.a-head { margin-bottom: 24px; }
.a-head h1 {
  font-size: 34px; font-weight: 700; letter-spacing: -.01em;
  line-height: 1.1; margin: 0 0 6px;
}
.a-head .meta { font-size: 14.5px; color: var(--ink-3); }

/* ================================================================== SHARED */

.row { display: flex; gap: 16px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-auto { margin-top: auto; }
.right { text-align: right; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.side-agent .card { border-color: #EDE5E0; border-radius: 16px; box-shadow: var(--shadow); padding: 22px 24px; }
.card > h2, .card > h3 { margin: 0 0 14px; font-size: 16.5px; font-weight: 700; }
.card.tight { padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }

.stat .k { font-size: 13px; color: var(--ink-3); margin-bottom: 5px; }
.stat .v { font-size: 30px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.side-agent .stat .v { font-size: 34px; font-weight: 800; }
.stat .v.money { font-size: 24px; letter-spacing: -.01em; }
.side-agent .stat .v.money { font-size: 26px; }
.stat .d { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.v-ok { color: var(--ok-fg); } .v-info { color: var(--info-fg); }
.v-warn { color: var(--warn-fg); } .v-bad { color: var(--bad-fg); }

/* tables */
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3);
  padding: 0 12px 9px; border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFBFC; }
td .sub { font-size: 12.5px; color: var(--ink-3); }
td .nm { font-weight: 600; white-space: nowrap; }
table td:first-child { min-width: 150px; }
.t-wrap { padding: 4px 4px 0; }
tr.flag { background: #FEFAF1; }
tr.flag:hover { background: #FDF5E6; }

.side-agent thead th { font-size: 11px; padding-bottom: 11px; }
.side-agent tbody td { padding: 14px 12px; }

/* pills */
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.p-ok { background: var(--ok-bg); color: var(--ok-fg); }
.p-info { background: var(--info-bg); color: var(--info-fg); }
.p-warn { background: var(--warn-bg); color: var(--warn-fg); }
.p-bad { background: var(--bad-bg); color: var(--bad-fg); }
.p-mute { background: var(--mute-bg); color: var(--mute-fg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 17px; border-radius: 9px; border: 1px solid transparent;
  background: #1E3249; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #152638; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { background: #F1F3F6; }
.btn.brand { background: var(--brand); color: var(--brand-ink); }
.btn.brand:hover { filter: brightness(.92); }
.btn.danger { background: #fff; border-color: #E2BDBD; color: var(--bad-fg); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.lg { padding: 14px 24px; font-size: 15.5px; }
.btn.block { width: 100%; }
.side-agent .btn { background: #C32026; border-radius: 999px; padding: 11px 20px; }
.side-agent .btn:hover { background: #9C191E; }
.side-agent .btn.ghost { background: #fff; border-color: #E3D9D2; color: var(--ink-2); }
.side-agent .btn.ghost:hover { background: #FBF6F3; }

.link { color: #1E3249; font-weight: 600; font-size: 14px; }
.link:hover { text-decoration: underline; }
.side-agent .link { color: #C32026; }

/* chips / filters */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); background: #fff; cursor: pointer;
}
.chip:hover { background: #F1F3F6; }
.chip.on { background: #16263A; border-color: #16263A; color: #fff; font-weight: 600; }
.side-agent .chip.on { background: #1E3249; border-color: #1E3249; }

/* forms */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=tel], .field input[type=search], .field input[type=date],
.field select, .field textarea {
  padding: 10px 12px; border: 1px solid #D5DAE1; border-radius: 9px; background: #fff;
}
.side-agent .field input, .side-agent .field select, .side-agent .field textarea {
  padding: 12px 14px; border-radius: 11px; border-color: #E3D9D2;
}
.field textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid #1E3249; outline-offset: 2px;
}
.side-agent input:focus-visible, .side-agent select:focus-visible,
.side-agent textarea:focus-visible, .side-agent button:focus-visible,
.side-agent a:focus-visible { outline-color: #C32026; }

.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 2px; accent-color: #1E3249; }
.side-agent .check input { accent-color: #C32026; }
.check label { font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* notes / callouts */
.note { padding: 13px 15px; border-radius: var(--radius); border-left: 3px solid; font-size: 13.5px; line-height: 1.5; }
.n-info { background: #F6F8FB; border-color: #1E3249; color: #2C4057; }
.n-warn { background: #FEFAF1; border-color: #8A5A00; color: #6D4800; }
.n-bad { background: #FBF4F4; border-color: #8E1F2B; color: #7A1A24; }
.n-ok { background: #F4FAF6; border-color: #17603C; color: #145435; }

.kv { display: flex; flex-direction: column; gap: 3px; }
.kv .k { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.kv .v { font-size: 14.5px; }

.timeline { display: flex; flex-direction: column; gap: 15px; }
.timeline .ev { padding-left: 13px; border-left: 2px solid #B8BFC9; display: flex; flex-direction: column; gap: 2px; }
.timeline .ev.ok { border-color: var(--ok-fg); }
.timeline .ev.info { border-color: var(--info-fg); }
.timeline .ev.warn { border-color: var(--warn-fg); }
.timeline .ev.bad { border-color: var(--bad-fg); }
.timeline .ev .t { font-size: 14px; font-weight: 600; }
.timeline .ev .m { font-size: 12.5px; color: var(--ink-3); }
.timeline .ev .b { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

.doc {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
}
.doc.need { border-color: #E8C99A; background: #FEFAF1; }
.doc.miss { border-style: dashed; border-color: #CBD2DA; }
.doc .t { font-size: 14px; font-weight: 600; }
.doc .s { font-size: 12.5px; color: var(--ink-3); }

.bar { height: 7px; border-radius: 999px; background: #E8EBEF; overflow: hidden; }
.bar > i { display: block; height: 7px; background: #1E3249; }
.side-agent .bar > i { background: #C32026; }

.drop {
  padding: 26px; border: 2px dashed #DCD2CC; border-radius: 14px; background: #FDF8F6;
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}

.steps { display: flex; flex-direction: column; gap: 2px; }
.steps .s { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; }
.steps .s .n {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 999px;
  border: 1px solid #DCD2CC; color: var(--ink-3);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.steps .s.on { background: #F7F1EE; }
.steps .s.on .n { background: #C32026; border-color: #C32026; color: #fff; }
.steps .s.done .n { background: var(--ok-fg); border-color: var(--ok-fg); color: #fff; }
.steps .s .l { font-size: 14.5px; color: var(--ink-2); }
.steps .s.on .l { font-weight: 600; color: var(--ink); }

.feed { display: flex; flex-direction: column; gap: 11px; }
.feed .item { padding: 13px 15px; border-radius: 12px; border: 1px solid; display: flex; flex-direction: column; gap: 4px; }
.feed .item .t { font-size: 14px; font-weight: 600; }
.feed .item .b { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.feed .item .w { font-size: 12px; color: var(--ink-3); }
.feed .i-warn { background: #FEFAF1; border-color: #E8C99A; }
.feed .i-ok { background: #F4FAF6; border-color: #B8D9C4; }
.feed .i-info { background: #F6F8FB; border-color: #C6D6E8; }
.feed .i-bad { background: #FBF4F4; border-color: #E2BDBD; }

.sect-title {
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; margin-bottom: 10px;
}

.tbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }

.money { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
td.right.num, th.right { white-space: nowrap; }

/* splash / login */
.splash { min-height: calc(100vh - 32px); display: flex; }
.splash .pitch {
  flex: 0 0 46%; background: #16263A; color: #E8EFEC;
  padding: 54px 48px; display: flex; flex-direction: column; gap: 32px;
}
.splash .pitch h1 {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 500;
  font-size: 40px; line-height: 1.18; color: #F6F7F9; margin: 0;
}
.splash .pitch p { font-size: 16px; line-height: 1.6; color: #BCCAD9; margin: 0; }
.splash .pitch .pt { display: flex; gap: 12px; }
.splash .pitch .pt i { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 8px; border-radius: 999px; background: #6FA39C; }
.splash .pitch .pt .t { font-size: 15px; font-weight: 600; color: #F6F7F9; }
.splash .pitch .pt .s { font-size: 13.5px; color: #93A8C0; }
.splash .form { flex: 1 1 auto; padding: 54px 52px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.splash .form h2 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 500; font-size: 32px; margin: 0 0 6px; }

.pick { max-width: 1080px; margin: 0 auto; padding: 48px 28px 64px; }
.pick h1 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 500; font-size: 42px; line-height: 1.1; margin: 0 0 10px; }
.pick .lede { font-size: 17px; color: var(--ink-2); max-width: 620px; line-height: 1.55; margin: 0 0 36px; }
.pick-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.pick-card .tag { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pick-card h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.pick-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.pick-card ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }

.foot { padding: 28px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .u-shell { flex-direction: column; }
  .u-rail { width: auto; flex: 0 0 auto; }
  .u-nav { flex-direction: row; flex-wrap: wrap; }
  .row { flex-direction: column; }
  .splash { flex-direction: column; }
  .splash .pitch { flex: 0 0 auto; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); }
  .a-top { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .a-nav { order: 3; width: 100%; overflow-x: auto; }
  .u-main, .a-main { padding-left: 16px; padding-right: 16px; }
  table { font-size: 13px; }
  .hide-sm { display: none; }
}

/* ------------------------------------------------- added for Student OS */

.u-nav .grp {
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #71889F; padding: 15px 13px 5px;
}

/* student header block */
.s-head {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.s-photo {
  width: 92px; height: 112px; flex: 0 0 92px; border-radius: 8px;
  background: #E8EBEF; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-3); font-size: 11.5px; text-align: center;
}
.s-id { display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; min-width: 0; }
.s-id h1 {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 500;
  font-size: 30px; line-height: 1.1; margin: 0;
}
.s-id .line { font-size: 13.5px; color: var(--ink-3); }
.s-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.s-scores { display: flex; gap: 20px; flex: 0 0 auto; padding-left: 20px; border-left: 1px solid var(--line-2); }
.s-score { display: flex; flex-direction: column; gap: 3px; min-width: 76px; }
.s-score .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.s-score .v { font-size: 25px; font-weight: 700; line-height: 1; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 10px 15px; font-size: 14.5px; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: #1E3249; }

/* stage rail */
.stage-rail { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.stage-rail .st {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 11px; font-size: 13px; color: var(--ink-3);
  background: #EDEFF3; border-radius: 999px; white-space: nowrap;
}
.stage-rail .st.done { background: var(--ok-bg); color: var(--ok-fg); }
.stage-rail .st.now { background: #16263A; color: #fff; font-weight: 600; }
.stage-rail .sep { width: 14px; height: 1px; background: #CBD2DA; flex: 0 0 14px; }

/* tranche */
.tranche {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius);
}
.tranche.due { border-color: #E8C99A; background: #FEFAF1; }
.tranche.paid { border-color: #B8D9C4; background: #F4FAF6; }

/* comms log */
.comm { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.comm:last-child { border-bottom: 0; }
.comm .when { flex: 0 0 92px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.comm .what { flex: 1 1 auto; min-width: 0; }
.comm .what .t { font-size: 14px; font-weight: 600; }
.comm .what .s { font-size: 13px; color: var(--ink-3); }

@media (max-width: 900px) {
  .s-head { flex-wrap: wrap; }
  .s-scores { padding-left: 0; border-left: 0; width: 100%; }
}

/* ------------------------------------------------- mode switcher + lock */

.mode-switch { display: flex; flex-direction: column; gap: 3px; padding: 4px; background: #101E2F; border-radius: 11px; }
.mode-switch a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 13.5px; color: #93A8C0; font-weight: 500;
}
.mode-switch a:hover { background: #27425F; color: #E8EFEC; }
.mode-switch a[aria-current="true"] { background: #F6F7F9; color: #16263A; font-weight: 700; }
.mode-switch a.locked { color: #5D7490; }
.mode-switch a.locked:hover { background: #1C3349; color: #7E95AE; }
.mode-switch .ico { width: 15px; height: 15px; flex: 0 0 15px; }
.mode-switch .lockmark { margin-left: auto; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

.locked-page { max-width: 560px; margin: 64px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.locked-page .ring {
  width: 72px; height: 72px; border-radius: 999px; background: #FBEDEE;
  display: grid; place-items: center;
}
.locked-page h1 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 500; font-size: 32px; margin: 0; }
.locked-page p { font-size: 15px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* access matrix */
.matrix td.no { color: var(--ink-3); }

/* ------------------------------------------------------------ AeU brand */

.logo-row { display: flex; align-items: center; gap: 13px; }
.logo-row img { height: 40px; width: auto; }
.logo-row .divider { width: 1px; height: 30px; background: var(--line); }
.logo-row .wordmark {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 20px; color: var(--ink);
}

/* the agent portal carries the mark, not the full lockup */
.a-brand .aeu-mark { height: 24px; width: auto; }

.splash .pitch .brandline img { height: 58px; width: auto; background: #fff; border-radius: 8px; padding: 7px 10px; box-sizing: border-box; }

/* Poppins for display headings */
.u-head h1, .s-id h1, .pick h1, .splash .form h2, .splash .pitch h1,
.locked-page h1, .pick-card h2 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; }
.pick-card h2, .splash .form h2 { font-weight: 600; }
.side-agent .a-head h1 { font-family: 'Poppins', sans-serif; font-weight: 800; }

/* ------------------------------------------------- priority cases, bars, forms */
a.chip { text-decoration: none; display: inline-block; }
.priority { border: 1px solid #E8C9CC; border-left: 4px solid #C32026; background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.priority .ph { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.priority h2 { margin: 0; font-size: 16.5px; }
.priority .sub-h { font-size: 12.5px; color: var(--ink-3); }
.priority .case { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line-2); }
.priority .case:first-of-type { border-top: 0; }
.priority .rank { flex: 0 0 26px; height: 26px; border-radius: 999px; background: #FBEDEE; color: #8E1F2B; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.priority .txt { flex: 1 1 auto; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.priority .why { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.priority .acts { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }
.rule-note { font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line-2); padding-top: 11px; margin-top: 2px; }

.hbar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr minmax(64px, auto); gap: 12px; align-items: center; padding: 6px 0; font-size: 13.5px; }
.hbar .lb { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .tr { height: 10px; background: #EDF1F6; border-radius: 5px; overflow: hidden; display: flex; gap: 2px; }
.hbar .tr i { display: block; height: 10px; background: #1E3249; border-radius: 0 4px 4px 0; }
.hbar .tr i.soft { background: #A9B8CC; }
.hbar .val { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #1E3249; margin-right: 6px; vertical-align: -1px; }
.legend span.soft::before { background: #A9B8CC; }
.score { display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.score b { font-size: 15px; }

.perm { font-size: 12.5px; font-weight: 600; }
.perm.y { color: var(--ok-fg); } .perm.o { color: var(--warn-fg); } .perm.n { color: var(--ink-3); font-weight: 400; }
.formsec { padding: 22px 0; border-top: 1px solid var(--line-2); }
.formsec:first-of-type { border-top: 0; padding-top: 4px; }
.formsec h3 { margin: 0 0 4px; font-size: 16px; }
.formsec .d { font-size: 13px; color: var(--ink-3); margin: 0 0 16px; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.steps .s { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.steps .s b { flex: 0 0 24px; height: 24px; border-radius: 999px; background: #1E3249; color: #fff; display: grid; place-items: center; font-size: 12px; }

.mode-switch a { align-items: flex-start; }
.mode-switch a .ico { margin-top: 2px; }
.mode-switch a span:not(.wip):not(.lockmark) { line-height: 1.3; }
.mode-switch .wip { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 999px; background: #E8B04A; color: #3A2A06; align-self: center; }
.wipbar { display:flex; gap:10px; align-items:center; background:#FFF6E0; border:1px solid #EBCB85; color:#5C4308; border-radius:10px; padding:11px 14px; font-size:13.5px; margin-bottom:16px; }
.wipbar b { background:#E8B04A; color:#3A2A06; font-size:10.5px; letter-spacing:.06em; padding:2px 7px; border-radius:999px; }
.a-brand .logo { white-space: nowrap; }

/* ---- International Student Office OS: logo lockup, powered-by, EPC ---- */
.u-rail .mark { gap: 12px; }
.u-rail .mark .iso-logo { width: 100%; max-width: 212px; height: auto; display: block; }
.powered { display: flex; align-items: center; gap: 8px; }
.powered span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #8FA5BD; white-space: nowrap; }
.powered img { height: 12px; width: auto; display: block; }
.splash .pitch .brandline { display: flex; flex-direction: column; gap: 14px; }
.splash .pitch .brandline .iso-logo { height: 52px; width: auto; background: none; padding: 0; border-radius: 0; }
.splash .pitch .brandline .powered img { height: 12px; background: none; padding: 0; border-radius: 0; }
.logo-row .iso-logo { height: 46px; width: auto; }
.logo-row .powered span { color: var(--ink-3); }
.logo-row .powered img { height: 12px; }
.kicker { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }

.epc-tabs { margin-bottom: 18px; }
.epc-tabs button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 14px; font: inherit; font-size: 14.5px; color: var(--ink-3); cursor: pointer; margin-bottom: -1px;
}
.epc-tabs button:hover { color: var(--ink); }
.epc-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: #1E3249; }
.epc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.epc-panel[hidden] { display: none; }
.bar.warn > i { background: #B4791A; }
.bar.bad > i { background: #8E1F2B; }
.bar.ok > i { background: #17603C; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 54px; gap: 12px; align-items: center; font-size: 13.5px; padding: 6px 0; }
.bar-row .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.skill { display: grid; grid-template-columns: 78px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; padding: 4px 0; }
.skill .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.doc-check { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.doc-check:last-child { border-bottom: 0; }
.tick { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.tick.y { background: var(--ok-bg); color: var(--ok-fg); }
.tick.n { background: #fff; border: 1px solid #CBD2DB; color: transparent; }
@media (max-width: 760px) { .bar-row { grid-template-columns: 90px 1fr 44px; } }

/* ---- interactions (demo) ---- */
.chip[role="button"] { cursor: pointer; user-select: none; }
.chip[role="button"]:focus-visible { outline: 2px solid #3E6DA8; outline-offset: 2px; }
.fcount { padding: 4px 20px 14px; font-size: 12.5px; color: var(--ink-3); }
[data-click]:hover { box-shadow: 0 0 0 2px #B7C9DD; }
#iso-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #16263A; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .22s; z-index: 200; max-width: 92vw; }
#iso-toast.show { opacity: 1; transform: translate(-50%, 0); }
.iso-dlg { position: fixed; inset: 0; background: rgba(15,25,38,.55); display: grid; place-items: center; z-index: 150; padding: 16px; }
.iso-dlg[hidden] { display: none; }
.iso-dlg-box { background: #fff; border-radius: 14px; padding: 24px; width: min(460px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.iso-dlg-box h2 { margin: 0 0 12px; font-size: 20px; }

/* ---- agent commission hub and resources (demo) ---- */
.cm-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; background: #16263A; color: #fff; border-radius: 0 0 14px 14px; }
.cm-bar[hidden] { display: none; }
.cm-bar b { font-size: 16px; }
.cm-chk { width: 18px; height: 18px; accent-color: #C32026; cursor: pointer; }
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.sw input { position: absolute; opacity: 0; }
.sw i { width: 38px; height: 22px; border-radius: 999px; background: #B8BFC9; position: relative; transition: .15s; flex: 0 0 38px; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; }
.sw input:checked + i { background: #17603C; }
.sw input:checked + i::after { left: 19px; }
.inv-doc { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #fff; font-size: 13.5px; }
.inv-doc h3 { margin: 0 0 2px; font-size: 18px; }
.inv-doc table { width: 100%; margin: 12px 0; }
.inv-doc td, .inv-doc th { padding: 6px 4px; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 2px; }
.steps4 div { font-size: 12px; text-align: center; padding: 8px 4px; border-radius: 8px; background: #EEF1F5; color: var(--ink-3); }
.steps4 div.on { background: #DCEFE4; color: #17603C; font-weight: 600; }
@media print { body * { visibility: hidden !important; } #inv-doc, #inv-doc * { visibility: visible !important; } #inv-doc { position: absolute; left: 0; top: 0; width: 100%; border: 0; } }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.vid { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit; }
.vid:hover { box-shadow: 0 0 0 2px #B7C9DD; }
.vid.cur { box-shadow: 0 0 0 2px #C32026; }
.vid .th { aspect-ratio: 16/9; background: linear-gradient(135deg, #1E3249, #3E6DA8); display: grid; place-items: center; color: #fff; position: relative; }
.vid .th svg { opacity: .95; }
.vid .th .dur { position: absolute; right: 8px; bottom: 6px; font-size: 11.5px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }
.vid .bd { padding: 10px 12px 12px; }
.vid .bd .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.vid .bd .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.vid.done .th::after { content: 'Watched'; position: absolute; left: 8px; top: 8px; font-size: 11px; background: #17603C; padding: 2px 8px; border-radius: 999px; }
.player { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 14px; }
.player .scr { aspect-ratio: 16/9; background: #0F1926; display: grid; place-items: center; color: #C2CEDC; text-align: center; padding: 20px; }
.player iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.player .pb { padding: 12px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.prog { height: 8px; background: #E4E8EE; border-radius: 999px; overflow: hidden; }
.prog i { display: block; height: 100%; background: #17603C; width: 0; transition: width .3s; }
.res { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.res .ty { flex: 0 0 44px; height: 44px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #3E6DA8; }
.res .ty.pdf { background: #C32026; } .res .ty.csv, .res .ty.xls { background: #17603C; } .res .ty.ics { background: #7A4EB3; } .res .ty.zip { background: #8A6A12; } .res .ty.txt { background: #5D7490; }
.res .t { font-weight: 600; font-size: 14px; } .res .s { font-size: 12.5px; color: var(--ink-3); }
.newb { font-size: 10.5px; background: #E8B04A; color: #3A2A06; padding: 1px 7px; border-radius: 999px; font-weight: 700; margin-left: 6px; vertical-align: 1px; }
#cm-table td.nm, #cm-table td.money, #cm-table .pill, .inv-doc td { white-space: nowrap; }
#cm-table td.num { white-space: nowrap; }

/* page access */
.acc-group { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.acc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; }
.acc-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 14px; }
.acc-row.dim { color: var(--ink-3); }
.acc-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); min-width: 74px; justify-content: flex-end; }
.acc-sw input { width: 17px; height: 17px; accent-color: #1E3249; }
.u-nav a.locked { color: #5D7490; }
.u-nav a.locked .lockmark { margin-left: auto; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; }

.cols { display:flex; align-items:flex-end; gap:6px; height:150px; padding-top:8px; }
.cols .c { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:6px; height:100%; min-width:0; }
.cols .c i { display:block; width:100%; background:#1E3249; border-radius:4px 4px 0 0; min-height:2px; }
.cols .c span { font-size:11px; color:var(--ink-3); white-space:nowrap; }
.cols .c b { font-size:11px; font-weight:600; color:var(--ink-2); }

/* commission page: full width, side cards below */
.pc-stack { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; align-items:start; }
.t-wrap td.nowrap, .t-wrap th.nowrap { white-space:nowrap; }
.pill-link { cursor:pointer; text-decoration:none; }
.pill-link:hover { filter:brightness(.95); box-shadow:0 0 0 2px rgba(30,50,73,.18); }
.steps-h { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.steps-h .done { color: #17603C; font-weight: 600; }
.steps-h .now { color: var(--ink-1); font-weight: 700; }
.agreement-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; max-height: 280px; overflow: auto; background: #fff; }
.agreement-box h3 { font-size: 13.5px; margin: 10px 0 2px; }
.agreement-box p { font-size: 13.5px; line-height: 1.55; margin: 0 0 6px; color: var(--ink-2); }

@media (max-width: 1260px) { .a-who .me { display: none; } .a-nav a { white-space: nowrap; padding-left: 10px; padding-right: 10px; } }
@media (max-width: 1260px) { .a-top { flex-wrap: wrap; height: auto; padding: 10px 18px; row-gap: 6px; } .a-brand .logo { font-size: 17px; } }

/* confirmation dialog body */
.cf-body { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.cf-body p { margin: 0 0 10px; }
.cf-body .kv { display: grid; grid-template-columns: 130px 1fr; gap: 4px 12px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.cf-body .kv dt { color: var(--ink-3); }
.cf-body .kv dd { margin: 0; color: var(--ink-1); font-weight: 600; }
.cf-body .msgbox { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #F8FAFC; font-size: 13px; line-height: 1.6; white-space: pre-line; margin: 0 0 12px; }
.iso-dlg-box.wide { width: min(620px, 100%); }
.demo-strip { flex-wrap: wrap; row-gap: 4px; }

.stepflow { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; margin: 10px 0 2px; }
.stepflow div { font-size: 12px; text-align: center; padding: 9px 6px; border-radius: 8px; background: #EEF1F5; color: var(--ink-3); }
.stepflow div.on { background: #DCEFE4; color: #17603C; font-weight: 600; }
.stepflow div.now { background: #1E3249; color: #fff; font-weight: 600; }

/* dashboard: what needs doing */
.todo { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.todo .t { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px; text-decoration: none; background: #fff; }
.todo .t:hover { background: #F7F9FC; }
.todo .t .n { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink-1); }
.todo .t .l { font-size: 12.8px; line-height: 1.45; color: var(--ink-2); }
.todo .t-bad { border-left-color: #C32026; }
.todo .t-bad .n { color: #8E1F2B; }
.todo .t-warn { border-left-color: #E8B04A; }
.todo .t-warn .n { color: #8A6512; }
.todo .t-info { border-left-color: #6E8CB0; }

/* a dense table scrolls sideways on a narrow screen instead of being clipped */
.t-wrap { overflow-x: auto; }

/* arrival fee calculator */
.feecalc .fc-rows { display: flex; flex-direction: column; gap: 2px; }
.feecalc .fc-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; }
.feecalc .fc-row .k { font-size: 14px; font-weight: 600; }
.feecalc .fc-row .d { font-size: 13px; color: var(--ink-2); margin-top: 1px; }
.feecalc .fc-row .w { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.feecalc .fc-row .a { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.feecalc .fc-row .a .q { font-size: 13px; font-weight: 600; color: var(--warn-fg); }
.feecalc .fc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 10px; padding: 14px 16px; border-radius: 10px; background: #1E3249; color: #fff; }
.feecalc .fc-total span { font-size: 13.5px; color: #C2CEDC; }
.feecalc .fc-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }

/* compact rate card */
.ratecard { font-size: 13px; }
.ratecard .rc-h, .ratecard .rc-r { display: grid; grid-template-columns: 1fr 64px 72px; gap: 6px; align-items: baseline; }
.ratecard .rc-h { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ratecard .rc-h span + span, .ratecard .rc-r span + span { text-align: right; font-variant-numeric: tabular-nums; }
.ratecard .rc-g { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 10px 0 2px; }
.ratecard .rc-r { padding: 5px 0; color: var(--ink-2); }
.ratecard .rc-r span + span { font-weight: 600; color: var(--ink-1); }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.flow > div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; background: #fff; color: var(--ink-2); }
.flow .h { font-weight: 700; color: var(--ink-1); margin-bottom: 4px; }

/* letter of approval */
.loa-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.loa-head .from { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.loa-head .meta { display: grid; grid-template-columns: auto auto; gap: 2px 12px; font-size: 13px; align-items: baseline; }
.loa-head .meta span { color: var(--ink-3); }
.loa-head .meta strong { text-align: right; }
.loa-to { padding: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* commission eligibility gate */
.gate { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; }
.gate .n { flex: 0 0 22px; height: 22px; border-radius: 999px; background: #1E3249; color: #fff; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }
.gate .t { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.gate .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.45; }

/* laptop widths: give the tables back the space the rail and the gutters take,
   so a dense table fits instead of scrolling sideways inside its card */
@media (max-width: 1400px) {
  .u-rail { width: 212px; flex: 0 0 212px; padding-left: 14px; padding-right: 14px; }
  .u-main { padding-left: 20px; padding-right: 20px; }
  .card { padding: 18px 16px; }
  .t-wrap[style] { padding-left: 8px !important; padding-right: 8px !important; }
  tbody td { padding: 11px 9px; font-size: 13.5px; }
  thead th { padding: 0 9px 9px; }
  .u-nav a { padding-left: 11px; padding-right: 11px; }
}
