/* ==========================================================================
   CSA UG — CyberSec.Az UnderGround
   Design system: quiet, dark, technical. One accent, used sparingly.
   Strict CSP: no inline styles anywhere — everything lives here.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.da03732a27e1.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.51205681a1ba.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.2ede57db1a3a.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jbmono-400.caf0dfde4e44.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jbmono-500.a21e038a03f7.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/spacegrotesk-500.ab4861869c91.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/spacegrotesk-600.49f2dd2d2132.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0a0b0d;
  --bg-2: #0d0f12;
  --surface: #111317;
  --surface-2: #15181d;
  --surface-3: #1b1f25;
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.11);
  --line-3: rgba(255, 255, 255, 0.18);

  --text: #e9e7e2;
  --text-2: #b4b3ad;
  --muted: #7c7d78;
  --faint: #55575a;

  --accent: #7dd6a4;
  --accent-2: #5fbf8a;
  --accent-ink: #07130d;
  --accent-soft: rgba(125, 214, 164, 0.1);
  --accent-line: rgba(125, 214, 164, 0.28);

  --warn: #e4b565;
  --warn-soft: rgba(228, 181, 101, 0.1);
  --danger: #ea6b73;
  --danger-soft: rgba(234, 107, 115, 0.1);
  --info: #86aee9;
  --info-soft: rgba(134, 174, 233, 0.1);
  --violet: #ab93ea;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px -18px rgba(0, 0, 0, 0.8);
  --sidebar: 248px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.55 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
body::before {
  /* faint dot grid + top glow: the "underground" texture */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(125, 214, 164, 0.045), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(125, 214, 164, 0.3); color: #fff; }
img { max-width: 100%; display: block; }
/* sprite icons: sensible default size; component rules override (zero specificity) */
:where(svg[aria-hidden="true"]) { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.internal-flag svg { width: 11px; height: 11px; }
.list__item > svg { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, kbd, pre, .mono { font-family: var(--mono); }
.mono { font-size: 0.92em; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: #f3f1ec; }
h1 { font-size: 26px; line-height: 1.2; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }

.muted { color: var(--muted); }
.soft { color: var(--text-2); }
.faint { color: var(--faint); }
.accent { color: var(--accent); }
.ok { color: var(--accent); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* eyebrow / microlabel — the terminal accent */
.eyebrow {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: "// "; color: var(--faint); }
.eyebrow--plain::before { content: none; }
.code-tag {
  font: 500 11.5px/1 var(--mono);
  color: var(--accent);
  letter-spacing: 0.02em;
  padding: 4px 7px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 5px;
  white-space: nowrap;
}
.code-tag--muted { color: var(--text-2); border-color: var(--line-2); background: var(--surface-2); }

/* ------------------------------------------------------------------ layout */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 19, 23, 0.92), rgba(10, 11, 13, 0.92));
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 600 15px/1.1 var(--display); letter-spacing: 0.02em; color: #f5f3ee; }
.brand__sub { font: 400 10.5px/1.3 var(--mono); color: var(--muted); letter-spacing: 0.06em; margin-top: 3px; }
.brand__env {
  margin-left: auto; font: 500 9.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-line); padding: 3px 5px; border-radius: 4px;
}
.brand__env--ops { color: var(--warn); border-color: rgba(228, 181, 101, 0.3); }

.nav { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; }
.nav__label { font: 500 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding: 16px 10px 8px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.nav a svg { width: 16px; height: 16px; flex: none; opacity: 0.75; }
.nav a:hover { background: rgba(255, 255, 255, 0.035); color: var(--text); }
.nav a.is-active { background: var(--surface-2); color: #fff; border-color: var(--line); }
.nav a.is-active svg { color: var(--accent); opacity: 1; }
.nav__count { margin-left: auto; font: 500 10.5px/1 var(--mono); color: var(--text-2); background: var(--surface-3); padding: 3px 6px; border-radius: 10px; }
.nav__count--hot { color: var(--accent-ink); background: var(--accent); }

.sidebar__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; }
.me__meta { min-width: 0; line-height: 1.25; }
.me__name { font-weight: 500; font-size: 13px; }
.me__handle { font: 400 11.5px var(--mono); color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 32px;
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--muted); }
.topbar__crumbs a { color: var(--muted); }
.topbar__crumbs a:hover { color: var(--text); }
.topbar__crumbs .sep { color: var(--faint); font-family: var(--mono); }
.topbar__crumbs .here { color: var(--text); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.menu-toggle { display: none; }

.content { padding: 28px 32px 64px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head__title { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-head__sub { color: var(--text-2); max-width: 720px; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ grid helpers */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1fr) 380px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.sticky { position: sticky; top: 84px; }

/* ------------------------------------------------------------------ cards */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 24, 29, 0.9), rgba(17, 19, 23, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.card--flat { background: var(--surface); }
.card--ticks::before, .card--ticks::after {
  /* corner ticks — subtle "classified document" framing */
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border-color: var(--accent-line); border-style: solid;
}
.card--ticks::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; border-top-left-radius: var(--r-lg); }
.card--ticks::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; border-bottom-right-radius: var(--r-lg); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__head h2, .card__head h3 { font-size: 14.5px; }
.card__body { padding: 20px; }
.card__body--tight { padding: 12px 20px; }
.card__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.card__link { font-size: 12.5px; color: var(--muted); }
.card__link:hover { color: var(--accent); }
a.card { transition: border-color 0.15s; }
a.card:not(.stat):not(.task-card) { display: block; }
a.card:hover { border-color: var(--line-3); }

/* stats */
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.stat__label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat__value { font: 600 28px/1 var(--display); letter-spacing: -0.02em; color: #f5f3ee; }
.stat__value small { font: 500 13px var(--font); color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.stat__meta { font-size: 12px; color: var(--muted); }
.stat--accent .stat__value { color: var(--accent); }
.stat--warn .stat__value { color: var(--warn); }
.stat--danger .stat__value { color: var(--danger); }
a.stat:hover .stat__label { color: var(--text-2); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
  font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); color: #fff; }
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn--primary:hover { background: #95e3b8; border-color: #95e3b8; color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: transparent; }
.btn--outline { background: transparent; }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(234, 107, 115, 0.3); }
.btn--danger:hover { background: var(--danger-soft); color: #ff8a91; border-color: rgba(234, 107, 115, 0.5); }
.btn--warn { background: transparent; color: var(--warn); border-color: rgba(228, 181, 101, 0.3); }
.btn--warn:hover { background: var(--warn-soft); color: var(--warn); }
.btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn--xs { height: 24px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.inline-form { display: inline; }

/* ------------------------------------------------------------------ pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font: 500 11.5px/1 var(--font); white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--text-2); background: rgba(255, 255, 255, 0.02);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.pill--accent { color: var(--accent); border-color: var(--accent-line); background: transparent; }
.pill--warn { color: var(--warn); border-color: rgba(228, 181, 101, 0.28); background: var(--warn-soft); }
.pill--danger { color: var(--danger); border-color: rgba(234, 107, 115, 0.3); background: var(--danger-soft); }
.pill--info { color: var(--info); border-color: rgba(134, 174, 233, 0.28); background: var(--info-soft); }
.pill--muted { color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 6px;
  font-size: 12px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip b { font: 500 10px/1 var(--mono); color: var(--faint); letter-spacing: 0.06em; }
.chip--strong { color: var(--text); border-color: var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 2px; background: var(--surface-3); border: 1px solid var(--line-2); }
.dots i.on { background: var(--accent); border-color: var(--accent); }
.stars { display: inline-flex; gap: 3px; vertical-align: middle; }
.stars i { width: 8px; height: 8px; transform: rotate(45deg); background: var(--surface-3); border: 1px solid var(--line-2); }
.stars i.on { background: var(--warn); border-color: var(--warn); }

.diff { font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.diff--entry { color: var(--info); }
.diff--intermediate { color: var(--accent); }
.diff--advanced { color: var(--warn); }
.diff--expert { color: var(--danger); }

/* ------------------------------------------------------------------ avatar */
.avatar {
  --size: 36px;
  width: var(--size); height: var(--size); flex: none;
  border-radius: 10px; overflow: hidden;
  display: inline-grid; place-items: center;
  font: 600 calc(var(--size) * 0.36) / 1 var(--display); letter-spacing: 0.02em;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { --size: 24px; border-radius: 7px; }
.avatar--sm { --size: 30px; border-radius: 8px; }
.avatar--lg { --size: 64px; border-radius: 16px; }
.avatar--xl { --size: 104px; border-radius: 22px; }
.tone-1 { background: linear-gradient(135deg, #1f3a2d, #13231b); color: #9fe3bd; }
.tone-2 { background: linear-gradient(135deg, #1e2d44, #121b29); color: #a8c6f2; }
.tone-3 { background: linear-gradient(135deg, #3a2a1a, #221910); color: #f0c98a; }
.tone-4 { background: linear-gradient(135deg, #34203a, #1e1322); color: #d6b3ea; }
.tone-5 { background: linear-gradient(135deg, #3b1f24, #231215); color: #f1a8ae; }
.tone-6 { background: linear-gradient(135deg, #1b3437, #102022); color: #95dde4; }
.tone-7 { background: linear-gradient(135deg, #2d2d2d, #1a1a1a); color: #d8d6d0; }
.tone-8 { background: linear-gradient(135deg, #2f3219, #1c1e0f); color: #d9e39b; }

/* ------------------------------------------------------------------ certification badges */
.cert-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cert {
  --c1: #9aa0a6; --c2: #5b6066;
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center; gap: 7px;
  width: 78px; text-align: center;
}
.cert__shield {
  position: relative;
  width: 54px; height: 60px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 22%, 100% 70%, 50% 100%, 0 70%, 0 22%);
  background: linear-gradient(160deg, var(--c1), var(--c2));
}
.cert__shield::before {
  content: ""; position: absolute; inset: 1.5px;
  clip-path: polygon(50% 0, 100% 22%, 100% 70%, 50% 100%, 0 70%, 0 22%);
  background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--c2) 35%, #14171b) 0%, #101215 75%);
}
.cert__abbr {
  position: relative; z-index: 1;
  font: 600 10.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--c1);
  max-width: 46px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cert__name { font-size: 11px; line-height: 1.25; color: var(--text-2); max-width: 78px; }
.cert__issuer { font: 400 10px/1.2 var(--mono); color: var(--faint); }
.cert__check {
  position: absolute; top: 44px; left: 50%; margin-left: 12px; z-index: 2;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.cert__check svg { width: 10px; height: 10px; }
.cert__state { font: 500 9.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.cert__state--pending { color: var(--warn); }
.cert__state--rejected { color: var(--danger); }
.cert--pending .cert__shield { opacity: 0.55; }
.cert--pending .cert__abbr { opacity: 0.8; }
.cert--rejected .cert__shield { filter: grayscale(1); opacity: 0.35; }
.cert--expired .cert__shield { filter: grayscale(0.8); opacity: 0.5; }
/* compact inline badge */
.cert-chip {
  --c1: #9aa0a6; --c2: #5b6066;
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 7px 0 5px; border-radius: 6px;
  font: 600 10.5px/1 var(--mono); color: var(--c1);
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line-2);
}
.cert-chip::before { content: ""; width: 8px; height: 9px; background: linear-gradient(160deg, var(--c1), var(--c2)); clip-path: polygon(50% 0, 100% 22%, 100% 70%, 50% 100%, 0 70%, 0 22%); }
.cert--ember, .cert-chip.cert--ember { --c1: #f09a5b; --c2: #9b4a1d; }
.cert--crimson, .cert-chip.cert--crimson { --c1: #ec6f78; --c2: #8c2a33; }
.cert--azure, .cert-chip.cert--azure { --c1: #7fb4f0; --c2: #2c5a95; }
.cert--cobalt, .cert-chip.cert--cobalt { --c1: #8d9df5; --c2: #3a449a; }
.cert--jade, .cert-chip.cert--jade { --c1: #7dd6a4; --c2: #2b7a52; }
.cert--violet, .cert-chip.cert--violet { --c1: #b59cf0; --c2: #5b3e9b; }
.cert--gold, .cert-chip.cert--gold { --c1: #e8c46f; --c2: #8a6a22; }
.cert--steel, .cert-chip.cert--steel { --c1: #b8bec6; --c2: #58606a; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.018); }
.table .cell-main { font-weight: 500; color: var(--text); }
.table .cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.table a.cell-main:hover { color: var(--accent); }
.row-link { cursor: pointer; }

/* ------------------------------------------------------------------ list rows */
.list { display: flex; flex-direction: column; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.list__item:last-child { border-bottom: 0; }
a.list__item:hover { background: rgba(255, 255, 255, 0.02); }
.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 500; color: var(--text); }
.list__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------------------------ task card (portal) */
.task-card { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; height: 100%; }
.task-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-card__title { font: 600 16px/1.35 var(--display); letter-spacing: -0.01em; color: #f3f1ec; }
.task-card__summary { color: var(--text-2); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card__foot { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); }
.task-card__reward { margin-left: auto; font: 600 14px/1 var(--display); color: var(--text); }
.deadline { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--mono); }
.deadline svg { width: 13px; height: 13px; }
.deadline--danger { color: var(--danger); }
.deadline--warn { color: var(--warn); }
.deadline--muted { color: var(--muted); }

/* ------------------------------------------------------------------ key/value */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--text); }
.kv--left dd { text-align: left; }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a {
  padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 13px;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a .n { font: 500 11px var(--mono); color: var(--faint); margin-left: 6px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.seg a { padding: 6px 12px; border-radius: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.seg a:hover { color: var(--text); }
.seg a.is-active { background: var(--surface-3); color: var(--text); }

/* ------------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field .req { color: var(--accent); margin-left: 2px; }
.help { font-size: 12px; color: var(--muted); }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--danger); font-size: 12.5px; }
.form-errors { padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(234, 107, 115, 0.3); background: var(--danger-soft); color: #f5b3b8; font-size: 13px; }
.form-errors ul { margin: 0; padding-left: 18px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"],
input[type="date"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text);
  font: 400 13.5px/1.4 var(--font);
  padding: 9px 12px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
textarea { resize: vertical; min-height: 80px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--line-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(125, 214, 164, 0.1); background: #0b0d10; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select[multiple] { background-image: none; padding: 6px; min-height: 160px; }
select[multiple] option { padding: 4px 6px; border-radius: 4px; }
select optgroup { color: var(--muted); font-style: normal; font-weight: 500; }
input[type="date"], input[type="datetime-local"] { color-scheme: dark; }
input[type="file"] { font-size: 12.5px; color: var(--muted); width: 100%; }
input[type="file"]::file-selector-button {
  font: 500 12.5px var(--font); color: var(--text); background: var(--surface-3); border: 1px solid var(--line-2);
  padding: 7px 12px; border-radius: 7px; margin-right: 12px; cursor: pointer;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 15px; height: 15px; margin: 2px 0 0; flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.radio-cards label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; font-size: 13px; }
.radio-cards label:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input, .filters select { width: auto; min-width: 160px; height: 36px; padding-top: 0; padding-bottom: 0; }
.filters input[type="search"] { min-width: 240px; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--faint); }
.search input { padding-left: 32px; }

.file-list { display: flex; flex-direction: column; gap: 6px; }
.file {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); font-size: 13px;
}
.file svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { font: 400 11.5px var(--mono); color: var(--faint); }
a.file:hover { border-color: var(--line-2); }
a.file:hover svg { color: var(--accent); }

/* ------------------------------------------------------------------ prose (rendered markdown) */
.prose { color: var(--text-2); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.3em 0 0.5em; font-size: 15px; }
.prose h1 { font-size: 18px; } .prose h2 { font-size: 16px; }
.prose p { margin: 0 0 0.9em; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 0.9em; }
.prose li { margin: 0.25em 0; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose code { font-size: 12.5px; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); color: #e7d8b0; border: 1px solid var(--line); }
.prose pre { background: #07080a; border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; color: #d5d3cd; }
.prose blockquote { margin: 0 0 0.9em; padding: 4px 14px; border-left: 2px solid var(--accent-line); color: var(--text-2); }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1em; font-size: 13px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 7px 10px; text-align: left; }
.prose th { background: var(--surface-2); color: var(--text); }
.prose hr { margin: 1.4em 0; }

/* ------------------------------------------------------------------ sections within task view */
.section { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section__num { font: 500 11px/1 var(--mono); color: var(--accent); }
.section__title { font: 600 13px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); }
.locked {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 9px;
  border: 1px dashed var(--line-3); color: var(--muted); font-size: 13px; background: rgba(255, 255, 255, 0.015);
}
.locked svg { width: 18px; height: 18px; flex: none; color: var(--faint); }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 13px; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.callout--danger { border-color: rgba(234, 107, 115, 0.3); background: var(--danger-soft); }
.callout--danger svg { color: var(--danger); }
.callout--warn { border-color: rgba(228, 181, 101, 0.28); background: var(--warn-soft); }
.callout--warn svg { color: var(--warn); }
.callout--ok { border-color: var(--accent-line); background: var(--accent-soft); }
.callout--ok svg { color: var(--accent); }
.callout--info svg { color: var(--info); }
.callout__title { font-weight: 600; color: var(--text); margin-bottom: 4px; }

/* ------------------------------------------------------------------ timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 12.5px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 3px;
  background: var(--bg); border: 1px solid var(--line-3);
}
.timeline li.t-approved::before, .timeline li.t-paid::before { border-color: var(--accent); background: var(--accent-soft); }
.timeline li.t-revision::before, .timeline li.t-cancelled::before { border-color: var(--danger); background: var(--danger-soft); }
.timeline li.t-submitted::before { border-color: var(--warn); background: var(--warn-soft); }
.timeline li.t-assigned::before, .timeline li.t-accepted::before { border-color: var(--info); background: var(--info-soft); }
.timeline__title { color: var(--text); font-weight: 500; }
.timeline__meta { color: var(--muted); font: 400 11.5px var(--mono); margin-top: 2px; }

/* submission blocks */
.submission { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.submission + .submission { margin-top: 12px; }
.submission__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.submission__body { padding: 16px; }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 10px; border-left: 2px solid var(--warn); background: var(--warn-soft); }
.feedback--ok { border-left-color: var(--accent); background: var(--accent-soft); }
.feedback__label { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--warn); margin-bottom: 8px; }
.feedback--ok .feedback__label { color: var(--accent); }
details.collapse > summary { cursor: pointer; list-style: none; }
details.collapse > summary::-webkit-details-marker { display: none; }

/* ------------------------------------------------------------------ progress */
.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 99px; transition: width 0.6s ease; }
.progress--warn .progress__bar { background: var(--warn); }
.progress--danger .progress__bar { background: var(--danger); }
.meter { display: flex; flex-direction: column; gap: 8px; }
.meter__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.meter__top b { color: var(--text); font-weight: 500; }

/* ------------------------------------------------------------------ flash messages */
.flashes { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.flash {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: rgba(21, 24, 29, 0.96); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 13px; animation: flash-in 0.25s ease;
}
.flash::before { content: ""; width: 3px; align-self: stretch; border-radius: 3px; background: var(--info); flex: none; }
.flash--success::before { background: var(--accent); }
.flash--error::before { background: var(--danger); }
.flash--warning::before { background: var(--warn); }
.flash__close { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 2px; }
.flash.is-leaving { opacity: 0; transform: translateY(-6px); transition: all 0.25s; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------------ empty state */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 24px; color: var(--muted); }
.empty__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px dashed var(--line-3); color: var(--faint); }
.empty__icon svg { width: 20px; height: 20px; }
.empty__title { color: var(--text); font-weight: 500; font-family: var(--display); font-size: 15px; }

/* ------------------------------------------------------------------ profile hero */
.hero { padding: 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.hero__name { font: 600 26px/1.15 var(--display); letter-spacing: -0.02em; }
.hero__handle { font: 500 13px var(--mono); color: var(--accent); }
.hero__headline { color: var(--text-2); margin-top: 6px; }
.hero__meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 14px; height: 14px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 16px 20px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric__v { font: 600 20px/1 var(--display); color: #f3f1ec; }
.metric__l { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.skill-groups { display: flex; flex-direction: column; gap: 16px; }
.skill-group__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.skill-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.skill-row:last-child { border-bottom: 0; }

/* skill picker */
.picker-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; top: 63px; z-index: 5; padding: 12px 0; background: var(--bg); }
.picker-cat { margin-bottom: 14px; }
.picker-cat__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; }
.picker-cat__head h3 { font-size: 14px; }
.picker-cat__count { margin-left: auto; font: 500 11px var(--mono); color: var(--muted); }
.picker-cat__count.has { color: var(--accent); }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; padding: 0 18px 18px; }
.pick {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg-2); transition: border-color 0.15s, background 0.15s;
}
.pick:hover { border-color: var(--line-2); }
.pick label { flex: 1; display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 13px; min-width: 0; }
.pick select { width: auto; height: 26px; padding: 0 22px 0 8px; font-size: 11.5px; background-position: calc(100% - 12px) 50%, calc(100% - 8px) 50%; display: none; }
.pick.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
.pick.is-on select { display: block; }

/* ------------------------------------------------------------------ auth pages */
.auth { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__side {
  position: relative; overflow: hidden; padding: 44px 52px; display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 0% 100%, rgba(125, 214, 164, 0.07), transparent 60%),
    linear-gradient(180deg, #0d0f12, #0a0b0d);
}
.auth__side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px);
}
.auth__claim { margin-top: auto; max-width: 440px; position: relative; z-index: 1; }
.auth__claim h1 { font-size: 36px; line-height: 1.12; letter-spacing: -0.03em; }
.auth__claim h1 em { font-style: normal; color: var(--accent); }
.auth__claim p { color: var(--text-2); margin-top: 16px; font-size: 14.5px; }
.terminal { margin-top: 32px; font: 400 12px/1.8 var(--mono); color: var(--muted); }
.terminal .p { color: var(--accent); }
.terminal .c { color: var(--text-2); }
.cursor { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.auth__legal { margin-top: 36px; position: relative; z-index: 1; font: 400 11px var(--mono); color: var(--faint); letter-spacing: 0.04em; }
.auth__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 400px; }
.auth__box h2 { font-size: 22px; margin: 10px 0 6px; }
.auth__box .lead { color: var(--muted); margin-bottom: 26px; }
.auth__alt { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }
.auth__alt a { color: var(--text-2); border-bottom: 1px solid var(--line-3); }
.auth__alt a:hover { color: var(--accent); border-color: var(--accent-line); }
.qr { width: 200px; height: 200px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); margin: 0 auto; }
.qr svg { width: 100%; height: 100%; }
.secret { font: 500 12px/1.6 var(--mono); letter-spacing: 0.08em; word-break: break-all; padding: 10px 12px; border-radius: 8px; background: var(--bg-2); border: 1px dashed var(--line-3); color: var(--text-2); text-align: center; }

/* error pages */
.errpage { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; position: relative; z-index: 1; }
.errpage__code { font: 600 72px/1 var(--display); letter-spacing: -0.04em; color: var(--surface-3); -webkit-text-stroke: 1px var(--line-3); }
.errpage h1 { margin-top: 12px; }
.errpage p { color: var(--muted); margin-top: 8px; }

/* pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pager__links { display: flex; gap: 6px; }

/* misc */
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 500 10.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin: 8px 0; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--mono); font-size: 12px; }
.reward { font: 600 22px/1 var(--display); letter-spacing: -0.02em; color: #f5f3ee; }
.reward small { font: 500 12px var(--mono); color: var(--muted); margin-left: 4px; }
.internal-flag {
  display: inline-flex; align-items: center; gap: 6px; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warn); padding: 4px 6px; border: 1px solid rgba(228, 181, 101, 0.28); border-radius: 4px; background: var(--warn-soft);
}
.visible-flag { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.fieldset--internal { border-color: rgba(228, 181, 101, 0.22); background: rgba(228, 181, 101, 0.025); }
.fieldset__legend { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.bar-list { display: flex; flex-direction: column; gap: 10px; }
.kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); }
.notif { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-3); }
.notif.is-unread .notif__dot { background: var(--accent); }
.notif--warning.is-unread .notif__dot { background: var(--warn); }
.notif--danger.is-unread .notif__dot { background: var(--danger); }
.notif__title { font-weight: 500; }
.notif:not(.is-unread) .notif__title { color: var(--text-2); font-weight: 400; }
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; z-index: 50;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8); display: none;
}
.dropdown.is-open .dropdown__menu { display: block; }
.dropdown__menu a, .dropdown__menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font: 400 13px var(--font); color: var(--text-2); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown__menu a:hover, .dropdown__menu button:hover { background: var(--surface-3); color: var(--text); }
.dropdown__menu svg { width: 15px; height: 15px; }
.dropdown__sep { height: 1px; background: var(--line); margin: 6px 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split--wide { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform 0.2s ease; }
  body.nav-open .sidebar { transform: none; box-shadow: 30px 0 60px rgba(0, 0, 0, 0.6); }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 55; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 48px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .hero { grid-template-columns: auto 1fr; padding: 20px; }
  .hero__actions { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .filters input, .filters select, .filters input[type="search"] { min-width: 0; flex: 1 1 160px; }
  .radio-cards { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 22px; }
  .stat__value { font-size: 22px; }
  .page-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
