/* ============================================================
   VET COUNCIL — APC & Locum Platform · Design System
   Trend: bento grid dashboard + dark luxe sidebar + glass accents
   Palette: deep teal (trust/medical) + amber (points/progress)
   Type: Plus Jakarta Sans (display) + Inter (body)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --ink:        #0A3530;   /* sidebar / darkest surface */
  --ink-2:      #0D4A42;
  --brand:      #0E7A6A;   /* primary actions */
  --brand-hover:#0B6457;
  --brand-2:    #14B8A6;   /* bright accent */
  --mint:       #5EEAD4;   /* accent on dark */
  --brand-tint: #E3F3EF;   /* light fill */
  --brand-tint-2:#F0FAF7;

  /* amber accent — points & progress (max 10% usage) */
  --gold:       #F2A93B;
  --gold-soft:  #FDF3E0;
  --gold-deep:  #8F5A10;

  /* surfaces */
  --bg:         #F3F7F6;
  --surface:    #FFFFFF;
  --bg-alt:     #EAF2F0;
  --line:       #DFE9E6;
  --line-soft:  #EAF1EF;

  /* text */
  --text:       #13211E;
  --text-2:     #3E534E;
  --muted:      #5F736E;

  /* semantic */
  --success:    #16A34A;  --success-tint: #E4F6EB;
  --danger:     #DC2626;  --danger-tint:  #FDEBEB;
  --warn:       #D97706;  --warn-tint:    #FDF3E3;
  --info:       #0369A1;  --info-tint:    #E5F2FA;
  --live:       #E11D48;  --live-tint:    #FDECf1;
  --violet:     #6D28D9;  --violet-tint:  #F1EAFD;

  /* type */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* radius family */
  --r-xl: 24px;   /* hero cells */
  --r-lg: 18px;   /* cards */
  --r-md: 13px;   /* inputs, small cards */
  --r-sm: 9px;    /* chips inner */

  /* shadows */
  --sh-sm: 0 1px 2px rgba(10,53,48,.05), 0 2px 10px rgba(10,53,48,.05);
  --sh-md: 0 2px 6px rgba(10,53,48,.04), 0 14px 34px rgba(10,53,48,.10);
  --sh-lg: 0 6px 18px rgba(10,53,48,.06), 0 28px 64px rgba(10,53,48,.16);
  --sh-brand: 0 10px 26px rgba(14,122,106,.32);

  /* motion */
  --ease: cubic-bezier(.2,.6,.2,1);
  --sp: 1; /* spacing multiplier */

  /* layout */
  --sidebar-w: 268px;
  --topbar-h: 72px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4 { font-family: var(--font-display); margin: 0; line-height: 1.2; letter-spacing: -.015em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; }
::placeholder { color: #93A5A0; }

:focus-visible { outline: 3px solid rgba(20,184,166,.55); outline-offset: 2px; border-radius: 6px; }
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .25s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }

/* ---------- 3. Shell layout ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100dvh;
}
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px 34px 90px;
  max-width: 1440px;
}
@media (min-width: 1600px) {
  .main { margin: 0 auto; padding-right: 48px; }
}

/* ---------- 4. Sidebar (dark luxe) ---------- */
.sidebar {
  position: sticky; top: 0;
  height: 100dvh;
  background:
    radial-gradient(520px 320px at 90% -8%, rgba(94,234,212,.10), transparent 60%),
    radial-gradient(420px 300px at -10% 108%, rgba(242,169,59,.07), transparent 55%),
    var(--ink);
  color: #D9E7E3;
  display: flex; flex-direction: column;
  padding: 22px 16px 18px;
  z-index: 60;
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent;
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--mint);
  background: linear-gradient(150deg, rgba(94,234,212,.16), rgba(94,234,212,.04));
  border: 1px solid rgba(94,234,212,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.brand-mark .ico { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #7FA39B; }

.sidebar-close { display: none; color: #BFD4CF; }

.sidebar-progress {
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-lg);
  padding: 14px 16px 13px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}
.sp-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sp-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #7FA39B; }
.sp-value { font-family: var(--font-display); font-weight: 800; color: var(--mint); font-size: 14px; font-variant-numeric: tabular-nums; }
.sp-bar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.10); overflow: hidden; }
.sp-bar span {
  display: block; height: 100%; width: var(--w, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-2), var(--mint));
  box-shadow: 0 0 14px rgba(94,234,212,.45);
  transition: width 1.2s var(--ease);
}
.sp-note { font-size: 12px; color: #7FA39B; margin-top: 7px; }

.sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nav-group {
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #628581; margin: 16px 12px 7px;
}
.nav-group:first-child { margin-top: 0; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  color: #AECBC5; font-weight: 500; font-size: 14.5px;
  position: relative;
  transition: background .2s, color .2s, transform .2s;
  text-decoration: none !important;
}
.nav-link .ico { width: 19px; height: 19px; opacity: .85; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active {
  background: linear-gradient(135deg, rgba(20,184,166,.22), rgba(20,184,166,.08));
  color: #fff;
  border: 1px solid rgba(94,234,212,.22);
}
.nav-link.active::before {
  content: ""; position: absolute; left: -16px; top: 22%; bottom: 22%;
  width: 3.5px; border-radius: 0 4px 4px 0;
  background: var(--mint); box-shadow: 0 0 12px rgba(94,234,212,.8);
}
.nav-link.active .ico { color: var(--mint); opacity: 1; }
.nav-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(242,169,59,.9); }

.sidebar-foot { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.user-chip {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 14px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.user-meta strong { font-size: 13.5px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 11.5px; color: #7FA39B; }
.user-out { color: #7FA39B; width: 18px; height: 18px; }

/* ---------- 5. Topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 26px;
}
.menu-btn { display: none; }
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.025em; }
.topbar-title p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.topbar-search {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px 9px 14px;
  width: 300px;
  box-shadow: var(--sh-sm);
  transition: border-color .2s, box-shadow .2s, width .3s var(--ease);
}
.topbar-search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(20,184,166,.14); }
.topbar-search .ico { width: 17px; height: 17px; color: var(--muted); }
.topbar-search input { border: 0; outline: none; background: none; width: 100%; font-size: 14px; color: var(--text); }
.topbar-search kbd {
  font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px;
  padding: 1px 7px; background: var(--bg);
}

.icon-btn {
  width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); box-shadow: var(--sh-sm);
  transition: transform .2s, border-color .2s, color .2s;
  position: relative;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--brand-2); color: var(--brand); }
.icon-btn:active { transform: scale(.96); }
.bell-dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 99px; background: var(--live); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--bg);
}

/* ---------- 6. Avatars / tints ---------- */
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: #fff; flex: none; text-decoration: none !important;
  letter-spacing: .02em;
}
.avatar-sm { width: 38px; height: 38px; font-size: 13px; }
.avatar-lg { width: 58px; height: 58px; font-size: 18px; }
.avatar-xl { width: 76px; height: 76px; font-size: 23px; }
.tint-1 { background: linear-gradient(140deg, #14919B, #0E7A6A); }
.tint-2 { background: linear-gradient(140deg, #C2742F, #A85A1B); }
.tint-3 { background: linear-gradient(140deg, #7C5CBF, #6244A5); }
.tint-4 { background: linear-gradient(140deg, #3E78C2, #2B5C9E); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  border: 0; cursor: pointer; text-decoration: none !important;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn .ico { width: 17px; height: 17px; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(150deg, var(--brand-2), var(--brand) 65%);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(14,122,106,.4); text-decoration: none; }
.btn-gold {
  background: linear-gradient(150deg, #F6C063, var(--gold) 60%);
  color: #2A1A05;
  box-shadow: 0 10px 26px rgba(242,169,59,.35);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text-2); background: var(--surface); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: var(--mint); color: var(--mint); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ---------- 8. Cards & bento ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento > * { min-width: 0; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.section-head {
  display: flex; align-items: center; gap: 12px;
  margin: 34px 0 16px;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { font-size: 17.5px; font-weight: 800; letter-spacing: -.02em; }
.section-head .sh-line { flex: 1; height: 1px; background: var(--line); }
.section-head .sh-link { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.section-head .sh-link .ico { width: 15px; height: 15px; }

/* ---------- 9. Badges, chips, tags ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
}
.badge .ico { width: 12.5px; height: 12.5px; }
.badge-brand  { background: var(--brand-tint); color: #0A5A4E; border: 1px solid rgba(14,122,106,.18); }
.badge-gold   { background: var(--gold-soft); color: var(--gold-deep); border: 1px solid rgba(191,132,38,.25); }
.badge-success{ background: var(--success-tint); color: #137A38; border: 1px solid rgba(22,163,74,.2); }
.badge-danger { background: var(--danger-tint); color: #B01F1F; border: 1px solid rgba(220,38,38,.18); }
.badge-warn   { background: var(--warn-tint); color: #96590B; border: 1px solid rgba(217,119,6,.22); }
.badge-info   { background: var(--info-tint); color: #075A8A; border: 1px solid rgba(3,105,161,.18); }
.badge-live   { background: var(--live-tint); color: #B81241; border: 1px solid rgba(225,29,72,.2); }
.badge-violet { background: var(--violet-tint); color: #5B23B0; border: 1px solid rgba(109,40,217,.18); }
.badge-ink    { background: rgba(10,53,48,.08); color: var(--ink-2); border: 1px solid rgba(10,53,48,.14); }

.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(225,29,72,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: all .2s var(--ease); cursor: pointer;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand); transform: translateY(-2px); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .ico { width: 15px; height: 15px; }

.tag {
  display: inline-flex; align-items: center;
  padding: 3.5px 10px; border-radius: 7px;
  background: var(--bg-alt); color: var(--text-2);
  font-size: 12px; font-weight: 600;
}

/* ---------- 10. Stat cards ---------- */
.stat { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-ico {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
}
.stat-ico .ico { width: 20px; height: 20px; }
.stat-value { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.stat-foot { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-foot .ico { width: 14px; height: 14px; }
.trend-up { color: var(--success); font-weight: 600; }
.trend-down { color: var(--danger); font-weight: 600; }

/* ---------- 11. Dashboard hero (dark gradient + glass) ---------- */
.hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(640px 380px at 88% -12%, rgba(94,234,212,.16), transparent 62%),
    radial-gradient(460px 300px at -8% 112%, rgba(242,169,59,.12), transparent 55%),
    linear-gradient(148deg, var(--ink-2), var(--ink) 58%);
  color: #EAF5F2;
  padding: 26px 28px;
  display: flex; gap: 26px; align-items: center;
  box-shadow: var(--sh-lg);
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255,255,255,.05) 0%, transparent 28%),
    radial-gradient(240px 140px at 78% 0%, rgba(255,255,255,.06), transparent 70%);
}
.hero-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hero-card .row { flex-wrap: wrap; }
.hero-eyebrow { max-width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mint);
  background: rgba(94,234,212,.1); border: 1px solid rgba(94,234,212,.22);
  padding: 5px 13px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero-title { font-size: clamp(21px, 2.4vw, 27px); font-weight: 800; letter-spacing: -.025em; color: #fff; margin-bottom: 6px; }
.hero-sub { color: #9FBCB6; font-size: 13.5px; max-width: 52ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.hero-meta div { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #C6DAD5; }
.hero-meta .ico { width: 15px; height: 15px; color: var(--mint); }
.hero-meta strong { color: #fff; font-weight: 600; }

/* progress ring */
.ring-wrap { position: relative; z-index: 1; flex: none; display: grid; place-items: center; }
.ring { transform: rotate(-90deg); }
.ring-bg { stroke: rgba(255,255,255,.10); }
.ring-val { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); filter: drop-shadow(0 0 10px rgba(94,234,212,.4)); }
.ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring-num { font-family: var(--font-display); font-size: 31px; font-weight: 800; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-num small { display: block; font-size: 11px; font-weight: 600; color: #7FA39B; letter-spacing: .08em; margin-top: 4px; }

/* ---------- 12. Lists (upcoming, history) ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s; border-radius: 10px;
}
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--brand-tint-2); }
.li-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
}
.li-ico .ico { width: 20px; height: 20px; }
.li-body { flex: 1; min-width: 0; }
.li-title { font-weight: 600; font-size: 14.5px; color: var(--text); line-height: 1.4; }
.li-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 3px; font-size: 12.5px; color: var(--muted); align-items: center; }
.li-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.li-meta .ico { width: 13px; height: 13px; }
.li-actions { flex: none; display: flex; align-items: center; gap: 8px; }

/* date block (calendar style) */
.dateblock {
  width: 52px; flex: none; text-align: center;
  background: var(--brand-tint); border: 1px solid rgba(14,122,106,.14);
  border-radius: 12px; padding: 7px 4px 8px;
}
.dateblock .d-mon { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.dateblock .d-day { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dateblock .d-wd  { font-size: 10.5px; color: var(--muted); }

/* ---------- 13. Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.course-card {
  display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
  position: relative;
}
.course-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.cc-band { height: 92px; position: relative; display: flex; align-items: flex-end; padding: 14px 18px; }
.cc-band .badge { position: relative; z-index: 2; backdrop-filter: blur(8px); }
.cc-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(220px 130px at 85% -20%, rgba(255,255,255,.25), transparent 60%),
    linear-gradient(135deg, var(--band-a, #0E7A6A), var(--band-b, #0A3530));
}
.cc-band .cc-pattern {
  position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.band-physical { --band-a: #0E7A6A; --band-b: #0A3530; }
.band-live     { --band-a: #E11D48; --band-b: #7A0E2A; }
.band-recorded { --band-a: #6D28D9; --band-b: #3A167A; }
.cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; }
.cc-title a { color: var(--text); }
.cc-title a:hover { color: var(--brand); text-decoration: none; }
.cc-speaker { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); }
.cc-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12.5px; color: var(--muted); }
.cc-meta .m { display: inline-flex; gap: 5px; align-items: center; }
.cc-meta .ico { width: 13px; height: 13px; }
.cc-foot {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px dashed var(--line); padding-top: 13px; margin-top: auto;
}
.cc-price { font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.cc-price free { }
.price-free { color: var(--success); }
.seat-meter { flex: 1; height: 5px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; min-width: 60px; }
.seat-meter span { display: block; height: 100%; border-radius: 99px; }
.seat-meter .ok { background: linear-gradient(90deg, var(--brand-2), var(--brand)); }
.seat-meter .low { background: linear-gradient(90deg, #F6C063, #D97706); }
.seat-meter .full { background: linear-gradient(90deg, #FCA5A5, var(--danger)); }

/* ---------- 14. Filters toolbar ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 20px;
}
.toolbar .chip { }
.toolbar-spacer { flex: 1; }
.search-inline {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 9px 16px; min-width: 240px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--sh-sm);
}
.search-inline:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(20,184,166,.13); }
.search-inline .ico { width: 16px; height: 16px; color: var(--muted); }
.search-inline input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; }

/* ---------- 15. Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-size: 14.5px; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 11px 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field :is(input,select,textarea):focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(20,184,166,.13); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 16. Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: var(--surface); box-shadow: var(--sh-sm); }
table.dt { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.dt th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: var(--brand-tint-2); white-space: nowrap;
}
.dt td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.dt tbody tr { transition: background .15s; }
.dt tbody tr:hover { background: var(--brand-tint-2); }
.dt tbody tr:last-child td { border-bottom: 0; }
.dt .num { font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- 17. Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); overflow-x: auto; scrollbar-width: none; min-width: 0; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
  white-space: nowrap; transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab .count { font-size: 11.5px; background: var(--bg-alt); color: var(--text-2); border-radius: 99px; padding: 1px 8px; margin-left: 6px; font-weight: 700; }

/* ---------- 18. Progress & meters ---------- */
.pmeter { height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; }
.pmeter span { display: block; height: 100%; border-radius: 99px; width: var(--w, 0%); background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width 1.1s var(--ease); }
.pmeter.gold span { background: linear-gradient(90deg, #F6C063, #E8931C); }

/* ---------- 19. Page hero (inner pages, light) ---------- */
.page-hero {
  border-radius: var(--r-xl);
  background:
    radial-gradient(500px 280px at 92% -20%, rgba(94,234,212,.18), transparent 60%),
    radial-gradient(380px 260px at -6% 120%, rgba(242,169,59,.14), transparent 55%),
    linear-gradient(148deg, var(--ink-2), var(--ink) 60%);
  color: #EAF5F2; padding: 28px 30px; box-shadow: var(--sh-lg);
  position: relative; overflow: hidden;
}
.breadcrumbs { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #9FBCB6; margin-bottom: 10px; flex-wrap: wrap; }
.breadcrumbs a { color: #C6DAD5; }
.breadcrumbs .ico { width: 12px; height: 12px; }

/* ---------- 20. QR pass ---------- */
.qr-card {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 26px; text-align: center;
  box-shadow: var(--sh-md); border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
.qr-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(320px 180px at 50% -30%, rgba(14,122,106,.08), transparent 70%);
}
.qr-frame {
  width: 188px; height: 188px; margin: 14px auto 16px;
  border-radius: 20px; padding: 12px;
  background: conic-gradient(from 90deg, var(--brand-2), var(--ink), var(--gold), var(--brand-2));
  position: relative;
}
.qr-inner {
  width: 100%; height: 100%; border-radius: 12px; background: #fff;
  display: grid; place-items: center; padding: 10px;
}
.qr-code { width: 100%; height: 100%; }

/* ---------- 21. Video player mock ---------- */
.player {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(148deg, #10312C, #071B17);
  aspect-ratio: 16 / 9; box-shadow: var(--sh-lg);
  display: grid; place-items: center;
}
.player::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.play-big {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(94,234,212,.14); border: 1.5px solid rgba(94,234,212,.5);
  backdrop-filter: blur(8px);
  display: grid; place-items: center; color: var(--mint);
  transition: transform .25s var(--ease), background .25s;
  position: relative; z-index: 2;
}
.play-big:hover { transform: scale(1.08); background: rgba(94,234,212,.24); }
.play-big .ico { width: 34px; height: 34px; margin-left: 4px; }
.player-bar {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(7,27,23,.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 10px 16px; color: #D9E7E3;
}
.player-bar .track { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,.16); position: relative; }
.player-bar .track span { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--mint)); }
.player-bar .time { font-size: 12px; font-variant-numeric: tabular-nums; color: #9FBCB6; }
.player-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* ---------- 22. Quiz ---------- */
.quiz-option {
  display: flex; align-items: center; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 15px 18px; cursor: pointer;
  transition: all .2s var(--ease); background: var(--surface);
  font-weight: 500; width: 100%; text-align: left;
}
.quiz-option:hover { border-color: var(--brand-2); transform: translateX(4px); }
.quiz-option .radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line); flex: none; position: relative;
  transition: all .2s;
}
.quiz-option.selected { border-color: var(--brand); background: var(--brand-tint-2); }
.quiz-option.selected .radio { border-color: var(--brand); }
.quiz-option.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.quiz-option.correct { border-color: var(--success); background: var(--success-tint); }
.quiz-option.correct .radio { border-color: var(--success); }
.quiz-option.correct .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--success); }
.quiz-option.wrong { border-color: var(--danger); background: var(--danger-tint); }
.quiz-option.wrong .radio { border-color: var(--danger); }
.quiz-option.wrong .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--danger); }

/* ---------- 23. Timeline (history) ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand-2), var(--line)); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 26px 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -26px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3.5px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(14,122,106,.12);
}
.tl-date { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin: 3px 0 4px; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.tl-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.tl-meta .ico { width: 13px; height: 13px; }

/* ---------- 24. Job cards (locum) ---------- */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.job-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 20px;
  box-shadow: var(--sh-sm); display: flex; flex-direction: column; gap: 13px;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.job-top { display: flex; align-items: flex-start; gap: 13px; }
.job-org { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.job-org .ico { width: 22px; height: 22px; }
.job-title { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; line-height: 1.3; letter-spacing: -.01em; }
.job-title a { color: var(--text); }
.job-title a:hover { color: var(--brand); text-decoration: none; }
.job-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.job-sub .ico { width: 13px; height: 13px; }
.job-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.job-foot { display: flex; align-items: center; gap: 10px; border-top: 1px dashed var(--line); padding-top: 13px; margin-top: auto; }
.job-rate { font-family: var(--font-display); font-weight: 800; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; }
.match-ring {
  --sz: 46px; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--match-c, var(--brand-2)) calc(var(--match, 80) * 1%), var(--bg-alt) 0);
}
.match-ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.match-ring b { position: relative; font-family: var(--font-display); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 25. Kanban / pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pipe-col { background: var(--bg-alt); border-radius: var(--r-lg); padding: 16px; border: 1px dashed var(--line); }
.pipe-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; padding: 0 4px; }
.pipe-head h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.pipe-count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 1px 10px; }
.pipe-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 10px;
  box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .2s;
}
.pipe-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ---------- 26. Toast ---------- */
.toast {
  position: fixed; bottom: 90px; left: 50%; z-index: 120;
  transform: translate(-50%, 16px);
  background: var(--ink); color: #fff;
  padding: 13px 22px; border-radius: 13px;
  box-shadow: var(--sh-lg); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
  font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: center;
  max-width: min(92vw, 460px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { width: 18px; height: 18px; color: var(--mint); }

/* ---------- 27. Footer ---------- */
.appfoot { margin-top: auto; padding-top: 40px; text-align: center; color: var(--muted); font-size: 12.5px; }
.foot-dot { margin: 0 6px; color: var(--line); }

/* ---------- 28. Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 29. Responsive ---------- */

/* ≤ 1180px: tighten bento */
@media (max-width: 1180px) {
  .span-3 { grid-column: span 6; }
  .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
  .hero-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pipeline { grid-template-columns: 1fr; }
}

/* ≤ 1080px: sidebar becomes drawer */
@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw);
    transform: translateX(-102%);
    transition: transform .35s var(--ease);
    box-shadow: none;
  }
  .sidebar.open { transform: none; box-shadow: var(--sh-lg); }
  .drawer-scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(7,27,23,.45); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .3s;
  }
  .drawer-scrim.show { opacity: 1; }
  .menu-btn { display: grid; }
  .sidebar-close { display: grid; }
  body.drawer-locked { overflow: hidden; }
  .main { padding: 20px 22px 90px; }
}

/* > 1080px: hide drawer helpers */
@media (min-width: 1081px) {
  .drawer-scrim { display: none !important; }
}

/* ≤ 860px */
@media (max-width: 860px) {
  .topbar-search { display: none; }
  .topbar { gap: 12px; }
  .topbar-title p { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .course-grid, .job-grid { grid-template-columns: 1fr 1fr; }
}

/* ≤ 720px: mobile */
@media (max-width: 720px) {
  .main { padding: 16px 16px 110px; }
  .topbar { margin-bottom: 18px; min-height: 48px; }
  .topbar-title h1 { font-size: 19px; }
  .bento { gap: 13px; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .course-grid, .job-grid { grid-template-columns: 1fr; }
  .card { padding: 17px; border-radius: var(--r-md); }
  .hero-card { padding: 20px; border-radius: var(--r-lg); }
  .hero-meta { gap: 10px 16px; }
  .page-hero { padding: 20px; border-radius: var(--r-lg); }
  .section-head { margin: 26px 0 13px; }
  body .bottomnav { display: flex; }
  .btn-lg { padding: 13px 22px; font-size: 14.5px; }
  .stat-value { font-size: 28px; }
  .toast { bottom: 106px; }
  .list-item { flex-wrap: wrap; }
  .li-actions { width: 100%; justify-content: flex-end; padding-top: 6px; }
  .cc-foot { flex-wrap: wrap; }
  .cc-foot .seat-meter { min-width: 70px; }
  .cat-row { grid-template-columns: 100px minmax(0, 1fr) 36px; gap: 9px; }
  .cat-name { font-size: 11.5px; }
  .row:not(.player-bar):not(.topbar-actions) { flex-wrap: wrap; }
}

/* mobile bottom nav */
.bottomnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
}
@supports not (backdrop-filter: blur(1px)) { .bottomnav { background: #fff; } }
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 12px; min-width: 56px;
  text-decoration: none !important;
  transition: color .2s, transform .2s;
}
.bn-item .ico { width: 21px; height: 21px; }
.bn-item.active { color: var(--brand); }
.bn-item.active .ico { filter: drop-shadow(0 0 8px rgba(20,184,166,.5)); }
.bn-item:active { transform: scale(.94); }
.bn-cta .ico {
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #fff; border-radius: 10px; padding: 4px; width: 27px; height: 27px;
  margin-top: -6px; box-shadow: var(--sh-brand);
}

/* ---------- 29b. Icon tints (li-ico / stat-ico / icochip) ---------- */
.t-brand  { background: var(--brand-tint);  color: var(--brand); }
.t-live   { background: var(--live-tint);    color: var(--live); }
.t-violet { background: var(--violet-tint);  color: var(--violet); }
.t-gold   { background: var(--gold-soft);    color: #A8700F; }
.t-info   { background: var(--info-tint);    color: var(--info); }
.t-success{ background: var(--success-tint); color: var(--success); }
.t-danger { background: var(--danger-tint);  color: var(--danger); }
.t-ink    { background: rgba(10,53,48,.08);  color: var(--ink-2); }

/* ---------- 29c. Recommended compact card ---------- */
.rc-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 9px;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.rc-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--brand-2); }
.rc-top { display: flex; align-items: center; gap: 10px; }
.rc-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.35; }
.rc-title a { color: var(--text); }
.rc-title a:hover { color: var(--brand); text-decoration: none; }
.rc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.rc-meta .m { display: inline-flex; align-items: center; gap: 4px; }
.rc-meta .ico { width: 12.5px; height: 12.5px; }
.rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.rc-grid > * { min-width: 0; }
.rc-card > :last-child { margin-top: auto; }
@media (max-width: 1180px) { .rc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .rc-grid { grid-template-columns: 1fr; } }

/* ---------- 29d. Quick action tiles ---------- */
.qa-grid { display: grid; gap: 11px; }
.qa-item {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 13px 15px;
  transition: transform .22s var(--ease), box-shadow .22s, border-color .22s;
  text-decoration: none !important; color: var(--text);
}
.qa-item:hover { transform: translateX(4px); border-color: var(--brand-2); box-shadow: var(--sh-sm); }
.qa-item .ico-arrow { margin-left: auto; color: var(--muted); width: 16px; height: 16px; transition: transform .22s; }
.qa-item:hover .ico-arrow { transform: translateX(3px); color: var(--brand); }
.qa-item strong { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.qa-item small { color: var(--muted); font-size: 12px; }

/* ---------- 29e. Category bars ---------- */
.cat-row { display: grid; grid-template-columns: 128px minmax(0, 1fr) 40px; gap: 12px; align-items: center; padding: 7px 0; }
.cat-row + .cat-row { border-top: 1px solid var(--line-soft); }
.cat-name { font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-pts { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* ---------- 29f. Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(7,27,23,.55); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; width: min(480px, 94vw); max-height: 88dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 24px;
  animation: modalIn .35s var(--ease);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.modal-head h3 { font-size: 18px; font-weight: 800; }

/* ---------- 29g. Detail page bits ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 22px; align-items: start; }
.detail-grid > * { min-width: 0; }
@media (max-width: 1024px) { .detail-grid { grid-template-columns: minmax(0,1fr); } }
.side-card { position: sticky; top: 24px; }
@media (max-width: 1024px) { .side-card { position: static; } }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line-soft); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.kv .k .ico { width: 14px; height: 14px; }
.kv .v { font-weight: 600; text-align: right; }

/* ---------- 29h. Login screen ---------- */
.auth-shell {
  min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--bg);
}
.auth-visual {
  position: relative; overflow: hidden; color: #EAF5F2;
  background:
    radial-gradient(680px 420px at 88% -10%, rgba(94,234,212,.17), transparent 60%),
    radial-gradient(460px 340px at -10% 110%, rgba(242,169,59,.13), transparent 55%),
    linear-gradient(152deg, var(--ink-2), var(--ink) 62%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 48px;
}
.auth-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 26px 26px;
}
.auth-quote { position: relative; max-width: 46ch; }
.auth-quote h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.18; }
.auth-quote p { color: #9FBCB6; margin-top: 14px; font-size: 15px; }
.auth-stats { position: relative; display: flex; gap: 36px; }
.auth-stats b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--mint); font-variant-numeric: tabular-nums; }
.auth-stats span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #7FA39B; }
.auth-panel { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(430px, 100%); }
.role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
@media (max-width: 460px) {
  .role-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 28px 14px; }
  .auth-card form .row { flex-wrap: wrap; }
}
.role-card {
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 15px 12px; text-align: center; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  transition: all .2s var(--ease); background: var(--surface);
}
.role-card:hover { border-color: var(--brand-2); transform: translateY(-3px); box-shadow: var(--sh-sm); }
.role-card.selected { border-color: var(--brand); background: var(--brand-tint-2); box-shadow: 0 0 0 3px rgba(20,184,166,.15); }
.role-card .ico { width: 24px; height: 24px; color: var(--brand); }
.role-card strong { font-family: var(--font-display); font-size: 13px; }
.role-card small { font-size: 11px; color: var(--muted); line-height: 1.35; }
@media (max-width: 940px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

/* ---------- 30. Utilities ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; }
.gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }
.ml-auto { margin-left: auto; }
.text-muted { color: var(--muted); }
.text-small { font-size: 13px; }
.text-center { text-align: center; }
.flex-1 { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }
.stack-v > * + * { margin-top: 14px; }

/* empty state */
.empty {
  text-align: center; padding: 44px 20px; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--brand-tint-2);
}
.empty .ico { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--brand-2); }

/* alert banner */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--r-md); padding: 14px 16px; font-size: 13.5px;
  border: 1px solid;
}
.alert .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.alert-info { background: var(--info-tint); border-color: rgba(3,105,161,.2); color: #0B5E8F; }
.alert-warn { background: var(--warn-tint); border-color: rgba(217,119,6,.24); color: #7E4C08; }
.alert-success { background: var(--success-tint); border-color: rgba(22,163,74,.22); color: #146532; }
