/* Theme: every page colour is a token, so Dark Mode follows the device setting automatically. */
:root {
  color-scheme: light dark;
  --brand: #0071e3;        /* Apple blue */
  --brand-dark: #0058b9;
  --brand-light: #2997ff;
  --soft: #e8f1fc;
  --cyan: #32ade6;         /* Apple system cyan: blue's neighbour, used only in gradients */
  --cyan-soft: #e5f6fc;
  --orange: #ff9500;       /* Apple system orange: highlights (featured, stars) */
  --star: #f5a623;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --line: #e3e3e8;
  --bg: #f5f5f7;
  --surface: #fff;
  --surface-2: #fafafc;
  --fill: #f0f0f3;
  --quiet: #d1d1d6;
  --field-line: #d2d2d7;
  --glass: rgba(255, 255, 255, .78);
  --hairline: rgba(0, 0, 0, .05);
  --avatar-l: 35%;
  --night: #000;
  --good: #1d8348;
  --good-bg: #e4f6ea;
  --good-ink: #14532d;
  --bad: #c0362c;
  --bad-bg: #fdecea;
  --bad-line: #f3c9c4;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4600;
  --warn-line: #f6e2b8;
  --ai-ink: #2a3a6b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .05), 0 18px 40px rgba(0, 40, 100, .14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #0a84ff;
    --brand-dark: #4ea4ff;
    --brand-light: #64b5ff;
    --soft: rgba(10, 132, 255, .16);
    --cyan: #64d2ff;
    --cyan-soft: rgba(100, 210, 255, .14);
    --orange: #ff9f0a;
    --ink: #f5f5f7;
    --ink-2: #d1d1d6;
    --muted: #98989d;
    --line: #38383a;
    --bg: #000;
    --surface: #1c1c1e;
    --surface-2: #232325;
    --fill: #2c2c2e;
    --quiet: #48484a;
    --field-line: #48484a;
    --glass: rgba(22, 22, 24, .72);
    --hairline: rgba(255, 255, 255, .08);
    --avatar-l: 72%;
    --good: #30d158;
    --good-bg: rgba(48, 209, 88, .15);
    --good-ink: #30d158;
    --bad: #ff453a;
    --bad-bg: rgba(255, 69, 58, .15);
    --bad-line: rgba(255, 69, 58, .35);
    --warn-bg: rgba(255, 159, 10, .15);
    --warn-ink: #ffb340;
    --warn-line: rgba(255, 159, 10, .3);
    --ai-ink: #c7d7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .5), 0 18px 40px rgba(0, 0, 0, .55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif; letter-spacing: -.01em; color: var(--ink); background: var(--bg); overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Type scale: SF Pro Display for headlines, semibold and tight like apple.com. */
h1, h2, h3 { margin: 0 0 .5rem; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, sans-serif; font-weight: 600; line-height: 1.1; letter-spacing: -.028em; }
h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h2, .h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
h3, .h3 { font-size: 1.12rem; margin-top: 1.25rem; letter-spacing: -.015em; }
.card h3:first-child, .card .h3:first-child { margin-top: 0; }
p { margin: 0 0 .75rem; }
section { margin: 3rem 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
/* Short pages: the footer stays at the bottom of the window. */
body:not(.admin) { display: flex; flex-direction: column; min-height: 100dvh; }
body > main.wrap { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
main.wrap { padding-top: 1.75rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.good-text { color: var(--good); }
.bad-text { color: var(--bad); }

/* Header & footer */
.top { background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 20; transition: background .3s, border-color .3s; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.logo { font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -.045em; }
.logo i { color: var(--brand); font-style: normal; }
.logo:hover { text-decoration: none; }
#nav { display: flex; align-items: center; gap: 1.4rem; }
#nav > a:not(.btn), #nav .link { color: var(--ink); font-weight: 500; font-size: .95rem; opacity: .85; }
#nav > a:not(.btn):hover, #nav .link:hover { opacity: 1; text-decoration: none; }
#nav form { margin: 0; }

/* Home: dark header that turns glassy white on scroll */
.home .top:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .top:not(.scrolled) .logo, .home .top:not(.scrolled) #nav > a:not(.btn), .home .top:not(.scrolled) #nav .link { color: #fff; }
.home .top { position: fixed; left: 0; right: 0; }
.home main.wrap { padding-top: 0; }

.foot { background: var(--night); color: #a1a1a6; margin-top: 4rem; font-size: .875rem; }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
.foot b { color: #fff; display: block; margin-bottom: .6rem; font-size: .9rem; }
.foot a { color: #a1a1a6; display: block; padding: .2rem 0; }
.foot a:hover { color: #fff; text-decoration: none; }
.foot .logo { color: #fff; display: inline-block; margin-bottom: .5rem; }
.foot .base { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.1rem 1.25rem; }
.foot .credit { float: right; }
.foot .credit a { display: inline; }

/* Buttons & forms */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 980px; padding: .7rem 1.35rem; font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-align: center; transition: background .2s, transform .15s, box-shadow .2s; }
.btn:hover { background: var(--brand-dark); text-decoration: none; box-shadow: 0 6px 18px rgba(0, 113, 227, .3); }
/* Press feedback with a little spring, like iOS controls */
.btn, .cat, .card.job, .tabbar a { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.96); transition: transform .08s; }
.cat:active, .card.job:active { transform: scale(.985); transition: transform .1s; }
.btn.ghost { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); box-shadow: none; }
.btn.light { background: var(--surface); color: var(--ink); border-color: #fff; }
.btn.light:hover { background: var(--fill); box-shadow: none; }
.btn.sm { padding: .45rem .95rem; font-size: .875rem; }
.btn.block { display: block; width: 100%; margin-top: .6rem; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; color: var(--brand); cursor: pointer; }
.link.danger { color: var(--bad); }
.icon-btn { background: none; border: 0; font-size: 1.25rem; color: var(--quiet); cursor: pointer; line-height: 1; transition: transform .2s, color .2s; }
.icon-btn.on, .icon-btn:hover { color: #ff375f; transform: scale(1.15); }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .9rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .7rem .85rem; font-family: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink); background: var(--surface); border: 1px solid var(--field-line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.btn:focus-visible { outline: 3px solid rgba(0, 113, 227, .4); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { display: inline; width: auto; margin: 0 .4rem 0 0; accent-color: var(--brand); box-shadow: none; }
.check { display: flex; align-items: center; font-weight: 500; }
.check.inline { display: inline-flex; margin: 0; }
.pad-top { padding-top: 1.7rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.form { max-width: 820px; }
.two { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.ai { margin: .5rem 0 1rem; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--brand), var(--cyan)) border-box; border: 1.5px solid transparent; }
.ai-msg { display: block; color: var(--bad); font-size: .85rem; margin: -.5rem 0 1rem; }

/* Home hero */
.hero { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 100svh; margin: 0 calc(50% - 50vw); padding: 8rem 1.25rem 4rem; color: #fff; text-align: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg::before { background: radial-gradient(circle, #0071e3, transparent 65%); top: -30vmax; left: -15vmax; }
.hero-bg::after { background: radial-gradient(circle, #32ade6, transparent 65%); bottom: -35vmax; right: -20vmax; animation-delay: -9s; opacity: .4; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
/* Cinematic 35mm film grain over the hero */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-.3'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-.3'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-.3'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 300px;
  animation: grain .9s steps(1) infinite; }
/* The grain jumps to a new spot about 11 times a second, like real film frames. */
@keyframes grain {
  0% { background-position: 0 0; } 10% { background-position: -47px 83px; } 20% { background-position: 121px -38px; } 30% { background-position: -96px -141px; }
  40% { background-position: 58px 167px; } 50% { background-position: -152px 21px; } 60% { background-position: 139px 112px; } 70% { background-position: 12px -99px; }
  80% { background-position: -71px 244px; } 90% { background-position: 203px -64px; }
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1rem; }
.rotate { display: inline-block; background: linear-gradient(90deg, #2997ff, #64d2ff 50%, #2997ff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; transition: opacity .35s, transform .35s; }
.rotate.out { opacity: 0; transform: translateY(.3em); }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #a1a1a6; max-width: 620px; margin: 0 auto; }
.hero .search { box-shadow: 0 20px 60px rgba(0, 0, 0, .35); border: 0; }
.hero .popular { color: #86868b; font-size: .9rem; }
.hero .popular a { color: #d1d1d6; display: inline-block; margin: .2rem; padding: .3rem .8rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 980px; transition: background .2s, border-color .2s; }
.hero .popular a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); text-decoration: none; }
.counters { display: flex; justify-content: center; gap: clamp(1.5rem, 6vw, 4.5rem); margin-top: 3rem; }
.counters b { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.03em; color: #fff; }
.counters span { color: #86868b; font-size: .9rem; }

/* Hiring-now ticker */
.ticker { margin: 0 calc(50% - 50vw); background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: .85rem 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: inline-flex; gap: 2.5rem; animation: scroll 40s linear infinite; padding-left: 2.5rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { color: var(--ink); font-weight: 500; }
.ticker a b { color: var(--brand); margin-right: .4rem; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #30d158; margin-right: .5rem; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: pulse 1.8s infinite; vertical-align: 1px; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }

/* Section headings */
.kicker { display: inline-block; color: var(--brand); font-weight: 600; font-size: .95rem; letter-spacing: 0; margin-bottom: .5rem; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1.5rem; }
.home main > section:not(.hero, .ai-band) { margin: 6rem 0; }
.more { font-weight: 500; white-space: nowrap; }
.more::after { content: " ›"; }

/* Category tiles */
.cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cat { display: flex; align-items: center; gap: .85rem; background: var(--surface); border-radius: var(--radius); padding: 1.1rem; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.cat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: color-mix(in srgb, hsl(var(--h) 80% 55%) 14%, transparent); flex: none; }
.cat b { display: block; font-size: .98rem; }
.cat span { color: var(--muted); font-size: .85rem; }

/* How it works */
.how { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.how div { background: var(--surface); border-radius: var(--radius); padding: 1.75rem; counter-increment: step; }
.how div::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--brand); font-weight: 700; margin-bottom: .8rem; }
.how b { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.how p { color: var(--muted); margin: 0; font-size: .95rem; }
.tabset > input { position: absolute; opacity: 0; }
.tabset .switch { display: inline-flex; background: var(--fill); border-radius: 980px; padding: 4px; margin: 1rem 0 1.5rem; }
.tabset .switch label { margin: 0; padding: .5rem 1.2rem; border-radius: 980px; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); transition: background .25s, color .25s; }
.tabset .panel { display: none; }
#tab-seek:checked ~ .switch [for=tab-seek], #tab-hire:checked ~ .switch [for=tab-hire] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
#tab-seek:checked ~ .panel.seek, #tab-hire:checked ~ .panel.hire { display: grid; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* AI band */
.ai-band { position: relative; margin: 0 calc(50% - 50vw); padding: 5rem 1.25rem; background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.ai-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 20% 0%, rgba(0, 113, 227, .45), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(50, 173, 230, .3), transparent 55%); }
.ai-band .wrap { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: center; }
.ai-band .section-title { color: #fff; }
.section-title.with-count { margin-bottom: .35rem; }
.worldwide { max-width: 460px; }
.worldwide h1 { margin-bottom: .35rem; }
.country-list { display: grid; gap: .5rem; margin: 1.5rem 0 1rem; text-align: left; }
.country { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 16px; background: var(--fill); color: inherit; text-decoration: none; transition: background .2s, box-shadow .2s; }
.country:hover { background: var(--soft); box-shadow: inset 0 0 0 2px var(--brand); text-decoration: none; }
.country .flag { font-size: 1.9rem; line-height: 1; }
.country b, .country small { display: block; }
.country small { color: var(--muted); }
.country > span:last-child { margin-left: auto; color: var(--brand); font-weight: 600; }
.result-count { margin: 0 0 1.5rem; color: var(--muted); font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.ai-band p { color: #a1a1a6; }
.ai-list { display: grid; gap: .8rem; }
.ai-list div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 1rem 1.2rem; backdrop-filter: blur(10px); transition: background .25s, transform .25s; }
.ai-list div:hover { background: rgba(255, 255, 255, .1); transform: translateX(6px); }
.ai-list b { display: block; color: #fff; }
.ai-list span { color: #a1a1a6; font-size: .9rem; }
.spark { background: linear-gradient(90deg, #2997ff, #64d2ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }

/* Search box */
.search { display: flex; gap: .5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: .5rem; max-width: 860px; margin: 2rem auto 1.25rem; box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.search label { flex: 1 1 240px; display: flex; align-items: center; gap: .6rem; margin: 0; padding: 0 .85rem; font-weight: 600; font-size: .85rem; color: var(--muted); }
.search label + label { border-left: 1px solid var(--line); }
.search label input { border: 0; margin: 0; padding: .8rem 0; box-shadow: none; }
.search label input:focus { box-shadow: none; }
.search .btn { padding: .85rem 1.8rem; }
.search.compact { margin: 0 0 1.5rem; max-width: none; }
.search.single { max-width: 640px; }
.filters { flex-basis: 100%; display: flex; gap: .5rem; flex-wrap: wrap; padding: .6rem .35rem .2rem; border-top: 1px solid var(--line); }
.filters select { width: auto; margin: 0; padding: .45rem 2rem .45rem .9rem; font-size: .875rem; border-radius: 980px; background-color: var(--bg); border-color: transparent; }
.filters .check { margin: 0 .5rem; font-size: .9rem; color: var(--ink); }

/* Page heading band (inner pages) */
.page-head { margin: -1.75rem calc(50% - 50vw) 1.75rem; padding: 2.5rem 1.25rem 1.5rem; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.page-head > * { max-width: 1140px; margin-left: auto; margin-right: auto; }

/* Cards & lists */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 1.4rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grid .card + .card, .list .card + .card, .stats .card + .card, .split .card + .card { margin-top: 0; }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.list { display: grid; gap: .9rem; }
.group-title { font-size: 1.05rem; color: var(--muted); margin: 1rem 0 0; }
.group-title:first-child { margin-top: 0; }
.split { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.row-head h1, .row-head h2 { margin: 0; }
.layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; }
.layout aside .card + .card { margin-top: 1rem; }
.layout section:first-child { margin-top: 0; }
.company-head + .layout { margin-top: 1.25rem; }
section.company-head { margin: 0; }
.sticky { position: sticky; top: 80px; }
.crumbs { font-size: .875rem; color: var(--muted); margin: 0 0 .9rem; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty h1 { color: var(--ink); }
.pager { display: flex; justify-content: center; gap: .75rem; margin: 2rem 0; }

.job { padding: 1.3rem 1.4rem; transition: transform .25s, box-shadow .25s; position: relative; }
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.job-head { display: flex; gap: .85rem; align-items: flex-start; }
.job-head > div { flex: 1; min-width: 0; }
.job-head form { margin: 0; }
.job h3 { margin: 0 0 .1rem; font-size: 1.1rem; }
.job h3 a { color: var(--ink); }
.job h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job .co, .job form { position: relative; z-index: 1; }
.job p { margin: 0 0 .25rem; }
.co { font-size: .95rem; }
.co a { color: var(--ink); font-weight: 500; }
.snippet { color: var(--muted); font-size: .9rem; margin-top: .35rem !important; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0; }
.tag { background: var(--fill); color: var(--ink-2); border-radius: 980px; padding: .25rem .7rem; font-size: .8rem; font-weight: 600; }
.tag.pay { background: var(--soft); color: var(--brand-dark); }
.tag.soft { background: var(--soft); color: var(--brand-dark); }
.tag.good { background: var(--good-bg); color: var(--good); }
.tag.new { background: linear-gradient(120deg, var(--brand), var(--cyan)); color: #fff; }
.prose { color: var(--ink-2); }
.prose ul { padding-left: 1.25rem; margin: 0 0 .9rem; }
.prose li { margin-bottom: .3rem; }
.match b { color: var(--good); font-size: 1.2rem; }

/* Stars: --r is the rating out of 5 */
.stars { display: inline-block; font-size: .92rem; letter-spacing: 1px; line-height: 1; vertical-align: -1px; }
.stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--star) calc(var(--r) / 5 * 100%), var(--quiet) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.rate legend { width: 100%; }
.rate input { position: absolute; opacity: 0; }
.rate label { font-size: 2rem; color: var(--quiet); cursor: pointer; margin: 0; line-height: 1; transition: transform .15s, color .15s; }
.rate label:hover { transform: scale(1.15); }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--star); }
.rate input:focus-visible + label { outline: 2px solid var(--brand); }

/* Avatars get a colour from the name (--h) */
.avatar { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, hsl(var(--h, 211) 75% 50%) 15%, var(--surface)); color: hsl(var(--h, 211) 65% var(--avatar-l)); font-weight: 800; font-size: 1.2rem; flex: none; }
.avatar.lg { width: 68px; height: 68px; font-size: 1.7rem; border-radius: 20px; }
.company-head { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.company-head > div { flex: 1; }
.company-head h1, .company-head p { margin: 0 0 .2rem; }
.company-mini, .person { display: flex; flex-direction: column; gap: .35rem; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.company-mini:hover, .person:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); text-decoration: none; }
.rating { white-space: nowrap; }
.review .stars { font-size: 1rem; }
.dist { display: grid; grid-template-columns: 2rem 1fr 2.5rem; gap: .5rem; align-items: center; font-size: .9rem; }
.meter { display: block; height: 8px; background: var(--fill); border-radius: 9px; overflow: hidden; margin: .4rem 0; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light)); border-radius: 9px; }
.dist .meter i { background: var(--star); }

/* Dashboards */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1rem 0 1.75rem; }
.stats .card { display: flex; flex-direction: column; color: var(--ink); }
.stats b { font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-2); }
td.actions { display: table-cell; text-align: right; white-space: nowrap; }
td.actions > * { display: inline-block; margin-left: .75rem; }
.status { display: inline-block; border-radius: 980px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700; background: var(--fill); color: var(--ink-2); }
.status.reviewed { background: var(--soft); color: var(--brand-dark); }
.status.interview, .status.offer { background: var(--warn-bg); color: var(--warn-ink); }
.status.hired { background: var(--good-bg); color: var(--good); }
.status.rejected { background: var(--bad-bg); color: var(--bad); }
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs a { padding: .45rem 1rem; color: var(--muted); font-weight: 600; font-size: .875rem; border-radius: 980px; background: var(--surface); box-shadow: var(--shadow); }
.tabs a.on { color: #fff; background: var(--ink); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.tabs a.on:hover { color: #fff; }
.applicant { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.applicant h3 { margin: 0; }
.applicant p { margin: .15rem 0; }
.status-form { margin: 0; }
.status-form select { margin: 0; width: auto; border-radius: 980px; }
.score { --c: calc(var(--s) * 1%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(var(--surface) 58%, transparent 60%), conic-gradient(var(--brand) var(--c), var(--fill) 0); flex: none; }
.score b { font-size: .95rem; line-height: 1; }
.score span { font-size: .65rem; color: var(--muted); }
.score.wide { margin: 1rem auto .5rem; width: 88px; height: 88px; }
.ai-note { background: linear-gradient(90deg, var(--soft), var(--cyan-soft)); border-radius: 12px; padding: .55rem .85rem; font-size: .9rem; color: var(--ai-ink); }
.steps { list-style: none; padding: 0; margin: .75rem 0; }
.steps li { padding: .35rem 0 .35rem 1.7rem; position: relative; color: var(--muted); }
.steps li::before { content: ""; position: absolute; left: 0; top: .6rem; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--quiet); }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before { background: var(--brand); border-color: var(--brand); }
/* Messages: conversation list | chat | job or candidate, like Messages on a Mac */
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr) 280px; gap: 1rem; height: calc(100dvh - 136px); margin: 1.25rem 0; }
.messages-page .foot { display: none; }
.inbox > * { margin: 0; }
.convos, .chat, .chat-side { min-height: 0; border-radius: 20px; background: var(--surface); }
.convos { overflow-y: auto; padding: .75rem; }
.convos-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .5rem .9rem; }
.convos-head h1 { margin: 0; font-size: 1.5rem; }
.convos-head form { margin: 0; }
.convos-head select { width: auto; margin: 0; padding: .4rem .7rem; font-size: .85rem; }
.convos-empty { padding: 1rem .5rem; }
.convo { display: flex; gap: .75rem; padding: .75rem; border-radius: 14px; color: var(--ink); transition: background .15s; }
.convo:hover { background: var(--surface-2); text-decoration: none; }
.convo.on { background: var(--soft); }
.convo-text { display: grid; min-width: 0; flex: 1; gap: .1rem; }
.convo-top { display: flex; justify-content: space-between; gap: .5rem; }
.convo-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convo-top time { flex: none; color: var(--muted); font-size: .78rem; }
.convo-job, .convo-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.convo.unread .convo-last { color: var(--ink); font-weight: 600; }
.convo.unread .convo-top b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: .4rem; border-radius: 50%; background: var(--brand); vertical-align: 2px; }
.chat { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--line); }
.chat-head div { display: grid; min-width: 0; flex: 1; }
.chat-head div b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .back { display: none; font-size: 2rem; line-height: 1; color: var(--brand); }
.chat-head .back:hover { text-decoration: none; }
.chat-scroll { flex: 1; display: flex; flex-direction: column; gap: .35rem; overflow-y: auto; padding: 1.25rem; }
.chat-empty { margin: auto; text-align: center; max-width: 320px; }
.day-sep { align-self: center; margin: .9rem 0 .4rem; color: var(--muted); font-size: .75rem; font-weight: 600; }
.bubble { align-self: flex-start; max-width: min(75%, 560px); }
.bubble p { margin: 0; padding: .6rem .95rem; border-radius: 20px 20px 20px 6px; background: var(--fill); overflow-wrap: anywhere; }
.bubble span { display: block; margin: .2rem .6rem .4rem; color: var(--muted); font-size: .72rem; }
.bubble.mine { align-self: flex-end; text-align: right; }
.bubble.mine p { border-radius: 20px 20px 6px 20px; background: var(--brand); color: #fff; text-align: left; }
.bubble.mine p a { color: #fff; text-decoration: underline; }
.composer { display: flex; align-items: flex-end; gap: .6rem; margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; margin: 0; min-height: 44px; max-height: 180px; padding: .65rem 1rem; border-radius: 22px; resize: none; field-sizing: content; }
.composer .btn { flex: none; }
.chat-side { overflow-y: auto; padding: 1.5rem 1.25rem; }
.chat-side h2 { margin-top: .75rem; }
.chat-side form { margin: 1rem 0; }
.chat-side .score.wide { margin: 1rem 0; }
.open-chat { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.open-chat:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.open-chat > span { display: grid; flex: 1; }
.open-chat i { font-style: normal; font-size: 1.5rem; color: var(--muted); }
.open-chat .icon { width: 28px; height: 28px; color: var(--brand); }
.nav-msg { position: relative; display: inline-flex; align-items: center; }
.nav-msg b, .tabbar a b { position: absolute; top: -.45rem; right: -.65rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 980px; background: var(--bad); color: #fff; font-size: .68rem; line-height: 1.15rem; text-align: center; }
.tabbar a { position: relative; }
.tabbar a b { top: 0; right: calc(50% - 1.4rem); }
.visibility { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.visibility legend { grid-column: 1 / -1; }
.option { display: flex; align-items: flex-start; gap: .25rem; font-weight: 400; border: 1.5px solid var(--line); border-radius: 14px; padding: .9rem; margin: 0; cursor: pointer; transition: border-color .2s, background .2s; }
.option:has(input:checked) { border-color: var(--brand); background: var(--soft); }
.option input { margin-top: .3rem; }
.admin-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-row:last-child { border-bottom: 0; }
.admin-row form, .admin .actions form { display: inline; margin: 0 0 0 .75rem; }
.list > .admin-row.card { padding: 1rem 1.25rem; border: 0; }

/* Admin dashboard: full-screen app with a dark sidebar */
body.admin { background: var(--bg); }
.admin-shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.admin-shell .admin-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.5rem 1rem; color: #a1a1aa; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 60% at 0% 0%, rgba(0, 113, 227, .28), transparent 60%), radial-gradient(90% 50% at 100% 100%, rgba(50, 173, 230, .16), transparent 60%), var(--night); }
.admin-shell .admin-logo { display: block; padding: 0 .75rem 1.75rem; color: #fff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
.admin-shell .admin-logo i { color: var(--brand-light); font-style: normal; }
.admin-shell .admin-logo span { margin-left: .35rem; padding: .15rem .5rem; border-radius: 6px; background: rgba(255, 255, 255, .1); font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: .25em; }
.admin-shell .admin-logo:hover { text-decoration: none; }
.admin-shell .admin-side nav { display: grid; gap: .2rem; }
.admin-shell .admin-side nav a, .admin-shell .admin-me > a { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: 12px; color: #a1a1aa; font-weight: 500; font-size: .93rem; transition: background .2s, color .2s; }
.admin-shell .admin-side nav a:hover, .admin-shell .admin-me > a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.admin-shell .admin-side nav a.on { background: var(--brand); color: #fff; }
.admin-shell .admin-side nav .count { margin-left: auto; }
.admin-shell .icon { width: 18px; height: 18px; }
.admin-shell .admin-me { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.admin-shell .admin-user { display: flex; align-items: center; gap: .6rem; padding: .9rem .75rem .5rem; }
.admin-shell .admin-user div { min-width: 0; }
.admin-shell .admin-user b { display: block; color: #fff; font-size: .9rem; }
.admin-shell .admin-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.admin-shell .admin-me form { padding: 0 .75rem; }
.admin-shell .admin-me .link { color: #a1a1aa; font-size: .85rem; }
.admin-shell .count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 980px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 700; }
.admin-shell .admin-main { min-width: 0; padding: 0 clamp(1rem, 3vw, 2.5rem) 3rem; }
.admin-shell .admin-top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 0 calc(-1 * clamp(1rem, 3vw, 2.5rem)) 1.75rem; padding: 1.25rem clamp(1rem, 3vw, 2.5rem);
  background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); }
.admin-shell .admin-top h1 { margin: 0; font-size: 1.85rem; letter-spacing: -.035em; }
.admin-shell .admin-greet { margin: 0 0 .1rem; color: var(--muted); font-size: .9rem; }
.admin-shell .admin-find { position: relative; display: flex; align-items: center; flex: 0 1 380px; }
.admin-shell .admin-find .icon { position: absolute; left: .9rem; color: var(--muted); }
.admin-shell .admin-find input { margin: 0; padding: .7rem 2.5rem .7rem 2.6rem; border: 1px solid transparent; border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04); }
.admin-shell .admin-find kbd { position: absolute; right: .75rem; padding: .05rem .45rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: .75rem ui-monospace, monospace; }
.admin-shell .admin-body { animation: fadeUp .45s ease; }
.admin-shell .admin-body .card, .admin-shell .panel { border: 1px solid var(--hairline); border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 32px rgba(15, 23, 42, .05); }
.admin-shell .admin-body section { margin: 0; }
.admin-shell .panel { padding: 1.4rem 1.5rem; }
.admin-shell .panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.admin-shell .panel-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.admin-shell .admin-grid { display: grid; gap: 1.25rem; grid-template-columns: 2.2fr 1fr; margin-bottom: 1.25rem; }
.admin-shell .admin-grid.three { grid-template-columns: repeat(3, 1fr); }

/* KPI cards */
.admin-shell .kpis { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, 1fr); margin-bottom: 1.25rem; }
.admin-shell .kpi { position: relative; display: flex; flex-direction: column; padding: 1.2rem 1.25rem 0; overflow: hidden; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 12px 32px rgba(15, 23, 42, .05); animation: fadeUp .5s ease backwards; animation-delay: calc(var(--i) * 60ms); transition: transform .25s, box-shadow .25s; }
.admin-shell .kpi:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(15, 23, 42, .1); }
.admin-shell .kpi-head { display: flex; align-items: center; gap: .55rem; white-space: nowrap; color: var(--muted); font-size: .85rem; font-weight: 600; }
.admin-shell .kpi-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; background: var(--tile, var(--brand)); }
.admin-shell .kpi:nth-child(2) { --tile: #30b0c7; }
.admin-shell .kpi:nth-child(3) { --tile: #ff9500; }
.admin-shell .kpi:nth-child(4) { --tile: #34c759; }
.admin-shell .kpi:nth-child(5) { --tile: #ffb340; }
.admin-shell .kpi:nth-child(6) { --tile: #5ac8fa; }
.admin-shell .kpi-icon .icon { width: 15px; height: 15px; }
.admin-shell .kpi > b { margin: .7rem 0 .2rem; font-size: 2.1rem; line-height: 1; letter-spacing: -.04em; }
.admin-shell .delta { font-size: .78rem; font-weight: 700; color: var(--muted); }
.admin-shell .delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.admin-shell .delta small { font-weight: 500; color: var(--muted); }
.admin-shell .spark { display: block; width: calc(100% + 2.5rem); height: 44px; margin: .5rem -1.25rem 0; overflow: visible; }
.admin-shell .spark path { fill: none; stroke: var(--brand); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.admin-shell .spark .area { fill: rgba(0, 113, 227, .1); stroke: none; }

/* Activity chart */
.admin-shell .legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: -.25rem 0 1rem; font-size: .85rem; color: var(--muted); }
.admin-shell .legend span::before, .admin-shell .chart-tip span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .4rem; border-radius: 3px; background: var(--c); }
.admin-shell .legend b { margin-left: .2rem; color: var(--ink); }
.admin-shell .chart-box { position: relative; height: 240px; cursor: crosshair; touch-action: pan-y; }
.admin-shell .chart-box svg { width: 100%; height: 100%; overflow: visible; }
.admin-shell .chart-box .gridline { stroke: var(--fill); stroke-dasharray: 4 6; }
.admin-shell .chart-box .line { fill: none; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2000; animation: draw 1.6s ease backwards; }
.admin-shell .chart-box .fill { animation: fadeIn 1s ease .6s backwards; }
.admin-shell .chart-box .guide { stroke: rgba(29, 29, 31, .25); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .15s; }
.admin-shell .chart-box.hover .guide { opacity: 1; }
@keyframes draw { from { stroke-dashoffset: 2000; } }
@keyframes fadeIn { from { opacity: 0; } }
.admin-shell .chart-tip { position: absolute; top: 0; width: 170px; padding: .65rem .8rem; border-radius: 12px; background: rgba(11, 13, 20, .92); color: #fff; font-size: .8rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); pointer-events: none; }
.admin-shell .chart-tip > b { display: block; margin-bottom: .3rem; }
.admin-shell .chart-tip span { display: flex; align-items: center; color: #d1d1d6; }
.admin-shell .chart-tip span b { margin-left: auto; color: #fff; }

/* Health ring */
.admin-shell .ring { --p: 0; position: relative; display: grid; place-items: center; align-content: center; width: 168px; aspect-ratio: 1; margin: .5rem auto 1.25rem; border-radius: 50%;
  background: conic-gradient(var(--brand), var(--cyan) calc(var(--p) * 1%), var(--fill) 0); animation: fadeIn .8s ease; }
.admin-shell .ring::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--surface); }
.admin-shell .ring b, .admin-shell .ring span { position: relative; }
.admin-shell .ring b { font-size: 2.2rem; letter-spacing: -.04em; line-height: 1; }
.admin-shell .ring span { color: var(--muted); font-size: .8rem; }
.admin-shell .mini { margin: 0; }
.admin-shell .mini div { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.admin-shell .mini dt { color: var(--muted); }
.admin-shell .mini dd { margin: 0; font-weight: 700; }

/* Attention, feed, quick controls */
.admin-shell .attention { display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; margin-bottom: .55rem; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; font-size: .9rem; transition: transform .2s, background .2s; }
.admin-shell .attention:hover { text-decoration: none; background: var(--warn-bg); transform: translateX(3px); }
.admin-shell .attention i { margin-left: auto; font-style: normal; }
.admin-shell .all-clear { display: flex; align-items: center; gap: .9rem; padding: .5rem 0; }
.admin-shell .all-clear > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--good-bg); color: var(--good); font-size: 1.2rem; font-weight: 800; }
.admin-shell .all-clear p { margin: 0; }
.admin-shell .live-dot { font-size: .78rem; font-weight: 700; color: var(--good); }
.admin-shell .live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .4rem; border-radius: 50%; background: #30d158; vertical-align: 1px; animation: pulse 1.8s infinite; }
.admin-shell .feed { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow: auto; }
.admin-shell .feed li { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; font-size: .88rem; line-height: 1.4; animation: fadeUp .4s ease backwards; }
.admin-shell .feed time { margin-left: auto; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.admin-shell .feed-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--soft); color: var(--brand); }
.admin-shell .feed-icon .icon { width: 14px; height: 14px; }
.admin-shell .feed-icon.jobs { background: color-mix(in srgb, var(--cyan) 16%, transparent); color: var(--cyan); }
.admin-shell .feed-icon.overview { background: var(--good-bg); color: var(--good); }
.admin-shell .feed-icon.reviews { background: var(--warn-bg); color: var(--warn-ink); }
.admin-shell .feed-icon.reports { background: var(--bad-bg); color: var(--bad); }
.admin-shell .control { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .92rem; }
.admin-shell .control:last-child { border-bottom: 0; }
.admin-shell .control:hover { text-decoration: none; }
.admin-shell .control i { font-style: normal; color: var(--muted); transition: transform .2s; }
.admin-shell .control:hover i { transform: translateX(3px); color: var(--brand); }
.admin-shell .toggle { position: relative; flex: none; width: 48px; height: 28px; padding: 0; border: 0; border-radius: 980px; background: var(--quiet); cursor: pointer; transition: background .25s; }
.admin-shell .toggle i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.admin-shell .toggle.on { background: #30d158; }
.admin-shell .toggle.on i { transform: translateX(20px); }

/* Admin lists: search bar, tables, actions */
.admin-shell .admin-search { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.admin-shell .admin-search input { flex: 1 1 260px; width: auto; margin: 0; border-color: transparent; border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04); }
.admin-shell .admin-search select { width: auto; margin: 0; border-color: transparent; border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04); }
.admin-shell .admin-body .table-wrap { overflow-x: auto; }
.admin-shell .admin-body table { font-size: .9rem; }
.admin-shell .admin-body th { padding-top: 1rem; background: var(--surface-2); }
.admin-shell .admin-body tbody tr { transition: background .15s; }
.admin-shell .admin-body tbody tr:hover { background: var(--surface-2); }
.admin-shell .admin-body tbody tr:last-child td { border-bottom: 0; }
.admin-shell .admin-body td.actions form { margin-left: .35rem; }
.admin-shell .admin-body .actions .link { padding: .35rem .7rem; border-radius: 980px; background: var(--fill); color: var(--ink); font-size: .8rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.admin-shell .admin-body .actions .link:hover { background: var(--soft); color: var(--brand); }
.admin-shell .admin-body .actions .link.danger:hover { background: var(--bad-bg); color: var(--bad); }
.admin-shell .admin-body .grid, .admin-shell .admin-body .split, .admin-shell .admin-body .list { gap: 1.25rem; }
.admin-shell .admin-body .grid + .split, .admin-shell .admin-body section + section { margin-top: 1.5rem; }
.admin-shell .hit:hover { text-decoration: none; background: var(--surface-2); }

.avatar.sm { width: 30px; height: 30px; font-size: .85rem; border-radius: 9px; vertical-align: middle; margin-right: .35rem; }
.log { margin: 0 0 .45rem; padding: .45rem .6rem; border-radius: 8px; background: var(--bg); font: .8rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.settings { max-width: 640px; }
.settings .check { margin-bottom: 1.25rem; }
.tag.featured { background: var(--orange); color: #fff; }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.verified { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; margin-left: .3rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 800; vertical-align: .1em; }
.site-notice { margin: 0; padding: .6rem 1.25rem; text-align: center; background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500; }
.report { margin-top: 1.5rem; font-size: .85rem; }
.report summary { display: inline; cursor: pointer; color: var(--muted); }
.report summary:hover { color: var(--bad); }
.report form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; }
.report select { width: auto; margin: 0; font-size: .85rem; padding: .45rem .7rem; }
.review .report { margin-top: .75rem; }

/* Auth: dark animated story panel beside a roomy form */
.auth { display: grid; grid-template-columns: 1fr 1.05fr; max-width: 980px; margin: 2.5rem auto 3.5rem; background: var(--surface); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .1); overflow: hidden; animation: fadeUp .5s ease; }
.auth-side { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem; color: #fff; min-height: 560px; overflow: hidden; }
.auth-side .logo { color: #fff; font-size: 1.35rem; }
.auth-trust { margin: 0; color: #86868b; font-size: .82rem; }
.auth-side .hero-bg::before { width: 70vmax; height: 70vmax; }
.auth-side::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 220px; }
.auth-copy { display: none; animation: fadeUp .5s ease; }
.auth-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 .6rem; }
.auth-copy p { color: #a1a1a6; margin: 0 0 1.75rem; font-size: 1.05rem; }
.auth-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.auth-copy li { position: relative; padding-left: 2rem; color: #e5e5ea; animation: fadeUp .5s ease backwards; }
.auth-copy li:nth-child(2) { animation-delay: .1s; } .auth-copy li:nth-child(3) { animation-delay: .2s; }
.auth-copy li::before { content: "✓"; position: absolute; left: 0; top: .05rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; font-size: .75rem; font-weight: 700; background: linear-gradient(135deg, #2997ff, #64d2ff); }
.auth-form { padding: 3rem clamp(1.5rem, 4vw, 3.25rem); }
.auth-form h1 { font-size: 2rem; letter-spacing: -.03em; margin: 0 0 .35rem; }
.auth-sub { margin: 0 0 1.75rem; }
.auth-form label { margin-bottom: 1.15rem; }
.auth-form input:not([type=radio]) { padding: .85rem 1rem; margin-top: .4rem; background: var(--surface-2); }
.auth-form input:not([type=radio]):focus { background: var(--surface); }
.auth-form .btn.lg { margin-top: .6rem; padding: .95rem; font-size: 1.05rem; background: linear-gradient(120deg, var(--brand), var(--cyan)); box-shadow: 0 10px 24px rgba(0, 113, 227, .28); transition: transform .2s, box-shadow .2s; }
.auth-form .btn.lg:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 113, 227, .36); }
.auth-form .btn.lg span { display: inline-block; transition: transform .2s; }
.auth-form .btn.lg:hover span { transform: translateX(4px); }
.auth-form .forgot { display: block; margin: -.4rem 0 .9rem; text-align: right; }
.auth-switch { margin-top: 2rem; }
.auth-switch > span { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.auth-switch > span::before, .auth-switch > span::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-switch .btn { padding: .85rem; font-weight: 600; transition: background .2s, border-color .2s, transform .2s; }
.auth-switch .btn:hover { transform: translateY(-1px); text-decoration: none; }
.auth .for-seeker, .auth .for-employer, .auth .for-login { display: none; }
.auth[data-mode=seeker] .for-seeker, .auth[data-mode=employer] .for-employer, .auth[data-mode=login] .for-login { display: block; }
.auth h1 .for-seeker, .auth h1 .for-employer { display: none; }
.auth[data-mode=seeker] h1 .for-seeker, .auth[data-mode=employer] h1 .for-employer { display: inline; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: .3rem; margin-bottom: 1.5rem; background: var(--fill); border-radius: 14px; }
.seg::before { content: ""; position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: calc(50% - .3rem); border-radius: 11px; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .1); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.seg:has(input[value=employer]:checked)::before { transform: translateX(100%); }
.seg label { position: relative; z-index: 1; margin: 0; padding: .7rem .5rem; text-align: center; font-weight: 600; font-size: .92rem; color: var(--muted); cursor: pointer; transition: color .2s; }
.seg label:has(input:checked) { color: var(--ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); border-radius: 11px; }
.company-field:not([hidden]) { animation: fadeUp .35s ease; }
.pass { position: relative; display: block; }
.pass input { padding-right: 4.5rem !important; }
.pass-btn { position: absolute; right: .5rem; top: 0; bottom: 0; height: 2rem; margin: auto 0; padding: 0 .7rem; border: 0; border-radius: 8px; background: transparent; color: var(--brand); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.pass-btn:hover { background: var(--soft); }
@media (max-width: 760px) {
  .auth { grid-template-columns: 1fr; margin: 1rem auto 2rem; border-radius: 22px; }
  .auth-side { min-height: 0; padding: 2rem 1.5rem; }
  .auth-copy ul, .auth-side .logo, .auth-trust { display: none; }
  .auth-copy p { margin: 0; }
  .auth-form { padding: 2rem 1.5rem; }
}

/* Pricing page */
.pricing-head { max-width: 760px; margin: 3rem auto 2.5rem; text-align: center; }
.pricing-head .lead { font-size: 1.15rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1rem; }
.plans .plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem; border-radius: 24px; background: var(--surface); }
.plans .plan h2 { margin: 0 0 .75rem; font-size: 1.3rem; }
.plans .plan.best { box-shadow: 0 0 0 2px var(--brand), var(--shadow-hover); }
.plans .plan .btn { margin-top: auto; }
.plan-badge { position: absolute; top: -.8rem; left: 1.75rem; padding: .25rem .75rem; border-radius: 980px; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 600; }
.plans .price { margin: 0 0 .25rem; font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.plans .price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ticks { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.faq { max-width: 760px; margin: 5rem auto; }
.faq details { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* Employer billing */
.billing-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; margin: 1rem 0 1.5rem; }
.billing-top > section { margin: 0; }
.balance-card, .plan-card { display: flex; flex-direction: column; gap: .35rem; }
.balance-card .balance { font-size: clamp(2.4rem, 5vw, 3.25rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.05; }
.plan-card .plan-state { font-size: 2rem; font-weight: 600; letter-spacing: -.035em; }
.plan-card .plan-state small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-card .ticks { margin: .75rem 0 1.25rem; }
.topup { margin-top: 1.25rem; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: .9rem; }
.amounts label { margin: 0; }
.amounts input { position: absolute; opacity: 0; pointer-events: none; }
.amounts span { display: block; padding: .8rem .5rem; border-radius: 14px; background: var(--fill); text-align: center; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.amounts input:checked + span { background: var(--soft); color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.amounts input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.talent-pay > summary { list-style: none; }
.talent-pay > summary::-webkit-details-marker { display: none; }
.talent-pay[open] > summary { display: none; }
.pay-options { display: grid; gap: .5rem; }
.pay-options > p { margin: 0; }
.pay-options label { margin: 0; }
.pay-options [name=pay] { position: absolute; opacity: 0; pointer-events: none; }
.pay-options [name=pay] + span { display: grid; gap: .15rem; padding: .8rem 1rem; border-radius: 14px; background: var(--fill); cursor: pointer; transition: background .2s, box-shadow .2s; }
.pay-options [name=pay] + span small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.pay-options [name=pay]:checked + span { background: var(--soft); box-shadow: inset 0 0 0 2px var(--brand); }
.pay-options [name=pay]:checked + span b { color: var(--brand); }
.pay-options [name=pay]:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-options .renew-check { display: flex; gap: .5rem; align-items: center; font-size: .9rem; margin: .25rem 0; }
.pay-options .renew-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.pay-options:has([value=card]:checked) .renew-check { display: none; }
.apply-on { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1.5rem 0 0; padding: 0; border: 0; }
.apply-on legend { font-weight: 600; margin-bottom: .5rem; padding: 0; }
.apply-on > label { margin: 0; }
.apply-on [name=apply_on] { position: absolute; opacity: 0; pointer-events: none; }
.apply-on [name=apply_on] + span { display: grid; gap: .15rem; height: 100%; box-sizing: border-box; padding: .8rem 1rem; border-radius: 14px; background: var(--fill); cursor: pointer; transition: background .2s, box-shadow .2s; }
.apply-on [name=apply_on] + span small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.apply-on [name=apply_on]:checked + span { background: var(--soft); box-shadow: inset 0 0 0 2px var(--brand); }
.apply-on [name=apply_on]:checked + span b { color: var(--brand); }
.apply-on [name=apply_on]:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.apply-on .apply-url { grid-column: 1 / -1; margin-top: .5rem; }
.apply-on:not(:has([value=site]:checked)) .apply-url { display: none; }
.apply-on .apply-url input[aria-invalid] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Sponsor a job (on the job form) */
.sponsor { margin: 1.5rem 0 .5rem; padding: 1.25rem; border: 0; border-radius: 18px; background: linear-gradient(120deg, var(--soft), var(--cyan-soft)); }
.sponsor-switch { display: flex; gap: .85rem; align-items: flex-start; margin: 0; cursor: pointer; }
.sponsor-switch input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--brand); flex: none; }
.sponsor-switch b, .sponsor-switch .small { display: block; }
.sponsor-budget { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: end; margin-top: 1rem; }
.sponsor-budget label { margin: 0; }
.sponsor-budget p { margin: 0 0 .7rem; }
.sponsor:not(:has(input[name=sponsor]:checked)) :is(.sponsor-budget, .budget-err) { display: none; }
.budget-err { margin: .5rem 0 0; font-weight: 500; }
.sponsor-budget input[aria-invalid] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.tag.sponsored { background: var(--soft); color: var(--brand-dark); }

/* Talent Search preview for employers without it */
.locked { position: relative; }
.locked .grid { filter: blur(3px); opacity: .55; pointer-events: none; }
.ghost-card { min-height: 170px; gap: .6rem; }
.ghost-card .avatar, .ghost-card b, .ghost-card span { display: block; border-radius: 8px; background: var(--fill); }
.ghost-card .avatar { width: 44px; height: 44px; border-radius: 50%; }
.ghost-card b { width: 60%; height: 14px; }
.ghost-card span { width: 85%; height: 10px; }
.unlock { position: absolute; top: 50%; left: 50%; width: min(92%, 480px); transform: translate(-50%, -50%); text-align: center; box-shadow: var(--shadow-hover); }
.unlock h2 { margin-top: 0; }
.unlock .more { margin-left: 1rem; }

/* Admin money cards */
.admin-shell .money-kpis { grid-template-columns: repeat(4, 1fr); }
.admin-shell .kpi > b.small-num { font-size: 1.35rem; line-height: 1.3; letter-spacing: -.02em; }
.admin-shell .kpi .delta { margin-bottom: 1.1rem; }

/* Phone tab bar (shown under 860px instead of the top menu) */
.tabbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; grid-auto-flow: column; grid-auto-columns: 1fr; padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--hairline); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .35rem 0; color: var(--muted); font-size: .68rem; font-weight: 500; letter-spacing: 0; transition: color .2s, transform .15s; }
.tabbar a:hover { text-decoration: none; }
.tabbar a:active { transform: scale(.92); }
.tabbar a.on { color: var(--brand); }
.tabbar .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.account-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1rem; }
.account-links form { margin: 0 0 0 auto; }

/* Phone sheets: filters, the review popup and the sticky Apply bar slide up from the bottom, like iOS */
.filter-btn, .apply-bar, .filters:not(.open) :is(.sheet-title, .sheet-done) { display: none; }
@keyframes sheetUp { from { transform: translateY(100%); } }

/* City dropdown */
.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; list-style: none; margin: .35rem 0 0; padding: .35rem; background: var(--surface); border-radius: 14px; box-shadow: 0 12px 36px rgba(0, 0, 0, .14); max-height: 300px; overflow: auto; text-align: left; }
.suggest li { padding: .6rem .75rem; border-radius: 10px; cursor: pointer; font-weight: 400; font-size: .95rem; color: var(--ink); }
.suggest li::before { content: "📍"; margin-right: .5rem; font-size: .85rem; }
.suggest li:hover, .suggest li.on { background: var(--soft); }
.pay-row { display: grid; gap: 0 1rem; grid-template-columns: 1.2fr 1fr 1fr .8fr; }

/* Suggestions & AI helpers */
.tips { margin: 0 0 1.25rem; border-left: 4px solid var(--star); }
.tips.strong { border-left-color: #30d158; }
.tips.weak { border-left-color: #ff6b5f; }
.tips-head { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.tips-head > div { flex: 1; min-width: 220px; }
.tips-head b { display: block; font-size: 1.05rem; }
.tips-head .meter { flex: 1; min-width: 160px; max-width: 320px; height: 10px; }
.tips.strong .meter i { background: #30d158; }
.tips.good .meter i { background: var(--star); }
.tips.weak .meter i { background: #ff6b5f; }
.tips ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.tips li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .55rem .8rem; background: var(--bg); border-radius: 12px; font-size: .92rem; }
.tips li a { white-space: nowrap; font-weight: 600; }
.tag.tip { display: inline-block; margin-top: .35rem; background: var(--warn-bg); color: var(--warn-ink); }
.ai-bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; margin: 0 0 1.25rem; padding: 1rem 1.1rem; border-radius: 16px; background: linear-gradient(120deg, var(--soft), var(--cyan-soft)); }
.ai-bar > div { flex: 1; min-width: 240px; }
.ai-bar b { display: block; }
.ai-bar .ai { margin: 0; }
.btn.ai:not(.ghost) { background: linear-gradient(120deg, var(--brand), var(--cyan)); border: 0; color: #fff; }
.btn.ai:not(.ghost):hover { box-shadow: 0 6px 20px rgba(0, 113, 227, .35); }
.upload-box { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1.25rem; padding: 1.1rem; border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, transparent); border-radius: 16px; background: var(--surface-2); }
.upload-box > div { flex: 1; min-width: 240px; }
.upload-box input[type=file] { background: var(--surface); }
.upload-box p { margin: .25rem 0 .5rem; }
.ai-filled { animation: aiGlow 1.6s ease; }
@keyframes aiGlow { 0% { box-shadow: 0 0 0 4px rgba(50, 173, 230, .45); border-color: var(--cyan); } 100% { box-shadow: none; } }

/* Resume reading, AI suggestions, review popup, account */
.ai-status { margin: .6rem 0 0; padding: .6rem .85rem; border-radius: 12px; font-size: .92rem; background: var(--surface); }
.ai-status.working { background: linear-gradient(90deg, var(--soft), var(--cyan-soft), var(--soft)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; color: var(--ai-ink); }
.ai-status.done { background: var(--good-bg); color: var(--good-ink); }
.ai-status.err { background: var(--bad-bg); color: var(--bad); }
@keyframes shimmer { to { background-position: -200% 0; } }
.ai-msg.ok { color: var(--good); }
.ai-suggestions { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--warn-bg); border: 1px solid var(--warn-line); animation: fadeUp .4s ease; }
.ai-suggestions ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.ai-suggestions li { margin-bottom: .3rem; font-size: .93rem; }
dialog.review { border: 0; border-radius: 22px; padding: 1.75rem; max-width: 520px; width: calc(100% - 2rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog.review::backdrop { background: rgba(10, 12, 20, .45); backdrop-filter: blur(4px); }
dialog.review ul { padding-left: 1.2rem; margin: 1rem 0 1.5rem; }
dialog.review li { margin-bottom: .55rem; }
dialog.review[open] { animation: fadeUp .25s ease; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: #9b2c23; box-shadow: none; }
.danger-zone { border: 1px solid var(--bad-line); }

/* Email confirmation */
/* Single centred card: check your inbox, forgot and reset password */
.solo { max-width: 480px; margin: 3rem auto; padding: 2.5rem 2rem; }
.solo h1 { font-size: 1.9rem; }
.solo form { margin: 1.25rem 0 .5rem; }
.solo label { text-align: left; }
.verify .mail-icon { font-size: 2.6rem; width: 84px; height: 84px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(135deg, var(--soft), var(--cyan-soft)); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Messages */
.flash { margin: 1rem 0; padding: .8rem 1.1rem; border-radius: 14px; background: var(--good-bg); color: var(--good-ink); font-weight: 500; animation: fadeUp .4s ease; }
.flash.err { background: var(--bad-bg); color: var(--bad); }
.flash.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Smooth crossfade between pages (browsers that support cross-page View Transitions); the bars stay put. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.top { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }

/* Scroll-driven motion: "How it works" steps and category tiles rise in one after another as they scroll into view. */
@supports (animation-timeline: view()) {
  .how div, .cat { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% cover 28%; }
  .how div:nth-child(2), .cat:nth-child(3n+2) { animation-range: entry 12% cover 34%; }
  .how div:nth-child(3), .cat:nth-child(3n) { animation-range: entry 19% cover 40%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  *:not(.toast), *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media (max-width: 860px) {
  .layout, .split, .ai-band .wrap, .how, .plans, .billing-top { grid-template-columns: 1fr; }
  .admin-shell .money-kpis { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .sticky { position: static; }
  #nav { display: none; }
  .tabbar { display: grid; }
  /* Messages on phones: the list, or one conversation full screen with a back arrow. */
  .inbox { display: block; height: calc(100dvh - 121px - env(safe-area-inset-bottom)); margin: 0 calc(50% - 50vw); }
  .inbox .convos, .inbox .chat { height: 100%; border-radius: 0; }
  .inbox.picked .convos, .inbox:not(.picked) .chat, .chat-side { display: none; }
  .chat-head .back { display: block; }
  .messages-page main { padding: 0; }
  /* With the menu in the tab bar, the top bar is just a centred title, like an iOS app. */
  .bar { justify-content: center; min-height: 52px; }
  .top .logo { font-size: 1.3rem; }
  body:not(.admin) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .hero { min-height: calc(100svh - 64px - env(safe-area-inset-bottom)); }
  .apply-bar { position: fixed; left: .75rem; right: .75rem; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem .6rem .6rem 1.1rem; border-radius: 20px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--hairline); box-shadow: var(--shadow); color: var(--ink); font-size: .85rem; line-height: 1.3; animation: sheetUp .45s cubic-bezier(.2, .9, .3, 1); }
  .apply-bar:hover { text-decoration: none; }
  .apply-bar span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .apply-bar .btn { flex: none; padding: .65rem 1.5rem; }
  .job-page main { padding-bottom: 5rem; }
}
@media (max-width: 1400px) { .admin-shell .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) {
  .inbox { grid-template-columns: 300px minmax(0, 1fr); }
  .inbox .chat-side { display: none; }
  .admin-shell .admin-grid, .admin-shell .admin-grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .admin-shell .kpis { grid-template-columns: 1fr 1fr; gap: .75rem; } .admin-shell .kpi > b { font-size: 1.7rem; } }
@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-shell .admin-side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; gap: .5rem; padding: .6rem .75rem; overflow-x: auto; }
  .admin-shell .admin-logo { padding: 0 .5rem 0 .25rem; font-size: 1.1rem; white-space: nowrap; }
  .admin-shell .admin-logo span, .admin-shell .admin-side nav span, .admin-shell .admin-user, .admin-shell .admin-me form, .admin-shell .admin-me > a span { display: none; }
  .admin-shell .admin-side nav { display: flex; gap: .15rem; }
  .admin-shell .admin-me { display: flex; margin: 0 0 0 auto; padding: 0; border: 0; }
  .admin-shell .admin-top { position: static; }
}
@media (max-width: 600px) {
  .search .filter-btn { display: block; width: 100%; }
  .amounts { grid-template-columns: 1fr 1fr; }
  .apply-on { grid-template-columns: 1fr; }
  .sponsor-budget { grid-template-columns: 1fr; }
  .search .filters { display: none; }
  .search .filters.open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; gap: .75rem; max-height: 85vh; overflow: auto; margin: 0; padding: .9rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    border: 0; border-radius: 24px 24px 0 0; background: var(--surface); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); animation: sheetUp .4s cubic-bezier(.2, .9, .3, 1); }
  .search .filters.open::before { content: ""; justify-self: center; width: 38px; height: 5px; border-radius: 3px; background: var(--quiet); }
  .search .filters.open select { width: 100%; padding: .8rem 1rem; font-size: 1rem; }
  .filters.open .sheet-title { display: block; font-size: 1.25rem; }
  .filters.open .sheet-done { display: block; margin-top: .5rem; }
  dialog.review { width: 100%; max-width: none; margin: auto 0 0; padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  dialog.review[open] { animation: sheetUp .4s cubic-bezier(.2, .9, .3, 1); }
  h1 { font-size: 1.6rem; }
  .hero { padding: 6rem 1rem 2.5rem; }
  .two, .visibility { grid-template-columns: 1fr; }
  .pay-row { grid-template-columns: 1fr 1fr; }
  .search label + label { border-left: 0; border-top: 1px solid var(--line); }
  .search .btn { width: 100%; }
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .cat { flex-direction: column; align-items: flex-start; padding: .9rem; }
  .foot .cols { grid-template-columns: 1fr; }
}

/* "AI is writing": text boxes turn to shimmering liquid glass while the AI works */
.ai-busy :is(input:not([type=file], [type=radio], [type=checkbox], [type=hidden]), textarea) {
  color: transparent; text-shadow: 0 0 9px rgba(29, 29, 31, .6);
  background: linear-gradient(110deg, rgba(255, 255, 255, .5) 15%, rgba(214, 232, 255, .95) 32%, rgba(220, 244, 253, .95) 48%, rgba(255, 255, 255, .5) 66%) 0 0 / 250% 100%, var(--surface-2);
  border-color: rgba(50, 173, 230, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -10px 24px rgba(0, 113, 227, .06), 0 0 0 4px rgba(0, 113, 227, .08), 0 10px 28px rgba(50, 173, 230, .16);
  filter: saturate(1.15); pointer-events: none;
  animation: liquid 1.8s ease-in-out infinite var(--wave, 0s), breathe 1.8s ease-in-out infinite var(--wave, 0s);
}
.ai-busy ::placeholder { color: transparent; text-shadow: 0 0 9px rgba(110, 110, 115, .55); }
@keyframes liquid { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes breathe { 50% { box-shadow: inset 0 1px 0 #fff, inset 0 -10px 24px rgba(50, 173, 230, .12), 0 0 0 6px rgba(50, 173, 230, .14), 0 14px 34px rgba(0, 113, 227, .18); } }
@media (prefers-color-scheme: dark) {
  .ai-busy :is(input:not([type=file], [type=radio], [type=checkbox], [type=hidden]), textarea) {
    text-shadow: 0 0 9px rgba(245, 245, 247, .55);
    background: linear-gradient(110deg, rgba(255, 255, 255, .02) 15%, rgba(10, 132, 255, .22) 32%, rgba(100, 210, 255, .2) 48%, rgba(255, 255, 255, .02) 66%) 0 0 / 250% 100%, var(--surface-2);
  }
}

/* One-off messages ("You are signed out.") float at the bottom, then drift away like smoke */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; max-width: min(92vw, 440px); margin: 0; padding: .8rem 1.25rem; border-radius: 999px; background: rgba(29, 29, 31, .88); color: #fff; font-weight: 500; text-align: center; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform: translateX(-50%); pointer-events: none;
  animation: toastIn .45s cubic-bezier(.2, .8, .2, 1), smoke 1.1s ease-in 2s forwards; }
.toast.err { background: rgba(193, 39, 45, .92); animation-delay: 0s, 5s; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } }
@keyframes smoke {
  40% { filter: blur(3px); opacity: .7; letter-spacing: .04em; }
  to { filter: blur(18px); opacity: 0; letter-spacing: .3em; transform: translate(-50%, -70px) scale(1.18) skewX(-6deg); visibility: hidden; }
}
/* Reduced motion: no drifting, the message simply disappears after 2 seconds. */
@media (prefers-reduced-motion: reduce) { .toast { animation: smoke .01s linear 2s forwards; } }
