/* CrewDeck UI — one design system for every page (public, candidate, admin). Mobile first. */
:root {
  --navy-950: #071528;
  --navy-900: #0b1f3a;
  --navy-800: #12305a;
  --navy-700: #1b4277;
  --ocean-700: #0b5f78;
  --ocean-600: #0e7490;
  --ocean-500: #0891b2;
  --ocean-100: #cff3fa;
  --ocean-50: #ecfbfe;
  --coral-600: #e0442b;
  --coral-500: #f0573d;
  --coral-100: #ffe1da;
  --sand-50: #fbf8f3;

  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --good: #15803d;
  --good-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --info: #0e7490;
  --info-bg: #e0f7fb;

  --brand: var(--navy-900);
  --accent: var(--ocean-600);
  --cta: var(--coral-500);
  --cta-hover: var(--coral-600);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 6px 24px -8px rgba(15, 27, 45, .14), 0 1px 3px rgba(15, 27, 45, .06);
  --shadow-lg: 0 24px 60px -18px rgba(11, 31, 58, .35);
  --ring: 0 0 0 3px rgba(8, 145, 178, .28);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f; --surface: #0d1b2e; --surface-2: #10223a; --line: #1e3350; --line-strong: #2a4466;
    --ink: #e8eef7; --ink-2: #c5d1e2; --muted: #8fa3bd; --faint: #6b819c;
    --good-bg: #0f2f1e; --good: #4ade80; --warn-bg: #33250b; --warn: #fbbf24; --bad-bg: #3a1414; --bad: #f87171;
    --info-bg: #0b2d38; --info: #67e8f9; --ocean-50: #0b2733; --ocean-100: #0f3a48; --coral-100: #3d1a13;
    --sand-50: #0d1b2e; --brand: #e8eef7; --accent: #22d3ee;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07111f; --surface: #0d1b2e; --surface-2: #10223a; --line: #1e3350; --line-strong: #2a4466;
  --ink: #e8eef7; --ink-2: #c5d1e2; --muted: #8fa3bd; --faint: #6b819c;
  --good-bg: #0f2f1e; --good: #4ade80; --warn-bg: #33250b; --warn: #fbbf24; --bad-bg: #3a1414; --bad: #f87171;
  --info-bg: #0b2d38; --info: #67e8f9; --ocean-50: #0b2733; --ocean-100: #0f3a48; --coral-100: #3d1a13;
  --sand-50: #0d1b2e; --brand: #e8eef7; --accent: #22d3ee;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.75rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.section { padding: 48px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- buttons ---------- */
.btn { --b: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--b); color: var(--ink); font: 600 .95rem/1.1 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--faint); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); border-color: var(--cta); color: #fff; box-shadow: 0 6px 16px -6px rgba(240, 87, 61, .55); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-navy { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); border-color: var(--navy-800); }
:root[data-theme="dark"] .btn-navy { background: var(--ocean-600); border-color: var(--ocean-600); }
.btn-ocean { background: var(--ocean-600); border-color: var(--ocean-600); color: #fff; }
.btn-ocean:hover { background: var(--ocean-700); border-color: var(--ocean-700); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { min-height: 36px; padding: 7px 12px; font-size: .86rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn-icon.btn-sm { width: 36px; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.5; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-ship { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge-shore { background: var(--sand-50); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.badge-new { background: var(--coral-100); color: var(--coral-600); border-color: transparent; }
.badge-good { background: var(--good-bg); color: var(--good); border-color: transparent; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge-verified { background: var(--good-bg); color: var(--good); border-color: transparent; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 .88rem var(--font); cursor: pointer; transition: .15s; text-decoration: none !important; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
:root[data-theme="dark"] .chip.is-on { background: var(--ocean-600); border-color: var(--ocean-600); }
.chip .count { font-size: .75rem; opacity: .7; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: none; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 24px; }
@media (min-width: 768px) { .card-lg { padding: 32px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3, .card-head h2 { margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-hover:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- header ---------- */
.dev-ribbon { background: var(--navy-950); color: #9fb6d3; font-size: .75rem; text-align: center; padding: 5px 16px; }
.dev-ribbon b { color: #fff; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--font-head); color: var(--brand); text-decoration: none !important; letter-spacing: -.02em; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--ocean-600)); color: #fff; box-shadow: inset 0 -6px 12px rgba(0,0,0,.15); }
.logo-mark .icon { width: 20px; height: 20px; }
.logo span em { font-style: normal; color: var(--cta); }
.main-nav { display: none; gap: 4px; margin-left: 12px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.is-active { color: var(--accent); background: var(--ocean-50); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .hide-sm { display: none; }
@media (min-width: 980px) { .main-nav { display: flex; } .header-actions .hide-sm { display: inline-flex; } .nav-toggle { display: none !important; } }
@media (min-width: 1024px) { .admin-toggle { display: none !important; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 .85rem var(--font-head); background: linear-gradient(135deg, var(--ocean-500), var(--navy-700)); color: #fff; flex: none; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.7rem; }
.notif-btn { position: relative; }
.notif-btn .pip { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); border: 2px solid var(--surface); }

/* mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(7, 21, 40, .5); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: min(340px, 88vw); background: var(--surface); z-index: 100; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer.is-open { transform: none; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 12px; overflow-y: auto; flex: 1; }
.drawer-body a.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); font-weight: 500; text-decoration: none; }
.drawer-body a.nav-item:hover { background: var(--surface-2); }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(34, 211, 238, .35), transparent 60%), radial-gradient(900px 400px at -10% 110%, rgba(240, 87, 61, .22), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--ocean-700)); }
.hero .wrap { position: relative; padding-top: 48px; padding-bottom: 88px; }
@media (min-width: 900px) { .hero .wrap { padding-top: 80px; padding-bottom: 120px; } }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #67e8f9, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #c7d6ea; max-width: 620px; margin-bottom: 28px; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; color: var(--bg); }
html, body { overflow-x: clip; }
/* badge left, text wraps beside it (not under it); a soft radius so 2 lines on a phone still look tidy */
.hero-pill { max-width: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 16px; line-height: 1.4; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #dbeafe; font-size: .85rem; margin-bottom: 20px; }
.hero-pill b { flex: none; background: var(--good); color: #fff; padding: 2px 8px; border-radius: 999px; font-size: .72rem; }
@media (max-width: 560px) { .hero-pill { font-size: .8rem; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: #b8c9e0; font-size: .88rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: #67e8f9; }

/* search box */
.searchbar { background: var(--surface); border-radius: 18px; padding: 8px; display: grid; gap: 8px; box-shadow: var(--shadow-lg); max-width: 880px; }
@media (min-width: 760px) { .searchbar { grid-template-columns: 1.5fr 1fr 1fr auto; align-items: center; } }
.searchbar .field { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; border-radius: 12px; background: var(--surface-2); color: var(--muted); }
@media (min-width: 760px) { .searchbar .field { background: transparent; } .searchbar .field + .field { border-left: 1px solid var(--line); border-radius: 0; } }
.searchbar input, .searchbar select { border: 0; background: transparent; font: 500 .97rem var(--font); color: var(--ink); width: 100%; min-height: 50px; outline: none; appearance: none; }
.searchbar .btn { min-height: 52px; }
.popular { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #b8c9e0; font-size: .87rem; }
.popular a { color: #fff; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); text-decoration: none; }
.popular a:hover { background: rgba(255,255,255,.16); }

/* stats strip */
.stats-strip { margin-top: -48px; position: relative; z-index: 2; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 860px) { .stat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.stat-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ocean-50); color: var(--accent); flex: none; }
.stat b { display: block; font: 700 1.35rem/1.2 var(--font-head); color: var(--ink); }
.stat span { display: block; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.stat .delta { font-size: .78rem; font-weight: 600; color: var(--good); }
.stat .delta.down { color: var(--bad); }

/* ---------- job card ---------- */
.job-list { display: grid; gap: 12px; }
.job-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.job-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
@media (min-width: 700px) { .job-card { grid-template-columns: auto 1fr auto; padding: 18px 20px; align-items: center; } }
.co-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 700 .95rem var(--font-head); color: #fff !important; flex: none; letter-spacing: .02em; }
.co-logo-lg { width: 72px; height: 72px; border-radius: 18px; font-size: 1.35rem; }
.co-logo-xl { width: 96px; height: 96px; border-radius: 22px; font-size: 1.8rem; }
.job-card h3 { font-size: 1.02rem; margin: 0 0 4px; }
.job-card h3 a { color: var(--ink); text-decoration: none; }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-card h3 a:hover { color: var(--accent); }
.job-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .86rem; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.job-side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; position: relative; z-index: 1; }
@media (min-width: 700px) { .job-side { grid-column: auto; flex-direction: column; align-items: flex-end; border: 0; padding: 0; } }
.job-side .price-box { text-align: left; }
@media (min-width: 700px) { .job-side .price-box { text-align: right; } }
.job-side .salary { font: 600 .95rem var(--font-head); color: var(--ink); }
.job-side .posted { font-size: .8rem; color: var(--faint); }
.save-btn { position: relative; z-index: 2; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: .15s; }
.save-btn:hover { color: var(--cta); border-color: var(--cta); }
.save-btn.is-saved { color: #fff; background: var(--cta); border-color: var(--cta); }
.save-btn.is-saved .icon { fill: currentColor; }
.job-card.is-closed { opacity: .65; }
.btn.is-saved { background: var(--cta); border-color: var(--cta); color: #fff; }
.btn.is-saved .icon { fill: currentColor; }

/* ---------- company card ---------- */
.co-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; transition: .15s; }
.co-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.co-card h3 { margin: 0; font-size: 1.05rem; }
.co-card h3 a { color: var(--ink); text-decoration: none; }
.co-card h3 a::after { content: ""; position: absolute; inset: 0; }
.co-card .co-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.co-card .co-foot b { color: var(--accent); font-weight: 600; }

/* department tiles */
.dept { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none !important; transition: .15s; }
.dept:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.dept-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.dept b { display: block; font-weight: 600; font-size: .95rem; }
.dept span { font-size: .82rem; color: var(--muted); }

/* how it works */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 18px; right: 18px; font: 700 2.2rem/1 var(--font-head); color: var(--line); }
.step .stat-ic { margin-bottom: 14px; }
.step h3 { font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* callouts */
.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid; align-items: flex-start; }
.callout .icon { margin-top: 2px; }
.callout p { margin: 0; }
.callout-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--ink); }
.callout-warn > .icon { color: var(--warn); }
.callout-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.callout-info > .icon { color: var(--info); }
.callout-good { background: var(--good-bg); border-color: color-mix(in srgb, var(--good) 25%, transparent); }
.callout-good > .icon { color: var(--good); }
.callout-bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.callout-bad > .icon { color: var(--bad); }

.cta-band { border-radius: var(--radius-lg); padding: 32px 24px; color: #fff; background: radial-gradient(600px 240px at 100% 0, rgba(34, 211, 238, .35), transparent 70%), linear-gradient(135deg, var(--navy-900), var(--ocean-700)); display: grid; gap: 20px; align-items: center; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: 44px; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d6ea; margin: 0; }
.cta-band ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; color: #dbeafe; }
.cta-band li { display: flex; gap: 8px; align-items: center; }
.cta-band li .icon { color: #67e8f9; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: 1 / -1; } }
.field-group { display: grid; gap: 6px; }
label, .label { font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.req { color: var(--cta); }
.hint { font-size: .8rem; color: var(--muted); }
.error-text { font-size: .8rem; color: var(--bad); display: flex; gap: 6px; align-items: center; }
.input, select.input, textarea.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font: 500 .95rem var(--font); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.input:hover { border-color: var(--faint); }
.input:focus { outline: none; border-color: var(--ocean-500); box-shadow: var(--ring); }
.input.is-invalid { border-color: var(--bad); }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon .input { padding-left: 42px; }
.input-icon .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.input-group { display: flex; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .9rem; }
.input-group .input { border-radius: 0 12px 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ocean-600); flex: none; }
.radio-cards { display: grid; gap: 10px; }
@media (min-width: 640px) { .radio-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .radio-cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.radio-card { position: relative; display: flex; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: .15s; }
.radio-card:hover { border-color: var(--faint); }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--ocean-500); background: var(--ocean-50); box-shadow: var(--ring); }
.radio-card b { display: block; font-size: .93rem; }
.radio-card span { font-size: .82rem; color: var(--muted); }
.radio-card .rc-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; }

/* toggle switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; transition: .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.switch input:checked + .track { background: var(--ocean-600); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row b { display: block; font-weight: 600; }
.setting-row span { font-size: .86rem; color: var(--muted); }

/* tag input */
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); min-height: 46px; align-items: center; }
.tag-input:focus-within { border-color: var(--ocean-500); box-shadow: var(--ring); }
.tag-input input { border: 0; outline: none; flex: 1; min-width: 120px; font: 500 .95rem var(--font); background: transparent; color: var(--ink); padding: 4px 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--ocean-50); color: var(--ocean-700); font-size: .85rem; font-weight: 600; }
:root[data-theme="dark"] .tag { color: var(--info); }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 2px; display: grid; place-items: center; opacity: .7; }
.tag button:hover { opacity: 1; }

/* dropzone */
.dropzone { display: block; position: relative; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 20px; text-align: center; background: var(--surface-2); transition: .15s; cursor: pointer; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--ocean-500); background: var(--ocean-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ic { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }
.dropzone b { display: block; font-size: 1rem; }
.dropzone .hint { margin-top: 4px; }
.file-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.file-item .f-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--bad-bg); color: var(--bad); flex: none; font: 700 .7rem var(--font); }
.file-item .f-ic.doc { background: var(--info-bg); color: var(--info); }
.file-item .f-main { flex: 1; min-width: 0; }
.file-item .f-main b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .f-main span { font-size: .8rem; color: var(--muted); }

/* progress */
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ocean-500), var(--good)); }
.ring { --p: 70; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ocean-500) calc(var(--p) * 1%), var(--line) 0); flex: none; }
.ring::before { content: attr(data-label); width: 68px; height: 68px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 700 1.1rem var(--font-head); color: var(--ink); }

/* stepper */
.stepper { display: flex; gap: 6px; margin-bottom: 28px; }
.stepper .st { flex: 1; display: grid; gap: 8px; }
.stepper .st .bar { height: 5px; border-radius: 999px; background: var(--line); }
.stepper .st.is-done .bar, .stepper .st.is-current .bar { background: var(--ocean-500); }
.stepper .st span { font-size: .78rem; font-weight: 600; color: var(--faint); display: none; }
.stepper .st.is-current span, .stepper .st.is-done span { color: var(--ink-2); }
@media (min-width: 640px) { .stepper .st span { display: block; } }
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* auth layout */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 980px) { .auth { grid-template-columns: 1fr 1.1fr; } }
.auth-side { display: none; position: relative; color: #fff; padding: 40px; overflow: hidden; background: radial-gradient(700px 300px at 100% 0, rgba(34, 211, 238, .35), transparent 70%), radial-gradient(600px 300px at 0 100%, rgba(240, 87, 61, .25), transparent 70%), linear-gradient(160deg, var(--navy-950), var(--navy-800) 60%, var(--ocean-700)); }
@media (min-width: 980px) { .auth-side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; } }
.auth-side .logo { color: #fff; }
.auth-side h2 { color: #fff; font-size: 2rem; margin-top: auto; max-width: 440px; }
.auth-side p { color: #c7d6ea; max-width: 420px; }
.auth-quote { margin-top: 28px; padding: 18px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); max-width: 440px; }
.auth-quote p { color: #e2ecf8; font-size: .95rem; margin-bottom: 12px; }
.auth-main { display: flex; flex-direction: column; padding: 20px 16px 40px; background: var(--surface); }
@media (min-width: 640px) { .auth-main { padding: 32px 48px 48px; } }
.auth-main .auth-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.auth-box { width: 100%; max-width: 520px; margin: auto; }
.auth-box h1 { font-size: 1.75rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .82rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.social-btns { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.otp { display: flex; gap: 8px; }
.otp input { width: 48px; height: 54px; text-align: center; font: 700 1.3rem var(--font-head); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); }
.otp input:focus { outline: none; border-color: var(--ocean-500); box-shadow: var(--ring); }
.pw-meter { display: flex; gap: 4px; margin-top: 6px; }
.pw-meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--ocean-500); }
.pw-meter[data-s="4"] i { background: var(--good); }

/* ---------- listing layout ---------- */
.page-head { background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); color: #fff; padding: 28px 0 32px; }
.page-head h1 { color: #fff; margin-bottom: 6px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.page-head p { color: #b8c9e0; margin: 0; }
.page-head .crumbs a, .page-head .crumbs { color: #9fb6d3; }
.page-head .searchbar { margin-top: 20px; box-shadow: none; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: inherit; }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }
.listing { display: grid; gap: 24px; padding: 24px 0 64px; }
@media (min-width: 980px) { .listing { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { display: none; }
@media (min-width: 980px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
.filters.is-open { display: block; position: fixed; inset: 0; z-index: 100; background: var(--surface); overflow-y: auto; padding: 0 16px 96px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; position: sticky; top: 0; background: var(--surface); z-index: 1; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
@media (min-width: 980px) { .filters-head .close-filters { display: none; } .filters-head { position: static; } }
.filters-foot { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.filters-foot .btn { flex: 1; }
@media (min-width: 980px) { .filters-foot { display: none; } }
.f-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.f-block:last-child { border-bottom: 0; }
.f-block h4 { font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; }
.f-list { display: grid; gap: 10px; }
.f-list .check { justify-content: space-between; }
.f-list .check > span:first-of-type { display: flex; gap: 10px; align-items: flex-start; }
.f-list .cnt { font-size: .8rem; color: var(--faint); font-weight: 500; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; gap: 2px; width: 100%; }
.seg button, .seg a { flex: 1; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 600 .86rem var(--font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg .is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.results-bar .count { font-weight: 600; }
.results-bar .count b { color: var(--accent); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.active-filters .chip { min-height: 30px; padding: 4px 8px 4px 12px; font-size: .82rem; background: var(--ocean-50); border-color: transparent; color: var(--ocean-700); }
:root[data-theme="dark"] .active-filters .chip { color: var(--info); }
.mobile-filter-btn { display: inline-flex; }
@media (min-width: 980px) { .mobile-filter-btn { display: none; } }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.pager .is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.alert-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--ocean-50), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); margin: 4px 0; }
.alert-inline .row { flex-wrap: nowrap; }
.alert-inline .stat-ic { background: var(--surface); }

/* ---------- job detail ---------- */
.job-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 24px 0; }
.job-hero-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .job-hero-grid { grid-template-columns: 1fr auto; align-items: end; } }
.job-hero h1 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin: 0 0 6px; }
.job-hero .company-line { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--ink-2); font-weight: 500; }
.job-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-layout { display: grid; gap: 24px; padding: 24px 0 64px; }
@media (min-width: 980px) { .detail-layout { grid-template-columns: 1fr 340px; align-items: start; } .detail-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { background: var(--surface); padding: 14px 16px; }
.fact span { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.fact b { display: block; margin-top: 4px; font-weight: 600; font-size: .95rem; }
.prose { color: var(--ink-2); }
.prose h2 { font-size: 1.15rem; margin-top: 28px; }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--ocean-500); box-shadow: 0 0 0 4px var(--ocean-50); }
.prose ol { padding-left: 20px; display: grid; gap: 8px; }
.source-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--good-bg); color: var(--ink); font-size: .88rem; }
.source-box .icon { color: var(--good); margin-top: 2px; }
.share-row { display: flex; gap: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .tl-dot { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--surface); background: var(--ocean-500); box-shadow: 0 0 0 1px var(--line); }
.timeline .tl-dot.muted { background: var(--line-strong); }
.timeline b { display: block; font-size: .92rem; }
.timeline span { font-size: .82rem; color: var(--muted); }

/* ---------- company page ---------- */
.co-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.co-cover { height: 140px; background: radial-gradient(500px 200px at 80% 0, rgba(34, 211, 238, .4), transparent 70%), linear-gradient(135deg, var(--navy-900), var(--ocean-700)); }
@media (min-width: 768px) { .co-cover { height: 190px; } }
.co-hero .wrap { display: grid; gap: 16px; padding-bottom: 20px; }
.co-hero .co-logo-xl { margin-top: -48px; border: 4px solid var(--surface); box-shadow: var(--shadow); }
@media (min-width: 768px) { .co-hero .wrap { grid-template-columns: auto 1fr auto; align-items: end; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { padding: 12px 14px; border: 0; background: none; font: 600 .92rem var(--font); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.tabs .is-on { color: var(--accent); border-color: var(--accent); }
.tabs .count { font-size: .75rem; background: var(--surface-2); padding: 1px 7px; border-radius: 999px; color: var(--muted); }
.tab-panel { display: none; }
.tab-panel.is-on { display: block; animation: fadeUp .2s ease; }
.kv { display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; }

/* ---------- accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.acc details + details { border-top: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .2s; color: var(--muted); }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc details > div { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- app shell (candidate + admin) ---------- */
.app { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .app { grid-template-columns: 260px 1fr; } }
.sidebar { display: none; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; }
@media (min-width: 1024px) { .sidebar { display: block; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; } }
.side-user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side-user b { display: block; font-size: .95rem; }
.side-user span { font-size: .8rem; color: var(--muted); }
.side-nav { display: grid; gap: 2px; }
.side-nav .sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; padding: 14px 12px 6px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); }
.side-nav a.is-active { background: var(--ocean-50); color: var(--accent); font-weight: 600; }
.side-nav a .badge { margin-left: auto; }
.app-main { padding: 20px 16px 96px; min-width: 0; }
@media (min-width: 768px) { .app-main { padding: 28px 28px 64px; } }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.app-head h1 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 0; }
.app-head p { margin: 2px 0 0; color: var(--muted); }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .bottom-nav { display: none; } }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; }
.bottom-nav a.is-active { color: var(--accent); }
.welcome { display: grid; gap: 20px; padding: 22px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(500px 200px at 100% 0, rgba(34, 211, 238, .35), transparent 70%), linear-gradient(135deg, var(--navy-900), var(--ocean-700)); }
@media (min-width: 860px) { .welcome { grid-template-columns: 1fr auto; align-items: center; padding: 28px; } }
.welcome h2 { color: #fff; margin-bottom: 4px; }
.welcome p { color: #c7d6ea; margin: 0; }
.welcome .ring::before { background: var(--navy-900); color: #fff; }
.welcome .ring { background: conic-gradient(#67e8f9 calc(var(--p) * 1%), rgba(255,255,255,.15) 0); }
.todo { display: grid; gap: 10px; }
.todo a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--surface); }
.todo a:hover { border-color: var(--accent); }
.todo .done { color: var(--good); }
.todo .t-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.todo a.is-done .t-ic { background: var(--good-bg); color: var(--good); }
.todo a.is-done b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.todo b { font-weight: 600; font-size: .92rem; flex: 1; }
.todo span { font-size: .8rem; color: var(--muted); }
.mini-job { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-job:last-child { border-bottom: 0; }
.mini-job .co-logo { width: 40px; height: 40px; border-radius: 10px; font-size: .8rem; }
.mini-job .m-main { flex: 1; min-width: 0; }
.mini-job b { display: block; font-size: .93rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-job b a { color: var(--ink); }
.mini-job span { font-size: .8rem; color: var(--muted); }
.match { font: 700 .8rem var(--font-head); color: var(--good); background: var(--good-bg); padding: 3px 8px; border-radius: 8px; white-space: nowrap; }
.alert-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
@media (min-width: 760px) { .alert-card { grid-template-columns: 1fr auto; align-items: center; } }
.alert-card h3 { margin: 0 0 6px; font-size: 1rem; }
.alert-card .chips .badge { font-weight: 500; }
.alert-card.is-paused { opacity: .7; background: var(--surface-2); }
.channel { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.channel .ch-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.channel .c-main { flex: 1; min-width: 0; }
.channel b { display: block; font-size: .93rem; }
.channel span { font-size: .8rem; color: var(--muted); }
.kanban { display: grid; gap: 14px; }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.k-col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; align-content: start; }
.k-col h4 { display: flex; justify-content: space-between; margin: 2px 4px 4px; font-size: .88rem; }
.k-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.k-card b { display: block; font-size: .9rem; }
.k-card span { font-size: .78rem; color: var(--muted); }

/* ---------- tables (admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 680px; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .t-main { display: flex; gap: 10px; align-items: center; }
.table .t-main b { display: block; font-weight: 600; }
.table .t-main span { font-size: .8rem; color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .input-icon { flex: 1; min-width: 200px; }
.toolbar select.input { width: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; }
.status .dot { width: 8px; height: 8px; }
.status.ok { color: var(--good); }
.status.warn { color: var(--warn); }
.status.bad { color: var(--bad); }
.status.off { color: var(--faint); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.spark i { flex: 1; background: var(--ocean-500); border-radius: 4px 4px 0 0; min-height: 4px; opacity: .85; }
.spark i:hover { opacity: 1; }
.spark-labels { display: flex; justify-content: space-between; font-size: .72rem; color: var(--faint); margin-top: 6px; }
.bars { display: grid; gap: 10px; }
.bars .b-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 48px; gap: 10px; align-items: center; font-size: .86rem; }
.bars .b-track { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bars .b-track span { display: block; height: 100%; background: var(--ocean-500); border-radius: inherit; }
.bars .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.log { font: 500 .82rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--navy-950); color: #b8c9e0; border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; max-height: 300px; }
.log .ok { color: #4ade80; } .log .warn { color: #fbbf24; } .log .bad { color: #f87171; } .log .t { color: #64748b; }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-end; justify-content: center; background: rgba(7, 21, 40, .55); padding: 0; }
.modal.is-open { display: flex; animation: fade .2s; }
@media (min-width: 640px) { .modal { align-items: center; padding: 16px; } }
.modal-box { width: 100%; max-width: 520px; background: var(--surface); border-radius: 20px 20px 0 0; padding: 22px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; animation: fadeUp .25s; }
@media (min-width: 640px) { .modal-box { border-radius: 20px; padding: 28px; } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 1.2rem; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast-host { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); z-index: 300; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
@media (min-width: 1024px) { .toast-host { bottom: 24px; } }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); font-size: .92rem; animation: fadeUp .2s; }
.toast .icon { color: #4ade80; }
:root[data-theme="dark"] .toast { background: #1e3350; }

/* ---------- empty / misc ---------- */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.empty .e-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--ocean-50); color: var(--accent); }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 16px; }
.skeleton { background: linear-gradient(90deg, var(--line) 25%, var(--surface-2) 37%, var(--line) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.kbd { font: 600 .75rem ui-monospace, monospace; padding: 2px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.logo-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.logo-cloud a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.logo-cloud a:hover { border-color: var(--accent); color: var(--accent); }
.logo-cloud .co-logo { width: 30px; height: 30px; border-radius: 50%; font-size: .65rem; }
.testi { display: grid; gap: 14px; }
.testi blockquote { margin: 0; color: var(--ink-2); }
.testi .who { display: flex; gap: 12px; align-items: center; }
.testi .who b { display: block; font-size: .92rem; }
.testi .who span { font-size: .8rem; color: var(--muted); }
.stars { color: #f59e0b; display: flex; gap: 2px; }
.stars .icon { fill: currentColor; width: 16px; height: 16px; }

/* scam guide */
.flag-list { display: grid; gap: 12px; }
.flag { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.flag .f-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--bad-bg); color: var(--bad); }
.flag.good .f-ic { background: var(--good-bg); color: var(--good); }
.flag b { display: block; margin-bottom: 2px; }
.flag p { margin: 0; color: var(--muted); font-size: .92rem; }

/* article */
.article { max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.toc { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc ol { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; transition: .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
.post-cover .icon { width: 40px; height: 40px; opacity: .9; }
.post-card .p-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.post-card h3 { margin: 0; font-size: 1.02rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .9rem; }

/* legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--ink-2); }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.nf .big { font: 800 clamp(5rem, 18vw, 9rem)/1 var(--font-head); background: linear-gradient(180deg, var(--ocean-500), var(--navy-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb6d3; padding: 48px 0 24px; margin-top: 24px; }
.site-footer .logo { color: #fff; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } }
.foot-grid .about { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid .about { grid-column: auto; } }
.site-footer h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #9fb6d3; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.foot-news { display: flex; gap: 8px; margin-top: 14px; max-width: 380px; }
.foot-news .input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .84rem; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cbd5e1; }
.socials a:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- photos & logos (files in assets/img, assets/logos; a missing file falls back to the drawn design) ---------- */
.co-logo { position: relative; overflow: hidden; }
.co-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5%; border: 1px solid var(--line); border-radius: inherit; }
.hero, .auth-side, .page-head, .cta-band { position: relative; isolation: isolate; }
.photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero .photo-shade { background: linear-gradient(90deg, rgba(7, 21, 40, .94) 0%, rgba(7, 21, 40, .78) 45%, rgba(7, 21, 40, .3) 100%), linear-gradient(0deg, rgba(7, 21, 40, .55), transparent 40%); }
@media (max-width: 760px) { .hero .photo-shade { background: linear-gradient(180deg, rgba(7, 21, 40, .7), rgba(7, 21, 40, .92)); } }
.auth-side .photo-shade { background: linear-gradient(180deg, rgba(7, 21, 40, .35) 0%, rgba(7, 21, 40, .55) 45%, rgba(7, 21, 40, .95) 100%); }
.page-head .photo-shade { background: linear-gradient(90deg, rgba(7, 21, 40, .95), rgba(7, 21, 40, .7)); }
.cta-band .photo-shade { background: linear-gradient(90deg, rgba(11, 31, 58, .96) 30%, rgba(11, 95, 120, .7)); border-radius: inherit; }
.cta-band .photo-bg { border-radius: inherit; }
.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--navy-800), var(--ocean-600)); }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media > .icon { width: 40px; height: 40px; opacity: .9; }
.co-cover { position: relative; overflow: hidden; }
.co-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 21, 40, .45), transparent 60%); }
.post-cover { position: relative; overflow: hidden; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .post-cover img, .dept-card:hover .media > img { transform: scale(1.04); }
.dept-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none !important; transition: .15s; }
.dept-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.dept-card .media { aspect-ratio: 4 / 3; }
.dept-card .d-body { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.dept-card .dept-ic { width: 38px; height: 38px; border-radius: 10px; }
.dept-card b { display: block; font-weight: 600; font-size: .95rem; }
.dept-card .d-body span span { font-size: .82rem; color: var(--muted); }
/* two cards side by side on a phone: the photo already shows the icon, so the small one goes and the name gets the room */
@media (max-width: 560px) {
  .dept-card .d-body { padding: 12px 14px; }
  .dept-card .d-body .dept-ic { display: none; }
  .dept-card b { font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere; }
}
/* "All departments →" under a wrapped section head: line it up with the heading, not with the button padding */
@media (max-width: 640px) { .section-head > .btn-ghost { padding-left: 0; padding-right: 0; } }
.split-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }

/* helpers */
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.hide { display: none !important; }
@media (max-width: 639px) { .hide-xs { display: none !important; } }
@media (min-width: 640px) { .show-xs { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- rich text editor (Quill, admin job edit) ---------- */
.rich { min-height: 140px; }
.field-group .ql-toolbar.ql-snow { border: 1px solid var(--line-strong); border-radius: 12px 12px 0 0; background: var(--surface-2); font-family: var(--font); padding: 6px 8px; }
.field-group .ql-container.ql-snow { border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 12px 12px; background: var(--surface); font: 500 .95rem/1.6 var(--font); color: var(--ink); }
.field-group .ql-container.ql-snow:focus-within { border-color: var(--ocean-500); box-shadow: var(--ring); }
.ql-editor { min-height: 140px; padding: 12px 14px; }
.ql-editor.ql-blank::before { color: var(--faint); font-style: normal; left: 14px; }
.ql-editor h3 { font-size: 1.05rem; margin: .6em 0 .3em; }
.ql-editor h4 { font-size: .95rem; margin: .5em 0 .2em; }
.ql-snow .ql-stroke { stroke: var(--ink-2); }
.ql-snow .ql-fill { fill: var(--ink-2); }
.ql-snow .ql-picker { color: var(--ink-2); }
.ql-snow .ql-picker-options { background: var(--surface); border-color: var(--line) !important; }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--accent); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--accent); }
.ql-snow .ql-tooltip { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); z-index: 5; }
.ql-snow .ql-tooltip input[type=text] { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
/* rich text on public pages (job sections) */
.prose ol li { padding-left: 0; }
.prose ol li::before { display: none; }
.prose blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid var(--ocean-500); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.prose a { text-decoration: underline; }
