/* Wellcut. One stylesheet: tokens, base, components, landing, jobs, app, admin. Look and rules in DESIGN.md. */

@font-face { font-family: Geist; src: url(/fonts/Geist-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Variable.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* Theme: light first; dark when the visitor picks it (theme.js sets data-theme before paint). */
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
/* Imagery per theme: CSS backgrounds, so each visitor downloads one set only. */
:root { --img-hero: url(/assets/hero-light.webp); --img-upload: url(/assets/upload-light.webp); --img-find: url(/assets/find-light.webp); --img-tailor: url(/assets/tailor-light.webp); --img-privacy: url(/assets/privacy-light.webp); }
:root[data-theme="dark"] { --img-hero: url(/assets/hero.webp); --img-upload: url(/assets/upload.webp); --img-find: url(/assets/find.webp); --img-tailor: url(/assets/tailor.webp); --img-privacy: url(/assets/privacy.webp); }
:root {
  --bg: light-dark(#f4f5f4, #08090a);
  --bg-2: light-dark(#fbfbfa, #0e1012);
  --bg-3: light-dark(#e8ebe9, #15181b);
  --line: light-dark(rgb(16 24 20 / 0.09), rgb(255 255 255 / 0.08));
  --line-2: light-dark(rgb(16 24 20 / 0.18), rgb(255 255 255 / 0.15));
  --ink: light-dark(#0c0e0f, #edeeee);
  --ink-2: light-dark(#454c52, #a3aab0);
  --ink-3: light-dark(#5f676e, #7a828a);
  --accent: #3ddc97;
  --accent-hover: light-dark(#30cf8a, #7cebbd);
  --accent-ink: #03140c;
  --accent-text: light-dark(#0a7a4f, #3ddc97);
  --accent-soft: light-dark(rgb(10 122 79 / 0.09), rgb(61 220 151 / 0.14));
  --accent-ring: light-dark(rgb(10 122 79 / 0.45), rgb(61 220 151 / 0.6));
  --error: light-dark(#b42318, #ff8a80);
  --error-soft: light-dark(rgb(180 35 24 / 0.35), rgb(255 138 128 / 0.4));
  --hover: light-dark(rgb(16 24 20 / 0.045), rgb(255 255 255 / 0.05));
  --field: light-dark(rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.04));
  --glass-1: light-dark(rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06));
  --glass-2: light-dark(rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.02));
  --glass-hi: light-dark(rgb(255 255 255 / 1), rgb(255 255 255 / 0.07));
  --shadow: light-dark(rgb(24 44 34 / 0.14), rgb(0 0 0 / 0.7));
  --nav-bg: light-dark(rgb(244 245 244 / 0.74), rgb(8 9 10 / 0.62));
  --glow: light-dark(rgb(61 220 151 / 0.16), rgb(61 220 151 / 0.2));
  --on-media: #eef0ef;
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 68px;
  /* Shape rule: buttons, chips and one-line inputs are pills; panels are 16px; paper is 6px. */
  --r: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s;
}
/* film grain: fixed and pointer-events none, so it never repaints on scroll */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: rgb(61 220 151 / 0.35); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1200px, 100% - 64px); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.accent { color: var(--accent-text); }
.lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; max-width: 760px; }

/* ---------- components ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 999px; background: none; font-weight: 550; font-size: 0.95rem; white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s, color 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; pointer-events: none; }
.btn[aria-busy="true"] { animation: busy 1.2s ease-in-out infinite; }
@keyframes busy { 50% { opacity: 0.35; } }
.btn-primary { background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 0 0 1px var(--accent-ring), 0 10px 30px -10px rgb(61 220 151 / 0.55); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-2); background: var(--glass-2); }
.btn-ghost:hover { background: var(--hover); border-color: var(--ink-3); }
.btn-quiet { padding: 0 12px; color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); background: var(--hover); }
.btn-danger { border-color: var(--error-soft); color: var(--error); }
.btn-danger:hover { background: var(--hover); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid transparent; background: none; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); background: var(--hover); }
.icon-btn.bordered { border-color: var(--line-2); }

.glass {
  position: relative; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--glass-1), var(--glass-2));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 80px -30px var(--shadow);
}
@media (prefers-reduced-transparency: reduce) { .glass { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; } }
[data-spot] { background-image: radial-gradient(520px circle at var(--x, -999px) var(--y, -999px), var(--glow), transparent 45%), linear-gradient(180deg, var(--glass-1), var(--glass-2)); }

.field { display: grid; gap: 6px; }
.field > span, .label { font-size: 0.85rem; font-weight: 550; color: var(--ink-2); }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--field); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 96px; padding: 12px 16px; border-radius: 14px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%237a828a'%3E%3Cpath d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 14px; }
.select option { background: var(--bg-2); color: var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.grow { field-sizing: content; }
.error { color: var(--error); font-size: 0.875rem; display: flex; gap: 6px; align-items: center; }
.hint { color: var(--ink-3); font-size: 0.85rem; }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.8rem; font-weight: 500; color: var(--ink-2); }
.chip-accent { border-color: var(--accent-ring); background: var(--accent-soft); color: var(--accent-text); }

.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: var(--hover); min-height: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--line-2), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: min(520px, 100% - 32px); padding: 12px 20px; border-radius: 18px; background: var(--ink); color: var(--bg);
  box-shadow: 0 20px 60px -20px var(--shadow); transition: opacity 0.3s, transform 0.3s var(--ease); font-size: 0.925rem; font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

dialog { width: min(460px, 100% - 32px); padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); color: var(--ink); box-shadow: 0 40px 120px -20px var(--shadow); }
dialog::backdrop { background: rgb(4 5 6 / 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { font-size: 1.35rem; margin-bottom: 8px; }
dialog form { display: grid; gap: 16px; margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.actions-end { justify-content: flex-end; }

/* ---------- brand, nav, theme toggle ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.12rem; letter-spacing: -0.035em; }
.brand .mark { width: 26px; height: 26px; color: var(--ink); }
.nav {
  position: sticky; top: 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: max(16px, calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--line);
  background: var(--nav-bg); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.nav-links { display: none; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 0.925rem; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--hover); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta .signin-link { display: none; }
@media (min-width: 380px) { .nav-cta .signin-link { display: inline-flex; } }
@media (min-width: 768px) { .nav-links { display: flex; } }
.theme-toggle .to-dark, .theme-toggle[data-mode="light"] .to-light { display: none; }
.theme-toggle[data-mode="light"] .to-dark { display: block; }

/* ---------- landing ---------- */

.hero { position: relative; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 700px; right: -220px; top: -160px;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(20px); }
.hero-inner { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -0.052em; }
.hero h1 .l1 { display: block; color: var(--ink); }
.score .icon { width: 0.9em; height: 0.9em; align-self: center; }
.hero h1 span { display: block; color: var(--ink-3); }
.hero .lead { margin-top: 24px; max-width: 42ch; }
.hero .actions { margin-top: 36px; }
.hero-proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-3); font-size: 0.875rem; }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-proof .icon { color: var(--accent-text); }
.hero-visual { position: relative; }
.stage { position: relative; aspect-ratio: 16 / 11; border-radius: 28px; overflow: hidden; background: var(--bg-3) var(--img-hero) 72% 50% / cover no-repeat; border: 1px solid var(--line);
  box-shadow: 0 50px 120px -40px var(--shadow), inset 0 1px 0 rgb(255 255 255 / 0.08); }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.stage video { opacity: 0; transition: opacity 1.4s var(--ease); }
.stage video.playing { opacity: 1; }
.motion-toggle { position: absolute; right: 14px; top: 14px; z-index: 2; color: var(--on-media); background: rgb(8 9 10 / 0.45); border-color: rgb(255 255 255 / 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.motion-toggle:hover { color: #fff; background: rgb(8 9 10 / 0.65); }
.demo { position: relative; z-index: 1; margin: -64px 12px 0; padding: 20px; }
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .demo { position: absolute; left: -24px; bottom: -48px; width: min(420px, 82%); margin: 0; }
}

/* the live tailoring demo: real markup, plays once */
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 0.825rem; color: var(--ink-2); }
.demo-head strong { color: var(--ink); font-weight: 550; }
.demo-row { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.demo-row:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-row p { font-size: 0.925rem; line-height: 1.5; }
.tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--ink-3); }
.tag.ok { color: var(--accent-text); }
.tag.bad { color: var(--error); }
.score { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.score b { font-weight: 500; color: var(--accent-text); font-size: 0.95rem; }
mark, .match { background: none; color: inherit; background-image: linear-gradient(var(--accent-text), var(--accent-text)); background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; }
.paper mark, .paper .match { background-image: linear-gradient(rgb(31 111 83 / 0.2), rgb(31 111 83 / 0.2)); background-size: 100% 100%; border-radius: 2px; }
s { text-decoration: none; color: var(--ink-3); background-image: linear-gradient(var(--error), var(--error)); background-size: 100% 1.5px; background-position: 0 55%; background-repeat: no-repeat; }
.verdict { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-2); }
.verdict .icon { color: var(--accent-text); }
.verdict.bad .icon { color: var(--error); }

/* live roles marquee: real postings from the feeds (the one marquee on the page) */
.ticker { border-block: 1px solid var(--line); padding-block: 18px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 40px; width: max-content; }
.ticker a { display: inline-flex; gap: 10px; align-items: baseline; white-space: nowrap; color: var(--ink-2); font-size: 0.95rem; }
.ticker a b { color: var(--ink); font-weight: 550; }
.ticker a:hover b { color: var(--accent-text); }
.ticker-label { display: flex; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: 0.825rem; margin-bottom: 14px; }
.ticker-label a { color: var(--accent-text); }

.statement p { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.9rem); line-height: 1.16; letter-spacing: -0.035em; font-weight: 550; max-width: 26ch; text-wrap: balance; }
.statement p span { color: var(--ink-3); }
.statement cite { display: block; margin-top: 20px; font-style: normal; color: var(--ink-3); font-size: 0.875rem; }
.statement cite a { text-decoration: underline; text-underline-offset: 3px; }

.bento { display: grid; gap: 16px; }
.cell { position: relative; overflow: hidden; isolation: isolate; min-height: 340px; display: flex; align-items: flex-end; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); }
.cell::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat; transition: transform 1.2s var(--ease); }
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 94%, transparent) 12%, color-mix(in srgb, var(--bg) 40%, transparent) 58%, transparent); }
.cell:hover::after { transform: scale(1.035); }
.cell-upload { --img: var(--img-upload); } .cell-find { --img: var(--img-find); } .cell-tailor { --img: var(--img-tailor); }
.cell h3 { font-size: 1.5rem; }
.cell p { margin-top: 8px; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1fr 1.2fr; grid-template-rows: 300px 300px; }
  .cell-tailor { grid-column: 2; grid-row: 1 / 3; }
  .cell-tailor h3 { font-size: 2rem; }
}

.proof { display: grid; gap: 48px; }
.ledger { padding: 8px 28px; }
.ledger-row { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row p { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .proof { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .proof .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin: 0; }
  .ledger-row { grid-template-columns: 96px 1fr; column-gap: 24px; }
  .ledger-row .verdict { grid-column: 2; }
}

.features { display: grid; gap: 36px 48px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 6px 18px; align-items: start; }
.feature .badge { grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--accent-text); }
.feature .badge .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 1.15rem; letter-spacing: -0.02em; padding-top: 2px; }
.feature p { color: var(--ink-2); }
.feature .new { margin-left: 8px; vertical-align: 2px; }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; } }

.privacy { display: grid; gap: 40px; align-items: center; }
.privacy-art { aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2) var(--img-privacy) center / cover no-repeat; }
.privacy ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.privacy li { display: flex; gap: 14px; color: var(--ink-2); }
.privacy li strong { color: var(--ink); font-weight: 550; }
.privacy li .icon { color: var(--accent-text); margin-top: 3px; }
@media (min-width: 900px) { .privacy { grid-template-columns: 1fr 1fr; gap: 72px; } }

.pricing { display: grid; gap: 16px; align-items: stretch; }
.plan { padding: 32px; border-radius: var(--r); border: 1px solid var(--line); display: grid; gap: 22px; align-content: start; }
.plan h3 { font-size: 1.25rem; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan .price { font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 450; letter-spacing: 0; color: var(--ink-2); }
.plan .alt { color: var(--ink-2); font-size: 0.925rem; margin-top: -10px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); }
.plan li .icon { color: var(--accent-text); margin-top: 4px; }
.plan-pro { border-color: var(--accent-ring); }
.pricing-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
@media (min-width: 900px) { .pricing { grid-template-columns: 0.85fr 1.15fr; } }

.faq { display: grid; gap: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-size: 1.1rem; font-weight: 550; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.3s var(--ease); color: var(--ink-3); margin-top: 4px; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; } .faq .section-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }

.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 8vw, 96px); border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2) var(--img-tailor) 70% 40% / cover no-repeat; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent) 28%, color-mix(in srgb, var(--bg) 55%, transparent) 70%, color-mix(in srgb, var(--bg) 20%, transparent)); }
.final h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); max-width: 14ch; }
.final p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; }
.final .actions { margin-top: 32px; }

.footer { border-top: 1px solid var(--line); padding-block: 48px; color: var(--ink-3); font-size: 0.9rem; }
.footer .wrap { display: grid; gap: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: var(--ink); }
.footer .credits a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
@media (min-width: 900px) { .footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* motion: opt-in for people who haven't asked for less */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .rise { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
  .demo-row { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i) * 650ms + 700ms); }
  .demo mark { animation: draw 0.8s var(--ease) both; animation-delay: calc(var(--i) * 650ms + 1250ms); }
  .demo s { animation: draw 0.6s var(--ease) both; animation-delay: calc(var(--i) * 650ms + 1350ms); }
  .demo .score b { animation: rise 0.6s var(--ease) both; animation-delay: 2.9s; }
  @keyframes draw { from { background-size: 0 1.5px; } }
  .ticker-track { animation: ticker 90s linear infinite; }
  .ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
  .paused .ticker-track, .paused .rise, .paused .demo-row, .paused .demo mark, .paused .demo s { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
    .ledger s { animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@media (prefers-reduced-motion: reduce) { .ticker { overflow-x: auto; mask-image: none; } .ticker-track [aria-hidden="true"] { display: none; } }

/* ---------- jobs page ---------- */

.page-head { padding-block: 56px 32px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); }
.search { display: flex; gap: 10px; margin-top: 12px; max-width: 720px; }
.search-box { position: relative; flex: 1; }
.search-box .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { min-height: 52px; font-size: 1.02rem; padding-left: 48px; }
.search-tips { max-width: 720px; line-height: 1.7; }
.search-tips code { white-space: nowrap; font-family: var(--mono); font-size: 0.8rem; padding: 1px 6px; border-radius: 6px; background: var(--hover); color: var(--ink-2); }
.link { border: 0; padding: 0; background: none; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.search-layout { display: grid; gap: 32px; align-items: start; padding-bottom: 64px; }
@media (min-width: 960px) { .search-layout { grid-template-columns: 248px minmax(0, 1fr); } }

/* filter rail: sticky on desktop, a full-screen sheet on phones */
.filters { display: grid; gap: 4px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.filters-head h2 { font-size: 1rem; letter-spacing: -0.01em; }
.facet { border: 0; margin: 0; padding: 16px 0 12px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.facet legend { float: left; width: 100%; padding: 0 0 8px; font-size: 0.8rem; font-weight: 550; color: var(--ink-2); }
.facet label { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; margin-inline: -8px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; }
.facet label:hover { background: var(--hover); }
.facet label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet label b { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
.facet label.none { color: var(--ink-3); }
.facet input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-text); flex: none; }
.facet .hint { font-size: 0.78rem; margin-top: 4px; }
.filters-foot { display: none; }
@media (min-width: 960px) { .filters-close { display: none; } }
@media (min-width: 960px) { .filters { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100dvh - var(--nav-h) - 32px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; } .filters-btn { display: none; } }
@media (max-width: 959px) {
  .filters { display: none; }
  .filters.open { display: grid; align-content: start; position: fixed; inset: 0; z-index: 50; overflow-y: auto; padding: 20px 16px 0; background: var(--bg-2); }
  .filters.open .filters-foot { display: block; position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--bg-2); }
}
.filters-btn b { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--accent-text); }

.results-meta { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: var(--ink-3); font-size: 0.875rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.results-count { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.results-count #count { color: var(--ink); font-weight: 550; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.sort { display: flex; gap: 8px; align-items: center; }
.sort .select { min-height: 36px; width: auto; font-size: 0.875rem; padding-left: 14px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 12px; }
.chip-x { cursor: pointer; background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent-text); }
.chip-x .icon { width: 12px; height: 12px; }
.chip-x:hover { border-color: var(--accent-text); }
.results { list-style: none; margin: 0; padding: 0; }
.results:focus { outline: none; }
.results[aria-busy="true"] { min-height: 100svh; } /* the footer waits below the fold instead of jumping when jobs arrive */
.result { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 4px 18px; align-items: start; padding: 22px 12px; margin-inline: -12px; border-radius: 14px; border-bottom: 1px solid var(--line); transition: background-color 0.2s; }
.result:hover { background: var(--hover); }
.result-main { display: grid; gap: 6px; min-width: 0; }
.monogram { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 600; color: var(--ink-2); font-size: 1.05rem; }
.result h2 { font-size: 1.12rem; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.result h2 a:hover { color: var(--accent-text); }
.chip-new { min-height: 22px; padding: 0 8px; font-size: 0.72rem; }
.result .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-2); font-size: 0.9rem; }
.result .company { color: var(--ink); font-weight: 500; }
.result .excerpt { color: var(--ink-3); font-size: 0.9rem; max-width: 80ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.result .skills { display: flex; gap: 6px; align-items: center; font-size: 0.85rem; color: var(--ink-2); }
.result .skills .icon { color: var(--accent-text); }
.result .skills span { color: var(--ink); }
.result .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.result .credit { font-size: 0.8rem; color: var(--ink-3); margin-left: auto; }
.result .credit a { text-decoration: underline; text-underline-offset: 3px; }
/* resume match: a number first, its meaning in words beside it, color only as a third cue */
.fit { display: grid; justify-items: center; align-content: center; width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--line-2); text-align: center; }
.fit strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fit span { font-size: 0.66rem; color: var(--ink-3); line-height: 1.2; max-width: 9ch; }
.fit.good { border-color: var(--accent-ring); }
.fit.strong { border-color: var(--accent-text); background: var(--accent-soft); }
.fit.strong strong, .fit.good strong { color: var(--accent-text); }
.empty { padding: 56px 0; display: grid; gap: 12px; justify-items: start; color: var(--ink-2); }
.empty h2 { color: var(--ink); font-size: 1.4rem; }
.more { display: flex; justify-content: center; padding: 32px 0; }
@media (max-width: 640px) { .search { flex-direction: column; } .result { grid-template-columns: minmax(0, 1fr) auto; } .monogram { display: none; } .fit { width: 64px; height: 64px; } .fit span { display: none; } .result .credit { margin-left: auto; width: auto; } }

/* ---------- member app ---------- */

.appbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 12px; padding-inline: 16px;
  border-bottom: 1px solid var(--line); background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.appbar .tabs { display: flex; gap: 2px; margin-left: 6px; }
.appbar .tabs a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-size: 0.925rem; font-weight: 500; }
.appbar .tabs a:hover { color: var(--ink); }
.appbar .tabs a[aria-current="page"] { color: var(--ink); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.appbar .end { margin-left: auto; display: flex; gap: 6px; align-items: center; }
@media (min-width: 768px) { .appbar { padding-inline: 24px; } }
@media (max-width: 560px) { .appbar .plan-chip { display: none; } }

/* signed in: a left sidebar on desktop, a bottom tab bar on phones (one nav, two layouts) */
.tabs .icon { width: 20px; height: 20px; }
.tabs #n-jobs { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
.tabs #n-jobs:empty { display: none; }
.tracker { display: none; }
.dot { flex: none; width: 8px; height: 8px; margin-inline: 6px; border-radius: 50%; border: 1.5px solid var(--ink-3); }
.dot-applied, .dot-interviewing { border-color: var(--accent-text); }
.dot-interviewing, .dot-offer { background: var(--accent-text); border-color: var(--accent-text); }
@media (max-width: 899px) {
  /* a backdrop-filter would pin the fixed tab bar inside the top bar, so the blur moves to a layer behind it */
  .signed-in .appbar { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .signed-in .appbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .signed-in .appbar .tabs { position: fixed; inset: auto 0 0; z-index: 30; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--nav-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  .signed-in .appbar .tabs a { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; font-size: 0.75rem; }
  .signed-in .appbar .tabs a[aria-current="page"] { background: none; box-shadow: none; color: var(--accent-text); }
  .signed-in .tabs #n-jobs { display: none; }
  .signed-in .view { padding-bottom: 120px; }
  .signed-in .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .signed-in { --side: 248px; padding-left: var(--side); }
  .signed-in .appbar { position: fixed; inset: 0 auto 0 0; width: var(--side); height: auto; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 22px 14px 18px; border-bottom: 0; border-right: 1px solid var(--line); }
  .signed-in .appbar .brand { padding-inline: 10px; }
  .signed-in .appbar .tabs { flex-direction: column; margin: 0; gap: 2px; }
  .signed-in .appbar .tabs a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; }
  .signed-in .appbar .tabs a:hover { background: var(--hover); }
  .signed-in .appbar .tabs a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-ring); }
  .signed-in .appbar .tabs a[aria-current="page"] .icon { color: var(--accent-text); }
  .signed-in .tracker { display: grid; gap: 2px; margin-top: 22px; }
  .tracker .label { padding: 0 12px 6px; font-size: 0.75rem; color: var(--ink-3); }
  .signed-in .appbar .tracker a { padding: 7px 12px; font-size: 0.875rem; }
  .tracker b { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
  .signed-in .appbar .tracker a.due, .signed-in .appbar .tracker a.due b { color: var(--accent-text); }
  .signed-in .appbar .end { margin: auto 0 0; padding: 12px 6px 0; border-top: 1px solid var(--line); }
  .signed-in .appbar .end .menu { order: -1; margin-right: auto; }
  .signed-in .menu-panel { top: auto; bottom: calc(100% + 10px); left: 0; right: auto; }
  .signed-in .local-bar { text-align: left; }
}

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 300px; padding: 8px; z-index: 40; display: grid; background: var(--bg-2); }
.menu-panel .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: grid; gap: 4px; font-size: 0.875rem; }
.menu-panel .who strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; text-align: left; font-size: 0.925rem; color: var(--ink-2); }
.menu-panel a:hover, .menu-panel button:hover { background: var(--hover); color: var(--ink); }
.menu-panel .danger { color: var(--error); }

.local-bar { padding: 8px 16px; font-size: 0.8rem; color: var(--ink-2); text-align: center; border-bottom: 1px solid var(--line); background: var(--accent-soft); }
.view { padding-block: 32px 96px; }
.view-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.view-head h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem); }
.saved-state { font-size: 0.85rem; color: var(--ink-3); }

/* first-run walkthrough */
.steps { display: grid; gap: 10px; padding: 18px; margin-block: 24px 0; }
.steps-head .stack { gap: 4px; }
.steps-head h2:focus { outline: none; }
.steps-lead { color: var(--ink-2); font-size: 0.925rem; }
.steps-count { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--ink-3); white-space: nowrap; }
.steps-count .progress { flex: 1; }
.steps-help { margin: 0; }
.steps.compact :is(.step:not(.current), .steps-help) { display: none; }
.steps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.steps-head h2 { font-size: 1rem; letter-spacing: -0.01em; }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.step .num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.step strong { font-weight: 550; display: block; }
.step span.desc { color: var(--ink-3); font-size: 0.85rem; }
.step .go { margin-left: auto; }
.step.done { opacity: 0.6; }
.step.done .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step.current { border-color: var(--accent-ring); background: var(--accent-soft); }
.step.current .num { border-color: var(--accent-text); color: var(--accent-text); }
.progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width 0.6s var(--ease); }
@media (min-width: 1280px) { .steps ol { grid-template-columns: repeat(3, 1fr); } } /* the sidebar takes 248px */
@media (max-width: 640px) {
  .steps { padding: 14px 16px; margin-top: 16px; }
  .steps .step:not(.current) .desc { display: none; }
  .steps .step:not(.current) { padding-block: 8px; }
  .steps.on-add :is(ol, .steps-help) { display: none; }
  .steps-count { white-space: normal; }
  /* the plan bar: one short line and its button */
  .plan-bar { flex-wrap: nowrap; padding: 6px 12px 6px 16px; font-size: 0.8rem; }
  .plan-bar > .icon { display: none; }
  .plan-bar span { min-width: 0; }
  .plan-bar .btn { flex: none; }
}

/* sign in */
.signin { min-height: calc(100dvh - 64px); display: grid; place-items: center; padding: 32px 16px; position: relative; isolation: isolate; overflow: hidden; background: var(--img-hero) 75% 50% / cover no-repeat; }
.signin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.signin-panel { width: min(420px, 100%); padding: 36px 32px; display: grid; gap: 18px; }
.signin-panel h1 { font-size: 1.9rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 0.8rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-google:hover { background: #f3f3f3; }
.btn-google svg { width: 18px; height: 18px; }

/* add your resume */
.add-resume { display: grid; gap: 16px; }
.option { position: relative; display: grid; gap: 10px; align-content: start; padding: 26px; min-height: 184px; border-radius: var(--r); cursor: pointer; transition: border-color 0.2s, transform 0.3s var(--ease); }
.option:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.option:focus-within { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.option input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.option .badge { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-text); }
.option .badge .icon { width: 24px; height: 24px; }
.option h2 { font-size: 1.2rem; letter-spacing: -0.02em; }
.option p { color: var(--ink-2); font-size: 0.925rem; }
.option-primary { border-color: var(--accent-ring); }
.dropping { outline: 2px dashed var(--accent-text); outline-offset: 6px; border-radius: var(--r); }
@media (min-width: 768px) { .add-resume { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (pointer: fine) { .add-resume .option-scan { order: 2; } }

.scan { margin-top: 20px; padding: 24px; display: grid; gap: 18px; }
.pages { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.page-thumb { position: relative; flex: none; width: 112px; scroll-snap-align: start; }
.page-thumb img { width: 112px; height: 146px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); }
.page-thumb span { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--ink-3); text-align: center; }
.page-thumb button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgb(8 9 10 / 0.8); color: #fff; }
.add-page { flex: none; position: relative; width: 112px; height: 146px; border-radius: 10px; border: 1px dashed var(--line-2); display: grid; place-items: center; align-content: center; gap: 6px; color: var(--ink-2); font-size: 0.8rem; }
.add-page input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
/* ---------- waits: one pattern for every wait, sized by data-size (panel, inline, button). The numbers are estimates. ---------- */
.wait { --p: 0; display: grid; gap: 10px; min-width: 0; }
.wait-now { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.wait-stage { display: inline-flex; font-weight: 550; }
.wait-stage > span { display: inline-flex; gap: 8px; align-items: center; }
.wait-time { font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity 0.2s; }
.wait-tip { color: var(--ink-2); font-size: 0.875rem; }
.wait-tip > span { display: flex; gap: 8px; align-items: flex-start; }
.wait-tip .icon { margin-top: 0.2em; color: var(--accent-text); }
/* the cut line: one segment per stage; the last 3px gap sits outside the box */
.wait-bar { position: relative; display: block; height: 3px; margin-right: -3px; background: var(--line-2); overflow: hidden;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--n) - 3px), transparent 0 calc(100% / var(--n)));
  mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--n) - 3px), transparent 0 calc(100% / var(--n))); }
.wait-bar i { position: absolute; inset: 0; overflow: hidden; background: var(--accent); transform-origin: left; transform: scaleX(var(--p)); }
.wait-bar i::after { content: ""; position: absolute; inset: 0; width: 40%; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.7), transparent); }

/* panel: a page beside the text; the scan line moves down it with the same progress */
.wait[data-size="panel"] { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 10px clamp(18px, 3vw, 32px); padding: clamp(20px, 3.5vw, 32px); }
.wait[data-size="panel"] > * { grid-column: 2; }
.wait[data-size="panel"] > .wait-page { grid-column: 1; grid-row: 1 / -1; }
.wait-title { font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem); margin-bottom: 4px; }
.wait-page { position: relative; width: 104px; aspect-ratio: 17 / 22; font-size: 16px; border-radius: 6px; overflow: hidden; background: #fbfbfa;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -18px var(--shadow); }
.wait-page[data-pages] { box-shadow: 0 0 0 1px var(--line-2), 6px 6px 0 -1px #e9ecea, 6px 6px 0 0 var(--line-2), 0 18px 40px -18px var(--shadow); }
.wait-lines { position: absolute; inset: 0; display: grid; align-content: start; gap: 0.45em; padding: 0.95em 0.8em; }
.wait-lines i { height: 0.26em; border-radius: 1em; background: #e2e6e4; }
.wait-lines i:first-child { width: 55%; height: 0.45em; margin-bottom: 0.25em; background: #d3d8d5; }
.wait-lines i:nth-child(3n) { width: 74%; }
.wait-lines i:nth-child(4n + 2) { width: 88%; }
.wait-scan, .wait-scan > div { position: absolute; inset: 0; }
.wait-scan { overflow: hidden; transform: translateY(calc((var(--p) - 1) * 100%)); }
.wait-scan > div { transform: translateY(calc((1 - var(--p)) * 100%)); }
.wait-scan .wait-lines i { background: #a9b2ad; }
.wait-scan .wait-lines i:nth-child(3n + 2) { background: #3ddc97; }
.wait-scan::after { content: ""; position: absolute; inset: auto 0 0; height: 1.6em; border-bottom: 2px solid #3ddc97;
  background: linear-gradient(rgb(61 220 151 / 0), rgb(61 220 151 / 0.32)); transition: opacity 0.2s; }
/* tailoring: scissors ride the scan line, trimming each line to fit */
.wait-snip { position: absolute; inset: 0; transform: translateY(calc((var(--p) - 1) * 100%)); }
.wait-snip .icon { position: absolute; right: 4%; bottom: -0.55em; width: 1.1em; height: 1.1em; rotate: 90deg; color: #0a7a4f; }
.wait[data-state="done"] .wait-snip { opacity: 0; }
@media (max-width: 640px) {
  .wait[data-size="panel"] > .wait-page { grid-row: 1 / 3; align-self: start; width: 64px; font-size: 10px; }
  .wait[data-size="panel"] > :is(.wait-bar, .wait-tip) { grid-column: 1 / -1; }
  .wait[data-size="panel"] .wait-now { display: grid; }
}

/* inline under a form, and inside a button */
.wait[data-size="inline"] { gap: 8px; font-size: 0.925rem; }
.btn:has(> .wait) { position: relative; animation: none; opacity: 1; }
.wait[data-size="button"] { display: inline-flex; }
.wait[data-size="button"] .wait-now { gap: 8px; }
.wait[data-size="button"] .wait-stage { font-weight: inherit; }
.wait[data-size="button"] .wait-time { font-size: inherit; color: inherit; opacity: 0.7; }
.wait[data-size="button"] .wait-bar { position: absolute; inset: auto 20px 6px; height: 2px; }
.btn-primary .wait-bar { background: rgb(3 20 12 / 0.18); }
.btn-primary .wait-bar i { background: rgb(3 20 12 / 0.7); }

/* over and done */
.wait[data-state="done"] .wait-stage { color: var(--accent-text); }
.btn-primary .wait[data-state="done"] .wait-stage { color: inherit; }
.wait[data-state="done"] .wait-time, .wait[data-state="done"] .wait-scan::after { opacity: 0; }
.wait[data-state="done"] .wait-page { outline: 2px solid var(--accent-ring); }

/* motion shows work moving and stages changing; reduced motion keeps the same information, still */
@media (prefers-reduced-motion: no-preference) {
  .wait[data-size="panel"], .wait-stage > span, .wait-tip > span { animation: wait-in 0.45s var(--ease) both; }
  .wait-bar i, .wait-scan, .wait-scan > div, .wait-snip { transition: transform 0.3s linear, opacity 0.2s; }
  .wait[data-state="over"] .wait-scan::after, .wait[data-state="over"] .wait-snip .icon { animation: wait-breathe 1.6s ease-in-out infinite; }
  .wait-bar i::after { animation: wait-sweep 1.8s ease-in-out infinite; }
  .wait[data-state="done"] :is(.wait-bar i, .wait-scan, .wait-scan > div) { transition: transform 0.3s var(--ease); }
  .wait[data-state="done"] .wait-bar i::after { animation: none; }
}
@keyframes wait-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes wait-sweep { to { transform: translateX(250%); } }
@keyframes wait-breathe { 50% { opacity: 0.35; } }

/* resume editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.block { padding: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.block > .btn { justify-self: start; white-space: normal; min-height: 44px; height: auto; padding-block: 8px; text-align: left; }
.block > h2 { font-size: 1.1rem; letter-spacing: -0.02em; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.role-card { display: grid; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); }
.role-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.role-head strong { font-weight: 550; }
.bullets { display: grid; gap: 8px; }
.bullet { display: flex; gap: 8px; align-items: start; }
.bullet .textarea { min-height: 48px; }

/* jobs list */
.add-job { padding: 20px; display: grid; gap: 12px; margin-bottom: 24px; }
.add-job .row { display: flex; gap: 10px; align-items: start; }
.add-job .textarea { min-height: 52px; border-radius: 26px; padding: 14px 20px; max-height: 220px; }
@media (max-width: 640px) { .add-job { padding: 14px; gap: 8px; } .add-job .btn-lg { min-height: 52px; padding: 0 18px; } }
.seg { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 4px; margin: 0 0 8px; border: 0; min-width: 0; }
.seg label { position: relative; flex: none; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; }
.seg span b { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: var(--ink-3); }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:checked + span b { color: var(--bg-3); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.job-list { list-style: none; padding: 0; margin: 0; }
.job-row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 18px 16px; margin-inline: -16px; border-radius: 14px; border-bottom: 1px solid var(--line); }
.job-row:hover { background: var(--hover); }
.job-row a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.job-row h2 { font-size: 1.05rem; letter-spacing: -0.015em; }
.job-row .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.875rem; color: var(--ink-2); }
.job-row .side { display: flex; gap: 10px; align-items: center; position: relative; z-index: 1; }
.job-row .select { min-height: 36px; font-size: 0.85rem; width: auto; padding-left: 14px; }
.status-offer { color: var(--accent-text); border-color: var(--accent-ring); }
@media (max-width: 640px) { .job-row { grid-template-columns: 1fr; } }

/* one job */
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); font-size: 0.9rem; margin-bottom: 20px; }
.back:hover { color: var(--ink); }
.job-head { display: grid; gap: 14px; margin-bottom: 24px; }
.job-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.job-head .meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); align-items: center; }
.job-head .meta a { color: var(--accent-text); display: inline-flex; gap: 4px; align-items: center; }
.tablist { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tablist button { flex: none; border: 0; background: none; padding: 12px 16px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); border-color: var(--accent-text); }
.doc-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1200px) { .doc-grid { grid-template-columns: minmax(0, 1fr) 320px; } .doc-grid > .review { position: sticky; top: 24px; } }
.sheet { background: #fbfbfa; border-radius: 6px; padding: clamp(20px, 5vw, 56px); box-shadow: 0 40px 100px -40px var(--shadow), 0 0 0 1px var(--line); color: #16181a; overflow-x: auto; }
.sheet .paper { max-width: 7.2in; margin: auto; }
.sheet textarea.letter-edit { width: 100%; min-height: 480px; border: 1px dashed transparent; background: none; color: #16181a; font: 10.5pt/1.6 var(--font); resize: vertical; padding: 4px; border-radius: 4px; field-sizing: content; }
.sheet textarea.letter-edit:hover { border-color: #d0d4d8; }
.sheet textarea.letter-edit:focus { outline: none; border-color: #1f6f53; }
.review { padding: 22px; display: grid; gap: 20px; }
.review h2 { font-size: 0.95rem; letter-spacing: -0.01em; display: flex; gap: 8px; align-items: center; }
.review .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meter { display: grid; gap: 10px; }
.meter-nums { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.meter-nums .before { font-size: 1.2rem; color: var(--ink-3); }
.meter-nums .after { font-size: 2.4rem; font-weight: 600; letter-spacing: -0.04em; color: var(--accent-text); }
.meter-bar { position: relative; height: 6px; }
.meter-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.meter-bar .b { background: var(--ink-3); opacity: 0.45; }
.meter-bar .a { background: var(--accent); }
.removed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.875rem; color: var(--ink-2); }
.removed li { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--error-soft); }
.removed b { color: var(--error); font-weight: 550; font-family: var(--mono); font-size: 0.8rem; }
.gaps, .prep { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gaps li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.prep > li { padding: 20px 22px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 10px; }
.prep h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
.prep .why { color: var(--ink-3); font-size: 0.875rem; }
.prep ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; }
.posting-text { white-space: pre-wrap; color: var(--ink-2); max-width: 78ch; line-height: 1.7; }
.cta-panel { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; justify-items: start; }
.cta-panel h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); }
.cta-panel .redeem { display: flex; gap: 8px; width: min(420px, 100%); }
.plans { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- admin ---------- */

.admin { display: grid; min-height: calc(100dvh - 64px); }
.admin-side { display: flex; gap: 4px; padding: 12px 16px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.admin-side a { flex: none; display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: 10px; color: var(--ink-2); font-size: 0.925rem; }
.admin-side a:hover { color: var(--ink); }
.admin-side a[aria-current="page"] { background: var(--hover); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.admin-main { padding: 28px 16px 80px; min-width: 0; }
@media (min-width: 900px) {
  .admin { grid-template-columns: 232px 1fr; }
  .admin-side { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); padding: 24px 14px; overflow: visible; }
  .admin-main { padding: 36px 40px 80px; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { padding: 18px 20px; display: grid; gap: 6px; }
.kpi span { font-size: 0.8rem; color: var(--ink-2); }
.kpi strong { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.panel { padding: 22px; margin-bottom: 20px; }
.panel > h2 { font-size: 1.05rem; margin-bottom: 16px; letter-spacing: -0.015em; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--line); }
.bars div { flex: 1; min-width: 3px; border-radius: 4px 4px 0 0; opacity: 0.9; min-height: 2px; }
.bars div.zero { background: var(--line-2); }
.bars div:hover { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 0.75rem; margin-top: 8px; font-family: var(--mono); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.8rem; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td.wrap-cell { white-space: normal; min-width: 220px; }
.table tr:hover td { background: var(--hover); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; }
.status-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ok-text { color: var(--accent-text); }
.warn-text { color: var(--error); }
.qr { background: #fff; padding: 12px; border-radius: 12px; width: 200px; }
.form-row { display: grid; gap: 12px; align-items: end; }
@media (min-width: 1100px) { .form-row { grid-template-columns: 1.2fr 0.6fr 0.6fr 0.9fr 1.2fr auto; } }

/* ---------- simple pages ---------- */
.prose { max-width: 72ch; padding-block: 56px 96px; }
.prose h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 12px; }
.prose .note { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--error-soft); color: var(--ink); margin: 16px 0 32px; }
.prose h3 { font-size: 1.05rem; margin: 28px 0 8px; }
.prose ul { padding-left: 20px; margin: 0 0 12px; }
.legal .note { border-color: var(--line-2); }
.legal .note p { color: var(--ink); margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 8px; font-size: 0.9rem; }
.toc a { color: var(--accent-text); }
.lost { min-height: calc(100dvh - var(--nav-h)); display: grid; place-items: center; text-align: left; padding: 32px 0; }
.lost h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem); }
.lost p { margin-top: 16px; }
.lost .actions { margin-top: 28px; }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; }
.footer .credits { margin-top: 14px; }
.ticker-track { gap: 0; }
.ticker-group { display: flex; gap: 40px; padding-right: 40px; }

.sk-mono { width: 48px; height: 48px; border-radius: 12px; } .sk-title { height: 18px; width: 55%; } .sk-line { height: 12px; width: 80%; }
.stack { display: grid; gap: 12px; }
button.option { text-align: left; font: inherit; color: inherit; width: 100%; }
.sheet .skeleton { background: #e7eae8; margin-bottom: 14px; }
.sheet .skeleton::after { background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.7), transparent); }
.sheet .skeleton:nth-child(1) { width: 45%; height: 22px; }
.sheet .skeleton:nth-child(4n + 2) { width: 92%; }
.sheet .skeleton:nth-child(3n) { width: 70%; }
.view-head .lead { max-width: 60ch; }
.prep { counter-reset: q; }
#tab-panel:focus-visible { outline-offset: 8px; border-radius: 8px; }

/* admin charts: one series, one axis; values on hover, on focus with arrow keys, and in a table */
:root { --chart: light-dark(#0a7a4f, #1fa06a); }
.chart { position: relative; border-radius: 6px; }
.chart:focus-visible { outline-offset: 6px; }
.bars div { background: var(--chart); }
.bars div.active, .bars div:hover { opacity: 1; filter: brightness(1.15); }
.chart-tip { position: absolute; top: 0; transform: translate(-50%, -110%); padding: 6px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 10px 30px -10px var(--shadow); font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; pointer-events: none; z-index: 2; }
.chart-tip strong { color: var(--ink); font-weight: 600; }
.table-view { margin-top: 14px; }
.table-view summary { cursor: pointer; color: var(--ink-2); font-size: 0.85rem; }
.table-view .table { margin-top: 10px; }
.admin-main .grid-2 { margin-bottom: 20px; }
.admin-main .grid-2 .panel { margin-bottom: 0; }
.refreshing { opacity: 0.5; transition: opacity 0.2s; }
.score { white-space: nowrap; } .demo-head { flex-wrap: wrap; }
@media (min-width: 1280px) { .demo { left: -72px; } }

/* ---------- resume check, board, notes and dates ---------- */

.resume-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1100px) {
  .resume-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .resume-grid .editor { grid-column: 1; grid-row: 1; }
  .resume-grid .check { grid-column: 2; grid-row: 1; position: sticky; top: 24px; max-height: calc(100dvh - 48px); overflow-y: auto; }
}
.check-head { display: flex; gap: 16px; align-items: center; }
.check-head h2 { font-size: 1rem; }
.check-label { font-weight: 550; margin-top: 2px; }
.ring { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; align-content: center; border: 2px solid var(--line-2); }
.ring strong { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring span { font-size: 0.68rem; color: var(--ink-3); }
.ring.good { border-color: var(--accent-ring); }
.ring.good strong, .ring.strong strong { color: var(--accent-text); }
.ring.strong { border-color: var(--accent-text); background: var(--accent-soft); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; }
.check-list > li { border-top: 1px solid var(--line); }
.check-list summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; cursor: pointer; font-size: 0.9rem; font-weight: 550; }
.check-list summary::-webkit-details-marker { display: none; }
.check-list summary b { flex: none; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--hover); font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-2); }
.check-list details > .hint { margin-bottom: 8px; }
.check-list details ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; font-size: 0.85rem; color: var(--ink-2); }
.check-list .link { text-align: left; color: var(--ink-2); text-decoration-color: var(--line-2); }
.check-list .link:hover { color: var(--accent-text); text-decoration-color: currentColor; }

.toggle { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); }
.toggle button { display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: 0.875rem; font-weight: 500; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.col { display: grid; align-content: start; gap: 10px; min-height: 240px; padding: 12px; border-radius: var(--r); background: var(--hover); border: 1px dashed transparent; scroll-snap-align: start; transition: border-color 0.2s, background-color 0.2s; }
.col.over { border-color: var(--accent-text); background: var(--accent-soft); }
.col h2 { display: flex; align-items: center; gap: 4px; font-size: 0.875rem; letter-spacing: -0.01em; padding: 2px 4px; }
.col h2 b { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card { display: grid; gap: 6px; padding: 14px; cursor: grab; box-shadow: inset 0 1px 0 var(--glass-hi), 0 10px 30px -18px var(--shadow); }
.card.dragging { opacity: 0.5; }
.card > a { font-weight: 550; letter-spacing: -0.015em; line-height: 1.3; }
.card > a:hover { color: var(--accent-text); }
.card .company { font-size: 0.85rem; color: var(--ink-2); }
.card .meta { display: grid; gap: 2px; font-size: 0.8rem; color: var(--ink-2); }
.card .meta:empty { display: none; }
.card .select { min-height: 32px; font-size: 0.8rem; padding-left: 12px; margin-top: 4px; }
.due { color: var(--accent-text); font-weight: 550; }
.meta .due, .meta .accent { display: inline-flex; gap: 4px; align-items: center; }

.track { margin-bottom: 24px; }
.track > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 16px 20px; cursor: pointer; font-weight: 550; }
.track > summary::-webkit-details-marker { display: none; }
.track > summary .icon { color: var(--accent-text); }
.track > summary .faint { font-weight: 400; font-size: 0.875rem; }
.track-body { display: grid; gap: 14px; padding: 0 20px 20px; }

/* ---------- resume analysis ---------- */

.subtabs { display: flex; gap: 4px; margin: -8px 0 24px; border-bottom: 1px solid var(--line); }
.subtabs a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink-2); font-weight: 500; }
.subtabs a:hover { color: var(--ink); }
.subtabs a[aria-current="page"] { color: var(--ink); border-color: var(--accent-text); }
.report { display: grid; gap: 20px; }
.report-card { padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.report-card > .btn { justify-self: start; }
.report-card h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.report-card h3 { font-size: 0.95rem; letter-spacing: -0.01em; }
.report-score { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.report-score .stack { flex: 1; min-width: 240px; }
.ring-lg { width: 112px; height: 112px; border-width: 3px; }
.ring-lg strong { font-size: 2.4rem; }
.impression { color: var(--ink-2); max-width: 70ch; }
.scores { display: grid; gap: 14px 32px; }
@media (min-width: 900px) { .scores { grid-template-columns: 1fr 1fr; } }
.bar-row { display: grid; gap: 6px; align-content: start; }
.bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; font-weight: 550; }
.bar-top b { font-variant-numeric: tabular-nums; font-weight: 600; }
.score-bar { height: 6px; border-radius: 6px; background: var(--hover); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; color: var(--ink-2); }
.ticks .icon { color: var(--accent-text); margin-top: 4px; }
.report-meta { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.target { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.target .field { flex: 1; min-width: 220px; }
.plan-list { margin: 0; padding: 0; list-style: none; counter-reset: plan; display: grid; }
.plan-list li { counter-increment: plan; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.plan-list li::before { content: counter(plan); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-family: var(--mono); font-size: 0.8rem; }
.plan-list strong { font-weight: 550; }
.role-lines { display: grid; gap: 10px; }
.role-lines + .role-lines { padding-top: 12px; }
.role-lines ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.line { display: grid; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.line-weak { border-color: var(--error-soft); }
.line-top { display: grid; gap: 6px; }
.verdict { justify-self: start; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.v-strong { color: var(--accent-text); border-color: var(--accent-ring); }
.v-weak { color: var(--error); border-color: var(--error-soft); }
.issue { font-size: 0.875rem; color: var(--ink-3); }
.suggest-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.suggest { flex: 1; min-width: 220px; padding-left: 12px; border-left: 2px solid var(--accent-text); }
.was { color: var(--ink-3); padding-left: 12px; border-left: 2px solid var(--line-2); }
.strengthen { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); justify-items: start; }
.ask { display: flex; gap: 8px; align-items: center; font-weight: 550; font-size: 0.9rem; }
.ask .icon { color: var(--accent-text); }
.fill { line-height: 2.4; }
.input.blank { display: inline-block; width: auto; min-height: 34px; padding: 0 12px; margin: 0 2px; font-size: 0.9rem; }
.applied { display: flex; gap: 6px; align-items: center; font-size: 0.875rem; color: var(--accent-text); }
.chip-add { cursor: pointer; background: none; }
.chip-add:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chip-add .icon { width: 12px; height: 12px; }
.ats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ats-list li { display: flex; gap: 10px; align-items: center; }
.ats-list .ok .icon { color: var(--accent-text); }
.ats-list .bad { color: var(--error); }
.reads summary { cursor: pointer; font-weight: 550; padding: 4px 0; }
.reads dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 12px 0; font-size: 0.9rem; }
.reads dt { color: var(--ink-3); }
.reads dd { margin: 0; overflow-wrap: anywhere; }
.reads dd.missing { color: var(--error); }
.add-tips { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; max-width: 80ch; line-height: 1.7; }
.add-tips .icon { color: var(--accent-text); margin-top: 4px; }
kbd { font-family: var(--mono); font-size: 0.75rem; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg-2); }

/* ---------- touch, phones, and the UI audit fixes ---------- */

a, button, input, select, textarea, label, summary { touch-action: manipulation; }
body { -webkit-tap-highlight-color: transparent; } /* every control has its own :active and :focus-visible state */
dialog, .menu-panel, .filters.open, .board, .pages { overscroll-behavior: contain; }
@media (pointer: fine) { html { overscroll-behavior: none; } }
.card.dragging, .board .card:active { user-select: none; }
.search-tips summary { cursor: pointer; color: var(--ink-2); width: max-content; }
.search-tips p { margin-top: 8px; }
.check-fixes > summary { cursor: pointer; font-weight: 550; font-size: 0.9rem; padding: 4px 0; }
.check-fixes[open] > summary { margin-bottom: 8px; }
.track.is-due > summary .faint { color: var(--accent-text); font-weight: 550; }

/* bigger targets for fingers (44px is the platform guidance) */
@media (pointer: coarse) {
  .btn-sm, .seg span, .toggle button, .card .select, .job-row .select, .chip-x, .sort .select, .chip-add { min-height: 44px; }
  .facet label { min-height: 44px; }
  .icon-btn, .menu > summary { width: 44px; height: 44px; }
  .back { min-height: 44px; }
  .input, .textarea, .select, .sheet textarea.letter-edit { font-size: max(16px, 1em); }
}
@media (hover: none) { .sheet textarea.letter-edit { border-color: #d0d4d8; } } /* it shows it can be edited without a hover */
.narrow-only { display: none; }

@media (max-width: 640px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .view-post { display: none; } /* job search: the card opens the posting; one row of actions, more results per screen */
  /* job search: results within the first screen, and the toolbar stays in reach */
  .page-head { padding-block: 24px 16px; gap: 10px; }
  .page-head h1 { font-size: 2rem; }
  .page-head .lead { font-size: 1rem; }
  .search { flex-direction: row; margin-top: 4px; }
  .search-go { display: none; } /* results update as you type; the keyboard's Search key submits */
  .results-meta { position: sticky; top: var(--nav-h); z-index: 6; padding-top: 10px; margin-inline: -16px; padding-inline: 16px; background: var(--bg); }
  /* the member's pages: one row of actions, less chrome above the content */
  .view { padding-top: 20px; }
  .view-head { margin-bottom: 18px; gap: 12px; }
  .view-head .actions { gap: 8px; }
  .view-head .actions .btn { min-height: 44px; padding: 0 14px; font-size: 0.9rem; }
  .subtabs { margin-top: 0; }
  .report-score { flex-wrap: nowrap; gap: 16px; align-items: flex-start; }
  .report-score .stack { min-width: 0; }
  .ring-lg { width: 84px; height: 84px; }
  .ring-lg strong { font-size: 1.8rem; }
  .board { grid-auto-columns: 84%; }
  .option { min-height: 0; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 18px; }
  .option .badge { grid-row: span 2; }
  .option h2 { font-size: 1.05rem; align-self: end; }
  .option p { font-size: 0.875rem; }
}
/* the job page on narrow screens: score and Download come before the long resume preview */
@media (max-width: 1199px) { .doc-grid > .review { order: -1; } .doc-grid > .review > .stack:last-child { order: -1; } }
/* a focused field never hides behind the phone's bottom tab bar or the top bar */
@media (max-width: 899px) { :root:has(body.signed-in) { scroll-padding: 80px 0 104px; } }

/* ---------- the offer ---------- */
.cta-panel .ticks { margin: 0; }
.offer { display: grid; gap: 12px; width: 100%; }
@media (min-width: 640px) { .offer { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: 900px; } }
.offer-plan { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); transition: border-color 0.2s; }
.offer-plan:hover { border-color: var(--ink-3); }
.offer-plan.best { border-color: var(--accent-ring); background: var(--accent-soft); }
.offer-plan.best:hover { border-color: var(--accent-text); }
.offer-plan strong { font-weight: 600; }
.offer-price { font-size: 2rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.offer-price small { font-size: 0.9rem; font-weight: 450; letter-spacing: 0; color: var(--ink-2); }
.offer-plan .btn { margin-top: 6px; }
.nudge { display: grid; gap: 8px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line); }
.prep-example { position: relative; display: grid; gap: 8px; padding: 20px 22px; border-radius: 14px; border: 1px dashed var(--line-2); }
.prep-example h3 { font-size: 1.05rem; letter-spacing: -0.015em; }
.prep-example .why { color: var(--ink-3); font-size: 0.875rem; }
.prep-example ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; }
.prep-example .chip { justify-self: start; }

/* ---------- trial, week pass, guarantee, feedback, quotes ---------- */
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; border-bottom: 1px solid var(--accent-ring); background: var(--accent-soft); color: var(--ink); font-size: 0.875rem; }
.plan-bar > .icon { color: var(--accent-text); }
.plan-bar span { flex: 1; min-width: 220px; }
@media (min-width: 768px) { .plan-bar { padding-inline: 32px; } }
.offer-dialog { width: min(980px, 100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 8px; }
.offer-dialog h2:focus { outline: none; }
.offer-dialog .cta-panel { border: 0; box-shadow: none; background: none; }
.offer-dialog > form { position: sticky; bottom: -8px; margin: 0; padding: 12px 16px 16px; background: var(--bg-2); border-top: 1px solid var(--line); }
.feedback { display: grid; gap: 10px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.feedback-q { font-weight: 550; }
.feedback form { width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-text); flex: none; }
.captcha { min-height: 65px; }
.consent { font-size: 0.875rem; color: var(--ink-2); }
.consent a, .renew a { text-decoration: underline; text-underline-offset: 2px; }
.renew { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; }
.renew.need { border-color: var(--error); }
.pay-list { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.pay { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 0.9rem; }
.pay:has(input:checked) { border-color: var(--accent-text); background: var(--hover); }
.pay:has(input:disabled) { cursor: default; color: var(--ink-3); }
.pay input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent-text); flex: none; }
.pay b { font-family: var(--mono); font-weight: 500; }
.pay small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.hero-note { margin-top: 16px; }
.quote-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .quote-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.quote { margin: 0; padding: 24px; display: grid; gap: 14px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.quote figcaption { color: var(--ink-2); font-size: 0.875rem; font-weight: 550; }
#quotes-note { margin-top: 18px; }
.fb-rules { max-width: 80ch; margin-bottom: 16px; }


/* ---------- short screens: phones in landscape, laptops zoomed in ---------- */
@media (min-width: 900px) { .signed-in .appbar .tabs { min-height: 0; overflow-y: auto; } } /* the account row stays in reach */
@media (max-width: 899px) {
  .signed-in .appbar { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .signed-in .appbar .tabs { padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); }
}
@media (max-width: 899px) and (max-height: 500px) {
  .signed-in .appbar { position: relative; } /* the top bar scrolls away; the tab bar shrinks to one line */
  .signed-in .appbar .tabs a { grid-auto-flow: column; align-items: center; gap: 8px; padding-block: 4px; }
  .signed-in .view { padding-bottom: 80px; }
}
.export-row { display: flex; flex-wrap: wrap; gap: 8px; }
.export-row .btn { flex: 1 1 auto; }
#preview .sheet .paper { margin-inline: auto; }
/* ---------- tailoring: choose how, then one button ---------- */
.tailor { gap: 20px; }
.tailor > .muted { max-width: 62ch; }
.terms { display: grid; gap: 10px; width: 100%; min-width: 0; }
.pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick legend, .terms h3 { padding: 0; margin-bottom: 8px; font-size: 0.9rem; font-weight: 550; letter-spacing: -0.01em; }
.pick .seg { flex-wrap: wrap; margin: 0 0 6px; }
.seg input:disabled + span { opacity: 0.45; }
.terms-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.terms .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-add[aria-expanded="true"] { border-color: var(--accent-text); color: var(--accent-text); background: var(--accent-soft); }
.have { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: var(--accent-soft); min-width: 0; }
.have .seg { margin: 0; }
.have .seg span { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 34px; }
.tailor-more { width: 100%; border-top: 1px solid var(--line); padding-top: 12px; }
.tailor-more > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-weight: 550; font-size: 0.9rem; padding: 4px 0; }
.tailor-more[open] > summary { margin-bottom: 14px; }
.tailor-more > .stack { gap: 14px; }
/* the one-tap path: the button stays in view while the choices scroll, above the phone's tab bar */
.tailor-go { position: sticky; bottom: 16px; z-index: 5; justify-self: stretch; display: flex; gap: 10px; align-items: center;
  margin-inline: -10px; padding: 8px; border-radius: 999px; background: var(--bg-2); box-shadow: 0 12px 32px -14px var(--shadow), 0 0 0 1px var(--line); }
@media (min-width: 640px) { .tailor-go { justify-self: start; } }
@media (max-width: 899px) { .tailor-go { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (max-width: 639px) { .tailor-go .btn-primary { flex: 1; } }

/* ---------- after: review each change ---------- */
.toggle b { font-family: var(--mono); font-weight: 400; font-size: 0.78rem; opacity: 0.7; }
.toggle.mode { justify-self: start; }
.changes { display: grid; gap: 18px; min-width: 0; }
.changes > .btn { justify-self: start; }
.changes-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; align-items: center; justify-content: space-between;
  padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.changes-bar .actions { flex-wrap: nowrap; gap: 0; }
.changes-status { min-width: 0; font-weight: 550; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .changes-bar { top: calc(var(--nav-h) - 1px); } :root:has(.changes-bar) { scroll-padding-top: 150px; } }
.changes-list { display: grid; gap: 16px; }
.change > .link { justify-self: start; }
.change .row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.change .ver { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--ink-3); }
.change .ver.on { border-color: var(--accent-text); color: var(--ink); }
.vtag { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.change ins { text-decoration: none; background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.change del { text-decoration-thickness: 1px; text-decoration-color: var(--ink-3); }
.doc-grid.reviewing > .review { order: 0; } /* phones: the list first, the score in the sticky bar */
.removed .link { justify-self: start; text-align: left; }
.add-blank { margin: 4px 0 0; } .add-blank .btn { min-height: 44px; }
.result .fit-warn .icon { color: var(--error); }
.rescore { justify-items: start; } .linkedin > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; } .linkedin > summary h2 { display: inline; margin: 0; } .linkedin[open] > summary { margin-bottom: 14px; }
.draft { display: grid; gap: 12px; padding: 18px; margin-bottom: 20px; } .draft h2 { display: flex; gap: 8px; align-items: center; font-size: 1.05rem; } .draft h2 .icon { color: var(--accent-text); }
.practice { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; } .practice > form, .practice > .feedback-card { flex: 1 1 100%; } .feedback-card h4 { margin: 0; font-size: 0.9rem; } .feedback-card q { font-style: italic; }

/* review fixes */
.tailor:has(.have) .tailor-go { position: static; } /* the "I have this" form is never under the sticky button */
:root:has(.tailor-go) { scroll-padding-bottom: 110px; }
.toggle b { opacity: 1; } .toggle button[aria-pressed="false"] b { color: var(--ink-3); }
.have .hint { color: var(--ink-2); }
@media (max-width: 400px) { .tablist { gap: 0; } .tablist button { padding-inline: 8px; } }
@media (max-width: 1199px) { .doc-grid > .review > .take { order: -1; } }
.result .skills { flex-wrap: wrap; }
@media (pointer: coarse) { .removed .link { min-height: 44px; } }
