/* TalentAtlas design system — "cartographic"
   Fog background, map-ink navy, cobalt actions, survey-teal matches, pin-yellow highlights.
   Bricolage Grotesque for display, Geist for UI. Two radii: 12px controls, 28px hero. */
:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --surface-2: #E9EDF3;
  --surface-3: #DDE3EC;
  --ink: #141B2D;
  --ink-2: #3C4660;
  --muted: #6B7590;
  --line: #DCE1EA;
  --line-strong: #C3CAD8;
  --brand: #2747E8;
  --brand-ink: #FFFFFF;
  --brand-soft: #E3E9FF;
  --teal: #0F9D8A;
  --teal-soft: #DDF3EF;
  --pin: #FFC93C;
  --pin-soft: #FFF3D1;
  --pin-ink: #6B4D00;
  --bad: #D93A3A;
  --bad-soft: #FDE4E4;
  --warn: #B86E00;
  --warn-soft: #FFF0D6;
  --ok: var(--teal);
  --ok-soft: var(--teal-soft);
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --r: 12px;
  --r-sm: 8px;
  --r-xl: 28px;
  --shadow: 0 1px 0 rgba(20, 27, 45, .04), 0 1px 3px rgba(20, 27, 45, .06);
  --shadow-lg: 0 18px 48px -18px rgba(20, 27, 45, .28);
  --font: "Geist", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Geist", "Noto Sans Arabic", "Noto Sans SC", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  --scene-ground: #E8EDFB; --scene-contour: #BFCBF6; --scene-b1: #2747E8; --scene-b2: #1B34B8; --scene-window: #FFC93C; --scene-pin: #FFC93C;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020; --surface: #121A2E; --surface-2: #1A2440; --surface-3: #24304F; --ink: #EEF2FA; --ink-2: #C3CBDE;
    --muted: #8A94AE; --line: #222D49; --line-strong: #33405F; --brand: #7D95FF; --brand-ink: #0B1020; --brand-soft: #1D2A5C;
    --teal: #34C7B1; --teal-soft: #10332F; --pin-soft: #3A3010; --pin-ink: #FFD875; --bad-soft: #3A1717; --warn-soft: #3A2A0E;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3); --shadow-lg: 0 18px 48px -18px rgba(0, 0, 0, .7);
    --scene-ground: #111A33; --scene-contour: #24335E; --scene-b1: #2747E8; --scene-b2: #0B1020; --scene-window: #FFC93C; --scene-pin: #FFC93C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1020; --surface: #121A2E; --surface-2: #1A2440; --surface-3: #24304F; --ink: #EEF2FA; --ink-2: #C3CBDE;
  --muted: #8A94AE; --line: #222D49; --line-strong: #33405F; --brand: #7D95FF; --brand-ink: #0B1020; --brand-soft: #1D2A5C;
  --teal: #34C7B1; --teal-soft: #10332F; --pin-soft: #3A3010; --pin-ink: #FFD875; --bad-soft: #3A1717; --warn-soft: #3A2A0E;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3); --shadow-lg: 0 18px 48px -18px rgba(0, 0, 0, .7);
  --scene-ground: #111A33; --scene-contour: #24335E; --scene-b1: #2747E8; --scene-b2: #0B1020; --scene-window: #FFC93C; --scene-pin: #FFC93C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 15px; font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .4em; font-optical-sizing: auto; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -.025em; }
h3 { font-size: 1.08rem; letter-spacing: -.01em; line-height: 1.25; }
:lang(ar) :is(h1, h2, h3), :lang(zh) :is(h1, h2, h3), :lang(hi) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tnum { font-variant-numeric: tabular-nums; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; z-index: 99; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label { font-size: .8rem; color: var(--muted); font-weight: 500; }
bdi { unicode-bidi: isolate; }
mark { background: var(--pin); color: #141B2D; border-radius: 3px; padding: 0 2px; }

/* ------------------------------------------------------------------ header */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: 2px; margin-inline-start: 10px; }
.nav a { text-decoration: none; padding: 7px 11px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .92rem; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); text-decoration: none; }
.icon-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.badge-dot { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--pin); color: #141B2D; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.loc-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; font-size: .86rem; color: var(--ink-2); max-width: 210px; }
.loc-chip:hover { border-color: var(--line-strong); }
.loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-chip svg { width: 16px; height: 16px; flex: none; color: var(--brand); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.dropdown.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: 8px; text-decoration: none; background: none; border: 0; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; text-align: start; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }
.dropdown-menu .on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-toggle { display: none; }
.acct-btn { display: flex; align-items: center; gap: 8px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

/* ------------------------------------------------------------------ avatars */
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; object-fit: cover; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: calc(var(--s) * .36); letter-spacing: -.02em; overflow: hidden; vertical-align: middle; }
.avatar.xs { --s: 26px; } .avatar.sm { --s: 32px; } .avatar.md { --s: 48px; } .avatar.lg { --s: 76px; } .avatar.xl { --s: 128px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); margin-inline-start: -8px; }
.avatar-stack .avatar:first-child { margin-inline-start: 0; }

/* ------------------------------------------------------------------ buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 86%, #000); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--pin); color: #141B2D; }
.btn-accent:hover { background: color-mix(in srgb, var(--pin) 88%, #000); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface-2); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { height: 32px; padding: 0 11px; font-size: .84rem; border-radius: 8px; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; }
.btn[disabled], .btn.done { opacity: .6; pointer-events: none; }
label { font-weight: 600; font-size: .86rem; display: block; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .94rem; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field { margin-bottom: 16px; position: relative; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: .92rem; cursor: pointer; margin: 0; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }

/* ------------------------------------------------------------------ surfaces / chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.card + .card { margin-top: 14px; }
.card h3:first-child { margin-top: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: .78rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.chip.brand { background: var(--brand-soft); color: var(--brand); }
.chip.accent, .chip.pin { background: var(--pin-soft); color: var(--pin-ink); }
.chip.ok { background: var(--teal-soft); color: var(--teal); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.outline { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.chip svg { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.logo-tile { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; flex: none; font-family: var(--display); letter-spacing: -.02em; }
.logo-tile.lg { width: 72px; height: 72px; font-size: 1.4rem; border-radius: 18px; }
.verified { color: var(--brand); display: inline-flex; }
.verified svg { width: 15px; height: 15px; }
.dotsep > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); margin: 0 8px; vertical-align: middle; }

/* ------------------------------------------------------------------ hero slider */
.hero-wrap { padding: 18px 0 0; }
.slider { position: relative; border-radius: var(--r-xl); overflow: hidden; height: clamp(440px, 64vh, 580px); background: var(--scene-ground); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slide-art { position: absolute; inset: 0; }
.slide-art svg { width: 100%; height: 100%; display: block; }
.slide.on .slide-art svg > path { animation: drift 14s ease-out both; }
@keyframes drift { from { transform: translateY(14px); } to { transform: none; } }
.slide-copy { position: relative; z-index: 2; padding: clamp(28px, 5vw, 56px); max-width: 640px; }
.slide-kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--ink-2); margin-bottom: 10px; }
.slide-kicker .here { background: var(--pin); color: #141B2D; padding: 3px 9px; border-radius: 999px; font-size: .8rem; }
.slide-city { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 9vw, 7.2rem); line-height: .86; letter-spacing: -.055em; margin: 0 0 18px; color: var(--ink); }
:lang(ar) .slide-city, :lang(zh) .slide-city, :lang(hi) .slide-city { letter-spacing: -.02em; line-height: 1; }
.slide-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0 0 22px; padding: 0; list-style: none; }
.slide-facts li { display: grid; }
.slide-facts b { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.slide-facts span { font-size: .84rem; color: var(--ink-2); }
.slider-bar { position: absolute; z-index: 3; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 0 clamp(16px, 4vw, 40px) 52px; }
[dir=rtl] .slide-art svg { transform: scaleX(-1); }
.slider-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.slider-tabs button { position: relative; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(8px); border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .84rem; font-weight: 600; color: var(--ink-2); cursor: pointer; overflow: hidden; white-space: nowrap; }
.slider-tabs button.on { color: var(--ink); background: var(--surface); }
.slider-tabs button i { position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); }
.slider-tabs button.on i { animation: progress var(--dur, 7s) linear forwards; }
.slider.paused .slider-tabs button.on i { animation-play-state: paused; }
@keyframes progress { to { width: 100%; } }
.slider-arrows { display: flex; gap: 6px; }
.slider-arrows button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.slider-arrows svg { width: 18px; height: 18px; }
[dir=rtl] .slider-arrows svg { transform: scaleX(-1); }

.hero-search { position: relative; z-index: 5; margin: -34px auto 0; width: min(940px, 100% - 32px); }
.searchbar { display: grid; grid-template-columns: 1.4fr 1fr auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; }
.searchbar .seg { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.searchbar .seg + .seg { border-inline-start: 1px solid var(--line); }
.searchbar .seg > svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.searchbar input { border: 0; background: transparent; height: 50px; width: 100%; font: inherit; font-size: 1rem; color: var(--ink); outline: none; }
.searchbar .btn { height: 50px; border-radius: 11px; padding: 0 24px; }
.locate-btn { border: 0; background: var(--brand-soft); color: var(--brand); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; flex: none; }
.locate-btn svg { width: 17px; height: 17px; }
.locate-btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.suggest { position: absolute; top: calc(100% + 10px); inset-inline: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 40; display: none; }
.suggest.open { display: block; }
.suggest button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); text-align: start; }
.suggest button:hover, .suggest button.hl { background: var(--surface-2); }
.suggest .kind { font-size: .75rem; color: var(--muted); }
.trending { margin: 16px auto 0; width: min(940px, 100% - 32px); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); }
.trending .chip { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.trending .chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
.stats-line { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); font-size: .9rem; margin-top: 10px; }
.stats-line b { color: var(--ink); font-variant-numeric: tabular-nums; }

.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; color: var(--brand); text-decoration: none; font-size: .9rem; }
.section-head a:hover { text-decoration: underline; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--surface); text-decoration: none; }
.cat:hover { background: var(--surface-2); }
.cat b { font-weight: 600; font-size: .94rem; }
.cat span { font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat .ico { display: none; }
.co-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.co-strip a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); text-decoration: none; }
.co-strip a:hover { background: var(--surface); }
.co-strip .logo-tile { width: 40px; height: 40px; }
.band { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 34px; border-radius: var(--r-xl); background: var(--ink); color: var(--bg); }
.band h2 { color: var(--bg); }
.band p { margin: 0; opacity: .78; max-width: 60ch; }

/* ------------------------------------------------------------------ job rows */
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 10px; }
.list { display: grid; gap: 10px; }
.job-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; transition: border-color .12s, box-shadow .12s; }
.job-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.job-card.featured { box-shadow: inset 3px 0 0 var(--pin); }
[dir=rtl] .job-card.featured { box-shadow: inset -3px 0 0 var(--pin); }
.job-card .body { min-width: 0; }
.job-card h3 { font-family: var(--font); font-size: 1rem; font-weight: 650; margin: 0 0 2px; letter-spacing: -.01em; }
.job-card h3 a { text-decoration: none; }
.job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.job-card .company { font-size: .88rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 10px; font-size: .84rem; color: var(--ink-2); }
.job-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-card .meta svg { width: 14px; height: 14px; color: var(--muted); }
.job-card .salary { font-weight: 650; color: var(--ink); }
.job-card .flags { display: inline-flex; gap: 6px; margin-inline-start: 6px; vertical-align: 1px; }
.job-card .actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.job-card .when { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.save-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.save-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.save-btn svg { width: 16px; height: 16px; }
.save-btn.on { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.save-btn.on svg { fill: currentColor; }
.save-btn.wide { display: inline-flex; width: auto; flex: 1; height: 40px; gap: 8px; font: inherit; font-weight: 600; font-size: .92rem; color: var(--ink); }
.save-btn.wide.on { color: var(--brand); }
.compare-check { position: relative; z-index: 2; font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 5px; cursor: pointer; margin: 0; font-weight: 500; }
.compare-check input { width: 14px; height: 14px; accent-color: var(--brand); }
.match-ring { --p: 0; width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  background: radial-gradient(closest-side, var(--surface) 80%, transparent 82% 100%), conic-gradient(var(--c, var(--teal)) calc(var(--p) * 1%), var(--surface-2) 0); }
.match-ring.lg { width: 96px; height: 96px; font-size: 1.3rem; font-family: var(--display); }
.match-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; background: var(--teal-soft); color: var(--teal); }
.match-pill.mid { background: var(--warn-soft); color: var(--warn); }
.match-pill.low { background: var(--surface-2); color: var(--muted); }

/* ------------------------------------------------------------------ search page */
.search-top { padding: 20px 0 4px; }
.search-top .searchbar { box-shadow: var(--shadow); }
.layout { display: grid; grid-template-columns: 256px 1fr; gap: 28px; padding: 18px 0 56px; }
.filters { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding-inline-end: 6px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 14px 0; }
.filter-group h4 { margin: 0 0 8px; font-size: .84rem; font-weight: 650; color: var(--ink); }
.facet { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; text-decoration: none; font-size: .9rem; color: var(--ink-2); }
.facet:hover { color: var(--ink); }
.facet .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: inline-grid; place-items: center; margin-inline-end: 9px; vertical-align: -3px; }
.facet.on { color: var(--ink); font-weight: 600; }
.facet.on .box { background: var(--brand); border-color: var(--brand); }
.facet.on .box::after { content: ""; width: 8px; height: 5px; border: 2px solid var(--brand-ink); border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.facet .n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--brand); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar h1 { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.seg-control { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; }
.seg-control a, .seg-control button { padding: 5px 12px; border-radius: 8px; text-decoration: none; font-size: .85rem; color: var(--ink-2); font-weight: 500; border: 0; background: none; cursor: pointer; font-family: inherit; }
.seg-control .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
#map { height: 640px; border-radius: var(--r); border: 1px solid var(--line); z-index: 1; }
.insight-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 14px; }
.insight-strip div { padding: 12px 16px; }
.insight-strip div + div { border-inline-start: 1px solid var(--line); }
.insight-strip b { display: block; font-family: var(--display); font-size: 1.25rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.insight-strip span { font-size: .8rem; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; padding: 0 10px; }
.pager .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.empty { text-align: center; padding: 56px 20px; }
.empty .art { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.8rem; }
.notice { padding: 11px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--ink); font-size: .9rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice.warn { background: var(--pin-soft); }
.notice.ok { background: var(--teal-soft); }

/* ------------------------------------------------------------------ job detail */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 24px 0 64px; }
.detail-head { display: flex; gap: 18px; align-items: flex-start; }
.detail-head h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 22px 0; overflow: hidden; }
.kv div { padding: 12px 14px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.kv span { display: block; font-size: .78rem; color: var(--muted); }
.kv b { font-size: .95rem; font-weight: 650; }
.prose { color: var(--ink-2); max-width: 72ch; }
.prose h2 { font-size: 1.25rem; color: var(--ink); margin-top: 1.6em; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin: 6px 0; }
.sticky-side { position: sticky; top: 80px; align-self: start; display: grid; gap: 14px; }
.sticky-side .card + .card { margin-top: 0; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.bar.teal i { background: var(--teal); }
.bar-row { display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; align-items: center; font-size: .85rem; margin: 8px 0; }
.bar-row b { text-align: end; font-variant-numeric: tabular-nums; }
.range-viz { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--brand-soft), var(--brand)); margin: 30px 0 8px; }
.range-viz .pin { position: absolute; top: -8px; width: 4px; height: 24px; background: var(--ink); border-radius: 3px; }
.range-viz .pin::after { content: attr(data-label); position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .75rem; font-weight: 700; }
.range-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, 100% - 24px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(11, 16, 32, .55); backdrop-filter: blur(3px); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
dialog .dlg-body { padding: 20px; max-height: 70vh; overflow: auto; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 20px; text-align: center; color: var(--muted); cursor: pointer; background: var(--surface); transition: border-color .12s, background .12s; }
.drop:hover { border-color: var(--brand); color: var(--ink); }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop b { color: var(--ink); }

/* ------------------------------------------------------------------ app shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - 62px); }
.sidebar { position: sticky; top: 62px; height: calc(100vh - 62px); border-inline-end: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; overflow: auto; }
.sidebar .who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.sidebar .who b { display: block; font-size: .9rem; line-height: 1.2; }
.sidebar .who > div { min-width: 0; }
.sidebar .who > div span { font-size: .78rem; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.sidebar a svg { width: 18px; height: 18px; color: var(--muted); }
.sidebar a:hover { background: var(--surface-2); color: var(--ink); }
.sidebar a.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.sidebar a.on svg { color: var(--brand); }
.sidebar .n { margin-inline-start: auto; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sidebar .group { font-size: .76rem; color: var(--muted); padding: 14px 10px 4px; font-weight: 600; }
.shell-main { min-width: 0; padding: 0 clamp(16px, 3vw, 36px) 56px; }
.shell-main .container { width: 100%; }

/* ------------------------------------------------------------------ dashboards */
.page-head { padding: 26px 0 14px; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-head p { margin: 4px 0 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 600; font-size: .92rem; color: var(--muted); padding: 11px 12px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.on { display: block; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-size: .8rem; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table-wrap { overflow-x: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi + .kpi { border-inline-start: 1px solid var(--line); }
.kpi span { font-size: .82rem; color: var(--muted); }
.kpi b { display: block; font-family: var(--display); font-size: 2rem; letter-spacing: -.04em; line-height: 1.1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.progress-steps { display: flex; gap: 3px; }
.progress-steps i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); }
.progress-steps i.on { background: var(--brand); }
.progress-steps.rejected i.on { background: var(--bad); }
.stage-chip.applied { background: var(--surface-2); }
.stage-chip.screening { background: var(--brand-soft); color: var(--brand); }
.stage-chip.interview { background: var(--pin-soft); color: var(--pin-ink); }
.stage-chip.offer, .stage-chip.hired { background: var(--teal-soft); color: var(--teal); }
.stage-chip.rejected { background: var(--bad-soft); color: var(--bad); }
.status-chip.sourced { background: var(--surface-2); }
.status-chip.contacted { background: var(--brand-soft); color: var(--brand); }
.status-chip.interested { background: var(--teal-soft); color: var(--teal); }
.status-chip.not_interested { background: var(--bad-soft); color: var(--bad); }
.status-chip.hired { background: var(--pin-soft); color: var(--pin-ink); }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 20px; }
.kcol { background: var(--surface-2); border-radius: var(--r); padding: 8px; min-height: 440px; transition: background .12s, box-shadow .12s; }
.kcol.over { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.kcol h4 { display: flex; justify-content: space-between; margin: 6px 6px 10px; font-size: .86rem; color: var(--ink); font-weight: 650; }
.kcol h4 b { color: var(--muted); font-weight: 600; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px; margin-bottom: 8px; cursor: grab; }
.kcard:hover { border-color: var(--line-strong); }
.kcard.dragging { opacity: .45; }
.kcard .name { font-weight: 650; font-size: .92rem; text-decoration: none; }
.stars { color: #F2A900; letter-spacing: 1px; font-size: .9rem; white-space: nowrap; }
.stars button { background: none; border: 0; padding: 0 1px; color: inherit; cursor: pointer; font-size: 1rem; line-height: 1; }
.stars .off { color: var(--line-strong); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: .88rem; }
[dir=rtl] .timeline li { padding: 0 22px 16px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline li::after { content: ""; position: absolute; inset-inline-start: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.pool::before { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* ------------------------------------------------------------------ candidate hub */
.hub-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.hub-filters .input { height: 36px; width: auto; min-width: 140px; font-size: .88rem; }
.hub-filters .search { flex: 1; min-width: 200px; }
.cand-cell { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.cand-cell a { font-weight: 650; text-decoration: none; }
.cand-cell a:hover { text-decoration: underline; }
.cand-cell .sub { font-size: .8rem; color: var(--muted); }
.stage-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.profile-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 26px 0 18px; }
.profile-hero h1 { margin: 0 0 4px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 20px; }
.fact-grid span { display: block; font-size: .78rem; color: var(--muted); }
.fact-grid b { font-weight: 600; font-size: .92rem; }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.work-list li:first-child { border-top: 0; }
.work-list .when { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.match-row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.match-row:first-child { border-top: 0; }
.match-row .why { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.match-row .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); min-height: 42px; }
.tag-input input { border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); flex: 1; min-width: 80px; padding: 4px; }
.tag-input .chip button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; font-size: .9rem; line-height: 1; }

/* ------------------------------------------------------------------ résumé reader */
.reader { display: grid; grid-template-columns: 1fr 340px; gap: 22px; padding: 20px 0 56px; }
.reader-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.reader-doc .bar-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.reader-doc iframe { width: 100%; height: 78vh; border: 0; display: block; background: #fff; }
.reader-text { padding: 40px clamp(20px, 5vw, 64px); font-size: .95rem; line-height: 1.7; white-space: pre-wrap; max-width: 78ch; margin: 0 auto; font-family: var(--font); color: var(--ink); }
.reader-text mark { background: color-mix(in srgb, var(--pin) 70%, transparent); }
.reader-side { display: grid; gap: 14px; align-content: start; position: sticky; top: 80px; }
.reader-side .card + .card { margin-top: 0; }
.conf { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-inline-end: 6px; }
.conf.no { background: var(--line-strong); }

/* résumé import review */
.import-row { display: grid; grid-template-columns: 28px 160px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.import-row:first-of-type { border-top: 0; }
.import-row > label:first-child { margin: 10px 0 0; }
.import-row .lbl { font-weight: 600; font-size: .9rem; padding-top: 9px; }
.import-row .lbl small { display: block; font-weight: 400; color: var(--muted); }

/* photo uploader */
.photo-up { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.photo-up .avatar { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.photo-up .acts { display: grid; gap: 8px; justify-items: start; }

/* ------------------------------------------------------------------ gallery */
.gallery { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 7; background: var(--surface-2); }
.gallery .g-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.gallery .g-slide.on { opacity: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-nav { position: absolute; inset-inline: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.gallery .g-nav button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .55); cursor: pointer; }
.gallery .g-nav button.on { background: #fff; width: 22px; border-radius: 4px; }
.gallery .g-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #141B2D; cursor: pointer; display: grid; place-items: center; }
.gallery .g-arrow.prev { inset-inline-start: 12px; } .gallery .g-arrow.next { inset-inline-end: 12px; }
.gallery .g-arrow svg { width: 18px; height: 18px; }
[dir=rtl] .gallery .g-arrow svg { transform: scaleX(-1); }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.thumb-grid figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.thumb-grid img { width: 100%; height: 100%; object-fit: cover; }
.thumb-grid form { position: absolute; top: 6px; inset-inline-end: 6px; }

/* ------------------------------------------------------------------ company */
.cover { height: 170px; border-radius: 0 0 var(--r-xl) var(--r-xl); overflow: hidden; }
.cover svg { width: 100%; height: 100%; display: block; }
.company-head { display: flex; gap: 20px; align-items: flex-end; padding: 0 10px 22px; flex-wrap: wrap; position: relative; }
.company-head .logo-tile { border: 4px solid var(--bg); margin-top: -40px; align-self: flex-start; }
.company-head h1 { margin-top: 14px; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }

/* ------------------------------------------------------------------ toasts / misc */
.toasts { position: fixed; bottom: 20px; inset-inline-end: 20px; display: grid; gap: 10px; z-index: 100; max-width: 380px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; gap: 10px; align-items: center; animation: slidein .2s ease-out; }
.toast.error { background: var(--bad); color: #fff; }
.toast.success { background: var(--teal); color: #fff; }
.toast button { margin-inline-start: auto; background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.1rem; opacity: .7; }
@keyframes slidein { from { transform: translateY(10px); opacity: 0; } }
.lang-banner { background: var(--ink); color: var(--bg); font-size: .9rem; }
.lang-banner .container { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 0; flex-wrap: wrap; }
.lang-banner a { color: var(--pin); font-weight: 700; }
.compare-tray { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 8px 8px 8px 16px; border-radius: 14px; display: none; gap: 12px; align-items: center; z-index: 90; box-shadow: var(--shadow-lg); }
.compare-tray.show { display: flex; }
.compare-table td, .compare-table th { vertical-align: top; }
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: .9rem; }
footer .cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 24px; }
footer h5 { color: var(--ink); margin: 0 0 10px; font-size: .9rem; }
footer a { display: block; text-decoration: none; padding: 3px 0; }
footer a:hover { color: var(--ink); }
.auth-wrap { min-height: calc(100vh - 62px); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--scene-ground); }
.auth-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art .copy { position: relative; z-index: 1; padding: 56px; max-width: 520px; }
.auth-art h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.auth-form { display: grid; place-items: center; padding: 40px 20px; }
.auth-form form { width: min(400px, 100%); }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.role-pick label { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; font-weight: 600; text-align: center; margin: 0; background: var(--surface); }
.role-pick input { display: none; }
.role-pick input:checked + label { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.completeness { display: flex; align-items: center; gap: 14px; }
.leaflet-popup-content { font-family: var(--font); }
.leaflet-popup-content a { color: var(--brand); font-weight: 700; }

/* ------------------------------------------------------------------ responsive */
.filters-toggle { display: none !important; }
@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: 20px; max-height: none; transform: translateX(-100%); transition: transform .2s; }
  [dir=rtl] .filters { transform: translateX(100%); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex !important; }
  .detail, .reader { grid-template-columns: 1fr; }
  .sticky-side, .reader-side { position: static; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { border-inline-start: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .sidebar .who, .sidebar .group { display: none; }
  .sidebar a { white-space: nowrap; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 62px; inset-inline: 0; background: var(--surface); flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: grid; }
  .loc-chip span { display: none; }
  .loc-chip { padding: 0 9px; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar .seg + .seg { border-inline-start: 0; border-top: 1px solid var(--line); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .insight-strip { grid-template-columns: 1fr 1fr; }
  .insight-strip div:nth-child(3) { border-inline-start: 0; }
  .insight-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: none !important; }
  .slider { border-radius: 20px; height: 540px; }
  .slide-copy { padding: 24px 20px; }
  .slide-art { top: auto; height: 46%; }
  .slide-art .pin { display: none; }
  .slider-arrows { display: none; }
  .slide-facts { gap: 4px 18px; }
  .slide-facts b { font-size: 1.3rem; }
  .band { grid-template-columns: 1fr; padding: 24px; }
  .profile-hero { grid-template-columns: auto 1fr; }
  .profile-hero > :last-child { grid-column: 1 / -1; }
  .import-row { grid-template-columns: 28px 1fr; }
  .import-row > :last-child { grid-column: 2; }
  .work-list li { grid-template-columns: 1fr; gap: 2px; }
  .match-row { grid-template-columns: auto 1fr; }
  .match-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .job-card { grid-template-columns: auto 1fr; }
  .job-card .actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media print { .topbar, footer, .sticky-side, .toasts, .sidebar, .reader-side { display: none; } .detail, .reader, .shell { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ------------------------------------------------------------------ edition chrome */
.admin-banner { background: var(--brand-soft); color: var(--ink); font-size: .88rem; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.admin-banner.warn { background: var(--pin-soft); color: var(--pin-ink); }
.admin-banner a { font-weight: 650; margin-inline-start: 6px; }
.gate { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 16px; background: radial-gradient(900px 500px at 80% -10%, var(--brand-soft), transparent 60%), var(--bg); }
.gate-card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.gate-card h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.gate-card .lead { color: var(--ink-2); margin: 0 0 20px; }
.code-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; min-height: 120px; word-break: break-all; }
.idbox { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; }
.idbox code { flex: 1; overflow-wrap: anywhere; }
.or-rule { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .84rem; margin: 18px 0; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.plan-card.current { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.plan-card.featured { border-color: var(--ink); }
.plan-card .price { font-family: var(--display); font-size: 2.4rem; letter-spacing: -.04em; line-height: 1; }
.plan-card .price small { font-family: var(--font); font-size: .9rem; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.plan-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; color: var(--ink-2); }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.plan-card li svg { width: 16px; height: 16px; color: var(--teal); flex: none; margin-top: 3px; }
.plan-card li.off { color: var(--muted); }
.plan-card li.off svg { color: var(--line-strong); }
.plan-card .btn { margin-top: auto; }
.plan-tag { position: absolute; top: -11px; inset-inline-start: 18px; background: var(--ink); color: var(--bg); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.status-line { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 18px; }
.status-line div span { display: block; font-size: .8rem; color: var(--muted); }
.status-line div b { font-size: 1rem; }
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
