/* ==========================================================================
   JobHunt Network — design system
   Tokens first, then base, components, and page sections.
   ========================================================================== */

:root {
  --font-display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* light */
  --bg: #f5f5f0;
  --bg-2: #ecece5;
  --surface: #ffffff;
  --surface-2: #f4f4ef;
  --surface-3: #ebebe4;
  --line: rgba(12, 12, 14, .08);
  --line-2: rgba(12, 12, 14, .14);
  --text: #0c0c0e;
  --text-2: #50505a;
  --text-3: #86868f;
  --accent: #c6ff34;
  --accent-ink: #0c0c0e;
  --accent-text: #4a7300;
  --accent-soft: rgba(132, 196, 0, .14);
  --violet: #6b55f0;
  --violet-soft: rgba(107, 85, 240, .1);
  --green: #12a36b;
  --green-soft: rgba(18, 163, 107, .12);
  --amber: #c27400;
  --amber-soft: rgba(230, 150, 20, .14);
  --red: #e0453a;
  --red-soft: rgba(224, 69, 58, .1);
  --shadow-sm: 0 1px 2px rgba(12, 12, 14, .05);
  --shadow: 0 1px 2px rgba(12, 12, 14, .04), 0 8px 24px -8px rgba(12, 12, 14, .12);
  --shadow-lg: 0 2px 4px rgba(12, 12, 14, .04), 0 24px 64px -16px rgba(12, 12, 14, .22);
  --grid-line: rgba(12, 12, 14, .045);
  --glow: rgba(160, 230, 0, .22);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #121216;
  --surface-2: #18181d;
  --surface-3: #202027;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --text: #f4f4f2;
  --text-2: #a5a5b0;
  --text-3: #6c6c78;
  --accent: #c6ff34;
  --accent-ink: #0c0c0e;
  --accent-text: #c6ff34;
  --accent-soft: rgba(198, 255, 52, .1);
  --violet: #a294ff;
  --violet-soft: rgba(162, 148, 255, .13);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, .12);
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, .12);
  --red: #ff6b61;
  --red-soft: rgba(255, 107, 97, .12);
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 32px 80px -20px rgba(0, 0, 0, .8);
  --grid-line: rgba(255, 255, 255, .035);
  --glow: rgba(198, 255, 52, .16);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08080a; --bg-2: #0d0d10; --surface: #121216; --surface-2: #18181d; --surface-3: #202027;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .12);
    --text: #f4f4f2; --text-2: #a5a5b0; --text-3: #6c6c78;
    --accent-text: #c6ff34; --accent-soft: rgba(198, 255, 52, .1);
    --violet: #a294ff; --violet-soft: rgba(162, 148, 255, .13);
    --green: #3ddc97; --green-soft: rgba(61, 220, 151, .12);
    --amber: #ffb547; --amber-soft: rgba(255, 181, 71, .12);
    --red: #ff6b61; --red-soft: rgba(255, 107, 97, .12);
    --grid-line: rgba(255, 255, 255, .035); --glow: rgba(198, 255, 52, .16);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  /* faint grid + top glow, the "product" backdrop */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 70% -10%, var(--glow), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0, #000 40rem, transparent 70rem);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 40rem, transparent 70rem);
}

img, svg { display: block; }
.icon { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 650; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero" 1; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- demo banner ---------- */

.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 16px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.demo-bar code { font-family: var(--font-mono); font-size: 12px; color: var(--text); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar .container { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.logo-mark { transition: transform .4s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo small { font-family: var(--font-mono); font-weight: 400; font-size: 11px; color: var(--text-3); letter-spacing: 0; margin-left: -6px; align-self: flex-end; margin-bottom: 3px; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.nav .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: 4px; }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.search-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 8px 0 12px;
  min-width: 220px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-3);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search-trigger:hover { border-color: var(--text-3); }
.search-trigger span { flex: 1; text-align: left; }

kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  box-shadow: 0 1px 0 var(--line-2);
}

/* ---------- buttons ---------- */

.btn {
  --h: 40px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px;
  border-radius: 12px;
  font-size: 14px; font-weight: 550; white-space: nowrap;
  transition: transform .2s var(--ease), background .15s, border-color .15s, box-shadow .2s, color .15s;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-lg { --h: 50px; padding: 0 22px; font-size: 15px; border-radius: 14px; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 6px 20px -6px var(--glow);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 30px -6px var(--glow); transform: translateY(-1px); }
.btn-primary .icon { transition: transform .25s var(--spring); }
.btn-primary:hover .icon { transform: translate(2px, -2px); }

.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { transform: translateY(-1px); }

.btn-ghost { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); }

.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-soft:hover { background: var(--surface-3); }

.btn-icon { width: var(--h); padding: 0; }

.btn.is-on { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  color: var(--text-2);
  transition: background .15s, color .15s, transform .2s var(--spring);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.9); }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- chips / pills / badges ---------- */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .2s var(--spring);
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .x { opacity: .6; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  background: var(--surface-2);
  white-space: nowrap;
}
.pill-official { color: var(--green); background: var(--green-soft); }
.pill-via { color: var(--amber); background: var(--amber-soft); }
.pill-intern { color: var(--violet); background: var(--violet-soft); }
.pill-hot { color: var(--amber); background: var(--amber-soft); }
.pill-closed { color: var(--red); background: var(--red-soft); }
.pill-accent { color: var(--accent-text); background: var(--accent-soft); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.dot-live { position: relative; }
.dot-live::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--green); opacity: 0;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3);
}

/* ---------- avatar ---------- */

.avatar {
  --s: 40px;
  display: grid; place-items: center; flex-shrink: 0;
  width: var(--s); height: var(--s);
  border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: calc(var(--s) * .38); letter-spacing: -.02em;
  color: hsl(var(--h) 70% 38%);
  background: hsl(var(--h) 80% 60% / .16);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 70% 50% / .18);
}
:root[data-theme="dark"] .avatar { color: hsl(var(--h) 85% 74%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar { color: hsl(var(--h) 85% 74%); } }
.avatar-lg { --s: 64px; border-radius: 18px; }
.avatar-sm { --s: 32px; border-radius: 9px; }

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }

.hero-status {
  display: inline-flex; align-items: center; gap: 10px;
  height: 32px; padding: 0 14px 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px; color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.hero-status b { color: var(--text); font-weight: 600; }

.hero h1 {
  margin-top: 22px;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: .94;
  letter-spacing: -.05em;
  font-weight: 700;
}
.hero h1 .line { display: block; }
.hero h1 .soft { color: var(--text-3); }

.strike-word {
  position: relative;
  display: inline-block;
  color: var(--text);
  white-space: nowrap;
}
.strike-word .word { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s; }
.strike-word.is-out .word { opacity: 0; transform: translateY(-.25em); filter: blur(6px); }
.strike-word::after {
  /* the "minus" — a lime bar that slashes through the word */
  content: "";
  position: absolute; left: -.04em; right: -.04em; top: 52%;
  height: .14em;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px var(--glow);
  transform: scaleX(0) rotate(-2deg);
  transform-origin: left center;
  transition: transform .6s var(--ease);
}
.strike-word.is-struck::after { transform: scaleX(1) rotate(-2deg); }

.hero-sub { margin-top: 24px; max-width: 540px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-cta .hint { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }

.stats { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 18px 16px 0 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-size: 34px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.stat-num .unit { color: var(--text-3); font-size: .6em; margin-left: 2px; }
.stat-label { margin-top: 8px; font-size: 13px; color: var(--text-3); }

/* hero card stack */
.stack { position: relative; height: 440px; perspective: 1200px; }
.stack-card {
  position: absolute; left: 50%; top: 50%;
  width: 320px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  transition: transform .6s var(--spring), opacity .3s;
}
/* the float badges are spans, so nth-of-type counts only the cards */
.stack-card:nth-of-type(1) { transform: translate(-50%, -50%) translate(-34px, 40px) rotate(-9deg); opacity: .65; }
.stack-card:nth-of-type(2) { transform: translate(-50%, -50%) translate(30px, 26px) rotate(7deg); opacity: .85; }
.stack-card:nth-of-type(3) { transform: translate(-50%, -50%) translate(0, -20px) rotate(-1.5deg); }
.stack:hover .stack-card:nth-of-type(1) { transform: translate(-50%, -50%) translate(-120px, 70px) rotate(-14deg); }
.stack:hover .stack-card:nth-of-type(2) { transform: translate(-50%, -50%) translate(110px, 50px) rotate(12deg); }
.stack:hover .stack-card:nth-of-type(3) { transform: translate(-50%, -50%) translate(0, -40px) rotate(0deg) scale(1.02); }
.stack-card .row { display: flex; align-items: center; gap: 12px; }
.stack-card h3 { margin-top: 16px; font-size: 21px; }
.stack-card .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.stack-card .foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }

.float-badge {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 550;
  box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
  z-index: 3;
}
.float-badge .icon { color: var(--accent); }
.float-badge.b1 { right: -6px; top: 34px; }
.float-badge.b2 { left: -10px; bottom: 40px; animation-delay: -2.5s; background: var(--accent); color: var(--accent-ink); }
.float-badge.b2 .icon { color: var(--accent-ink); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  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: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2);
  white-space: nowrap;
}
.ticker-item b { color: var(--text); font-weight: 500; }
.ticker-item .ok { color: var(--green); }
.ticker-item .warn { color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Feed
   ========================================================================== */

.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.section-head p { margin-top: 8px; color: var(--text-2); }

.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  margin: 0 -24px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.toolbar.is-stuck { border-bottom-color: var(--line); }
.toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-row + .toolbar-row { margin-top: 10px; }

.segmented {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.segmented button {
  position: relative; z-index: 1;
  height: 32px; padding: 0 14px;
  border-radius: 9px;
  font-size: 13.5px; font-weight: 550;
  color: var(--text-2);
  transition: color .2s;
}
.segmented button[aria-pressed="true"] { color: var(--text); }
.segmented .thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  transition: transform .35s var(--spring), width .35s var(--spring);
}
.segmented .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); margin-left: 5px; }

.search-field {
  position: relative;
  flex: 1; min-width: 200px; max-width: 380px;
}
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-field input {
  width: 100%; height: 40px;
  padding: 0 40px 0 38px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  outline: none;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search-field input::placeholder { color: var(--text-3); }
.search-field input:focus { border-color: var(--text-3); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-field kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); }

.select {
  position: relative;
}
.select select {
  appearance: none; -webkit-appearance: none;
  height: 40px; padding: 0 36px 0 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.select .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-3); }

.view-switch { margin-left: auto; display: inline-flex; gap: 6px; }

.chip-scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chip-scroller::-webkit-scrollbar { display: none; }
.chip-group-label { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; align-self: center; margin-right: 2px; }
.chip-sep { width: 1px; height: 20px; background: var(--line-2); align-self: center; margin: 0 4px; flex-shrink: 0; }

.result-line { margin: 20px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-3); }
.result-line b { color: var(--text); font-weight: 600; }
.link-btn { color: var(--text-2); font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); text-decoration-color: currentColor; }

/* profile nudge */
.nudge {
  display: flex; align-items: center; gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--accent-soft), transparent 70%), var(--surface);
  border: 1px solid var(--line-2);
}
.nudge .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); flex-shrink: 0; }
.nudge p { flex: 1; font-size: 14px; color: var(--text-2); }
.nudge p b { color: var(--text); font-weight: 600; }

/* ---------- job card ---------- */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.jcard {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
  isolation: isolate;
  animation: rise .5s var(--ease) both;
}
.jcard::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent-soft), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
}
.jcard:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.jcard:hover::before { opacity: 1; }
.jcard-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.jcard-link:focus-visible { outline-offset: -2px; }

.jcard-top { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.jcard-co { min-width: 0; }
.jcard-co b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jcard-co span { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.save-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  color: var(--text-3);
  transition: background .15s, color .15s, transform .3s var(--spring);
}
.save-btn:hover { background: var(--surface-2); color: var(--text); }
.save-btn.is-saved { color: var(--accent-ink); background: var(--accent); }
.save-btn.is-saved svg { fill: currentColor; }
.save-btn.pop { animation: pop .45s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.jcard h3 { margin-top: 18px; font-size: 20px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jcard-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }

.facts { margin-top: 16px; display: grid; gap: 7px; }
.fact { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); min-width: 0; }
.fact .icon { color: var(--text-3); }
.fact span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact .strong { color: var(--text); font-weight: 600; }

.skills { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.skill { padding: 3px 9px; border-radius: 7px; font-size: 12px; font-family: var(--font-mono); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.skill.is-match { color: var(--accent-text); background: var(--accent-soft); border-color: transparent; }

.jcard-foot {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--text-3);
}
.jcard-foot > :first-child { display: inline-flex; align-items: center; gap: 7px; }
.jcard-body { margin-bottom: 16px; }

.match {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px 0 4px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  font-family: var(--font-mono);
}
.match .ring { --p: 0; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(currentColor calc(var(--p) * 1%), var(--line-2) 0); -webkit-mask: radial-gradient(circle, transparent 4px, #000 4.5px); mask: radial-gradient(circle, transparent 4px, #000 4.5px); }
.match.high { color: var(--accent-text); background: var(--accent-soft); }
.match.mid { color: var(--amber); background: var(--amber-soft); }
.match.low { color: var(--text-3); background: var(--surface-2); }

.empty {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  color: var(--text-2);
}
.empty h3 { font-size: 22px; color: var(--text); margin-bottom: 8px; }
.empty .btn { margin-top: 20px; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Bento — why it's different
   ========================================================================== */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 300px;
  display: flex; flex-direction: column;
}
.tile h3 { font-size: 22px; }
.tile p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; max-width: 420px; }
.tile .viz { margin-top: auto; padding-top: 24px; }
.tile-a { grid-column: span 4; }
.tile-b { grid-column: span 2; }
.tile-c { grid-column: span 2; }
.tile-d { grid-column: span 2; }
.tile-e { grid-column: span 2; }

.route { display: grid; gap: 12px; }
.route-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.route-label { width: 92px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.hop { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.route-row.bad .hop { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--red); }
.route-row.good .hop { color: var(--text); }
.route-row.good .hop.final { background: var(--accent); color: var(--accent-ink); border-color: transparent; font-weight: 600; }
.route-row .sep { color: var(--text-3); }

.term { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; padding: 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.term .ok { color: var(--green); }
.term .bad { color: var(--red); }
.term .dim { color: var(--text-3); }
.term .cursor { display: inline-block; width: 7px; height: 14px; vertical-align: -2px; background: var(--accent-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.big-ring { display: flex; align-items: center; gap: 18px; }
.big-ring svg { width: 108px; height: 108px; transform: rotate(-90deg); }
.big-ring .track { stroke: var(--surface-3); }
.big-ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.big-ring .num { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.04em; }

.meter { height: 12px; border-radius: 999px; overflow: hidden; display: flex; background: var(--surface-3); }
.meter .called { background: var(--green); transition: width 1s var(--ease); }
.meter .ghosted { background: var(--red); opacity: .85; transition: width 1s var(--ease); }
.meter-legend { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.meter-legend span { display: inline-flex; align-items: center; gap: 6px; }
.meter-legend i { width: 8px; height: 8px; border-radius: 3px; }

.mini-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-col { padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); min-height: 110px; }
.mini-col b { display: block; font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.mini-col i { display: block; height: 22px; border-radius: 6px; background: var(--surface-3); margin-top: 5px; }
.mini-col i.lit { background: var(--accent); }

/* ---------- telegram CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--radius-xl);
  background: var(--text);
  color: var(--bg);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -260px;
  background: radial-gradient(circle, var(--accent) 0, transparent 65%);
  opacity: .35;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; position: relative; }
.cta-band p { margin-top: 10px; color: color-mix(in srgb, var(--bg) 65%, var(--text)); position: relative; max-width: 520px; }
.cta-band .btn { position: relative; }

/* ---------- footer ---------- */

.footer { margin-top: 72px; padding: 40px 0 120px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a:hover { color: var(--text); }
.footer p { margin-top: 10px; max-width: 360px; }

/* ==========================================================================
   Job page
   ========================================================================== */

.job-wrap { padding: 32px 0 40px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 10px; transition: background .15s, color .15s; }
.back:hover { background: var(--surface-2); color: var(--text); }
.back .icon { transition: transform .2s var(--ease); }
.back:hover .icon { transform: translateX(-3px); }

.job-head { margin-top: 24px; }
.job-head .co { display: flex; align-items: center; gap: 16px; }
.job-head .co b { display: block; font-size: 16px; font-weight: 600; }
.job-head .co span { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.job-head h1 { margin-top: 22px; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.045em; line-height: 1; font-weight: 700; max-width: 820px; }
.job-head .tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

.job-layout { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.job-main { display: grid; gap: 20px; min-width: 0; }

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel-head h2 { font-size: 22px; letter-spacing: -.03em; }
.panel-head .eyebrow b { color: var(--accent-text); font-weight: 600; }
.panel-sub { margin-top: -12px; margin-bottom: 20px; color: var(--text-2); font-size: 14px; }

.tldr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.tldr-cell { padding: 18px; background: var(--surface); }
.tldr-cell .k { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.tldr-cell .v { margin-top: 8px; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.tldr-line { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.tldr-line b { color: var(--text); font-weight: 600; }

/* vibe check */
.vibe { display: grid; grid-template-columns: 1fr 220px; gap: 28px; }
.vibe-controls { display: grid; gap: 18px; }
.field-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 600; }
.field-label span { font-weight: 400; color: var(--text-3); margin-left: 6px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.vibe-result {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 16px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.vibe-ring { position: relative; width: 132px; height: 132px; }
.vibe-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vibe-ring .track { stroke: var(--surface-3); }
.vibe-ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .9s var(--ease), stroke .3s; }
.vibe-ring.mid .bar { stroke: var(--amber); }
.vibe-ring.low .bar { stroke: var(--red); }
.vibe-ring .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.vibe-ring .pct { font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.vibe-ring .pct small { font-size: .5em; color: var(--text-3); }
.vibe-verdict { margin-top: 14px; font-family: var(--font-display); font-size: 18px; font-weight: 650; }
.vibe-reasons { margin-top: 12px; display: grid; gap: 6px; text-align: left; width: 100%; }
.vibe-reasons li { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.4; }
.vibe-reasons .icon { margin-top: 1px; }
.vibe-reasons .ok .icon { color: var(--green); }
.vibe-reasons .no .icon { color: var(--red); }
.vibe-empty { font-size: 13px; color: var(--text-3); margin-top: 10px; }

/* cheat sheet */
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kw {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px;
  border-radius: 10px;
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: background .15s, border-color .15s, transform .2s var(--spring);
}
.kw .icon { color: var(--text-3); }
.kw:hover { border-color: var(--line-2); background: var(--surface-3); }
.kw:active { transform: scale(.95); }
.kw.copied { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kw.copied .icon { color: var(--accent-ink); }

.sub-head { margin: 26px 0 12px; display: flex; align-items: center; justify-content: space-between; }
.sub-head h3 { font-size: 15px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

.qs { display: grid; gap: 8px; counter-reset: q; }
.q {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.q::before {
  counter-increment: q;
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-text);
  padding-top: 2px;
}

.callout {
  margin-top: 20px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--text);
  font-size: 14px;
}
.callout .icon { color: var(--amber); margin-top: 2px; }
.callout b { font-weight: 600; }

/* ghost meter */
.ghost-ask { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ghost-btn {
  flex: 1; min-width: 150px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  text-align: left;
  transition: border-color .15s, background .15s, transform .2s var(--spring);
}
.ghost-btn:hover { border-color: var(--text-3); }
.ghost-btn:active { transform: scale(.97); }
.ghost-btn .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.ghost-btn[data-kind="called"] .ic { background: var(--green-soft); color: var(--green); }
.ghost-btn[data-kind="ghosted"] .ic { background: var(--red-soft); color: var(--red); }
.ghost-btn b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.ghost-btn b + span { font-size: 12.5px; color: var(--text-3); }
.ghost-btn[aria-pressed="true"][data-kind="called"] { border-color: var(--green); background: var(--green-soft); }
.ghost-btn[aria-pressed="true"][data-kind="ghosted"] { border-color: var(--red); background: var(--red-soft); }
.meter.is-thin { background-image: repeating-linear-gradient(-45deg, var(--surface-3) 0 6px, var(--surface-2) 6px 12px); }
.ghost-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }

/* apply aside */
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.apply-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.apply-card .via { font-size: 12.5px; color: var(--text-3); }
.apply-card .host { margin-top: 4px; font-family: var(--font-mono); font-size: 15px; font-weight: 500; word-break: break-all; }
.apply-card .btn-primary { margin-top: 18px; }
.trust { margin-top: 18px; display: grid; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.trust .icon { color: var(--green); }
.trust .warn .icon { color: var(--amber); }
.trust .hot { color: var(--amber); }
.apply-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.apply-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.apply-stats div { padding: 14px 16px; background: var(--surface); }
.apply-stats b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.03em; }
.apply-stats span { font-size: 12px; color: var(--text-3); }

.did-apply {
  padding: 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent-text) 30%, transparent);
  animation: rise .4s var(--ease);
}
.did-apply p { font-weight: 600; font-size: 14.5px; }
.did-apply div { margin-top: 12px; display: flex; gap: 8px; }

.closed-banner {
  margin-top: 24px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--red-soft);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
}
.closed-banner .icon { color: var(--red); }
.closed-banner b { display: block; }
.closed-banner span { font-size: 13.5px; color: var(--text-2); }

.similar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* mobile apply bar (job page) */
.apply-bar { display: none; }

/* ==========================================================================
   Board
   ========================================================================== */

.board-head { padding: 48px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.board-head h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.05em; line-height: .95; font-weight: 700; }
.board-head p { margin-top: 14px; color: var(--text-2); max-width: 520px; }

.board-stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.bstat { padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.bstat .k { font-size: 12.5px; color: var(--text-3); }
.bstat .v { margin-top: 6px; font-family: var(--font-display); font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.streak-card { background: var(--text); color: var(--bg); border: 0; position: relative; overflow: hidden; }
.streak-card .k { color: color-mix(in srgb, var(--bg) 60%, var(--text)); display: flex; align-items: center; gap: 6px; }
.streak-card .k .icon { color: var(--accent); }
.streak-days { margin-top: 14px; display: flex; gap: 5px; }
.streak-days i { flex: 1; height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--bg) 18%, var(--text)); }
.streak-days i.on { background: var(--accent); }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.kcol {
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 320px;
  transition: border-color .15s, background .15s;
}
.kcol.is-over { border-color: var(--accent-text); background: var(--accent-soft); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; font-size: 14px; font-weight: 600; }
.kcol-head i { width: 8px; height: 8px; border-radius: 3px; }
.kcol-head .n { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); font-weight: 400; }
.kcol-list { display: grid; gap: 10px; }
.kcard {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  animation: rise .35s var(--ease) both;
}
.kcard:active { cursor: grabbing; }
.kcard.is-dragging { opacity: .4; }
.kcard .row { display: flex; align-items: center; gap: 10px; }
.kcard .row b { font-size: 13px; font-weight: 600; display: block; }
.kcard .row span { font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono); }
.kcard h4 { margin-top: 10px; font-size: 15.5px; line-height: 1.25; }
.kcard h4 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kcard .kmeta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.kcard .kactions { margin-top: 12px; display: flex; gap: 6px; }
.kempty { padding: 28px 12px; text-align: center; font-size: 13px; color: var(--text-3); border: 1px dashed var(--line-2); border-radius: 14px; }

.profile-strip {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.profile-strip .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); }
.profile-strip .what { flex: 1; min-width: 200px; }
.profile-strip .what b { display: block; font-size: 14.5px; }
.profile-strip .what span { font-size: 13px; color: var(--text-3); }

/* ==========================================================================
   Overlays: dialogs, palette, swipe, toast
   ========================================================================== */

dialog { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(8, 8, 10, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.sheet {
  width: min(560px, calc(100vw - 32px));
  margin: 12vh auto 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
dialog[open] .sheet { animation: sheet-in .35s var(--spring); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }

.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 22px 0; }
.sheet-head h2 { font-size: 22px; }
.sheet-head p { margin-top: 6px; color: var(--text-2); font-size: 14px; }
.sheet-head .icon-btn { margin-left: auto; margin-top: -6px; margin-right: -6px; }
.sheet-body { padding: 22px; display: grid; gap: 20px; max-height: 60vh; overflow-y: auto; }
.sheet-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--bg-2); }

/* command palette */
.palette { width: min(640px, calc(100vw - 32px)); margin: 10vh auto 0; }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-input .icon { color: var(--text-3); }
.palette-input input { flex: 1; height: 58px; border: 0; outline: none; background: transparent; font-size: 16px; }
.palette-input input::placeholder { color: var(--text-3); }
.palette-list { max-height: 420px; overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 6px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.palette-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}
.palette-item .ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); color: var(--text-2); flex-shrink: 0; }
.palette-item .t { flex: 1; min-width: 0; }
.palette-item .t b { display: block; font-size: 14px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .t span { display: block; font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-item .go { color: var(--text-3); opacity: 0; }
.palette-item[aria-selected="true"] { background: var(--surface-2); }
.palette-item[aria-selected="true"] .go { opacity: 1; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); background: var(--bg-2); }
.palette-foot span { display: inline-flex; align-items: center; gap: 6px; }
.palette-none { padding: 28px; text-align: center; color: var(--text-3); font-size: 14px; }

/* swipe mode */
.swipe {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.swipe-top { display: flex; align-items: center; gap: 12px; height: var(--header-h); padding: 0 20px; border-bottom: 1px solid var(--line); }
.swipe-top b { font-family: var(--font-display); font-size: 17px; }
.swipe-progress { flex: 1; max-width: 240px; height: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-left: 8px; }
.swipe-progress i { display: block; height: 100%; background: var(--accent); transition: width .3s var(--ease); }
.swipe-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.swipe-top .icon-btn { margin-left: auto; }

.deck { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 16px 0 28px; }
.deck-inner { position: relative; width: min(400px, calc(100vw - 40px)); height: min(540px, 100%); }
.scard {
  position: absolute; inset: 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  touch-action: none;
  user-select: none;
  will-change: transform;
  transition: transform .45s var(--spring), opacity .3s;
}
.scard.is-dragging { transition: none; cursor: grabbing; }
.scard[data-depth="1"] { transform: translateY(14px) scale(.95); opacity: .8; }
.scard[data-depth="2"] { transform: translateY(28px) scale(.9); opacity: .5; }
.scard[data-depth="3"] { transform: translateY(28px) scale(.9); opacity: 0; }
.scard h3 { margin-top: 20px; font-size: 28px; line-height: 1.08; letter-spacing: -.035em; }
.scard .tldr { margin-top: 12px; color: var(--text-2); font-size: 14.5px; }
.scard .facts { margin-top: 20px; }
.scard .foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-3); }
.stamp {
  position: absolute; top: 28px;
  padding: 6px 14px;
  border-radius: 10px;
  font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: .02em;
  border: 3px solid currentColor;
  opacity: 0;
  pointer-events: none;
}
.stamp-save { left: 24px; color: var(--accent-text); transform: rotate(-12deg); }
.stamp-skip { right: 24px; color: var(--red); transform: rotate(12deg); }
.stamp-open { left: 50%; top: auto; bottom: 90px; transform: translateX(-50%); color: var(--violet); }

.swipe-controls { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 20px 0 12px; }
.round {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transition: transform .25s var(--spring), background .15s;
}
.round:hover { transform: scale(1.08); }
.round:active { transform: scale(.92); }
.round.skip { color: var(--red); }
.round.open { width: 48px; height: 48px; color: var(--violet); }
.round.save { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.swipe-hints { text-align: center; padding-bottom: 22px; font-size: 12.5px; color: var(--text-3); display: flex; justify-content: center; gap: 16px; }
.swipe-hints span { display: inline-flex; align-items: center; gap: 6px; }
.swipe-done { text-align: center; max-width: 360px; padding: 24px; }
.swipe-done h3 { font-size: 30px; letter-spacing: -.04em; }
.swipe-done p { margin-top: 10px; color: var(--text-2); }
.swipe-done .btn { margin-top: 22px; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 12px;
  border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toast-in .35s var(--spring);
}
.toast .icon { color: var(--accent); }
.toast button { margin-left: 6px; font-weight: 600; color: var(--accent); }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* burst particles */
.burst { position: fixed; z-index: 90; pointer-events: none; width: 8px; height: 8px; border-radius: 2px; }

/* mobile bottom tab bar */
.tabbar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .grid, .similar { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .stack { display: none; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .tile-a { grid-column: span 6; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 3; }
  .search-trigger { min-width: 0; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { width: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .job-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .aside .apply-card { display: none; }
  .vibe { grid-template-columns: 1fr; }
  .board-stats { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
  .kcol { min-height: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 36px 28px; }

  .apply-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; gap: 8px; align-items: center;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
  }
  .apply-bar .btn-primary { flex: 1; }

  .tabbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow-lg);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 0;
    border-radius: 14px;
    font-size: 11px; font-weight: 550;
    color: var(--text-3);
  }
  .tabbar [aria-current="page"] { color: var(--text); background: var(--surface-2); }
  body.has-apply-bar .tabbar { display: none; }
  .toasts { bottom: 96px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .toolbar { margin: 0 -16px; padding: 10px 16px; position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .topbar .container { gap: 12px; }
  .logo small { display: none; }
  .topbar .btn-tg span { display: none; }
  .topbar .btn-tg { width: 38px; padding: 0; }
  .hero { padding: 40px 0 32px; }
  .hero-sub { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 16px; }
  .stat-num { font-size: 28px; }
  .grid, .similar { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .search-field { max-width: none; order: 3; flex-basis: 100%; }
  .search-field kbd { display: none; }
  .view-switch { margin-left: auto; }
  .tile-b, .tile-c, .tile-d, .tile-e { grid-column: span 6; }
  .tile { min-height: 0; padding: 22px; }
  .panel { padding: 20px; }
  .tldr-grid { grid-template-columns: 1fr; }
  .board-head { grid-template-columns: 1fr; }
  .route-label { width: 100%; }
  .swipe-hints { display: none; }
  .nudge { flex-wrap: wrap; }
}

@media (max-height: 700px) {
  .scard { padding: 18px; }
  .scard h3 { margin-top: 12px; font-size: 22px; }
  .scard .tldr, .scard .skills { display: none; }
  .scard .facts { margin-top: 12px; }
  .swipe-controls { padding: 10px 0; }
  .round { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-track { animation: none; }
}

/* ==========================================================================
   Accounts: header button, login, sign-up form, account, privacy
   ========================================================================== */

.me-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 4px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 550;
  transition: border-color .15s;
}
.me-btn:hover, .me-btn[aria-current="page"] { border-color: var(--text-3); }
.me-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 14px; }

.narrow { max-width: 760px; }
.page-head { padding: 48px 0 24px; }
.page-head h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.045em; font-weight: 700; line-height: 1; }
.page-head p { margin-top: 12px; }
.page-head p .icon { display: inline-block; vertical-align: -2px; }

/* login */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 64px; align-items: center; padding: 72px 24px; min-height: calc(100vh - var(--header-h) - 200px); }
.auth-side h1 { margin-top: 16px; font-size: clamp(40px, 5.5vw, 68px); letter-spacing: -.05em; line-height: .98; font-weight: 700; }
.auth-side h1 .soft { color: var(--text-3); display: block; }
.perks { margin-top: 36px; display: grid; gap: 18px; }
.perks li { display: flex; gap: 14px; align-items: flex-start; }
.perks .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.perks b { display: block; font-size: 15px; }
.perks span { font-size: 14px; color: var(--text-2); }
.auth-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 26px; letter-spacing: -.035em; }
.auth-card > p.muted { margin-top: 8px; font-size: 14.5px; }
.auth-card .form { margin-top: 22px; }
.auth-alt { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fine { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }
.fine a, .privacy-note a, .prose a, .consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.dev-otp { margin-top: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); font-size: 13.5px; }
.dev-otp b { font-size: 16px; letter-spacing: .15em; color: var(--text); }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-label, .fset legend { font-size: 13.5px; font-weight: 600; }
.opt { font-weight: 400; color: var(--text-3); font-size: 12.5px; margin-left: 6px; }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--text-3); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-code { height: 60px; text-align: center; font-family: var(--font-mono); font-size: 28px; letter-spacing: .4em; padding-left: .4em; }
.form-error { margin-top: 18px; display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red); font-size: 14px; font-weight: 500; }
.field-error { margin-top: 8px; font-size: 13px; color: var(--red); font-weight: 500; }

.privacy-note { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--green-soft); font-size: 14px; color: var(--text-2); line-height: 1.6; }
.privacy-note .ic { color: var(--green); padding-top: 2px; }
.privacy-note b { color: var(--text); margin-right: 4px; }

.profile-form { margin-top: 24px; gap: 14px; padding-bottom: 40px; }
.fset { margin: 0; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.fset legend { float: left; width: 100%; display: flex; align-items: center; gap: 8px; font-size: 16px; font-family: var(--font-display); letter-spacing: -.01em; }
.fset.has-error { border-color: var(--red); }
.req { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); }
.why { clear: both; display: flex; gap: 7px; align-items: flex-start; margin: 6px 0 14px; padding-top: 4px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.why .icon { margin-top: 2px; }
.fset > .input { clear: both; }
.optional-head { display: flex; align-items: center; gap: 4px; margin: 18px 0 0; }
.optional-head h2 { font-size: 20px; letter-spacing: -.03em; }

.chip-input { position: relative; cursor: pointer; }
.chip-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-input span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--line-2);
  transition: background .15s, color .15s, border-color .15s, transform .2s var(--spring);
}
.chip-input:hover span { color: var(--text); border-color: var(--text-3); }
.chip-input input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-input input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.chip-input:active span { transform: scale(.95); }

.dropzone {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 16px;
  border: 1.5px dashed var(--line-2); background: var(--bg-2);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent-text); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); flex-shrink: 0; }
.dz-text b { display: block; font-size: 14.5px; word-break: break-all; }
.dz-text span { font-size: 12.5px; color: var(--text-3); }

.consent { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--text); flex-shrink: 0; }
.consent.has-error { border-color: var(--red); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* account */
.acard { margin-top: 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.acard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.acard-head h2 { font-size: 19px; letter-spacing: -.025em; }
.kv { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.kv div { padding: 14px 16px; background: var(--surface); }
.kv dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.kv dd { margin: 4px 0 0; font-size: 14.5px; font-weight: 500; }
.resume-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s; }
.resume-row:hover { border-color: var(--line-2); }
.resume-row .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.resume-row > span:nth-child(2) { flex: 1; min-width: 0; }
.resume-row b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-row .faint { font-size: 12.5px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats div { padding: 14px; border-radius: 14px; background: var(--bg-2); }
.mini-stats b { display: block; font-family: var(--font-display); font-size: 26px; letter-spacing: -.03em; }
.mini-stats span { font-size: 12.5px; color: var(--text-3); }
.row-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.danger { border-color: color-mix(in srgb, var(--red) 25%, var(--line)); }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.acard-head + .danger-row { border-top: 0; padding-top: 0; }
.danger-row b { font-size: 15px; }
.danger-row p { margin-top: 4px; font-size: 13.5px; max-width: 420px; }
.delete-form { display: flex; gap: 8px; }
.delete-form .input { width: 140px; height: 40px; font-family: var(--font-mono); font-size: 13px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { transform: translateY(-1px); }

.apply-hint { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--text-3); }

/* privacy */
.prose { padding: 48px 24px 24px; }
.prose h1 { margin-top: 12px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.045em; font-weight: 700; }
.prose .lead { margin-top: 16px; font-size: 18px; color: var(--text-2); }
.prose h2 { margin-top: 36px; font-size: 22px; letter-spacing: -.03em; }
.prose p, .prose ul { margin-top: 12px; color: var(--text-2); font-size: 15.5px; }
.prose ul { padding-left: 20px; list-style: disc; display: grid; gap: 6px; }
.prose b { color: var(--text); }
.ptable { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th, .ptable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 500; }
.ptable td:first-child { font-weight: 600; white-space: nowrap; }
.ptable td:last-child { color: var(--text-2); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; gap: 32px; padding: 32px 16px 96px; }
  .auth-side .perks { display: none; }
  .me-name { display: none; }
  .me-btn { padding: 0 4px; }
}
@media (max-width: 640px) {
  .auth-card { padding: 22px; }
  .kv { grid-template-columns: 1fr; }
  .danger-row { flex-direction: column; align-items: stretch; }
  .delete-form .input { flex: 1; width: auto; }
  .fset { padding: 18px; }
  .ptable td:first-child { white-space: normal; }
  .topbar .btn-dark span { display: none; }
  .topbar .btn-dark { width: 38px; padding: 0; }
}

/* form pages: no bottom tab bar over the inputs, tighter heading on phones */
@media (max-width: 860px) {
  body.no-tabbar .tabbar { display: none; }
  .auth-side h1 { font-size: 34px; }
  .auth-side h1 .soft { display: inline; }
}

/* ==========================================================================
   Phase 1 — compact intro, story rings, 3-column app, new card, sheet, pane
   ========================================================================== */

/* intro */
.intro { padding: 40px 0 8px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.intro-title {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.02; letter-spacing: -.045em; font-weight: 700;
  max-width: 900px;
}
.intro-title .soft { color: var(--text-3); }
.intro-sub { margin-top: 14px; max-width: 560px; color: var(--text-2); font-size: 16px; }
.intro-stats { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px; }
.intro-stats div { padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.intro-stats b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.intro-stats div > span { display: block; font-size: 12.5px; color: var(--text-3); }

/* story rings */
.stories { padding: 22px 0 6px; }
.story-row {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: 0 -2px;
}
.story-row::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 78px; flex-shrink: 0; scroll-snap-align: start; }
.story-ring {
  position: relative;
  display: grid; place-items: center;
  width: 70px; height: 70px; border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--accent), #7ef0c8, var(--violet), var(--accent));
  transition: transform .3s var(--spring);
}
.story:hover .story-ring { transform: scale(1.06) rotate(-4deg); }
.story:active .story-ring { transform: scale(.94); }
.story.is-seen .story-ring { background: var(--line-2); }
.story-in {
  display: grid; place-items: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 3px var(--bg);
}
.story-n {
  position: absolute; right: -4px; bottom: -2px;
  min-width: 24px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--text); color: var(--bg);
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.story.is-seen .story-n { background: var(--surface-3); color: var(--text-2); }
.story-label { font-size: 12px; font-weight: 550; color: var(--text-2); text-align: center; line-height: 1.2; }

/* app grid */
.app { padding: 18px 0 64px; }
.app-wrap { max-width: 1480px; }
.app-grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.app-grid.has-pane { grid-template-columns: 252px minmax(0, 1fr) minmax(460px, 42%); }

/* filter rail */
.rail {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 32px);
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.rail-head { display: flex; align-items: center; gap: 8px; padding: 18px 18px 6px; }
.rail-head h2 { font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
.rail-body { overflow-y: auto; padding: 6px 18px 18px; scrollbar-width: thin; }
.rail-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rail-group:last-child { border-bottom: 0; }
.rail-label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.rail .segmented { display: flex; }
.rail .segmented button { flex: 1; padding: 0 6px; font-size: 13px; }
.rail .chip { height: 30px; padding: 0 11px; font-size: 12.5px; }
.sheet-grip, .sheet-close, .rail-foot { display: none; }

.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 8px 0; text-align: left;
}
.switch-row b { display: block; font-size: 13.5px; font-weight: 550; }
.switch-row small { display: block; font-size: 12px; color: var(--text-3); }
.switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); flex-shrink: 0; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.switch-row[aria-checked="true"] .switch { background: var(--accent); }
.switch-row[aria-checked="true"] .switch i { transform: translateX(16px); background: var(--accent-ink); }

/* feed column */
.feed-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.04em; }
.feed-head p { margin-top: 6px; color: var(--text-2); font-size: 14.5px; }
.feed-bar { margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.feed-bar .search-field { max-width: none; }
.filter-btn { display: none; }
.filter-count { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 11px; }
.kbd-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); }
.kbd-hint kbd { min-width: 20px; height: 20px; font-size: 10.5px; }
.result-line .kbd-hint { margin-left: auto; margin-right: 12px; }
.app .grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

/* new job card */
.jc-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.logo-box {
  position: relative; flex-shrink: 0;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: hsl(var(--h) 80% 60% / .16);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 70% 50% / .2);
  overflow: hidden;
}
.logo-box .mono-txt { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: -.02em; color: hsl(var(--h) 70% 38%); }
:root[data-theme="dark"] .logo-box .mono-txt { color: hsl(var(--h) 85% 74%); }
.logo-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px; background: #fff; opacity: 0; transition: opacity .2s; }
.logo-box img.ok { opacity: 1; }
.logo-box.sm { width: 32px; height: 32px; border-radius: 9px; }
.logo-box.sm img { padding: 6px; }
.logo-box.sm .mono-txt { font-size: 12px; }
.jc-co { min-width: 0; }
.jc-co b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-co span { display: block; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jcard h3 { margin-top: 14px; font-size: 18.5px; }
.jc-pay { margin-top: 8px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.jc-pay.is-none { font-family: var(--font-body); font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--text-3); padding: 6px 0 3px; }
.jc-badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-2); background: var(--surface-2);
}
.tag-fresher { color: var(--accent-text); background: var(--accent-soft); }
.tag-official { color: var(--green); background: var(--green-soft); }
.tag-via { color: var(--amber); background: var(--amber-soft); }
.tag-intern { color: var(--violet); background: var(--violet-soft); }
.tag-hot { color: var(--amber); background: var(--amber-soft); }
.jc-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text-2); }
.jc-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.jc-meta .icon { color: var(--text-3); }
.jcard .skills { margin-top: 12px; }
.jcard .jcard-foot { padding-top: 14px; }
.jcard.is-selected { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }

/* right side: panel + split view */
.side { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.side-stats { display: grid; gap: 14px; }
.scard-panel { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.scard-panel h3 { margin-top: 8px; font-size: 19px; letter-spacing: -.025em; }
.scard-panel p { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.scard-panel .btn-block { margin-top: 14px; }
.panel-title { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.panel-title .icon { color: var(--accent-text); }
.you-top { display: flex; align-items: center; gap: 12px; }
.you-top b { display: block; font-size: 15px; }
.you-top .faint { font-size: 12px; }
.you-top .me-avatar { width: 40px; height: 40px; font-size: 17px; }
.strength { margin-top: 16px; }
.strength-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.strength-top b { color: var(--text); font-family: var(--font-mono); }
.strength-bar { margin-top: 8px; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.strength-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #7ef0c8); }
.strength .link-btn { display: inline-block; margin-top: 8px; font-size: 12.5px; }
.you-stats { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.you-stats div { padding: 10px; border-radius: 12px; background: var(--bg-2); text-align: center; }
.you-stats b { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -.03em; }
.you-stats span { font-size: 11px; color: var(--text-3); }
.join-card { background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); }
.mini-list { margin-top: 10px; display: grid; gap: 4px; }
.mini-list a { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.mini-list a:hover { background: var(--surface-2); }
.mini-list .t { flex: 1; min-width: 0; }
.mini-list .t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-list .t span { font-size: 12px; color: var(--text-3); }
.mini-list .left { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.tg-card { background: var(--bg-2); }

.pane {
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--header-h) - 32px);
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pane-in .35s var(--ease);
}
@keyframes pane-in { from { opacity: 0; transform: translateX(16px); } }
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-bottom: 1px solid var(--line); }
.pane-bar .kbd-hint { margin-left: auto; }
.pane-body { overflow-y: auto; padding: 0 22px 24px; scrollbar-width: thin; }
.pane-body.is-loading { opacity: .5; }
.pane .job-wrap { padding: 18px 0 0; }
.pane .back { display: none; }
.pane .job-head { margin-top: 0; }
.pane .job-head h1 { font-size: 30px; margin-top: 14px; }
.pane .job-layout { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
.pane .aside { position: static; order: -1; }
.pane .aside .apply-card { display: block; }
.pane .panel { padding: 20px; }
.pane .tldr-grid, .pane .similar, .pane .vibe { grid-template-columns: 1fr; }
.pane .closed-banner { margin-top: 16px; }
.pane-skeleton { padding-top: 24px; display: grid; gap: 12px; }
.pane-skeleton i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.pane-skeleton i:nth-child(1) { width: 40%; height: 40px; }
.pane-skeleton i:nth-child(2) { width: 80%; height: 34px; }
.pane-skeleton i:nth-child(3) { height: 120px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* bottom sheet backdrop (phones) */
.sheet-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(8, 8, 10, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .25s var(--ease); }

/* ---------- responsive ---------- */

@media (max-width: 1279px) {
  .app-grid, .app-grid.has-pane { grid-template-columns: 240px minmax(0, 1fr); }
  .side { display: none; }
  .kbd-hint { display: none; }
}

@media (max-width: 899px) {
  .intro-grid { grid-template-columns: 1fr; gap: 0; }
  .intro-stats { display: none; }
  .app-grid, .app-grid.has-pane { grid-template-columns: minmax(0, 1fr); }
  .filter-btn { display: inline-flex; }

  .rail {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 70;
    max-height: 86vh;
    border-radius: 26px 26px 0 0;
    border-bottom: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(105%);
    transition: transform .4s var(--ease);
    visibility: hidden;
  }
  .rail.is-open { transform: translateY(0); visibility: visible; }
  .rail.is-dragging { transition: none; }
  .rail-head { position: relative; padding-top: 22px; }
  .sheet-grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 999px; background: var(--line-2); }
  .sheet-close { display: inline-grid; }
  .rail-foot { display: block; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .rail .chip { height: 36px; padding: 0 14px; font-size: 13.5px; }
}

@media (max-width: 640px) {
  .intro { padding: 22px 0 0; }
  .intro .hero-status { height: 28px; font-size: 12px; }
  .intro-title { margin-top: 12px; font-size: 30px; }
  .intro-sub { display: none; }
  .stories { padding-top: 16px; }
  .story { width: 70px; }
  .story-ring { width: 62px; height: 62px; }
  .feed-head p { font-size: 13.5px; }
  .swipe-btn span, .filter-btn > span:not(.filter-count) { display: none; }
  .swipe-btn, .filter-btn { width: 44px; padding: 0; }
  .feed-bar .search-field { order: 0; flex-basis: auto; }
  .feed-bar .search-field input { height: 44px; }
  .feed-bar .btn { --h: 44px; }
  .app .grid { grid-template-columns: 1fr; }
  .jc-pay { font-size: 21px; }
}
.logo-box.lg { width: 64px; height: 64px; border-radius: 18px; }
.logo-box.lg img { padding: 13px; }
.logo-box.lg .mono-txt { font-size: 22px; }

/* ==========================================================================
   Phase 2 — safety: scam check panel, report dialog, red-flag tags
   ========================================================================== */

.tag-danger { color: var(--red); background: var(--red-soft); }
.jc-pay.is-unpaid { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--red); padding: 6px 0 3px; }

.safety-panel .panel-head { margin-bottom: 14px; }
.safety-verdict { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.safety-panel.is-safe .safety-verdict { color: var(--green); background: var(--green-soft); }
.safety-panel.is-caution .safety-verdict { color: var(--amber); background: var(--amber-soft); }
.safety-panel.is-danger { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.safety-panel.is-danger .safety-verdict { color: var(--red); background: var(--red-soft); }
.checks { display: grid; gap: 2px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--text-2); border-bottom: 1px dashed var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .icon { margin-top: 2px; }
.checks .ok .icon { color: var(--green); }
.checks .no { color: var(--text); }
.checks .no .icon { color: var(--red); }
.never-pay { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.never-pay b { display: block; color: var(--text); margin-bottom: 2px; }
.never-pay a, .closed-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.report-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.warn-banner { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); }
.warn-banner .icon { color: var(--amber); }
.report-note { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--amber); }

.company-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; }
.company-line .link-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }

.apply-actions { grid-template-columns: repeat(3, 1fr); }
.apply-actions .btn { padding: 0 8px; }

.report-dialog .sheet { margin-top: 10vh; }
.apply-dialog .sheet { width: min(440px, calc(100vw - 32px)); margin-top: 8vh; }
.apply-perks { margin-top: 0; padding-top: 0; border-top: 0; }
.apply-perks .icon { color: var(--accent-text); }
.apply-gate-foot { flex-direction: column; align-items: stretch; }
.report-reasons { display: grid; gap: 6px; }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }
.radio-row:hover { border-color: var(--text-3); }
.radio-row input { width: 18px; height: 18px; accent-color: var(--text); flex-shrink: 0; }
.radio-row:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.pill-hot[href] { text-decoration: none; }

@media (max-width: 640px) {
  .report-dialog .sheet { margin: auto 0 0; width: 100vw; max-width: none; border-radius: 24px 24px 0 0; }
  .report-dialog[open] { margin: auto 0 0; }
}

/* ==========================================================================
   Phase 3 — weekly goal ring, badges, share card
   ========================================================================== */

.goal-ring { --p: 0; --size: 52px; position: relative; display: grid; place-items: center; width: var(--size); height: var(--size); flex-shrink: 0; }
.goal-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.goal-ring circle { fill: none; stroke-width: 5; }
.goal-ring .track { stroke: var(--surface-3); }
.goal-ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: calc(113.1 * (1 - var(--p))); transition: stroke-dashoffset .9s var(--ease); }
.goal-ring.is-done .bar { stroke: #7ef0c8; }
.goal-ring b { position: relative; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--size) * .36); letter-spacing: -.03em; }
.goal-ring.lg { --size: 104px; }
.goal-ring.lg circle { stroke-width: 4.5; }
.goal-ring.sm { --size: 36px; }
.goal-ring.sm circle { stroke-width: 6; }

.board-stats { grid-template-columns: 1.7fr 1.2fr 1fr 1fr 1fr; }
.goal-card { display: flex; align-items: center; gap: 18px; background: linear-gradient(150deg, var(--accent-soft), transparent 65%), var(--surface); }
.goal-text { min-width: 0; display: grid; gap: 8px; justify-items: start; }
.goal-text .k { font-size: 12.5px; color: var(--text-3); }
.goal-text > b { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }
.goal-pick { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12px; }
.goal-pick .chip { height: 26px; padding: 0 10px; font-size: 12px; }

.goal-row { margin-top: 16px; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--bg-2); transition: background .15s; }
.goal-row:hover { background: var(--surface-2); }
.goal-row > span:last-child b { display: block; font-size: 14px; }
.goal-row .faint { font-size: 12px; }

.goal-strip-wrap { display: none; }
.goal-strip { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.goal-strip b { color: var(--text); }
.goal-strip-badges { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }

.badges { margin-top: 28px; }
.badges-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.badges-head h2 { font-size: 24px; letter-spacing: -.03em; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; gap: 6px; padding: 18px 12px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); text-align: center; opacity: .55; filter: grayscale(1); transition: transform .3s var(--spring); }
.badge b { font-size: 14px; }
.badge > span:last-child { font-size: 12px; color: var(--text-3); line-height: 1.35; }
.badge-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; background: var(--surface-3); color: var(--text-2); }
.badge.is-earned { opacity: 1; filter: none; }
.badge.is-earned .badge-ic { background: conic-gradient(from 200deg, var(--accent), #7ef0c8, var(--violet), var(--accent)); color: var(--accent-ink); }
.badge.is-earned:hover { transform: translateY(-3px) rotate(-1deg); }
.badge.is-new { animation: pop .6s var(--spring); border-color: var(--accent-text); }

.share-dialog .sheet { width: min(760px, calc(100vw - 32px)); margin-top: 6vh; }
.share-body { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; max-height: 76vh; }
.share-preview { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.share-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.share-dialog.is-loading .share-preview { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.share-actions { display: grid; gap: 10px; }

@media (max-width: 1279px) {
  .goal-strip-wrap { display: block; padding-top: 10px; }
}
@media (max-width: 1080px) {
  .board-stats { grid-template-columns: 1fr 1fr 1fr; }
  .goal-card { grid-column: span 2; }
}
@media (max-width: 640px) {
  .board-stats { grid-template-columns: 1fr 1fr; }
  .goal-card { grid-column: 1 / -1; }
  .badge-grid { grid-template-columns: repeat(2, 1fr); }
  .share-dialog[open] { margin: auto 0 0; }
  .share-dialog .sheet { width: 100vw; max-width: none; margin: 0; border-radius: 24px 24px 0 0; }
  .share-body { grid-template-columns: 1fr; max-height: 80vh; }
  .share-preview { width: 58%; margin: 0 auto; }
}

/* ==========================================================================
   Phase 4 — resume check, alerts
   ========================================================================== */

.resume-top { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.resume-top .goal-ring b { font-size: 26px; }
.resume-verdict { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -.02em; }
.resume-top .muted { margin-top: 4px; font-size: 14px; }
.kw-miss { color: var(--red); background: var(--red-soft); border-color: transparent; }
.kw-miss .icon { color: var(--red); }
.kw-have { color: var(--green); background: var(--green-soft); border-color: transparent; }
.kw-have .icon { color: var(--green); }
.callout-soft { background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); }
.callout-soft .icon { color: var(--text-3); }
.resume-scan { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.resume-scan > span { display: inline-flex; align-items: center; gap: 6px; }
.alert-form { margin-top: 16px; display: grid; gap: 14px; justify-items: start; }
.alert-row { display: grid; gap: 8px; }
@media (max-width: 640px) { .resume-top { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* ==========================================================================
   Responsive safety + lighter rendering
   ========================================================================== */

/* Grid tracks default to their widest child's min-content, so one long
   company name (nowrap + ellipsis) could widen the whole feed past the phone
   screen. min-width: 0 lets the ellipsis do its job instead. */
.grid > *, .similar > *, .kanban > *, .bento > *, .app-grid > *, .job-layout > *, .intro-grid > * { min-width: 0; }
h1, h2, h3, .jc-pay, .tldr { overflow-wrap: break-word; }

/* The match nudge duplicates the side card on wide screens. */
@media (min-width: 1280px) { .nudge { display: none !important; } }

.back { margin-left: 0; }
.feed-bar .btn { flex-shrink: 0; }

@media (max-width: 899px) {
  .story-n, .tabbar a, .tabbar button { font-size: 12px; }
}

@media (max-width: 640px) {
  /* the promise matters most on phones, where most visitors arrive from Telegram */
  .intro-sub { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; }

  /* nudge: text full width, button on its own row */
  .nudge { align-items: flex-start; }
  .nudge p { flex: 1 1 0; min-width: 0; }
  .nudge .btn { flex-basis: 100%; justify-content: center; }

  /* readable small text and comfortable tap targets */
  .segmented .n, .rail-label, .filter-count { font-size: 12px; }
  .link-btn, .report-link { display: inline-flex; align-items: center; min-height: 40px; }
  .goal-pick .chip { height: 34px; min-width: 40px; }

  /* Blurring what scrolls under fixed bars is the costliest effect on
     low-end phones; a near-solid background looks the same. */
  .topbar { background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabbar { background: color-mix(in srgb, var(--surface) 97%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- growth: share chip on cards, follow card in the feed ---------- */

.jcard-foot > :first-child { margin-right: auto; }
.share-chip {
  position: relative; z-index: 2;  /* above the card's full-size link */
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px; margin-right: -6px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 550; color: var(--text-2);
  transition: background .15s, color .15s;
}
.share-chip:hover { background: var(--surface-2); color: var(--text); }
@media (max-width: 640px) { .share-chip { height: 36px; } }
.feed-follow {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-2);
  background: linear-gradient(100deg, var(--accent-soft), transparent 65%), var(--surface);
}
.feed-follow[hidden] { display: none; }
.feed-follow .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); flex-shrink: 0; }
.feed-follow .txt { flex: 1 1 220px; min-width: 0; }
.feed-follow .txt b { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: -.01em; }
.feed-follow .txt p { margin-top: 3px; font-size: 13.5px; color: var(--text-2); }
.feed-follow .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .feed-follow { align-items: flex-start; }
  .feed-follow .acts { flex-basis: 100%; }
  .feed-follow .acts .btn { flex: 1; justify-content: center; height: 40px; }
}
