/* A small number of rules the console needs on top of the demo stylesheet. */

.sign-out {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #93A8C0;
  text-decoration: underline;
  cursor: pointer;
}
.sign-out:hover { color: #F6F7F9; }

.matrix .radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
}
.matrix .radio input { margin: 0; }

/* ------------------------------------------------------------ the sidebar */

/* The sidebar stays in view while a long page scrolls, and scrolls on its own
   when there are more pages than the screen is tall. */
.u-rail {
  position: sticky; top: 0; align-self: flex-start;
  height: 100vh; overflow-y: auto; gap: 16px; padding-bottom: 0;
  scrollbar-width: thin; scrollbar-color: #2C4868 transparent;
}
.u-rail .u-me { position: sticky; bottom: 0; background: #16263A; padding-bottom: 16px; }
.u-rail .mark { padding-bottom: 2px; }

/* The switcher between consoles. A console the person cannot open is shown
   muted and cannot be clicked. */
.mode-switch a, .mode-switch span.locked {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; line-height: 1.3;
  transition: background .15s ease, color .15s ease;
}
.mode-switch span.locked { color: #5D7490; cursor: not-allowed; }
.mode-switch a[aria-current="true"] .ico { color: #C32026; }

/* The pages of the console in use. */
.u-nav a { padding-top: 9px; padding-bottom: 9px; transition: background .15s ease, color .15s ease; }
.u-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 #C32026; }
.u-nav .grp { padding: 4px 13px 6px; }
.u-nav + .u-nav { margin-top: 4px; border-top: 1px solid #243B55; padding-top: 10px; }

/* Keyboard users can see where they are. */
.u-rail a:focus-visible, .u-rail button:focus-visible { outline: 2px solid #F6F7F9; outline-offset: 2px; }
.u-main a:focus-visible, .u-main button:focus-visible, .u-main select:focus-visible, .u-main input:focus-visible {
  outline: 2px solid #1E3249; outline-offset: 2px;
}

/* ------------------------------------------------------ phones and tablets */
/* The sidebar becomes a compact bar across the top, with the consoles side by
   side and the pages in a row that scrolls sideways. */
@media (max-width: 900px) {
  .u-rail {
    position: static; align-self: stretch; height: auto; width: auto; min-width: 0; max-width: 100%; flex: 0 0 auto;
    padding: 14px 16px 10px; gap: 10px; overflow: visible;
  }
  .u-rail .mark { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
  .u-rail .mark .iso-logo { max-width: 170px; }
  .mode-switch { flex-direction: row; }
  .mode-switch a, .mode-switch span.locked { flex: 1 1 0; justify-content: center; text-align: center; padding: 8px 6px; font-size: 12.5px; }
  .mode-switch .ico, .mode-switch .lockmark { display: none; }
  .u-nav { flex-direction: row; flex-wrap: nowrap; gap: 4px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .u-nav .grp { display: none; }
  .u-nav + .u-nav { margin-top: 0; border-top: 0; padding-top: 0; }
  .u-nav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 12px; }
  .u-me { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 0; padding-top: 10px; }
  .u-me .k { display: none; }
  .u-me { position: static; background: none; padding-bottom: 0; }

  /* Forms stack and fill the width, instead of hanging from the right. */
  .row { align-items: stretch !important; }
  .row > .field, .row > .btn, .row > button { width: 100%; }
  .field input, .field select, .field textarea { width: 100%; }
}
.u-rail > .u-nav:last-of-type { padding-bottom: 10px; }

/* ------------------------------------------------------------ Agent Portal */
/* Small additions to the demo's portal layout: the sign out link under the
   person's name, and the bell as a link. */
.a-who .me .a-out { margin: 2px 0 0; }
.a-who .me .a-out button {
  background: none; border: 0; padding: 0; font: inherit; font-size: 12px;
  color: #C32026; text-decoration: underline; cursor: pointer;
}
.a-bell { text-decoration: none; }
.a-bell[aria-current="page"] { border-color: #1E3249; }
.side-agent .splash .pitch .a-brand .logo { font-size: 22px; }
.side-agent .splash .form .btn.block { width: 100%; }
.a-main .tools { display: flex; gap: 10px; align-items: center; }

/* On narrower screens the demo hides the name block. The sign out link stays. */
@media (max-width: 1260px) {
  .a-who .me { display: block; }
  .a-who .me .n, .a-who .me .o { display: none; }
  .a-who .me .a-out { margin: 0; }
}

/* ------------------------------------------------------------ staff sign in */
.signin-page { background: #FDFAF8; margin: 0; }
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }

.signin .hero {
  position: relative; overflow: hidden; color: #F6F7F9;
  background: radial-gradient(900px 520px at 18% 0%, #2C4A6A 0%, #1E3249 52%, #16263A 100%);
  padding: 44px clamp(32px, 5vw, 72px) 28px;
  display: flex; flex-direction: column; gap: 28px;
}
.signin .hero::before, .signin .hero::after {
  content: ''; position: absolute; border-radius: 999px; pointer-events: none;
}
.signin .hero::before { width: 520px; height: 520px; right: -190px; top: -170px; border: 1px solid rgba(255,255,255,.09); }
.signin .hero::after { width: 340px; height: 340px; left: -150px; bottom: 70px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.signin .hero > * { position: relative; z-index: 1; }
.signin .brand { display: flex; flex-direction: column; gap: 12px; }
.signin .brand .iso-logo { width: 100%; max-width: 250px; height: auto; display: block; }
.signin .copy { max-width: 540px; }
.signin .copy h1 {
  font-family: 'Poppins', system-ui, sans-serif; font-weight: 600;
  font-size: clamp(30px, 3.1vw, 44px); line-height: 1.14; letter-spacing: -.01em; margin: 0 0 16px;
}
.signin .copy h1::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 99px; background: #C32026; margin-top: 18px; }
.signin .copy p { margin: 0; font-size: 16px; line-height: 1.65; color: #C2CEDC; }
.signin .art { margin: auto; width: min(430px, 88%); }
.signin .art img { width: 100%; height: auto; display: block; }

.signin .panel { display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.signin .box {
  width: 100%; max-width: 430px; background: #fff; border: 1px solid #EDE5E0; border-radius: 20px;
  padding: 40px 38px 32px; box-shadow: 0 1px 2px rgba(20,20,19,.04), 0 18px 48px rgba(30,50,73,.08);
}
.signin .eyebrow { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #C32026; font-weight: 700; margin-bottom: 8px; }
.signin .box h2 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 36px; margin: 0 0 8px; color: #1E3249; }
.signin .box .lead { margin: 0 0 26px; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
.signin .field input { border-radius: 12px; padding: 13px 14px; border-color: #E3D9D2; }
.signin .field input:focus-visible { outline: 2px solid #C32026; outline-offset: 1px; border-color: #C32026; }
.signin .btn.block { width: 100%; border-radius: 12px; padding: 14px 18px; }
.signin .btn.block:not(.ghost) { background: #C32026; }
.signin .btn.block:not(.ghost):hover { background: #9C191E; }
.signin .btn.block.ghost { background: transparent; color: var(--ink-2, #3A4A5C); border: 1px solid #D5DAE1; }
.signin .btn.block.ghost:hover { background: #EEF2F6; }
.signin .link { color: #C32026; font-size: 14px; }
.signin .agent-link {
  margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: #F6F8FB; border: 1px solid #DCE5EF; color: #1E3249; text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.signin .agent-link > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.signin .agent-link > span > span { font-size: 13px; color: var(--ink-3); }
.signin .agent-link:hover { background: #EEF3F9; border-color: #C6D6E8; }
.signin .agent-link svg { flex: 0 0 18px; color: #C32026; }
.signin .agent-link:focus-visible { outline: 2px solid #C32026; outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .signin .box { animation: signin-rise .5s ease both; }
  .signin .art img { animation: signin-float 7s ease-in-out infinite; }
  @keyframes signin-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes signin-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

@media (max-width: 900px) {
  .signin { grid-template-columns: minmax(0, 1fr); }
  .signin .hero { padding: 28px 24px 20px; gap: 18px; }
  .signin .copy h1 { font-size: 26px; margin-bottom: 0; }
  .signin .copy h1::after { margin-top: 14px; }
  .signin .copy p { display: none; }
  .signin .art { width: min(150px, 44%); margin: 0 auto; }
  .signin .panel { padding: 28px 16px 40px; }
  .signin .box { padding: 28px 22px 24px; border-radius: 16px; }
}

/* ------------------------------------------------------- agent sign in */
/* The agent page uses the same layout as the staff page. The illustration is
   drawn for a light background, so it sits on a soft light disc. It follows the
   height of the window, so that the page fits without scrolling on a laptop. */
.signin--agent .hero {
  padding-top: 34px; padding-bottom: 26px; gap: 20px;
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 520px at 100% 105%, rgba(195,32,38,.22), transparent 62%),
    linear-gradient(160deg, #1E3249 0%, #162637 100%);
}
.signin--agent .brand { flex-direction: row; align-items: center; gap: 18px; }
.signin--agent .aeu-white { height: 54px; width: auto; display: block; }
.signin--agent .portal-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #F4F7FA;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
}
.signin--agent .portal-pill i { width: 7px; height: 7px; border-radius: 99px; background: #E8434A; box-shadow: 0 0 0 4px rgba(232,67,74,.22); }
.signin--agent .copy h1 { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -.01em; font-size: clamp(28px, 2.9vw, 40px); margin-bottom: 12px; }
.signin--agent .copy h1::after { margin-top: 14px; }
.signin--agent .copy p { color: #C2CEDC; font-size: 15px; }
.signin--agent .stage { position: relative; width: fit-content; max-width: 100%; margin: 4px 0; padding: 10px 26px; }
.signin--agent .stage .glow {
  position: absolute; inset: 0; border-radius: 28px; z-index: 0;
  background: radial-gradient(120% 100% at 30% 0%, #FFFFFF 0%, #F1F5FA 55%, #E3EBF4 100%);
  box-shadow: 0 28px 70px rgba(5,12,22,.45), inset 0 0 0 1px rgba(255,255,255,.6);
}
.signin--agent .stage img { position: relative; z-index: 1; height: clamp(150px, calc(100vh - 620px), 400px); width: auto; max-width: 100%; display: block; }
.signin--agent .chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 999px; background: #fff; color: #1E3249; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 10px 28px rgba(8,16,28,.28);
}
.signin--agent .chip svg { color: #fff; background: #2E9E5B; border-radius: 99px; padding: 3px; width: 18px; height: 18px; flex: 0 0 18px; }
.signin--agent .chip.c1 { left: -18px; top: 22px; }
.signin--agent .chip.c2 { right: -14px; bottom: 20px; }
.signin--agent .points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.signin--agent .pt {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
}
.signin--agent .pt i {
  width: 26px; height: 26px; border-radius: 8px; background: #C32026; color: #fff; font-style: normal;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.signin--agent .pt .t { font-size: 14px; font-weight: 700; color: #F4F7FA; line-height: 1.3; }
.signin--agent .pt .s { font-size: 12.5px; color: #A9BBD0; line-height: 1.5; margin-top: 3px; }

/* The right side: a soft backdrop, and a card with a brand edge. */
.signin--agent .panel { background: radial-gradient(700px 500px at 80% 0%, #F3F6FA 0%, #FDFAF8 60%); }
.signin--agent .box { position: relative; overflow: hidden; border-radius: 20px; box-shadow: 0 30px 70px rgba(30,50,73,.16), 0 2px 6px rgba(30,50,73,.06); }
.signin--agent .box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #1E3249 0 62%, #C32026 62% 100%); }
.signin--agent .box h2 { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -.01em; font-size: 30px; }
.signin--agent .with-icon { position: relative; }
.signin--agent .with-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8795A6; pointer-events: none; }
.signin--agent .with-icon input { padding-left: 42px; width: 100%; box-sizing: border-box; }
.signin--agent .btn.block { box-shadow: 0 10px 22px rgba(195,32,38,.28); }
.signin--agent .secure { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #EDE6E0; font-size: 12.5px; color: var(--ink-3); }
.signin--agent .secure svg { flex: 0 0 16px; color: #2E9E5B; }

/* A shorter window has no room for the three points, and the illustration grows into the space. */
@media (min-width: 901px) and (max-height: 900px) {
  .signin--agent .points { display: none; }
  .signin--agent .stage img { height: clamp(150px, calc(100vh - 470px), 270px); }
  .signin--agent .stage { margin-bottom: auto; }
}
@media (max-width: 900px) {
  .signin--agent .brand { gap: 12px; }
  .signin--agent .aeu-white { height: 40px; }
  .signin--agent .copy h1 { font-size: 26px; }
  .signin--agent .copy p { display: none; }
  .signin--agent .stage { margin: 0 auto; padding: 8px 16px; }
  .signin--agent .stage .glow { border-radius: 18px; }
  .signin--agent .stage img { height: clamp(110px, 24vh, 150px); }
  .signin--agent .chip, .signin--agent .points { display: none; }
}

/* ------------------------------------------------------- consistent fields and pills */
/* A field outside a .field wrapper (in a table cell or an inline form) had the
   browser's plain look. This gives it the same look, with no specificity, so any
   specific rule still wins. */
:where(form, td) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=file], [type=range], [type=button]), select, textarea) {
  padding: 10px 12px; border: 1px solid #D5DAE1; border-radius: 9px; background-color: #fff;
  font-size: 14px; min-height: 42px; box-sizing: border-box;
}
:where(td) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=file]), select) { padding: 8px 10px; min-height: 38px; }
:where(.side-agent) :where(form, td) :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=file], [type=range], [type=button]), select, textarea) {
  border-color: #E3D9D2; border-radius: 11px;
}
/* Every field in a row of fields is the same height, so labels and buttons line up. */
.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 input[type=datetime-local], .field input[type=number],
.field select { min-height: 42px; box-sizing: border-box; }

/* A pill has room around its text. */
.pill { padding: 4px 11px; line-height: 1.3; }

/* ------------------------------------------------------- the application form */
.field > label .req, .note .req, .radio .req { color: #C32026; font-weight: 700; margin-left: 3px; }
.field > label .opt, .note .opt { color: var(--ink-3); font-weight: 400; font-size: 12px; margin-left: 6px; }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
/* A field that does not apply is greyed out and cannot be filled. */
.field.is-off > label { color: #9AA6B4; }
.field.is-off input, .field.is-off select, .field.is-off textarea {
  background-color: #F1F3F6; color: #8C98A8; border-color: #E3E7EC; cursor: not-allowed;
}
.more-row[hidden] { display: none; }

/* ------------------------------------------------------- the notification bell */
.a-notif { position: relative; }
.a-bell { border: 1px solid #EDE5E0; padding: 0; font: inherit; }
.a-bell .pip[hidden] { display: none; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(380px, 92vw); z-index: 40;
  background: #fff; border: 1px solid #EDE5E0; border-radius: 14px; box-shadow: 0 18px 44px rgba(30,50,73,.18); overflow: hidden;
}
.notif-panel[hidden] { display: none; }
.notif-head, .notif-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.notif-head { border-bottom: 1px solid #EDE5E0; font-size: 14px; }
.notif-head .link { background: none; border: 0; cursor: pointer; font-size: 13px; padding: 0; }
.notif-head .link:disabled { color: var(--ink-3); cursor: default; text-decoration: none; }
.notif-foot { border-top: 1px solid #EDE5E0; font-size: 13px; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-empty { padding: 22px 16px; font-size: 14px; color: var(--ink-3); text-align: center; }
.notif-item { display: block; padding: 12px 16px 12px 22px; border-bottom: 1px solid #F3EEEA; text-decoration: none; color: inherit; position: relative; }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: #FBF8F6; }
.notif-item .nt { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.notif-item .nb { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; }
.notif-item .nw { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }
.notif-item.unread .nt { font-weight: 700; color: #1E3249; }
.notif-item.unread::before { content: ''; position: absolute; left: 8px; top: 18px; width: 8px; height: 8px; border-radius: 99px; background: #C32026; }
@media (max-width: 700px) { .notif-panel { position: fixed; left: 4vw; right: 4vw; top: 70px; width: auto; } }

/* ------------------------------------------------------- the Resources page */
.vid { position: relative; }
.vid .th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid .th .play { position: absolute; inset: 0; display: grid; place-items: center; }
.vid .th .play::after { content: ''; width: 46px; height: 46px; border-radius: 99px; background: rgba(30,50,73,.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M10 8l6 4-6 4z'/%3E%3C/svg%3E") center / 26px no-repeat; }
.vid.done .th::after { content: ''; position: absolute; inset: 0; background: rgba(23,96,60,.18); }
.vid.done .dur { background: #17603C; }
.vid:focus-visible { outline: 2px solid #C32026; outline-offset: 2px; }
.res .ty.doc { background: #2B579A; } .res .ty.ppt { background: #B7472A; } .res .ty.link { background: #5D7490; }
.vid[hidden], .res[hidden], [data-sec][hidden] { display: none; }

/* ------------------------------------------------------- the portal home, latest resources */
.latest { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid #EDE5E0; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.latest:hover { background: #FBF8F6; }
.latest .ty { flex: 0 0 44px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #fff; background: #3E6DA8; }
.latest .ty.pdf { background: #C32026; } .latest .ty.xls { background: #17603C; } .latest .ty.zip { background: #8A6A12; } .latest .ty.doc { background: #2B579A; } .latest .ty.ppt { background: #B7472A; } .latest .ty.link { background: #5D7490; }
.latest .t { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.latest .s { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* Every card heading in the portal is the same size, whether or not it sits in a title bar. */
.side-agent .card > h2, .side-agent .tbar > h2, .side-agent .card .tbar h2 { font-size: 17px; margin: 0; line-height: 1.3; }
.side-agent .card > h2 { margin-bottom: 14px; }
.side-agent .tbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ------------------------------------------------------- the portal logo (transparent) */
.a-brand .forwho { border-left: 1px solid #EDE5E0; padding-left: 14px; }
.a-brand .aeu-logo { height: 34px; width: auto; display: block; }
.side-agent .card h2 { font-size: 17px; line-height: 1.3; }

/* =========================================================================
   The staff consoles, one look. Agent, Student and Student CRM share these.
   - A page name is in Title Case; everything else is in sentence case.
   - One page heading, one card heading, one table heading, one stat card.
   - Views are tabs, filters are drop downs in a toolbar, one main action.
   ========================================================================= */
.side-uni .u-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.side-uni .u-head .meta { font-size: 14px; }

/* Card headings are one size, in a title bar or not. */
.side-uni .card h2, .side-uni .tbar h2, .side-uni .card > div > h2 { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0; }
.side-uni .card > h2 { margin-bottom: 12px; }
.side-uni .tbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* Table headings read as words, as in the benchmark, not as small capitals. */
.side-uni thead th { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); padding-bottom: 10px; }
.side-uni tbody td { padding: 13px 12px; }

/* A stat card is a label and a number, and nothing more. */
.side-uni .stat .k { font-size: 13px; }
.side-uni .stat .v { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.side-uni .stat .v.money { font-size: 24px; }

/* Group labels in the sidebar are plain, not capitals. */
.side-uni .u-nav .grp, .side-uni .u-me .lbl { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; }

/* Filters sit in one toolbar above the table. */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px 6px; }
.toolbar .fsel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.toolbar .fsel select { min-height: 36px; padding: 6px 30px 6px 10px; border: 1px solid #D5DAE1; border-radius: 8px; background-color: #fff; font-size: 14px; color: var(--ink); }
.toolbar .fcheck { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.side-uni .card > h2 + .t-wrap, .side-uni .card > .tbar + .t-wrap { margin-top: 8px; }

/* ---- Overview: a card for each console, with what is waiting in it ---- */
.console-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.console-card { display: flex; flex-direction: column; gap: 14px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.console-card:hover { box-shadow: 0 8px 24px rgba(30, 50, 73, .10); transform: translateY(-2px); border-color: #CBD2DA; }
.console-card .cc-head h2 { margin: 0 0 4px; }
.console-card .cc-head p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.console-card .cc-open { align-self: flex-start; }
.pend { border: 1px solid var(--line, #E3E7EC); border-radius: 10px; background: #FAFBFC; }
.pend summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; list-style: none; font-weight: 600; font-size: 13.5px; color: #1E3249; border-radius: 10px; }
.pend summary::-webkit-details-marker { display: none; }
.pend summary:hover { background: #F1F4F7; }
.pend .chev { transition: transform .25s cubic-bezier(.2, .8, .2, 1); flex: none; }
.pend[open] .chev { transform: rotate(180deg); }
.pend-body { padding: 2px 6px 8px; animation: pend-in .25s ease both; }
@keyframes pend-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pend-list { list-style: none; margin: 0; padding: 0; }
.pend-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 8px; text-decoration: none; color: inherit; font-size: 13.5px; transition: background .15s ease, padding-left .15s ease; }
.pend-list a:hover { background: #EEF2F6; padding-left: 12px; }
.pend-list .n { min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 999px; background: #1E3249; color: #fff; font-weight: 600; font-size: 12.5px; }
.pend-list .n.zero { background: #E3E7EC; color: #55606E; }
.pend-none { margin: 6px 10px 10px; font-size: 13.5px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .console-card, .pend .chev, .pend-body, .pend-list a { transition: none; animation: none; } }

/* ---- Drop downs: one look, with room around the arrow ---- */
/* The browser arrow sits hard against the right edge. Replace it with a chevron
   that has 14px of space on its right and 36px of padding for the text, so a long
   value never runs under it. Applies to every select in the staff consoles and
   the Agent Portal. */
.u-main select, .a-main select, .u-shell select, .portal select, .field select, .fab-dialog select, .dc-dialog select, select {
  -webkit-appearance: none; appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%231E3249' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
  padding-right: 38px; text-overflow: ellipsis; cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
select:hover:not(:disabled) { border-color: #9FB0C2; }
select:focus { border-color: #1E3249; box-shadow: 0 0 0 3px rgba(30, 50, 73, .14); outline: none; }
select:disabled { cursor: not-allowed; opacity: .7; }
.toolbar .fsel select { padding-right: 36px; background-position: right 12px center; }
.side-agent select:focus { border-color: #C32026; box-shadow: 0 0 0 3px rgba(195, 32, 38, .14); }

/* ---- Buttons and fields: a small, quick response to touch ---- */
.btn { transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .22s cubic-bezier(.34, 1.56, .64, 1); }
.btn { transform: translate(var(--mx, 0), var(--my, 0)); }
.btn:hover:not(:disabled) { box-shadow: 0 4px 12px rgba(30, 50, 73, .14); transform: translate(var(--mx, 0), var(--my, 0)) scale(1.02); }
.btn:active:not(:disabled) { transform: translate(var(--mx, 0), var(--my, 0)) scale(.96); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
input:not([type=checkbox], [type=radio]), textarea { transition: border-color .18s ease, box-shadow .18s ease; }
input:not([type=checkbox], [type=radio]):focus, textarea:focus { border-color: #1E3249; box-shadow: 0 0 0 3px rgba(30, 50, 73, .14); outline: none; }
.chip { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.u-nav a { transition: background-color .15s ease, color .15s ease; }
@media (prefers-reduced-motion: reduce) {
  select, .btn, input, textarea, .chip, .u-nav a { transition: none; }
  .btn:active:not(:disabled) { transform: none; }
}

/* ---- Figures on a list page: one quiet row, not a row of cards ---- */
.sumbar { display: flex; flex-wrap: wrap; gap: 8px 0; margin: 0 0 16px; padding: 12px 4px; border-bottom: 1px solid var(--line, #E3E7EC); }
.sumbar .card.stat { border: 0; box-shadow: none; background: transparent; border-radius: 0; padding: 0 28px 0 0; margin: 0 28px 0 0; border-right: 1px solid var(--line, #E3E7EC); min-width: 0; }
.sumbar .card.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.sumbar .card.stat .k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sumbar .card.stat .v { font-size: 20px; font-weight: 700; color: #1E3249; line-height: 1.25; }
.sumbar .card.stat .d { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .sumbar .card.stat { border-right: 0; margin-right: 0; padding-right: 24px; } }

/* ---- Buttons that morph: the icon changes on hover, with a springy settle ---- */
.btn.morph, .u-nav a.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.mi { position: relative; display: inline-block; width: 16px; height: 16px; flex: none; }
.mi svg { position: absolute; inset: 0; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease; }
.mi .m-b { opacity: 0; transform: scale(.5); }
.morph:hover .mi .m-a, .morph:focus-visible .mi .m-a { opacity: 0; transform: scale(.5); }
.morph:hover .mi .m-b, .morph:focus-visible .mi .m-b { opacity: 1; transform: scale(1); }
.mi.spin svg { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.with-icon:hover .mi.spin svg, .with-icon:focus-visible .mi.spin svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  .mi svg, .mi.spin svg { transition: none; }
  .btn:hover:not(:disabled) { transform: none; }
}

/* Buttons with an arrow: the arrow slides a little on hover, as if drawn on. */
.btn.nudge { display: inline-flex; align-items: center; gap: 8px; }
.mi.nudge-r svg, .mi.nudge-l svg { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.nudge:hover .mi.nudge-r svg, .nudge:focus-visible .mi.nudge-r svg { transform: translateX(4px); }
.nudge:hover .mi.nudge-l svg, .nudge:focus-visible .mi.nudge-l svg { transform: translateX(-4px); }
@media (prefers-reduced-motion: reduce) { .mi.nudge-r svg, .mi.nudge-l svg { transition: none; } }

/* ---- Sliding ink under tabs and behind page numbers ---- */
.tabs, .pager { position: relative; }
.ink { position: absolute; left: 0; top: 0; pointer-events: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), width .45s cubic-bezier(.34, 1.56, .64, 1), height .3s ease; will-change: transform, width; }
.tabs .ink { background: #1E3249; border-radius: 2px; }
.tabs.has-ink a[aria-current="page"] { border-bottom-color: transparent; }
.tabs a { transition: color .15s ease; }

.pager { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line, #E3E7EC); border-radius: 999px; background: #fff; }
.pager a, .pager .arrow, .pager .gap { position: relative; z-index: 1; min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; padding: 0 9px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: color .2s ease, background-color .15s ease; }
.pager .gap { color: var(--ink-3); min-width: 20px; padding: 0; }
.pager a:hover { background: #EEF2F6; }
.pager.has-ink a[aria-current="page"], .pager.has-ink a[aria-current="page"]:hover { color: #fff; background: transparent; }
.pager:not(.has-ink) a[aria-current="page"] { background: #1E3249; color: #fff; }
.pager .ink { background: #1E3249; border-radius: 999px; z-index: 0; }
.pager .arrow.off { opacity: .35; }
.pager .arrow svg { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.pager a.arrow:hover svg { transform: translateX(2px); }
.pager a.arrow[aria-label^="Previous"]:hover svg { transform: translateX(-2px); }

/* ---- The journey as a timeline: the current step expands ---- */
.tl { display: flex; align-items: flex-start; list-style: none; margin: 0; padding: 6px 2px 2px; gap: 0; }
.tl-n { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; transition: flex-grow .45s cubic-bezier(.34, 1.56, .64, 1); }
.tl-n.now { flex-grow: 2.4; }
.tl-n::before { content: ""; position: absolute; top: 11px; right: 50%; left: -50%; height: 2px; background: #D5DAE1; z-index: 0; }
.tl-n:first-child::before { display: none; }
.tl-n.done::before, .tl-n.now::before { background: #2E8B57; transform-origin: left; animation: tl-fill .6s ease both; }
@keyframes tl-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tl-n .dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 2px solid #D5DAE1; color: #fff; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .2s ease, border-color .2s ease; }
.tl-n.done .dot { background: #2E8B57; border-color: #2E8B57; }
.tl-n.now .dot { width: 28px; height: 28px; margin-top: -2px; background: #1E3249; border-color: #1E3249; box-shadow: 0 0 0 5px rgba(30, 50, 73, .14); }
.tl-n.now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #fff; }
.tl-n:hover .dot { transform: scale(1.12); }
.tl-n .lab { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); padding: 0 4px; }
.tl-n .lab b { font-weight: 600; }
.tl-n.done .lab { color: var(--ink-2); }
.tl-n.now .lab { color: #1E3249; font-size: 13.5px; }
.tl-n.now .lab b { font-weight: 700; }
.tl-n .lab small { font-size: 12px; color: var(--ink-3); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .35s ease; }
.tl-n.now .lab small, .tl-n:hover .lab small { max-height: 20px; opacity: 1; }
.tl-next { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }
@media (max-width: 820px) { .tl { overflow-x: auto; padding-bottom: 8px; } .tl-n { flex: 0 0 96px; } .tl-n.now { flex-basis: 150px; } }
@media (prefers-reduced-motion: reduce) { .tl-n, .tl-n .dot, .tl-n .lab small, .ink, .pager .arrow svg { transition: none; } .tl-n::before { animation: none; } }

/* ---- A button turns into a spinner while it saves ---- */
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .mi svg { opacity: 0 !important; transform: scale(.5) !important; }
.btn.is-loading .mi::after, .btn.is-loading:not(:has(.mi))::before {
  content: ""; width: 14px; height: 14px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent;
  animation: btn-spin .7s linear infinite; flex: none;
}
.btn.is-loading .mi::after { position: absolute; inset: 1px; width: auto; height: auto; }
.btn.is-loading:not(:has(.mi))::before { display: inline-block; margin-right: 8px; vertical-align: -2px; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading .mi::after, .btn.is-loading:not(:has(.mi))::before { animation-duration: 1.6s; } }

/* ---- The signed in menu ---- */
.u-me { position: relative; }
.u-me .me-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #2C4868; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.u-me .me-btn:hover { background: #1D3350; border-color: #3C5C85; }
.u-me .me-text { display: flex; flex-direction: column; min-width: 0; }
.u-me .me-text .n { font-weight: 600; color: #fff; font-size: 14px; }
.u-me .me-text .r { font-size: 12.5px; color: #9FB0C6; }
.u-me .chev { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); flex: none; color: #9FB0C6; }
.u-me .me-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.me-menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); background: #1D3350; border: 1px solid #3C5C85; border-radius: 12px; padding: 6px; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(8px) scale(.97); transform-origin: bottom center; transition: opacity .18s ease, transform .22s cubic-bezier(.34, 1.56, .64, 1); z-index: 20; }
.me-menu.open { opacity: 1; transform: none; }
.me-menu form { margin: 0; }
.me-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #E6ECF4; font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; text-decoration: none; transition: background-color .15s ease; }
.me-item:hover { background: #2A4568; color: #fff; }
.theme-ico { position: relative; width: 16px; height: 16px; flex: none; }
.theme-ico svg { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; }
.theme-ico .moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
.theme-ico .sun { opacity: 1; transform: none; }
html[data-theme="dark"] .theme-ico .sun { opacity: 0; transform: rotate(90deg) scale(.4); }
html[data-theme="dark"] .theme-ico .moon { opacity: 1; transform: none; }
.u-me .sign-out { font-size: 13.5px; }
@media (max-width: 900px) { .me-menu { bottom: auto; top: calc(100% + 6px); transform-origin: top center; } }
@media (prefers-reduced-motion: reduce) { .me-menu, .u-me .chev, .theme-ico svg { transition: none; } }

/* ---- A message peels off like a page corner ---- */
.note[data-peel] { position: relative; padding-right: 38px; }
.peel-x { position: absolute; top: 6px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; opacity: .6; transition: opacity .15s ease, background-color .15s ease; }
.peel-x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.note.is-peeling { transform-origin: 100% 0; animation: note-peel .55s cubic-bezier(.55, 0, .8, .3) forwards; pointer-events: none; }
@keyframes note-peel {
  0% { transform: none; opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  55% { transform: perspective(700px) rotateX(0deg) rotateZ(0deg); opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 60%, 40% 100%, 0 100%); }
  100% { transform: perspective(700px) rotateX(-55deg) rotateZ(2deg) translateY(-10px); opacity: 0; clip-path: polygon(0 0, 100% 0, 100% 10%, 0 100%); margin-bottom: -40px; }
}

/* ---- Dark mode for the staff consoles ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E6EAF0; --ink-2: #C3CBD6; --ink-3: #97A3B3; --line: #2B3A4F; --line-2: #243246; --paper: #0E1621; --white: #16212F;
  --ok-bg: #173A2B; --ok-fg: #86D8AB; --info-bg: #1F3552; --info-fg: #A5C7F2; --warn-bg: #3F3312; --warn-fg: #F2C877;
  --bad-bg: #462027; --bad-fg: #F4A5AD; --mute-bg: #26323F; --mute-fg: #B9C3CF; --brand-soft: #3A1A1D;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}
html[data-theme="dark"] body.side-uni { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .side-uni .u-main { background: var(--paper); }
html[data-theme="dark"] .side-uni .card, html[data-theme="dark"] .side-uni .priority, html[data-theme="dark"] .side-uni .pager,
html[data-theme="dark"] .side-uni .pend, html[data-theme="dark"] .side-uni .console-card { background: #16212F; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .side-uni .pend { background: #1A2737; }
html[data-theme="dark"] .side-uni .pend summary { color: var(--ink); }
html[data-theme="dark"] .side-uni .pend summary:hover, html[data-theme="dark"] .side-uni .pend-list a:hover { background: #22324A; }
html[data-theme="dark"] .side-uni .pend-list .n { background: #3B5C86; }
html[data-theme="dark"] .side-uni .pend-list .n.zero { background: #2B3A4F; color: var(--ink-3); }
html[data-theme="dark"] .side-uni :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=range], [type=file]), select, textarea) { background-color: #0E1621; color: var(--ink); border-color: #34465E; }
html[data-theme="dark"] .side-uni select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23C3CBD6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .side-uni input::placeholder { color: #7F8CA0; }
html[data-theme="dark"] .side-uni select:hover:not(:disabled) { border-color: #587396; }
html[data-theme="dark"] .side-uni select:focus, html[data-theme="dark"] .side-uni input:focus, html[data-theme="dark"] .side-uni textarea:focus { border-color: #7FA6D6; box-shadow: 0 0 0 3px rgba(127, 166, 214, .22); }
html[data-theme="dark"] .side-uni .btn.ghost { background: #16212F; color: var(--ink); border-color: #34465E; }
html[data-theme="dark"] .side-uni .btn.ghost:hover:not(:disabled) { background: #22324A; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .side-uni .chip { background: #16212F; color: var(--ink-2); border-color: #34465E; }
html[data-theme="dark"] .side-uni .chip:hover { background: #22324A; }
html[data-theme="dark"] .side-uni .chip.on { background: #3B5C86; border-color: #3B5C86; color: #fff; }
html[data-theme="dark"] .side-uni .tabs { border-bottom-color: var(--line); }
html[data-theme="dark"] .side-uni .tabs a[aria-current="page"], html[data-theme="dark"] .side-uni .tabs a:hover { color: #fff; }
html[data-theme="dark"] .side-uni .tabs .ink, html[data-theme="dark"] .side-uni .pager .ink { background: #7FA6D6; }
html[data-theme="dark"] .side-uni .tabs a[aria-current="page"] { border-bottom-color: #7FA6D6; }
html[data-theme="dark"] .side-uni .tabs.has-ink a[aria-current="page"] { border-bottom-color: transparent; }
html[data-theme="dark"] .side-uni .pager a:hover { background: #22324A; }
html[data-theme="dark"] .side-uni .pager.has-ink a[aria-current="page"] { color: #0E1621; }
html[data-theme="dark"] .side-uni .pager:not(.has-ink) a[aria-current="page"] { background: #7FA6D6; color: #0E1621; }
html[data-theme="dark"] .side-uni table th { color: var(--ink-3); border-color: var(--line); }
html[data-theme="dark"] .side-uni table td { border-color: var(--line-2); }
html[data-theme="dark"] .side-uni tbody tr:hover { background: #1A2737; }
html[data-theme="dark"] .side-uni .sumbar .card.stat .v { color: #fff; }
html[data-theme="dark"] .side-uni .sumbar { border-bottom-color: var(--line); }
html[data-theme="dark"] .side-uni .u-head h1, html[data-theme="dark"] .side-uni .s-id h1 { color: #fff; }
html[data-theme="dark"] .side-uni .note { border-color: transparent; }
html[data-theme="dark"] .side-uni .note.n-info { background: var(--info-bg); color: var(--info-fg); }
html[data-theme="dark"] .side-uni .note.n-ok { background: var(--ok-bg); color: var(--ok-fg); }
html[data-theme="dark"] .side-uni .note.n-bad { background: var(--bad-bg); color: var(--bad-fg); }
html[data-theme="dark"] .side-uni .note.n-warn { background: var(--warn-bg); color: var(--warn-fg); }
html[data-theme="dark"] .side-uni .link { color: #9CC1F0; }
html[data-theme="dark"] .side-uni a.nm { color: #fff; }
html[data-theme="dark"] .tl-n .dot { background: #16212F; border-color: #34465E; }
html[data-theme="dark"] .tl-n.done .dot { background: #2E8B57; border-color: #2E8B57; }
html[data-theme="dark"] .tl-n.now .dot { background: #7FA6D6; border-color: #7FA6D6; box-shadow: 0 0 0 5px rgba(127, 166, 214, .2); }
html[data-theme="dark"] .tl-n.now .dot::after { background: #0E1621; }
html[data-theme="dark"] .tl-n.now .lab { color: #fff; }
html[data-theme="dark"] .tl-n::before { background: #34465E; }
html[data-theme="dark"] .tl-n.done::before, html[data-theme="dark"] .tl-n.now::before { background: #2E8B57; }
html[data-theme="dark"] .side-uni .field.is-off input, html[data-theme="dark"] .side-uni .field.is-off select { background-color: #1A2737; color: #7F8CA0; border-color: #2B3A4F; }
html[data-theme="dark"] .side-uni .t-wrap, html[data-theme="dark"] .side-uni .card.flush { background: #16212F; }
.me-item.sign-out { padding-left: 36px; text-decoration: none; }

/* ======================================================= Agent Portal on a phone ====
   Below 760px the links move to a bar at the bottom, the top bar holds only the logo,
   the bell and the person, and nothing is wider than the screen. */
.a-tabbar, .a-sheet { display: none; }
.a-main, .a-main .card, .a-main .col, .a-main .row > * { min-width: 0; }
.side-agent .t-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
@media (max-width: 760px) {
  body.side-agent { padding-bottom: calc(76px + env(safe-area-inset-bottom)); overflow-x: hidden; }
  .side-agent .a-top { height: 56px; padding: 0 14px; flex-wrap: nowrap; gap: 10px; }
  .side-agent .a-nav { display: none; }
  .side-agent .a-brand { gap: 10px; min-width: 0; }
  .side-agent .a-brand .logo { font-size: 16px; white-space: nowrap; }
  .side-agent .a-brand .forwho { padding-left: 10px; }
  .side-agent .a-brand .aeu-logo { height: 26px; width: auto; }
  .side-agent .a-who { gap: 8px; }
  .side-agent .a-who .me { display: none; }
  .side-agent .a-main { padding: 18px 14px 28px; }
  .side-agent .a-head h1 { font-size: 26px; }
  .side-agent .a-main .tools .btn { width: 100%; justify-content: center; }
  .side-agent .a-main .tools { width: 100%; }
  .side-agent .a-head .row { gap: 10px; }

  .a-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid #EDE5E0; box-shadow: 0 -6px 20px rgba(30, 50, 73, .08); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .a-tabbar .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; border-radius: 14px; color: #55606E; font-size: 11px; font-weight: 600; text-decoration: none; min-height: 52px; transition: color .15s ease, background-color .15s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1); -webkit-tap-highlight-color: transparent; }
  .a-tabbar .tab:active { transform: scale(.92); }
  .a-tabbar .tab[aria-current="page"] { color: #1E3249; background: #EEF2F6; }
  .a-tabbar .tab .ti { display: grid; place-items: center; height: 24px; }
  .a-tabbar .tab-new .ti { width: 34px; height: 34px; margin-top: -12px; border-radius: 999px; background: #C32026; color: #fff; box-shadow: 0 6px 14px rgba(195, 32, 38, .35); }
  .a-tabbar .tab-new[aria-current="page"] { background: transparent; }

  .a-sheet { position: fixed; inset: 0; z-index: 60; display: block; }
  .a-sheet[hidden] { display: none; }
  .sheet-scrim { position: absolute; inset: 0; background: rgba(14, 22, 33, .45); opacity: 0; transition: opacity .25s ease; }
  .a-sheet.open .sheet-scrim { opacity: 1; }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .35s cubic-bezier(.34, 1.2, .64, 1); box-shadow: 0 -12px 32px rgba(0, 0, 0, .2); }
  .a-sheet.open .sheet-panel { transform: none; }
  .sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: #D5DAE1; margin: 0 auto 12px; }
  .sheet-who { display: flex; align-items: center; gap: 12px; padding: 4px 6px 12px; border-bottom: 1px solid #EFE8E3; margin-bottom: 6px; }
  .sheet-who .av { width: 40px; height: 40px; border-radius: 999px; background: #1E3249; color: #fff; display: grid; place-items: center; font-weight: 700; }
  .sheet-who .sub { font-size: 13px; color: var(--ink-3); }
  .sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 8px; border: 0; border-radius: 12px; background: transparent; color: #152030; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; min-height: 52px; }
  .sheet-item:active, .sheet-item:hover { background: #F4F0EC; }
  .sheet-item[aria-current="page"] { color: #1E3249; font-weight: 700; }
  .sheet-item .ti { display: grid; place-items: center; color: #55606E; }
  .sheet-out { color: #C32026; }
  .sheet-out .ti { color: #C32026; }
  .sheet-panel form { margin: 0; }

  /* Quick filters scroll sideways in one row instead of filling the screen. */
  .side-agent .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -4px; margin-right: -4px; padding: 2px 4px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .side-agent .chips::-webkit-scrollbar { display: none; }
  .side-agent .chips .chip { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
  /* Settings views scroll sideways too, and the bar that holds them does not push the page wide. */
  .side-agent .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; }
  .side-agent .tabs::-webkit-scrollbar { display: none; }
  .side-agent .tabs a { white-space: nowrap; }
  .side-agent .card { padding-left: 16px; padding-right: 16px; }
  .side-agent .card.flush { padding-left: 0; padding-right: 0; }
  .side-agent .row.gap-12.wrap > .field, .side-agent .row.gap-12.wrap > .btn { flex: 1 1 100%; max-width: none; }
  .side-agent .a-main .row.gap-16 > .col { flex: 1 1 100% !important; max-width: 100% !important; min-width: 0 !important; width: 100%; }
  .side-agent .grid.g3, .side-agent .grid.g4, .side-agent .grid.g2 { grid-template-columns: 1fr; }
  .side-agent .notif-panel { position: fixed; left: 10px; right: 10px; top: 62px; width: auto; max-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { .sheet-panel, .sheet-scrim, .a-tabbar .tab { transition: none; } }

/* On a phone a table of people or permissions becomes one card per row. */
@media (max-width: 760px) {
  .side-agent table.stack, .side-agent table.stack tbody, .side-agent table.stack tr, .side-agent table.stack td { display: block; width: 100%; }
  .side-agent table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .side-agent table.stack tr { padding: 12px 6px; border-bottom: 1px solid #EFE8E3; }
  .side-agent table.stack td { border: 0; padding: 4px 8px; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .side-agent table.stack td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; text-align: left; flex: none; }
  .side-agent table.stack td.st-head { display: block; text-align: left; padding-bottom: 8px; font-weight: 600; }
  .side-agent table.stack td.st-head::before { content: none; }
  .side-agent table.stack td.st-act { display: block; text-align: left; padding-top: 8px; }
  .side-agent table.stack td.st-act form { display: flex; flex-wrap: wrap; gap: 8px; }
  .side-agent table.stack td.st-act .btn, .side-agent table.stack td.st-act select { width: 100%; justify-content: center; }
  .side-agent .chips { max-width: 100%; width: 100%; min-width: 0; }
}

/* ================================================= Staff consoles on a phone or tablet ====
   Below 900px the sidebar is a drawer behind a menu button, so a page begins at the top
   of the screen and not 330px down it. */
.u-topbar, .u-scrim { display: none; }
@media (max-width: 900px) {
  .u-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 10px; background: #16263A; color: #fff; }
  .u-topbar .u-menu { width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .u-topbar .u-menu:active { background: #27425F; }
  .u-topbar { justify-content: space-between; }
  .u-topbar .u-title { display: none; flex: 1 1 auto; min-width: 0; font-family: 'Poppins', system-ui, sans-serif; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .u-topbar-logo { height: 24px; width: auto; flex: none; opacity: .9; }
  .u-scrim { position: fixed; inset: 0; z-index: 70; display: block; background: rgba(14, 22, 33, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.nav-open .u-scrim { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  .u-shell { display: block; min-height: 0; }
  .u-rail { position: fixed; top: 0; left: 0; bottom: 0; z-index: 80; width: min(86vw, 320px); height: 100vh; height: 100dvh; padding: 16px 14px 0; gap: 16px; overflow-y: auto; overflow-x: hidden; transform: translateX(-105%); transition: transform .35s cubic-bezier(.34, 1.1, .64, 1); box-shadow: 8px 0 28px rgba(0, 0, 0, .35); flex-direction: column; }
  body.nav-open .u-rail { transform: none; }
  .u-rail .mark { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  .u-rail .mark .iso-logo { max-width: 200px; }
  .mode-switch { flex-direction: column; }
  .mode-switch a, .mode-switch span.locked { flex: 0 0 auto; justify-content: flex-start; text-align: left; padding: 11px 12px; font-size: 14px; }
  .mode-switch .ico { display: inline-block; }
  .u-nav { flex-direction: column; flex-wrap: nowrap; overflow: visible; gap: 1px; padding-bottom: 0; }
  .u-nav .grp { display: block; }
  .u-nav a { padding: 12px 12px; font-size: 15px; white-space: normal; }
  .u-nav + .u-nav { margin-top: 4px; padding-top: 8px; border-top: 1px solid #2C4868; }
  .u-rail .u-me { position: sticky; bottom: 0; flex-direction: column; background: #16263A; padding: 10px 0 16px; margin-top: auto; }
  .u-rail > .u-nav:last-of-type { padding-bottom: 0; }

  .u-main { padding: 16px 14px 32px; }
  .u-main .crumb { font-size: 12.5px; }
  .u-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .u-head h1 { font-size: 26px; }
  .u-head .tools { width: 100%; flex-wrap: wrap; }
  .u-head .tools .btn { flex: 1 1 100%; justify-content: center; }
  .u-main .btn { min-height: 44px; }
  .u-main .btn.sm { min-height: 36px; }

  /* Views scroll sideways in one row. Filters sit two to a row with their labels above. */
  .u-main .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .u-main .tabs::-webkit-scrollbar { display: none; }
  .u-main .tabs a { white-space: nowrap; }
  .u-main .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 6px; }
  .u-main .toolbar > input[type="search"], .u-main .toolbar > .btn, .u-main .toolbar > .fcheck { grid-column: 1 / -1; }
  .u-main .toolbar .fsel { flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
  .u-main .toolbar .fsel select { width: 100%; min-width: 0; }
  .u-main .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 6px; }
  .u-main .chips::-webkit-scrollbar { display: none; }
  .u-main .chips .chip { flex: 0 0 auto; white-space: nowrap; }
  .sumbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sumbar .card.stat { border-right: 0; margin-right: 0; padding-right: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .pager { max-width: 100%; overflow-x: auto; }
  .tl { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .u-rail, .u-scrim { transition: none; } }
@media (max-width: 900px) { .sumbar .card.stat .d { display: none; } }

@media (max-width: 900px) {
  .u-rail { box-shadow: none; }
  body.nav-open .u-rail { box-shadow: 8px 0 28px rgba(0, 0, 0, .35); }
  .s-head { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .s-photo { width: 56px; height: 56px; flex: none; font-size: 16px !important; border-radius: 14px; }
  .s-id h1 { font-size: 24px; }
}
/* A wide list becomes cards on a phone (the cells are labelled by motion.js). */
@media (max-width: 640px) {
  .u-main table.m-cards, .u-main table.m-cards tbody, .u-main table.m-cards tr, .u-main table.m-cards td { display: block; width: 100%; }
  .u-main table.m-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .u-main table.m-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2, #EFF1F4); }
  .u-main table.m-cards td { border: 0; padding: 4px 0; text-align: left; }
  .u-main table.m-cards td[data-label] { display: flex; justify-content: space-between; align-items: center; gap: 14px; text-align: right; }
  .u-main table.m-cards td[data-label]::before { content: attr(data-label); color: var(--ink-3); font-size: 12.5px; text-align: left; flex: none; }
  .u-main table.m-cards td:empty, .u-main table.m-cards td.hide-sm { display: none; }
  .u-main table.m-cards td:first-child { padding-bottom: 6px; font-size: 15px; }
  .u-main .t-wrap { overflow-x: visible; }
}

/* ============================================ The public application to become an agent */
.apply-page { padding-bottom: 0 !important; }
.apply-main { max-width: 900px; }
.apply-main .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-sec { padding: 22px 24px; }
.apply-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.apply-h h2 { margin: 0 0 2px; font-size: 18px; }
.apply-h p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.apply-n { flex: none; width: 30px; height: 30px; border-radius: 999px; background: #1E3249; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; line-height: 1.45; }
.check input { margin-top: 3px; width: 17px; height: 17px; flex: none; accent-color: #1E3249; }
.apply-main .btn.lg { padding: 13px 26px; font-size: 15px; }
.apply-main .grid.g2 { gap: 14px 18px; }
@media (max-width: 760px) {
  .apply-sec { padding: 18px 16px; }
  .apply-main .grid.g2 { grid-template-columns: 1fr; }
  .apply-main > form > div > .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
}

/* ======================================================================== Settings: access */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-side { position: sticky; top: 16px; }
.acc-find { width: 100%; margin-bottom: 10px; }
.acc-people { display: flex; flex-direction: column; gap: 6px; max-height: calc(100vh - 140px); overflow-y: auto; }
.acc-person { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line, #E3E7EC); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.acc-person:hover { border-color: #9FB0C2; transform: translateX(2px); }
.acc-person.is-on { border-color: #1E3249; box-shadow: 0 0 0 2px rgba(30, 50, 73, .12); }
.acc-person[hidden] { display: none; }
.acc-pn { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-pn b { font-size: 14px; }
.acc-pn small { font-size: 12.5px; color: var(--ink-3); }
.av { width: 34px; height: 34px; border-radius: 999px; background: #1E3249; color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-who { display: flex; align-items: center; gap: 14px; }
.acc-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-copy { display: inline-flex; gap: 8px; align-items: center; }
.acc-copy select { min-height: 36px; }
.acc-console { background: #fff; border: 1px solid var(--line, #E3E7EC); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.acc-ch { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2, #EFF1F4); background: #FAFBFC; flex-wrap: wrap; }
.acc-ct { flex: 1 1 260px; min-width: 0; }
.acc-ct h3 { margin: 0; font-size: 16px; }
.acc-ct p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.acc-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.acc-master { display: inline-flex; align-items: center; gap: 10px; }
.acc-ml { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.acc-rows { list-style: none; margin: 0; padding: 4px 8px 8px; }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; transition: background-color .15s ease, opacity .2s ease; }
.acc-row:hover { background: #F5F7FA; }
.acc-row.is-custom { background: #F3F7FC; }
.acc-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-rt b { font-size: 14.5px; }
.acc-rt small { font-size: 12.5px; color: var(--ink-3); }
.acc-console.is-off .acc-row { opacity: .5; }
.acc-console.is-off .acc-count { color: #9AA6B4; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #C9D1DB; transition: background-color .2s ease; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.switch input:checked + .track { background: #1E3249; }
.switch input:checked + .track .knob { transform: translateX(18px); }
.switch:active .knob { width: 26px; }
.switch:active input:checked + .track .knob { transform: translateX(12px); }
.switch input:focus-visible + .track { outline: 2px solid #1E3249; outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .track { opacity: .55; }
.acc-savebar { position: sticky; bottom: 14px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #16263A; color: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); margin-top: 6px; animation: acc-in .25s cubic-bezier(.34, 1.4, .64, 1) both; }
.acc-savebar[hidden] { display: none; }
.acc-sb-a { display: inline-flex; gap: 8px; }
.acc-savebar .btn.ghost { background: transparent; color: #fff; border-color: #3C5C85; }
@keyframes acc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.acc-matrix { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.acc-matrix th, .acc-matrix td { padding: 0; }
.acc-matrix .acc-name { position: sticky; left: 0; background: #fff; z-index: 2; min-width: 190px; padding: 8px 12px; text-align: left; border-right: 1px solid var(--line, #E3E7EC); }
.acc-matrix .acc-cg { padding: 8px 6px; text-align: center; font-size: 12px; color: var(--ink-3); border-left: 1px solid var(--line, #E3E7EC); border-bottom: 1px solid var(--line, #E3E7EC); white-space: nowrap; }
.acc-matrix .acc-pg { height: 128px; width: 34px; vertical-align: bottom; border-left: 1px solid var(--line-2, #EFF1F4); }
.acc-matrix .acc-pg span { display: block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; padding: 6px 0; font-weight: 600; font-size: 12px; margin: 0 auto; }
.acc-matrix tbody tr:hover .acc-cell { filter: brightness(.96); }
.acc-cell { width: 34px; height: 44px; text-align: center; border-left: 1px solid var(--line-2, #EFF1F4); border-top: 1px solid var(--line-2, #EFF1F4); position: relative; }
.acc-cell::after { content: ""; position: absolute; inset: 14px 9px; border-radius: 5px; background: #E3E7EC; }
.acc-cell.on::after { background: #2E8B57; }
.acc-cell.cus::after { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1E3249; }
@media (max-width: 900px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-people { max-height: 260px; }
  .acc-head { flex-direction: column; align-items: stretch; }
  .acc-savebar { flex-direction: column; align-items: stretch; text-align: center; }
  .acc-sb-a { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .switch .knob, .switch .track, .acc-savebar, .acc-person { transition: none; animation: none; } }
html[data-theme="dark"] .acc-person, html[data-theme="dark"] .acc-console { background: #16212F; border-color: var(--line); }
html[data-theme="dark"] .acc-ch { background: #1A2737; border-color: var(--line); }
html[data-theme="dark"] .acc-row:hover { background: #1D2A3B; }
html[data-theme="dark"] .acc-row.is-custom { background: #1B2D45; }
html[data-theme="dark"] .acc-matrix .acc-name { background: #16212F; }
html[data-theme="dark"] .acc-cell::after { background: #2B3A4F; }
html[data-theme="dark"] .acc-cell.on::after { background: #2E8B57; }
html[data-theme="dark"] .acc-cell.cus::after { box-shadow: 0 0 0 3px #16212F, 0 0 0 5px #7FA6D6; }
html[data-theme="dark"] .acc-person.is-on { border-color: #7FA6D6; }

.acc-find { padding: 10px 12px; border: 1px solid #D5DAE1; border-radius: 10px; background: #fff; font-size: 14px; min-height: 42px; box-sizing: border-box; }
html[data-theme="dark"] .acc-find { background: #0E1621; color: var(--ink); border-color: #34465E; }

.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.acc-actions form { margin: 0; }
.acc-pw summary { list-style: none; cursor: pointer; }
.acc-pw summary::-webkit-details-marker { display: none; }
.acc-pwform { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px; border: 1px solid var(--line, #E3E7EC); border-radius: 12px; background: #FAFBFC; min-width: 280px; }
.acc-pwform label { font-size: 13px; font-weight: 600; }
.acc-pwform input { padding: 9px 12px; border: 1px solid #D5DAE1; border-radius: 9px; font-size: 14px; }
html[data-theme="dark"] .acc-pwform { background: #1A2737; border-color: var(--line); }

/* ------------------------------------------------------------ Dashboard charts */
/* One stat card everywhere: the same box on every page of every console and of the Partner Portal. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (min-width: 900px) { .stats.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
a.card.stat:hover { box-shadow: 0 4px 14px rgba(30, 50, 73, .12); }
.stat.s-red .k::before, .stat.s-amber .k::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: #C32026; }
.stat.s-amber .k::before { background: #D99A1B; }
.chart-h .chart-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 13.5px; }
.chart-label { flex: 0 0 38%; min-width: 0; overflow-wrap: anywhere; }
.chart-label a.link { font-weight: 400; font-size: inherit; color: inherit; }
.chart-label a.link:hover { color: #1E3249; }
.chart-track { flex: 1; background: var(--line-2, #EEF1F5); border-radius: 5px; height: 10px; overflow: hidden; }
.chart-fill { display: block; height: 10px; border-radius: 5px; }
.chart-val { flex: 0 0 auto; min-width: 44px; text-align: right; font-weight: 600; }
.chart-c { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 6px; }
.chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.chart-bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; min-height: 0; }
.chart-cv { font-size: 11.5px; font-weight: 600; min-height: 14px; }
.chart-cl { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.chart-split { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: var(--line-2, #EEF1F5); }
.chart-legend { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13.5px; }
.chart-legend li { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend span { color: var(--ink-3); }
.chart-note { margin: 6px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.chart-empty { color: var(--ink-3); font-size: 13.5px; margin: 6px 0; }
.t-navy { background: #1E3249; } .t-red { background: #C32026; } .t-amber { background: #D99A1B; } .t-green { background: #2E8B57; } .t-grey { background: #9FB0C2; }
.dash-grid > .card { min-width: 0; overflow: hidden; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) {
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat .v { font-size: 24px; }
  .chart-label { flex-basis: 42%; }
}

/* ------------------------------------------------------------ Slide picker */
.seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--line-2, #EEF1F5); border-radius: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: 100%; }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2, #3A4A5C); text-decoration: none; white-space: nowrap; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.seg a:hover { background: rgba(255, 255, 255, .6); }
.seg a[aria-current="page"] { background: #1E3249; color: #fff; box-shadow: 0 2px 8px rgba(30, 50, 73, .25); }
.seg .n { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(30, 50, 73, .1); }
.seg a[aria-current="page"] .n { background: rgba(255, 255, 255, .22); }
.links { line-height: 1.7; }
.links .sub-inline { color: var(--ink-3); }

/* ------------------------------------------------------------ Add contact button */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 0; height: 56px; min-width: 56px; padding: 0 17px; border-radius: 28px; background: #C32026; color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(195, 32, 38, .45); transition: transform .18s ease, box-shadow .18s ease, padding .2s ease; overflow: hidden; }
.fab span { max-width: 0; opacity: 0; white-space: nowrap; font-weight: 700; font-size: 14px; transition: max-width .22s ease, opacity .18s ease, margin .2s ease; }
.fab:hover, .fab:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(195, 32, 38, .5); padding: 0 20px; }
.fab:hover span, .fab:focus-visible span { max-width: 140px; opacity: 1; margin-left: 10px; }
.fab:active { transform: scale(.96); }
.fab-dialog { border: 0; padding: 0; border-radius: 14px; width: min(480px, calc(100vw - 24px)); box-shadow: 0 24px 60px rgba(15, 30, 48, .35); background: #fff; color: inherit; }
.fab-dialog::backdrop { background: rgba(15, 30, 48, .45); }
.fab-dialog form { padding: 20px; }
.fab-dialog h2 { margin: 0; font-size: 18px; }
.fab-who { font-weight: 700; color: #1E3249; }
@media (max-width: 640px) {
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .fab-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .fab, .fab span { transition: none; } }

/* A drop down you can type into */
.toolbar .fsearch input { min-height: 36px; width: 170px; padding: 6px 10px; border: 1px solid #D5DAE1; border-radius: 8px; background-color: #fff; font-size: 14px; color: var(--ink); }
.toolbar .fsearch input::-webkit-calendar-picker-indicator { opacity: .6; }
@media (max-width: 640px) { .u-main .toolbar .fsearch input { width: 100%; min-width: 0; } }
.side-uni .u-main { padding-bottom: 96px; }

/* ------------------------------------------------------------ Partner tier badges */
.tier { display: inline-block; font: inherit; font-weight: 700; letter-spacing: .01em; white-space: nowrap; vertical-align: baseline; background-size: 260% 100%; background-position: 100% 0; animation: tier-shine 5s ease-in-out infinite; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) { .tier { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; } }
@keyframes tier-shine { 0%, 40% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.tier-bronze { color: #9A5B24; background-image: linear-gradient(100deg, #7A4420 0%, #B8702F 22%, #7A4420 38%, #F0BE86 50%, #B8702F 62%, #7A4420 78%, #8B5122 100%); }
.tier-silver { color: #5F6B78; background-image: linear-gradient(100deg, #5B6673 0%, #8E9AA7 22%, #5B6673 38%, #E6EBF0 50%, #8E9AA7 62%, #5B6673 78%, #66717E 100%); }
.tier-gold { color: #A97700; background-image: linear-gradient(100deg, #8F6000 0%, #D4A00A 22%, #8F6000 38%, #FFE98A 50%, #D4A00A 62%, #8F6000 78%, #9A6A00 100%); }
.tier-lg { font-size: 22px; letter-spacing: 0; }
html[data-theme="dark"] .tier-bronze { color: #E2995A; background-image: linear-gradient(100deg, #C27A3B 0%, #E9A769 22%, #C27A3B 38%, #FFDDB3 50%, #E9A769 62%, #C27A3B 78%, #D08848 100%); }
html[data-theme="dark"] .tier-silver { color: #C3CCD6; background-image: linear-gradient(100deg, #9AA6B3 0%, #D5DCE3 22%, #9AA6B3 38%, #FFFFFF 50%, #D5DCE3 62%, #9AA6B3 78%, #B1BBC6 100%); }
html[data-theme="dark"] .tier-gold { color: #F0C13A; background-image: linear-gradient(100deg, #D9A514 0%, #F5CF55 22%, #D9A514 38%, #FFF3B0 50%, #F5CF55 62%, #D9A514 78%, #E6B829 100%); }
.tier-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tier-bar { height: 8px; border-radius: 4px; background: var(--line-2, #EEF1F5); overflow: hidden; margin: 8px 0 4px; }
.tier-bar > span { display: block; height: 100%; border-radius: 4px; }
.tier-bar.to-silver > span { background: linear-gradient(90deg, #AEB9C4, #fff, #7E8A97); }
.tier-bar.to-gold > span { background: linear-gradient(90deg, #E0A800, #FFF0A6, #9B6A00); }
@media (prefers-reduced-motion: reduce) { .tier { animation: none; background-position: 40% 0; } }
.tier-count { display: flex; flex-direction: column; gap: 6px; min-width: 190px; }
.tier-count .v { font-size: 28px; font-weight: 700; color: #1E3249; line-height: 1.1; }
.tier-count .d { font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------------------ Partner commission page */
.com-top { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.com-hero, .side-agent .card.com-hero { background: #1E3249; border-color: #1E3249; color: #F4F7FA; display: flex; flex-direction: column; justify-content: center; }
.side-agent .com-hero .k, .com-hero .k { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: #9DB0C6 !important; margin-bottom: 8px; }
.side-agent .com-hero .v, .com-hero .v { font-size: 34px; font-weight: 700; line-height: 1.1; color: #fff !important; }
.side-agent .com-hero .d, .com-hero .d { font-size: 13.5px; color: #C2CEDC !important; margin-top: 8px; }
.com-stats .card.stat .v { color: #1E3249; }
.steps4 div.on { background: #1E3249; color: #fff; }
.cm-bar { background: #F4F7FA; border-top: 1px solid var(--line-2, #E3E7ED); padding: 12px 24px; border-radius: 0 0 12px 12px; }
@media (max-width: 760px) { .com-top { grid-template-columns: minmax(0, 1fr); } .cm-bar { flex-wrap: wrap; padding: 12px 16px; } }
@media print { .no-print, .u-rail, .u-topbar, .fab, .crumb { display: none !important; } }

/* ------------------------------------------------------------ Greyed out link, and the partner logo */
.a-nav .is-off, .sheet-item.is-off { opacity: .42; cursor: not-allowed; user-select: none; }
.a-nav .is-off { display: inline-flex; align-items: center; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.a-top .av { position: relative; overflow: hidden; }
.av-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }
.agent-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line-2, #E3E7ED); vertical-align: middle; margin-right: 8px; }
.agent-logo-lg { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line-2, #E3E7ED); padding: 4px; }

/* Partner portal Home: three colours only. Navy, red and grey. Red means something needs action. */
/* The banner that starts a new application: one navy card, the text on the left and the button on the right. */
.side-agent .card.home-banner { background: #1E3249; border-color: #1E3249; color: #F4F7FA; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-banner .eyebrow { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: #9DB0C6; margin-bottom: 6px; }
.home-banner .title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.home-banner .line { font-size: 14px; color: #C2CEDC; line-height: 1.5; margin-top: 4px; }
.home-banner .btn { background: #F4F7FA; color: #1E3249; }
.home3 .pill, .home3 .p-ok, .home3 .p-info, .home3 .p-warn, .home3 .p-mute { background: #EDF0F4; color: #1E3249; }
.home3 .p-bad { background: #FBEAEA; color: #C32026; }
.home3 .note.n-warn { background: #FBF3F3; border-color: #C32026; color: #1E3249; }
.home3 .feed .item, .home3 .feed .i-ok, .home3 .feed .i-info { background: #F6F8FA; border-color: #DDE3EA; }
.home3 .feed .i-warn, .home3 .feed .i-bad { background: #FBF3F3; border-color: #E9BFC1; }
.home3 .latest .ty, .home3 .latest .ty.pdf, .home3 .latest .ty.xls, .home3 .latest .ty.zip, .home3 .latest .ty.doc, .home3 .latest .ty.ppt, .home3 .latest .ty.link { background: #1E3249; }
.home3 tr.flag td { background: #FBF3F3; }
.home3 .card { margin-bottom: 0; }

/* The kind of a resource, written out beside its heading so a video is told from a document. */
.kind-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #EDF0F4; color: #1E3249; font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; vertical-align: 2px; }

/* The logo at the top of a console takes the person back to the Overview, or to the first page of their only console. */
.logo-link { display: block; border-radius: 6px; text-decoration: none; }
.logo-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.logo-link .iso-logo, .logo-link .u-topbar-logo { display: block; }

/* The portal stat number is the same size as in the consoles. */
.side-agent .stat .v { font-size: 30px; font-weight: 700; }
.side-agent .stat .v.money { font-size: 24px; }

/* ------------------------------------------------------------ Stepper */
.stepper { list-style: none; display: flex; align-items: center; margin: 0 0 18px; padding: 0; }
.stepper .st { display: flex; align-items: center; flex: 0 0 auto; }
.stepper .st:not(:last-child) { flex: 1 1 0; }
.st-link { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
a.st-link:hover .st-t { text-decoration: underline; }
.st-i { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #C9D1DB; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; color: #8A97A6; background: #fff; transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.st-t { font-size: 14px; font-weight: 600; color: #8A97A6; white-space: nowrap; transition: color .3s; }
.st.cur .st-i { border-color: #1E3249; color: #1E3249; box-shadow: 0 0 0 4px rgba(30, 50, 73, .12); }
.st.done .st-i { background: #1E3249; border-color: #1E3249; color: #fff; }
.st.cur .st-t, .st.done .st-t { color: #1E3249; }
.stepper.alert .st.cur .st-i { border-color: #C32026; color: #C32026; box-shadow: 0 0 0 4px rgba(195, 32, 38, .12); }
.stepper.alert .st.cur .st-t { color: #C32026; }
.st-line { flex: 1 1 auto; height: 2px; margin: 0 14px; background: #DDE3EA; border-radius: 2px; position: relative; overflow: hidden; min-width: 18px; }
.st-line::after { content: ""; position: absolute; inset: 0; background: #1E3249; transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.32, .72, 0, 1); }
.st.done .st-line::after { transform: scaleX(1); }
@media (max-width: 640px) { .stepper .st:not(.cur) .st-t { display: none; } .st-line { margin: 0 8px; } }
@media (prefers-reduced-motion: reduce) { .st-i, .st-t, .st-line::after { transition: none; } }

/* ------------------------------------------------------------ Branching choice: level, then its programmes */
.branch { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 20px; align-items: start; }
.branch-nav { display: flex; flex-direction: column; gap: 10px; }
.branch-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 14px 16px; border: 1px solid var(--line, #E3E7ED); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; transition: background-color .2s, border-color .2s; }
.branch-item:hover { border-color: #B8C3D0; }
.branch-item span { font-size: 14px; font-weight: 600; }
.branch-item small { font-size: 12px; color: var(--ink-3); }
.branch-item.on { background: #1E3249; border-color: #1E3249; color: #fff; }
.branch-item.on small { color: #B9C6D6; }
.branch-panel, .branch-empty { border: 1px solid var(--line, #E3E7ED); border-radius: 12px; background: #fff; padding: 22px 24px; animation: branch-in .25s cubic-bezier(.16, 1, .3, 1); }
.branch-empty { color: var(--ink-3); font-size: 14px; }
.branch-panel[hidden], .branch-empty[hidden], .after-pick[hidden] { display: none !important; }
.branch-h { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.picks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.pick { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; box-sizing: border-box; margin: 0; text-align: left; padding: 13px 16px; border: 1px solid var(--line, #E3E7ED); border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.4; transition: background-color .15s, border-color .15s; }
.pick:hover { border-color: #B8C3D0; }
.pick input { accent-color: #1E3249; flex: none; margin: 0; }
.pick:has(input:checked) { border-color: #1E3249; background: #F2F5F8; font-weight: 600; }
.after-pick { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding-top: 4px; animation: branch-in .25s cubic-bezier(.16, 1, .3, 1); }
@keyframes branch-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .branch { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .branch-panel, .branch-empty, .after-pick { animation: none; } }

/* A switch with its words, for a setting in a toolbar or a form. */
.switch-row { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch-row .sw-t { color: var(--ink-2); }
.switch .knob { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), width .15s ease; }

/* A button that has finished: a tick before its words. */
.btn.is-done::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ------------------------------------------------------------ Slide to confirm */
.dc-dialog { border: 0; padding: 0; border-radius: 14px; width: min(440px, calc(100vw - 24px)); box-shadow: 0 24px 60px rgba(15, 30, 48, .35); background: #fff; color: inherit; }
.dc-dialog::backdrop { background: rgba(15, 30, 48, .45); }
.dc-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dc-body h2 { margin: 0; font-size: 18px; }
.dc-text { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.dc-track { position: relative; height: 52px; border-radius: 999px; background: #EEF1F5; border: 1px solid var(--line, #E3E7ED); overflow: hidden; padding: 4px; box-sizing: border-box; touch-action: none; user-select: none; }
.dc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(195, 32, 38, .14); border-radius: 999px; transition: width .25s cubic-bezier(.32, .72, 0, 1); }
.dc-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--ink-3); pointer-events: none; padding-left: 40px; }
.dc-thumb { position: relative; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #D5DAE1; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); display: grid; place-items: center; color: #C32026; cursor: grab; transition: transform .25s cubic-bezier(.32, .72, 0, 1), background-color .2s, color .2s; }
.dc-thumb:focus-visible { outline: 2px solid #1E3249; outline-offset: 2px; }
.dc-track.dragging .dc-thumb { cursor: grabbing; transition: none; }
.dc-track.dragging .dc-fill { transition: none; }
.dc-track.is-done .dc-thumb { background: #C32026; color: #fff; border-color: #C32026; }
.dc-track.is-done .dc-label { color: #C32026; }
.dc-actions { display: flex; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .dc-thumb, .dc-fill, .switch .knob { transition: none; } }

/* ------------------------------------------------------------ Sidebar: icons, a hover that slides, and a fold to icons only */
.u-nav { position: relative; }
.u-nav a { display: flex; align-items: center; justify-content: flex-start; gap: 8px; position: relative; z-index: 1; }
.u-rail .u-me { z-index: 5; }
.u-nav a .ico { width: 17px; height: 17px; flex: none; opacity: .8; }
.u-nav a[aria-current="page"] .ico, .u-nav a:hover .ico { opacity: 1; }
.u-nav a .nm { min-width: 0; }
.rail-hover { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 8px; background: #223B55; opacity: 0; pointer-events: none; z-index: 0; transition: transform .22s cubic-bezier(.32, .72, 0, 1), height .22s cubic-bezier(.32, .72, 0, 1), opacity .15s; }
.u-nav.has-slide a:not([aria-current="page"]):hover { background: transparent; }
.rail-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; color: #9FB0C6; font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; }
.rail-toggle:hover { background: #223B55; color: #fff; }
.rail-toggle .ico { width: 18px; height: 18px; flex: none; }
.rail-toggle kbd { margin-left: auto; font: inherit; font-size: 10.5px; border: 1px solid #2C4868; border-radius: 4px; padding: 0 5px; color: #7E95AE; }
.u-rail .logo-mark, .u-me .me-av { display: none; }
.rail-tip { position: fixed; z-index: 90; transform: translateY(-50%); background: #fff; color: #1E3249; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 7px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .12s; }
.rail-tip.on { opacity: 1; }
@media (min-width: 901px) {
  .u-rail { transition: width .25s cubic-bezier(.32, .72, 0, 1), flex-basis .25s cubic-bezier(.32, .72, 0, 1); }
  html.rail-collapsed .u-rail { width: 68px; flex: 0 0 68px; padding-left: 10px; padding-right: 10px; }
  html.rail-collapsed .u-rail .mark { align-items: center; }
  html.rail-collapsed .u-rail .iso-logo, html.rail-collapsed .u-rail .powered { display: none; }
  html.rail-collapsed .u-rail .logo-mark { display: block; width: 44px; height: auto; margin: 0 auto; }
  html.rail-collapsed .u-rail .nm, html.rail-collapsed .u-nav .grp, html.rail-collapsed .mode-switch a span { display: none; }
  html.rail-collapsed .u-nav a, html.rail-collapsed .mode-switch a, html.rail-collapsed .rail-toggle { justify-content: center; padding-left: 0; padding-right: 0; }
  html.rail-collapsed .u-me .me-text, html.rail-collapsed .u-me .chev { display: none; }
  html.rail-collapsed .u-me .me-av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #27425F; color: #fff; font-size: 12.5px; font-weight: 700; }
  html.rail-collapsed .u-me .me-btn { padding: 6px; justify-content: center; border-radius: 12px; }
  html.rail-collapsed .me-menu { position: fixed; left: 76px; right: auto; bottom: 14px; width: 200px; }
}
@media (max-width: 900px) { .rail-toggle, .rail-hover, .u-nav a .ico { display: none; } }
@media (prefers-reduced-motion: reduce) { .u-rail, .rail-hover, .rail-tip { transition: none; } }

/* The three tiers side by side. */
.tcmp { width: 100%; border-collapse: collapse; table-layout: fixed; }
@media (max-width: 700px) { .tcmp { min-width: 560px; } }
.tcmp th, .tcmp td { padding: 12px 14px; text-align: center; font-size: 13.5px; border-top: 1px solid var(--line-2, #EEF1F5); vertical-align: middle; }
.tcmp thead th { border-top: 0; padding-top: 6px; }
.tcmp tbody th, .tcmp thead th:first-child { text-align: left; font-weight: 600; color: var(--ink-2); width: 28%; }
.tcmp .is-you { background: #F2F5F8; }
.tcmp .you { font-size: 11.5px; font-weight: 600; color: #C32026; margin-top: 4px; }
.tcmp thead th .tier { margin: 0 auto; }

/* The red marker for cases not opened yet: a number beside the page in the sidebar, a dot beside the case in a list. */
.nav-dot { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: #C32026; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; flex: none; }
.unopened { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #C32026; vertical-align: 1px; flex: none; }
@media (min-width: 901px) {
  html.rail-collapsed .u-nav a .nav-dot { position: absolute; top: 3px; right: 6px; min-width: 9px; width: 9px; height: 9px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; border: 2px solid #16263A; box-sizing: content-box; }
}
.side-uni .u-nav a { font-size: 14px; }

/* ---- Dark mode, part 2: the Partner Portal gets the same rules as the consoles ---- */
html[data-theme="dark"] body.side-agent { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .side-agent .u-main { background: var(--paper); }
html[data-theme="dark"] .side-agent .card, html[data-theme="dark"] .side-agent .priority, html[data-theme="dark"] .side-agent .pager,
html[data-theme="dark"] .side-agent .pend, html[data-theme="dark"] .side-agent .console-card { background: #16212F; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .side-agent .pend { background: #1A2737; }
html[data-theme="dark"] .side-agent .pend summary { color: var(--ink); }
html[data-theme="dark"] .side-agent .pend summary:hover, html[data-theme="dark"] .side-agent .pend-list a:hover { background: #22324A; }
html[data-theme="dark"] .side-agent .pend-list .n { background: #3B5C86; }
html[data-theme="dark"] .side-agent .pend-list .n.zero { background: #2B3A4F; color: var(--ink-3); }
html[data-theme="dark"] .side-agent :where(input:not([type=checkbox], [type=radio], [type=hidden], [type=submit], [type=range], [type=file]), select, textarea) { background-color: #0E1621; color: var(--ink); border-color: #34465E; }
html[data-theme="dark"] .side-agent select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23C3CBD6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .side-agent input::placeholder { color: #7F8CA0; }
html[data-theme="dark"] .side-agent select:hover:not(:disabled) { border-color: #587396; }
html[data-theme="dark"] .side-agent select:focus, html[data-theme="dark"] .side-agent input:focus, html[data-theme="dark"] .side-agent textarea:focus { border-color: #7FA6D6; box-shadow: 0 0 0 3px rgba(127, 166, 214, .22); }
html[data-theme="dark"] .side-agent .btn.ghost { background: #16212F; color: var(--ink); border-color: #34465E; }
html[data-theme="dark"] .side-agent .btn.ghost:hover:not(:disabled) { background: #22324A; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .side-agent .chip { background: #16212F; color: var(--ink-2); border-color: #34465E; }
html[data-theme="dark"] .side-agent .chip:hover { background: #22324A; }
html[data-theme="dark"] .side-agent .chip.on { background: #3B5C86; border-color: #3B5C86; color: #fff; }
html[data-theme="dark"] .side-agent .tabs { border-bottom-color: var(--line); }
html[data-theme="dark"] .side-agent .tabs a[aria-current="page"], html[data-theme="dark"] .side-agent .tabs a:hover { color: #fff; }
html[data-theme="dark"] .side-agent .tabs .ink, html[data-theme="dark"] .side-agent .pager .ink { background: #7FA6D6; }
html[data-theme="dark"] .side-agent .tabs a[aria-current="page"] { border-bottom-color: #7FA6D6; }
html[data-theme="dark"] .side-agent .tabs.has-ink a[aria-current="page"] { border-bottom-color: transparent; }
html[data-theme="dark"] .side-agent .pager a:hover { background: #22324A; }
html[data-theme="dark"] .side-agent .pager.has-ink a[aria-current="page"] { color: #0E1621; }
html[data-theme="dark"] .side-agent .pager:not(.has-ink) a[aria-current="page"] { background: #7FA6D6; color: #0E1621; }
html[data-theme="dark"] .side-agent table th { color: var(--ink-3); border-color: var(--line); }
html[data-theme="dark"] .side-agent table td { border-color: var(--line-2); }
html[data-theme="dark"] .side-agent tbody tr:hover { background: #1A2737; }
html[data-theme="dark"] .side-agent .sumbar .card.stat .v { color: #fff; }
html[data-theme="dark"] .side-agent .sumbar { border-bottom-color: var(--line); }
html[data-theme="dark"] .side-agent .u-head h1, html[data-theme="dark"] .side-agent .s-id h1 { color: #fff; }
html[data-theme="dark"] .side-agent .note { border-color: transparent; }
html[data-theme="dark"] .side-agent .note.n-info { background: var(--info-bg); color: var(--info-fg); }
html[data-theme="dark"] .side-agent .note.n-ok { background: var(--ok-bg); color: var(--ok-fg); }
html[data-theme="dark"] .side-agent .note.n-bad { background: var(--bad-bg); color: var(--bad-fg); }
html[data-theme="dark"] .side-agent .note.n-warn { background: var(--warn-bg); color: var(--warn-fg); }
html[data-theme="dark"] .side-agent .link { color: #9CC1F0; }
html[data-theme="dark"] .side-agent a.nm { color: #fff; }
html[data-theme="dark"] .side-agent .field.is-off input, html[data-theme="dark"] .side-agent .field.is-off select { background-color: #1A2737; color: #7F8CA0; border-color: #2B3A4F; }
html[data-theme="dark"] .side-agent .t-wrap, html[data-theme="dark"] .side-agent .card.flush { background: #16212F; }

/* ---- Dark mode, part 2: every surface, tint, bar and text colour that was fixed to the light theme ---- */
html[data-theme="dark"] body.side-agent { background: var(--paper); color: var(--ink); }
html[data-theme="dark"] .a-top, html[data-theme="dark"] .a-bell, html[data-theme="dark"] .notif-panel, html[data-theme="dark"] .sheet-panel,
html[data-theme="dark"] .a-tabbar { background: var(--white); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .a-bell svg { stroke: #E6EAF0; }
html[data-theme="dark"] .a-bell[aria-current="page"] { border-color: #7FA6D6; }
.on-dark, .a-brand .aeu-logo.on-dark { display: none; }
html[data-theme="dark"] .on-light, html[data-theme="dark"] .a-brand .aeu-logo.on-light { display: none; }
html[data-theme="dark"] .on-dark, html[data-theme="dark"] .a-brand .aeu-logo.on-dark { display: block; }
html[data-theme="dark"] .a-brand .logo { color: #fff; }
html[data-theme="dark"] .a-nav a { color: var(--ink-2); }
html[data-theme="dark"] .a-nav a:hover { color: #fff; background: #22324A; }
html[data-theme="dark"] .a-nav a[aria-current="page"] { background: #3B5C86; color: #fff; }
html[data-theme="dark"] .a-who .me .n, html[data-theme="dark"] .a-who .me strong { color: var(--ink); }
html[data-theme="dark"] .a-tabbar .tab { color: var(--ink-3); }
html[data-theme="dark"] .a-tabbar .tab[aria-current="page"] { color: #fff; background: #22324A; }
html[data-theme="dark"] .sheet-item { color: var(--ink); }
html[data-theme="dark"] .sheet-item[aria-current="page"] { color: #fff; }
html[data-theme="dark"] .sheet-item .ti { color: var(--ink-3); }
html[data-theme="dark"] .sheet-item:hover, html[data-theme="dark"] .sheet-item:active, html[data-theme="dark"] .notif-item:hover { background: #22324A; }
html[data-theme="dark"] .sheet-grip { background: #34465E; }
html[data-theme="dark"] .notif-item.unread .nt { color: #fff; }

/* Surfaces */
html[data-theme="dark"] .latest, html[data-theme="dark"] .pick-card, html[data-theme="dark"] .iso-dlg-box, html[data-theme="dark"] .inv-doc,
html[data-theme="dark"] .vid, html[data-theme="dark"] .player, html[data-theme="dark"] .res, html[data-theme="dark"] .acc-group,
html[data-theme="dark"] .agreement-box, html[data-theme="dark"] .todo .t, html[data-theme="dark"] .flow > div, html[data-theme="dark"] .branch-item,
html[data-theme="dark"] .branch-panel, html[data-theme="dark"] .branch-empty, html[data-theme="dark"] .fab-dialog, html[data-theme="dark"] .dc-dialog,
html[data-theme="dark"] .field input[type=text], html[data-theme="dark"] .field input[type=email], html[data-theme="dark"] .field input[type=password],
html[data-theme="dark"] .field input[type=tel], html[data-theme="dark"] .field input[type=search], html[data-theme="dark"] .field input[type=date],
html[data-theme="dark"] .field textarea, html[data-theme="dark"] .side-agent .btn.ghost, html[data-theme="dark"] .cm-bar { background: var(--white); border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select, html[data-theme="dark"] .field textarea { background-color: #0E1621; color: var(--ink); border-color: #34465E; }
html[data-theme="dark"] .latest:hover, html[data-theme="dark"] .todo .t:hover, html[data-theme="dark"] .btn.ghost:hover, html[data-theme="dark"] .side-agent .btn.ghost:hover { background: #22324A; }
html[data-theme="dark"] .branch-item:hover, html[data-theme="dark"] .pick:hover { border-color: #587396; }
html[data-theme="dark"] .branch-item.on { background: #3B5C86; border-color: #3B5C86; color: #fff; }
html[data-theme="dark"] .branch-item.on small { color: #D5E3F5; }
html[data-theme="dark"] .pick:has(input:checked) { background: #1F3552; border-color: #7FA6D6; }
html[data-theme="dark"] .dialog, html[data-theme="dark"] dialog { color: var(--ink); }
html[data-theme="dark"] .fab-dialog::backdrop, html[data-theme="dark"] .dc-dialog::backdrop { background: rgba(0, 0, 0, .6); }
html[data-theme="dark"] .fab-who { color: #fff; }
html[data-theme="dark"] .side-agent .card.home-banner, html[data-theme="dark"] .com-hero, html[data-theme="dark"] .side-agent .card.com-hero { background: #1F3552; border-color: #2F4D74; }

/* Tints that mark a state */
html[data-theme="dark"] tr.flag, html[data-theme="dark"] .doc.need, html[data-theme="dark"] .tranche.due, html[data-theme="dark"] .wipbar { background: #3F3312; }
html[data-theme="dark"] tr.flag:hover { background: #4A3C16; }
html[data-theme="dark"] .tranche.paid, html[data-theme="dark"] .steps4 div.on, html[data-theme="dark"] .stepflow div.on { background: #173A2B; color: var(--ok-fg); }
html[data-theme="dark"] .steps4 div, html[data-theme="dark"] .stepflow div, html[data-theme="dark"] .steps .s.on, html[data-theme="dark"] .drop,
html[data-theme="dark"] .cf-body .msgbox { background: #1A2737; color: var(--ink-2); }
html[data-theme="dark"] .steps-h .done { color: var(--ok-fg); }
html[data-theme="dark"] .priority .rank, html[data-theme="dark"] .locked-page .ring { background: #3A1A1D; color: var(--bad-fg); }
html[data-theme="dark"] .wipbar { color: var(--warn-fg); }
html[data-theme="dark"] .wipbar b { color: #1E1503; }
html[data-theme="dark"] .feed .item, html[data-theme="dark"] .feed .i-ok, html[data-theme="dark"] .feed .i-info { background: #1A2737; border-color: #2B3A4F; }
html[data-theme="dark"] .feed .i-warn { background: #3F3312; border-color: #5C4A1B; }
html[data-theme="dark"] .feed .i-bad, html[data-theme="dark"] .home3 .feed .i-warn, html[data-theme="dark"] .home3 .feed .i-bad { background: #3A1A1D; border-color: #5B2B31; }
html[data-theme="dark"] .home3 .feed .item, html[data-theme="dark"] .home3 .feed .i-ok, html[data-theme="dark"] .home3 .feed .i-info { background: #1A2737; border-color: #2B3A4F; }
html[data-theme="dark"] .feed .item .t, html[data-theme="dark"] .feed .item .b { color: var(--ink); }
html[data-theme="dark"] .n-info { background: var(--info-bg); color: var(--info-fg); border-color: #7FA6D6; }
html[data-theme="dark"] .n-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: #C99A3A; }
html[data-theme="dark"] .n-bad { background: var(--bad-bg); color: var(--bad-fg); border-color: #D96A74; }
html[data-theme="dark"] .n-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #3FA06F; }
html[data-theme="dark"] .home3 .note.n-warn { background: var(--bad-bg); color: var(--bad-fg); border-color: #D96A74; }
html[data-theme="dark"] .home3 .pill, html[data-theme="dark"] .home3 .p-ok, html[data-theme="dark"] .home3 .p-info, html[data-theme="dark"] .home3 .p-warn,
html[data-theme="dark"] .home3 .p-mute, html[data-theme="dark"] .kind-tag { background: #26323F; color: #D5DEE9; }
html[data-theme="dark"] .home3 .p-bad { background: var(--bad-bg); color: var(--bad-fg); }
html[data-theme="dark"] .mode-switch a[aria-current="true"] { background: #F6F7F9; }

/* Bars, tracks and rails */
html[data-theme="dark"] .bar, html[data-theme="dark"] .hbar .tr, html[data-theme="dark"] .prog, html[data-theme="dark"] .chart-track, html[data-theme="dark"] .chart-split,
html[data-theme="dark"] .seg, html[data-theme="dark"] .tier-bar, html[data-theme="dark"] .dc-track, html[data-theme="dark"] .stage-rail .st, html[data-theme="dark"] .s-photo { background: #243246; border-color: #2B3A4F; }
html[data-theme="dark"] .stage-rail .sep, html[data-theme="dark"] .st-line { background: #34465E; }
html[data-theme="dark"] .seg a { color: var(--ink-2); }
html[data-theme="dark"] .seg a[aria-current="page"] { background: #3B5C86; color: #fff; }
html[data-theme="dark"] .hbar .tr i.soft, html[data-theme="dark"] .legend span.soft::before { background: #587396; }
html[data-theme="dark"] .switch .track, html[data-theme="dark"] .sw i { background: #34465E; }
html[data-theme="dark"] .switch input:checked + .track { background: #3B7BC0; }
html[data-theme="dark"] .dc-fill { background: rgba(217, 106, 116, .25); }
html[data-theme="dark"] .dc-thumb { background: #22324A; border-color: #34465E; }
html[data-theme="dark"] .dc-label { color: var(--ink-3); }
html[data-theme="dark"] .tcmp .is-you { background: #1F3552; }
html[data-theme="dark"] .tcmp tbody th { color: var(--ink-2); }
html[data-theme="dark"] .tcmp .you { color: #F4A5AD; }

/* Stepper */
html[data-theme="dark"] .st-i { background: var(--white); border-color: #34465E; color: var(--ink-3); }
html[data-theme="dark"] .st.cur .st-i { border-color: #7FA6D6; color: #fff; box-shadow: 0 0 0 4px rgba(127, 166, 214, .2); }
html[data-theme="dark"] .st.done .st-i { background: #3B5C86; border-color: #3B5C86; color: #fff; }
html[data-theme="dark"] .st.cur .st-t, html[data-theme="dark"] .st.done .st-t { color: var(--ink); }
html[data-theme="dark"] .st-line::after { background: #7FA6D6; }
html[data-theme="dark"] .stepper.alert .st.cur .st-i { border-color: #D96A74; color: #F4A5AD; box-shadow: 0 0 0 4px rgba(217, 106, 116, .2); }
html[data-theme="dark"] .stepper.alert .st.cur .st-t { color: #F4A5AD; }

/* Text that was fixed to navy */
html[data-theme="dark"] .link, html[data-theme="dark"] .chart-label a.link:hover { color: #9CC1F0; }
html[data-theme="dark"] .stat .v, html[data-theme="dark"] .com-stats .card.stat .v, html[data-theme="dark"] .tier-count .v { color: #fff; }
html[data-theme="dark"] .tl-n.now .lab { color: #fff; }
html[data-theme="dark"] .check input, html[data-theme="dark"] .pick input, html[data-theme="dark"] .acc-sw input { accent-color: #7FA6D6; }
html[data-theme="dark"] .acc-person.is-on { border-color: #7FA6D6; box-shadow: 0 0 0 2px rgba(127, 166, 214, .2); }
html[data-theme="dark"] .side-agent .chip.on { background: #3B5C86; border-color: #3B5C86; color: #fff; }
html[data-theme="dark"] .tabs a[aria-current="page"], html[data-theme="dark"] .epc-tabs button[aria-selected="true"] { border-bottom-color: #7FA6D6; }
html[data-theme="dark"] select:focus, html[data-theme="dark"] input:not([type=checkbox], [type=radio]):focus, html[data-theme="dark"] textarea:focus { border-color: #7FA6D6; box-shadow: 0 0 0 3px rgba(127, 166, 214, .25); }
html[data-theme="dark"] .main-body, html[data-theme="dark"] .u-main { color: var(--ink); }
html[data-theme="dark"] .av-logo, html[data-theme="dark"] .agent-logo, html[data-theme="dark"] .agent-logo-lg { background: #fff; border-color: #34465E; }
html[data-theme="dark"] .stat.s-red .k::before { background: #E5484D; }

/* Dark theme switch for the portal, in the top bar and in the More sheet */
.a-theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line, #E3E6EB); background: #fff; color: #1E3249; display: grid; place-items: center; cursor: pointer; padding: 0; }
.a-theme:hover { background: #F6F7F9; }
.a-theme .sun, .a-theme .moon { grid-area: 1 / 1; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; }
.a-theme .moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
html[data-theme="dark"] .a-theme { background: var(--white); border-color: var(--line); color: #E6EAF0; }
html[data-theme="dark"] .a-theme:hover { background: #22324A; }
html[data-theme="dark"] .a-theme .sun { opacity: 0; transform: rotate(90deg) scale(.4); }
html[data-theme="dark"] .a-theme .moon { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .a-theme .sun, .a-theme .moon { transition: none; } }
@media (max-width: 760px) { .a-top .a-theme { display: none; } }
html[data-theme="dark"] .home3 tr.flag td { background: #3A1A1D; }
html[data-theme="dark"] .a-who .me .a-out button { color: #F4A5AD; }
html[data-theme="dark"] .toolbar .fsearch input { background: #0E1621; color: var(--ink); border-color: #34465E; }
html[data-theme="dark"] .s-photo { color: #E6EAF0; }
html[data-theme="dark"] .btn.danger { background: var(--white); border-color: #5B2B31; color: #F4A5AD; }
html[data-theme="dark"] .a-brand .forwho { border-left-color: var(--line); }
html[data-theme="dark"] .timeline .ev, html[data-theme="dark"] .doc.miss, html[data-theme="dark"] .drop, html[data-theme="dark"] .steps .s .n, html[data-theme="dark"] .tick.n { border-color: #34465E; }
html[data-theme="dark"] .tick.n { background: var(--white); color: var(--ink); }
html[data-theme="dark"] .doc.need, html[data-theme="dark"] .tranche.due { border-color: #5C4A1B; }
html[data-theme="dark"] .tranche.paid { border-color: #2E6B4C; }
html[data-theme="dark"] .notif-head, html[data-theme="dark"] .notif-foot, html[data-theme="dark"] .notif-item, html[data-theme="dark"] .side-agent table.stack tr,
html[data-theme="dark"] .u-main table.m-cards tr, html[data-theme="dark"] .acc-matrix .acc-cg, html[data-theme="dark"] .acc-matrix .acc-pg, html[data-theme="dark"] .acc-cell,
html[data-theme="dark"] .acc-matrix .acc-name, html[data-theme="dark"] .sumbar .card.stat { border-color: var(--line); }
html[data-theme="dark"] .console-card:hover { border-color: #587396; }
html[data-theme="dark"] .pick { border-color: var(--line); }
html[data-theme="dark"] .side-uni .sumbar .card.stat, html[data-theme="dark"] .side-agent .sumbar .card.stat { background: transparent; border-color: var(--line); }
.sheet-item .ti .moon { display: none; }
html[data-theme="dark"] .sheet-item .ti .sun { display: none; }
html[data-theme="dark"] .sheet-item .ti .moon { display: block; }

/* ------------------------------------------------------------ The road from Bronze to Gold, and the commission rates */
.journey { position: relative; padding: 6px 12px 0; margin: 4px 0 6px; }
.j-track { position: relative; height: 10px; border-radius: 6px; background: var(--line-2, #EEF1F5); }
.j-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #C27A3B 0%, #D5DCE3 45%, #E7B410 100%); transition: width .5s cubic-bezier(.32, .72, 0, 1); }
.j-node { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 2px solid #C9D1DB; box-sizing: border-box; }
.j-node.on { border-color: #1E3249; background: #1E3249; }
.j-node.here { box-shadow: 0 0 0 4px rgba(30, 50, 73, .16); }
.j-labels { position: relative; height: 38px; margin-top: 8px; }
.j-l { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.j-l strong { font-size: 13.5px; color: var(--ink-2); }
.j-l.here strong { color: var(--ink); }
.j-l:first-child { transform: none; align-items: flex-start; }
.j-l:last-child { transform: translateX(-100%); align-items: flex-end; }
.j-note { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 11px 14px; text-align: left; font-size: 14px; border-top: 1px solid var(--line-2, #EEF1F5); }
.rates thead th { border-top: 0; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-top: 0; }
.rates thead th.right { text-align: right; }
.rates tr.grp th { background: #F4F6F9; color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; text-transform: none; padding: 8px 14px; border-top: 1px solid var(--line-2, #EEF1F5); }
.rates td.rate { text-align: right; width: 1%; white-space: nowrap; }
.rates td.rate span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #EDF0F4; color: #1E3249; font-weight: 700; }
html[data-theme="dark"] .j-track { background: #243246; }
html[data-theme="dark"] .j-node { background: var(--white); border-color: #34465E; }
html[data-theme="dark"] .j-node.on { background: #7FA6D6; border-color: #7FA6D6; }
html[data-theme="dark"] .j-node.here { box-shadow: 0 0 0 4px rgba(127, 166, 214, .25); }
html[data-theme="dark"] .rates tr.grp th { background: #1A2737; color: var(--ink-2); }
html[data-theme="dark"] .rates td.rate span { background: #26323F; color: #E6EAF0; }
@media (prefers-reduced-motion: reduce) { .j-fill { transition: none; } }

/* The application link a team shares: the link and its Copy button on one line. */
.share-copy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.share-copy input { flex: 1 1 320px; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #D5DAE1; border-radius: 9px; background-color: #F6F8FA; color: var(--ink-2); font-size: 14px; }
html[data-theme="dark"] .share-copy input { background-color: #0E1621; border-color: #34465E; color: var(--ink); }

/* Why recruit for the university: six short reasons on the Partner Portal Home. Navy and grey only. */
.why-card { display: grid; grid-template-columns: minmax(250px, 36%) minmax(0, 1fr); border: 1px solid var(--line, #E3E7ED); border-radius: 20px; overflow: hidden; background: #fff; }
.why-hero { position: relative; overflow: hidden; background: #1E3249; color: #fff; padding: 32px 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.why-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(195, 32, 38, .35); }
.why-eyebrow { font-size: 13px; font-weight: 600; color: #B9C6D6; }
.why-hero h2 { margin: 8px 0 0; font-size: 24px; line-height: 1.3; font-weight: 700; color: #fff; }
.why-hero p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: #D5DEE9; }
.why-btn { position: relative; z-index: 1; align-self: flex-start; background: #fff; color: #1E3249; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 14px; text-decoration: none; }
.why-btn:hover { background: #F2F5F8; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why { padding: 24px 22px; border-right: 1px solid var(--line, #E3E7ED); border-bottom: 1px solid var(--line, #E3E7ED); }
.why:nth-child(3n) { border-right: 0; }
.why:nth-child(n+4) { border-bottom: 0; }
.why-i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #FBEAEB; color: #C32026; margin-bottom: 14px; }
.why-t { font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.why-d { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-top: 6px; }
@media (max-width: 980px) { .why-card { grid-template-columns: minmax(0, 1fr); } .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why:nth-child(3n) { border-right: 1px solid var(--line, #E3E7ED); } .why:nth-child(2n) { border-right: 0; } .why:nth-child(n+4) { border-bottom: 1px solid var(--line, #E3E7ED); } .why:nth-child(n+5) { border-bottom: 0; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: minmax(0, 1fr); } .why { border-right: 0 !important; border-bottom: 1px solid var(--line, #E3E7ED) !important; } .why:last-child { border-bottom: 0 !important; } .why-hero { padding: 24px 22px; } }
html[data-theme="dark"] .why-card { background: #18212C; border-color: #2C3A4C; }
html[data-theme="dark"] .why { border-color: #2C3A4C; }
html[data-theme="dark"] .why-i { background: #3A2428; color: #F0868B; }
html[data-theme="dark"] .why-hero { background: #15283D; }

/* ---------------------------------------- Programmes of a partner, and the New application page with none open */
.prog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.prog-level { margin: 0; padding: 12px 14px 8px; border: 1px solid var(--line, #E3E7ED); border-radius: 12px; min-width: 0; }
.prog-level legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2, #3A4A5E); }
.prog-item { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.prog-item input { margin-top: 3px; flex: none; }
.step-off { opacity: .45; pointer-events: none; user-select: none; }
.card.off-card { opacity: .75; background: var(--paper, #F5F7FA); border-style: dashed; cursor: not-allowed; }
.card.off-card h2 { color: var(--ink-3, #6B7A8D); }
html[data-theme="dark"] .prog-level { border-color: #34465E; }
html[data-theme="dark"] .prog-level legend { color: #C9D2DE; }
html[data-theme="dark"] .card.off-card { background: #172233; border-color: #34465E; }

/* ---------------------------------------- Overview counts coloured by size, and brighter bars in dark mode */
.pend-list .n.n-low { background: #2E8B57; color: #fff; }
.pend-list .n.n-mid { background: #E0A526; color: #1E3249; }
.pend-list .n.n-high { background: #C32026; color: #fff; }
html[data-theme="dark"] {
  --bar-fill: #6FA3E6;
}
html[data-theme="dark"] .pend-list .n.n-low { background: #3FAE75; color: #0E2A1B; }
html[data-theme="dark"] .pend-list .n.n-mid { background: #EDB93C; color: #2B1E05; }
html[data-theme="dark"] .pend-list .n.n-high { background: #E5565C; color: #fff; }
html[data-theme="dark"] .t-navy, html[data-theme="dark"] .legend span::before { background: #6FA3E6; }
html[data-theme="dark"] .t-red { background: #E5565C; }
html[data-theme="dark"] .t-amber { background: #EDB93C; }
html[data-theme="dark"] .t-green { background: #3FAE75; }
html[data-theme="dark"] .t-grey { background: #8FA3BA; }
html[data-theme="dark"] .bar > i, html[data-theme="dark"] .hbar .tr i, html[data-theme="dark"] .cols .c i { background: #6FA3E6; }
html[data-theme="dark"] .hbar .tr i.soft, html[data-theme="dark"] .legend span.soft::before { background: #9DBBE3; }
html[data-theme="dark"] .bar.warn > i { background: #EDB93C; }
html[data-theme="dark"] .bar.bad > i { background: #E5565C; }
html[data-theme="dark"] .bar.ok > i { background: #3FAE75; }
html[data-theme="dark"] .chart-fill, html[data-theme="dark"] .chart-bar { box-shadow: none; }

/* The New mark on a resource: the same red with white text on Home and on Resources, in both themes. */
.newb, .home3 .newb { background: #C32026; color: #fff; }
html[data-theme="dark"] .newb, html[data-theme="dark"] .home3 .newb { background: #D6353B; color: #fff; }

/* ---------------------------------------- Partners by tier on Partner Performance */
.tier-mix .tm-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--line-2, #EEF1F5); margin: 4px 0 18px; }
.tier-mix .tm-bar span { display: block; height: 100%; }
.tier-mix .tm-bar .t-bronze { background: #B8702F; } .tier-mix .tm-bar .t-silver { background: #A8B3BF; } .tier-mix .tm-bar .t-gold { background: #D4A00A; }
.tier-mix .tm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.tier-mix .tm-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 2px 18px; border-left: 1px solid var(--line-2, #E3E7ED); }
.tier-mix .tm-col:first-child { border-left: 0; }
.tier-mix .tm-n { font-size: 30px; font-weight: 700; color: #1E3249; line-height: 1.15; }
.tier-mix .tm-d { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .tier-mix .tm-cols { grid-template-columns: 1fr; gap: 14px; } .tier-mix .tm-col { border-left: 0; padding: 0; } }
html[data-theme="dark"] .tier-mix .tm-n { color: #fff; }
html[data-theme="dark"] .tier-mix .tm-bar { background: #243246; }
html[data-theme="dark"] .tier-mix .tm-bar .t-bronze { background: #D08848; } html[data-theme="dark"] .tier-mix .tm-bar .t-silver { background: #C3CCD6; } html[data-theme="dark"] .tier-mix .tm-bar .t-gold { background: #F0C13A; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.card[id] { scroll-margin-top: 16px; }

/* ============================================ Staff consoles on a phone: release 2026-11-18-b ====
   Pages done on a desktop screen only show one line on a phone or tablet. */
.desk-note { display: none; }
@media (max-width: 900px) {
  .desk-page .desk-only, .desk-page .u-head .tools { display: none; }
  .desk-page .desk-note { display: block; }
}
/* The figure on a stat card is centred on a phone. */
@media (max-width: 760px) {
  .stats > .card.stat { text-align: center; }
  .stats > .card.stat .k { min-height: 2.7em; display: flex; align-items: center; justify-content: center; line-height: 1.35; }
  .stats > .card.stat .d { min-height: 2.7em; }
}
/* Recent changes on the Dashboard. */
.rc-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rc-list li { display: grid; grid-template-columns: 150px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line-2, #EFF1F4); font-size: 14px; }
.rc-list .rc-t { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rc-list .rc-a { font-weight: 600; }
.rc-list .rc-w { color: var(--ink-3); }
@media (max-width: 760px) {
  .rc-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
  .rc-list .rc-a { flex: 1 1 calc(100% - 140px); min-width: 0; }
  .rc-list .rc-t { flex: 0 0 140px; text-align: right; font-size: 12.5px; order: 2; }
  .rc-list .rc-x, .rc-list .rc-w { order: 3; font-size: 13px; color: var(--ink-3); }
  .rc-list .rc-w::before { content: "\00B7"; margin: 0 7px; }
}
/* The stage cell of a list: the stage, then one short link on each line on a phone. */
.stg .links .lk + .lk::before { content: " \00B7 "; }
@media (max-width: 640px) {
  .u-main table.m-cards td .stg { text-align: right; }
  .stg .links { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 6px; }
  .stg .links .lk + .lk::before { content: none; }
}
.tl { position: relative; }

/* The payable flag: partner invoices approved and ready to pay. Red, at the top of the page. */
.pay-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 16px 20px; border-radius: 14px; background: #C32026; color: #fff; box-shadow: 0 6px 18px rgba(195, 32, 38, .32); }
.pay-alert .pa-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14.5px; line-height: 1.45; }
.pay-alert .pa-t b { font-size: 16px; letter-spacing: .01em; }
.pay-alert .btn { flex: none; background: #fff; color: #C32026; border-color: #fff; font-weight: 700; }
.pay-alert .btn:hover { background: #FDECEC; }
@media (max-width: 640px) { .pay-alert { flex-direction: column; align-items: stretch; } .pay-alert .btn { justify-content: center; } }

/* A round close button with a cross, at the top of a dialog. */
.icon-btn { flex: none; width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 999px; background: var(--line-2, #EEF1F5); color: var(--ink-2, #3A4A5C); cursor: pointer; transition: background-color .15s ease; }
.icon-btn:hover { background: var(--line, #E3E7EC); }
.icon-btn:focus-visible { outline: 2px solid #1E3249; outline-offset: 2px; }
html[data-theme="dark"] .icon-btn { background: #26364A; color: #C9D2DE; }
.pub-foot { text-align: center; font-size: 13px; color: var(--ink-3); padding: 28px 16px 40px; }

/* The English requirement card: questions are spaced, and what does not apply is hidden. */
.en-ask { display: flex; flex-direction: column; gap: 20px; }
.en-ask[hidden], [data-show-when][hidden] { display: none !important; }
.en-ask .more-row h3 { margin: 0 0 10px; }
.en-ask [data-rows] > button { margin-top: 14px; }
/* A file box looks like the other fields. */
input[type=file] { width: 100%; box-sizing: border-box; min-height: 42px; padding: 4px 10px; display: flex; align-items: center; border: 1px dashed var(--line-2, #CBD3DD); border-radius: 12px; background: #fff; font: inherit; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
input[type=file]:disabled { background: #F2F4F7; cursor: not-allowed; }
input[type=file]::file-selector-button { margin-right: 14px; padding: 7px 16px; border: 0; border-radius: 999px; background: #1E3249; color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
input[type=file]:disabled::file-selector-button { background: #9AA7B6; cursor: not-allowed; }
html[data-theme="dark"] input[type=file] { background: #0E1621; border-color: #34465E; color: var(--ink); }
html[data-theme="dark"] input[type=file]::file-selector-button { background: #3B5C86; }
.field > input[type=file] + .hint { margin-top: 2px; }

/* No text is set in capitals (decision of 19 November 2026). The brand name is Asia e University, with a small e. */
.u-rail .mark .sub,
.u-nav .lbl,
.u-me .k,
thead th,
.kv .k,
.sect-title,
.pick-card .tag,

.u-nav .grp,
.s-score .k,
.mode-switch .lockmark,
.kicker,
.u-nav a.locked .lockmark,
.ratecard .rc-h,
.signin .eyebrow,
.signin--agent .portal-pill,
.side-agent .com-hero .k,
.com-hero .k,
.home-banner .eyebrow,
.rates thead th {
  text-transform: none !important;
  letter-spacing: .01em !important;
}

/* An added row has its own Remove button next to its title. */
.more-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 8px; }
.more-head h3 { margin: 0; }
.more-head .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; }
button[hidden], .btn[hidden] { display: none !important; }

/* On a tablet the tabs wrap instead of running off the page. */
@media (min-width: 821px) and (max-width: 1180px) { .u-main .tabs { flex-wrap: wrap; row-gap: 2px; } }
/* The journey is 11 steps. Where a single row is too narrow for the words, it takes two rows (a phone, three), so every step is
   seen at once and no label runs into the next. */
@media (max-width: 1180px) {
  .tl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 18px; overflow: visible; }
  .tl-n, .tl-n.now { flex: none; min-width: 0; }
  .tl-n:nth-child(6n+1)::before { display: none; }
}
@media (max-width: 560px) {
  .tl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-n:nth-child(3n+1)::before { display: none; }
}

/* Tablet: the portal's top bar keeps the menu and the person's controls on one row, and four stat cards sit two by two. */
@media (min-width: 821px) and (max-width: 1180px) {
  .side-agent .a-top { flex-wrap: nowrap; row-gap: 0; padding: 10px 16px; gap: 10px; }
  .side-agent .a-brand { gap: 10px; min-width: 0; flex: none; }
  .side-agent .a-brand .logo { font-size: 15px; white-space: nowrap; }
  .side-agent .a-brand .forwho { padding-left: 10px; }
  .side-agent .a-brand .aeu-logo { height: 28px; }
  .side-agent .a-nav { display: flex; flex: 1 1 auto; min-width: 0; gap: 0; justify-content: center; margin-left: 14px; }
  .side-agent .a-nav a, .side-agent .a-nav .is-off { font-size: 13px; padding: 7px 8px; white-space: nowrap; }
  .side-agent .a-who { flex: none; gap: 6px; }
}
@media (max-width: 900px) {
  .stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone: the bottom bar has five equal places, and the New button sits in line with the others. */
@media (max-width: 760px) {
  .a-tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-flow: row; gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); align-items: center; }
  .a-tabbar .tab { min-width: 0; padding: 6px 0; gap: 3px; font-size: 10.5px; letter-spacing: 0; white-space: nowrap; overflow: visible; }
  .a-tabbar .tab > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .a-tabbar .tab .ti { height: 24px; }
  .a-tabbar .tab-new .ti { width: 40px; height: 40px; margin: -14px 0 -2px; }
  .a-tabbar .tab-new { background: transparent !important; }
  .a-tabbar .tab[aria-current="page"] { border-radius: 12px; }
}
/* Phone: the tables of Commission fit the screen, with nothing cut off at the right. */
@media (max-width: 560px) {
  .side-agent .t-wrap { padding-left: 6px !important; padding-right: 6px !important; overflow-x: visible; }
  .side-agent .t-wrap table { width: 100%; table-layout: auto; }
  .side-agent .t-wrap th, .side-agent .t-wrap td { padding: 10px 6px; font-size: 13px; white-space: normal; overflow-wrap: break-word; word-break: normal; }
  .side-agent .t-wrap td .pill, .side-agent .t-wrap td .tier { font-size: 11.5px; padding: 3px 8px; white-space: nowrap; }
  .side-agent .t-wrap td.money, .side-agent .t-wrap td.right, .side-agent .t-wrap td.rate, .side-agent .t-wrap th.right { white-space: nowrap; }
  .side-agent .rates th.right { white-space: normal; text-align: right; }
  .side-agent .t-wrap input[type=checkbox] { width: 18px; height: 18px; }
  .side-agent .card.flush .tbar { padding-left: 16px !important; padding-right: 16px !important; }
  .side-agent .cm-bar { flex-wrap: wrap; gap: 10px; color: var(--ink); }
  .side-agent .cm-bar > div:first-child { width: 100%; }
  .side-agent .cm-bar .row { width: 100%; flex-direction: column; }
  .side-agent .cm-bar .btn { width: 100%; justify-content: center; }
}
