/* Shared look for the Kwanza platforms (v2, 9 Oct 2026).
   Shell taken from the billing platform and the product site: dark sidebar with icons, white workspace, layered cards.
   Data side taken from the reference portal: greeting banner, large section titles, underlined tabs with counts,
   spaced uppercase table headers, coloured type chips, empty states with an icon, a help rail.
   Each platform sets its own brand colours in its own stylesheet; this file holds everything else. */

:root {
  /* brand: overridden by each platform */
  --brand: #22c55e; --brand-strong: #15803d; --brand-soft: #ecfdf3; --brand-ink: #14532d;
  --side: #1e2326; --side-2: #2a3034; --side-t: #b6bec4; --side-on: rgba(255, 255, 255, .1); --side-mark: var(--brand);
  --hero-a: #eefbf3; --hero-b: #eaf4ff; --hero-art: #94a3b8;

  /* neutrals */
  --bg: #f3f5f8; --card: #ffffff; --line: #e3e8ee; --line-2: #eef2f6; --tint: #f8fafc;
  --ink: #0f172a; --ink-2: #475569; --ink-3: #7b8798;

  /* bright data palette */
  --green: #16a34a; --green-l: #dcfce7;
  --sky: #0284c7; --sky-l: #e0f2fe;
  --blue: #2563eb; --blue-l: #dbeafe;
  --violet: #7c3aed; --violet-l: #ede9fe;
  --amber: #d97706; --amber-l: #fef3c7;
  --orange: #ea580c; --orange-l: #ffedd5;
  --rose: #e11d48; --rose-l: #ffe4e6;
  --teal: #0d9488; --teal-l: #ccfbf1;
  --slate: #64748b; --slate-l: #f1f5f9;

  /* status (milestones, requests) */
  --done: var(--green); --done-bg: var(--green-l);
  --now: var(--amber); --now-bg: var(--amber-l);
  --next: var(--blue); --next-bg: var(--blue-l);
  --later: var(--slate); --later-bg: var(--slate-l);
  --alert: var(--rose); --alert-bg: var(--rose-l);
  --accent: var(--brand-strong); --accent-2: var(--brand-strong); --accent-soft: var(--brand-soft);

  --r: 14px; --r-lg: 18px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .04);
  --sh-2: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px -14px rgba(15, 23, 42, .18);
  --sh-3: 0 4px 8px rgba(15, 23, 42, .05), 0 22px 46px -18px rgba(15, 23, 42, .28);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  --e: cubic-bezier(.22, .61, .36, 1);
  --sbw: 256px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "tnum" 0; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: 17px; font-weight: 750; }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0 0 8px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; }
.num, .t td, .kpi .n, .tile b { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ================================================================ shell */
.app { display: grid; grid-template-columns: var(--sbw) minmax(0, 1fr); min-height: 100vh; }
.sb { background: var(--side); color: var(--side-t); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; z-index: 40; }
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; color: #fff; text-decoration: none !important; }
.sb-brand img.mark { width: 34px; height: 40px; object-fit: contain; flex: none; }
.sb-brand img.word { height: 40px; width: auto; max-width: 100%; }
.sb-brand b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; color: #fff; }
.sb-brand em { display: block; font-style: normal; font-size: 11.5px; color: var(--side-t); margin-top: 2px; }
.sb-ws { margin: 0 4px 16px; padding: 10px 12px; border-radius: 12px; background: var(--side-2); display: flex; align-items: center; gap: 10px; }
.sb-ws b { display: block; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.25; }
.sb-ws span { display: block; font-size: 11.5px; color: var(--side-t); }
.sb-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-t); opacity: .7; padding: 6px 12px 8px; }
.sb-nav { display: flex; flex-direction: column; gap: 3px; }
.sb-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-t); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .15s, color .15s; }
.sb-nav a:hover { background: var(--side-2); color: #fff; }
.sb-nav a.on { background: var(--side-on); color: #fff; }
.sb-nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--side-mark); }
.sb-nav a.on .ic { color: var(--side-mark); }
.sb-nav a .n { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; }
.sb-nav a .n.hot { background: var(--rose); }
.sb-nav a .n:empty { display: none; }
.sb-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; display: grid; gap: 10px; }
.sb-foot .seg { background: var(--side-2); border-color: transparent; width: 100%; }
.sb-foot .seg button { flex: 1; color: var(--side-t); }
.sb-foot .seg button + button { border-left-color: rgba(255, 255, 255, .06); }
.sb-foot .seg button.on { background: var(--side-mark); color: var(--side); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.me .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--side); background: var(--side-mark); flex: none; }
.me select { background: transparent; border: 0; color: #fff; font-weight: 700; padding: 0; width: 100%; cursor: pointer; }
.me select option { color: var(--ink); }
.me span { display: block; font-size: 11.5px; color: var(--side-t); }
.sb-foot a.set { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--side-t); font-weight: 600; }
.sb-foot a.set:hover, .sb-foot a.set.on { background: var(--side-2); color: #fff; text-decoration: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: rgba(243, 245, 248, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, background .2s; }
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .9); }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--ink-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--brand-strong); text-decoration: none; }
.crumbs .sep { color: var(--ink-3); display: inline-flex; }
.crumbs .sep .ic { width: 14px; height: 14px; }
.crumbs b { color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.bar-r { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.chip-date { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-weight: 650; font-size: 12.5px; color: var(--ink-2); }
.chip-date .ic { width: 15px; height: 15px; color: var(--brand-strong); }
.scrim { display: none; }

.page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 8px 32px 72px; animation: rise .35s var(--e); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } * { transition: none !important; } }

/* ================================================================ page heads and the greeting banner */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 10px 0 22px; flex-wrap: wrap; }
.head h1 { font-size: 30px; }
.head p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; max-width: 80ch; }

.hero { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 34px 40px; margin: 10px 0 22px; background: linear-gradient(115deg, var(--hero-a) 0%, #ffffff 48%, var(--hero-b) 100%); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; align-items: center; gap: 24px; min-height: 196px; }
.hero > div { position: relative; z-index: 1; }
.hero .hi { color: var(--ink-2); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.hero h1 { font-size: clamp(26px, 3.1vw, 40px); font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: var(--brand-ink); line-height: 1.08; }
.hero p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; max-width: 64ch; }
.hero .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero .hero-chips span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); font-weight: 650; font-size: 12.5px; color: var(--ink-2); }
.hero .hero-chips .ic { width: 15px; height: 15px; color: var(--brand-strong); }
.hero .art { position: absolute; right: 0; bottom: 0; height: 100%; width: min(56%, 640px); color: var(--hero-art); opacity: .5; pointer-events: none; z-index: 0; }
.hero .hero-side { margin-left: auto; flex: none; }
.count-box { min-width: 190px; border-radius: 16px; padding: 18px 22px; background: var(--side); color: #fff; box-shadow: var(--sh-3); }
.count-box .k { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--side-mark); }
.count-box b { display: block; font-size: 48px; font-weight: 800; line-height: 1; margin: 8px 0 4px; letter-spacing: -.03em; }
.count-box span { font-size: 12.5px; color: var(--side-t); }

/* ================================================================ layout */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.section { margin-top: 22px; }
.section > h2 { margin-bottom: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); min-width: 0; }
.card:has(> table.t), .card:has(> .scroll) { overflow-x: auto; }
.card-h { padding: 18px 22px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-h h2 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.card-h h3 { font-size: 15px; }
.card-h > a, .card-h .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--brand-strong); }
.card-h > a .ic, .card-h .more .ic { width: 16px; height: 16px; transition: transform .18s var(--e); }
.card-h > a:hover .ic { transform: translateX(3px); }
.card-b { padding: 4px 22px 20px; }
.card-b.tight { padding: 0 0 8px; }
.card-h + .card-b.tight, .card-h + table.t { border-top: 1px solid var(--line-2); }

/* ================================================================ numbers */
.kpi { padding: 20px 22px; }
.kpi .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.kpi .l { color: var(--ink-2); margin-top: 4px; font-weight: 600; }
.kpi .s { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.kpi.alert .n { color: var(--alert); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); color: inherit; text-decoration: none !important; transition: transform .18s var(--e), box-shadow .2s var(--e), border-color .2s; overflow: hidden; }
.tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c, var(--brand)); opacity: .9; }
a.tile:hover, .tile[data-go]:hover { transform: translateY(-2px); box-shadow: var(--sh-2); cursor: pointer; }
.tile .ib { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--cl, var(--brand-soft)); color: var(--c, var(--brand-strong)); flex: none; }
.tile .ib .ic { width: 22px; height: 22px; }
.tile span.l { display: block; color: var(--ink-2); font-weight: 650; font-size: 13px; }
.tile b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 2px 0 2px; color: var(--ink); }
.tile b small { font-size: 15px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; }
.tile em { display: block; font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.tile.bad b { color: var(--rose); }
.c-green { --c: var(--green); --cl: var(--green-l); } .c-sky { --c: var(--sky); --cl: var(--sky-l); } .c-blue { --c: var(--blue); --cl: var(--blue-l); }
.c-violet { --c: var(--violet); --cl: var(--violet-l); } .c-amber { --c: var(--amber); --cl: var(--amber-l); } .c-orange { --c: var(--orange); --cl: var(--orange-l); }
.c-rose { --c: var(--rose); --cl: var(--rose-l); } .c-teal { --c: var(--teal); --cl: var(--teal-l); } .c-slate { --c: var(--slate); --cl: var(--slate-l); }
.c-brand { --c: var(--brand-strong); --cl: var(--brand-soft); }

/* ================================================================ pills, chips, tags */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--later-bg); color: var(--ink-2); line-height: 1.5; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.s-done { background: var(--done-bg); color: #15803d; }
.s-now { background: var(--now-bg); color: #b45309; }
.s-next { background: var(--next-bg); color: #1d4ed8; }
.s-later { background: var(--later-bg); color: #475569; }
.s-alert { background: var(--alert-bg); color: #be123c; }
.s-accent { background: var(--violet-l); color: var(--violet); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: #fff; white-space: nowrap; }
.type { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--cl); color: var(--c); }
.type .ic { width: 14px; height: 14px; }
.ava { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cl); color: var(--c); flex: none; }
.ava .ic { width: 20px; height: 20px; }
.who-av { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: 11.5px; color: #fff; background: var(--c, var(--slate)); flex: none; }

/* underlined tabs with counts (the reference portal's "All (0) · Draft (0)") */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; padding: 10px 0 12px; color: var(--ink-2); font-weight: 650; white-space: nowrap; background: none; border: 0; cursor: pointer; font-size: 14px; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration: none; }
.tabs a.on, .tabs button.on { color: var(--brand-strong); }
.tabs a.on::after, .tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-strong); }
.tabs .c { margin-left: 4px; color: inherit; font-weight: 600; opacity: .75; }
.tabs .c::before { content: "("; } .tabs .c::after { content: ")"; }
.card-h + .tabs, .card > .tabs { margin: 0 22px; }

/* ================================================================ tables */
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding: 14px 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: transparent; }
.t th:first-child, .t td:first-child { padding-left: 22px; }
.t th:last-child, .t td:last-child { padding-right: 22px; }
.t td { padding: 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; transition: background .12s; }
.t tr.click:hover td { background: var(--tint); }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.list-i { padding: 12px 22px; border-bottom: 1px solid var(--line-2); transition: background .12s; }
.list-i:last-child { border-bottom: 0; }
.list-i[data-go]:hover, .list-i.row[style*="cursor"]:hover { background: var(--tint); }
.empty { padding: 30px 18px; color: var(--ink-3); text-align: center; font-weight: 500; }
.empty::before { content: ""; display: block; width: 44px; height: 38px; margin: 0 auto 10px; opacity: .45; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
td.empty::before, .empty.small::before { width: 30px; height: 26px; }

/* date block: day number over month, for anything dated */
.datebox { width: 52px; flex: none; text-align: center; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.datebox i { display: block; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--c, var(--brand-strong)); padding: 2px 0; }
.datebox b { display: block; font-size: 18px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.datebox.wide b { font-size: 13px; line-height: 1.9; }

/* ================================================================ forms and buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; transition: transform .15s var(--e), box-shadow .2s, background .15s, border-color .15s; }
.btn:hover { border-color: #cbd5e1; background: var(--tint); text-decoration: none; }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 20px -10px var(--brand-strong); }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.danger { color: var(--alert); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
input[type=text], input[type=date], input[type=number], input[type=search], input[type=password], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d6dde5; border-radius: 10px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-strong); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 12.5px; color: var(--ink); font-weight: 700; margin-bottom: 5px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; padding: 3px; gap: 3px; }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 6px 12px; cursor: pointer; color: var(--ink-2); font-weight: 650; border-radius: 7px; transition: background .15s, color .15s; }
.seg button + button { border-left: 0; }
.seg button.on { background: var(--brand-strong); color: #fff; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters select, .filters input { width: auto; min-width: 170px; }

/* ================================================================ drawer, toast, notes */
.veil { position: fixed; inset: 0; background: rgba(15, 23, 42, .36); backdrop-filter: blur(2px); z-index: 60; display: flex; justify-content: flex-end; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { width: min(580px, 100%); height: 100%; background: #fff; overflow: auto; box-shadow: -12px 0 40px rgba(15, 23, 42, .18); display: flex; flex-direction: column; animation: slide .22s var(--e); }
@keyframes slide { from { transform: translateX(30px); opacity: .6; } }
.drawer-h { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: sticky; top: 0; background: #fff; z-index: 1; }
.drawer-h h2 { font-size: 19px; font-weight: 800; }
.drawer-b { padding: 20px 24px; flex: 1; }
.drawer-f { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; position: sticky; bottom: 0; background: #fff; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 90; font-weight: 650; box-shadow: var(--sh-3); animation: rise .2s var(--e); max-width: calc(100vw - 32px); }
.toast.err { background: var(--alert); }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.bar i { display: block; height: 100%; transition: width .5s var(--e); }
.b-done { background: var(--green); } .b-now { background: #f59e0b; } .b-next { background: #60a5fa; } .b-later { background: transparent; }
.facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 9px 14px; margin: 0; }
.facts dt { color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.note { padding: 12px 14px; border-radius: 12px; background: var(--amber-l); color: #78350f; font-size: 13px; }
.note.info { background: var(--brand-soft); color: var(--brand-ink); }
.note.alert { background: var(--alert-bg); color: #9f1239; }
.hint { font-size: 12.5px; color: var(--ink-3); }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }

/* the help rail (the reference portal's right column) */
.rail-dark { border-radius: var(--r-lg); padding: 22px; background: var(--side); color: var(--side-t); box-shadow: var(--sh-2); position: relative; overflow: hidden; }
.rail-dark .k { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--side); background: var(--side-mark); padding: 4px 10px; border-radius: 99px; }
.rail-dark h3 { color: #fff; font-size: 18px; font-weight: 800; margin: 12px 0 6px; }
.rail-dark p { margin: 0; font-size: 13px; line-height: 1.55; }
.qlink { display: flex; align-items: center; gap: 12px; padding: 13px 22px; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none !important; transition: background .12s; cursor: pointer; }
.qlink:hover { background: var(--tint); }
.qlink b { display: block; color: var(--ink); font-size: 13.5px; }
.qlink span { display: block; color: var(--ink-3); font-size: 12px; }
.qlink > div { flex: 1; min-width: 0; }
.qlink > .ic { color: var(--ink-3); width: 16px; height: 16px; }

/* ================================================================ responsive: tablet, phone, and big screens */
@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side { grid-template-columns: minmax(0, 1fr) 320px; }
}
/* tablets in landscape and small laptops: the sidebar becomes an icon rail */
@media (max-width: 1180px) and (min-width: 821px) {
  .app { --sbw: 78px; }
  .sb { padding: 16px 10px; align-items: stretch; }
  .sb-brand { justify-content: center; padding: 4px 0 18px; }
  .sb-brand > span, .sb-label, .sb-ws, .sb-brand img.word { display: none; }
  .sb-brand img.mark.alt { display: block !important; }
  .sb-nav a { justify-content: center; padding: 12px 0; }
  .sb-nav a > span:not(.n) { display: none; }
  .sb-nav a .n { position: absolute; top: 3px; right: 5px; padding: 0 6px; font-size: 10px; }
  .sb-nav a.on::before { left: -10px; }
  .sb-foot .seg { flex-direction: column; }
  .sb-foot .seg button { padding: 6px 2px; font-size: 11px; }
  .me { justify-content: center; } .me > div { display: none; }
  .sb-foot a.set { justify-content: center; } .sb-foot a.set span { display: none; }
  .side { grid-template-columns: 1fr; }
}
/* tablets in portrait and phones: the sidebar slides in from the left */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sb { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); height: 100%; transform: translateX(-102%); transition: transform .25s var(--e); box-shadow: 20px 0 60px rgba(0, 0, 0, .25); }
  body.nav-open .sb { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; height: 60px; }
  .page { padding: 6px 16px 56px; }
  .g4, .g3, .g2, .side { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 24px 22px; flex-direction: column; align-items: flex-start; min-height: 0; }
  .hero .hero-side { margin-left: 0; width: 100%; }
  .hero .art { width: 90%; opacity: .22; }
  .count-box { min-width: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .count-box b { font-size: 36px; margin: 0; }
  .head h1 { font-size: 24px; }
  .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
  .t th:first-child, .t td:first-child { padding-left: 16px; }
  .t th:last-child, .t td:last-child { padding-right: 16px; }
  table.t { min-width: 680px; }
  .list-i, .qlink { padding-left: 16px; padding-right: 16px; }
  .card-h + .tabs, .card > .tabs { margin: 0 16px; }
  .facts { grid-template-columns: 110px minmax(0, 1fr); }
  .chip-date .long { display: none; }
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { padding: 16px 18px; }
  .tile b { font-size: 26px; }
  .filters select, .filters input { min-width: 0; width: 100%; }
  .head { margin-bottom: 16px; }
  .bar-r .btn .lbl, .bar-r .chip-date { display: none; }
  .crumbs a span { display: none; }
  .drawer-b, .drawer-h, .drawer-f { padding-left: 18px; padding-right: 18px; }
}
/* large monitors and televisions: everything scales up so it reads from a distance */
@media (min-width: 1920px) { html { zoom: 1.12; } }
@media (min-width: 2400px) { html { zoom: 1.35; } }
@media (min-width: 3200px) { html { zoom: 1.75; } }
@media print { .sb, .topbar, .btn, .scrim { display: none !important; } .app { display: block; } body { background: #fff; } .card, .tile { box-shadow: none; } }
.row > .bar { flex: 1; min-width: 60px; }
