/* GradGrid: Apple-style visual system. Light only for the POC; tokens make dark mode a short follow-up. */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --ink: #1d1d1f;
  --ink-hover: #000;
  --green: #1d8a3e;
  /* Buttons only: lighter than the text green, which has to stay dark enough to read. */
  --green-btn: #34a853;
  --green-btn-hover: #2c9348;
  --green-bg: #e8f6ec;
  --amber: #b25e00;
  --amber-bg: #fff4e5;
  --star: #e39a00;
  --star-bg: #fff6dc;
  --red: #c0271f;
  --red-bg: #fdecea;
  --blue-bg: #eaf3fd;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --nav-h: 52px;
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.1; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(0, 113, 227, 0.2); }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 22px; height: 100%;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover, .side-brand:hover { text-decoration: none; }
/* Inside the app, a tag beside the name says so. */
.brand-tag { display: none; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 980px; padding: 2px 8px; margin-left: -4px; }
.nav.in-app .brand-tag { display: inline-block; }
/* In the app the CV review is a page of its own, so the nav needs no button for it. */
.nav.in-app .nav-cta, .nav-cta[hidden] { display: none; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 0.82rem; color: var(--text); opacity: 0.82; letter-spacing: -0.005em; transition: opacity .15s; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.active { opacity: 1; font-weight: 600; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 980px; border: 1px solid transparent;
  font-size: 0.94rem; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, .chip-box:focus-within { outline: none; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.35); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { border-color: #b5b5ba; background: #fafafa; }
.btn-outline[aria-expanded="true"] { background: var(--bg); }
.btn-ghost { background: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-small { padding: 7px 15px; font-size: 0.8rem; }
.btn-large { padding: 14px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.link-arrow::after { content: " ›"; }

/* ---------- Early-bird banner (off for now: EARLY in app.js) ---------- */
.banner {
  background: var(--ink); color: #fff;
  font-size: 0.86rem; text-align: center; padding: 10px 22px;
  display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap;
}
.banner code { font-family: var(--mono); background: rgba(255, 255, 255, 0.14); padding: 2px 8px; border-radius: 6px; font-size: 0.82rem; letter-spacing: 0.04em; }
.banner .count { display: inline-flex; align-items: center; gap: 6px; color: #ffd60a; font-weight: 600; }
.banner .count::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.25); }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 96px 0 72px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; max-width: 17ch; margin: 0 auto; }
.hero p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--text-2); max-width: 40ch; margin: 22px auto 0; letter-spacing: -0.01em; line-height: 1.35; }
.hero-note { margin-top: 18px; font-size: 0.8rem; color: var(--text-3); }
.eyebrow { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

.stats { display: flex; justify-content: center; gap: 56px; padding: 0 0 72px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; }
.stat span { color: var(--text-2); font-size: 0.9rem; }

.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; font-weight: 700; }
.section-head p { color: var(--text-2); font-size: 1.15rem; margin-top: 12px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 3;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px 32px; display: flex; flex-direction: column; gap: 12px; min-height: 240px;
  position: relative; overflow: hidden;
}
.tile.tile-wide { grid-column: span 6; }
.tile.tile-third { grid-column: span 2; }
.tile.tile-dark { background: var(--ink); color: #fff; }
.tile.tile-dark .tile-sub { color: rgba(255, 255, 255, 0.7); }
.tile h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.tile-sub { color: var(--text-2); font-size: 1.02rem; max-width: 44ch; }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-bg); color: var(--accent); margin-bottom: 6px; }
.tile-dark .tile-icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.tile .btn { align-self: flex-start; margin-top: auto; }
.tile-art { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Landing: the three steps, shown with the app's own output ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.step-n { font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.step > p { color: var(--text-2); font-size: 0.95rem; }
/* The panel under the words: the app's real output for the example CV. */
.demo-panel { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-skel { height: 220px; border-radius: 14px; background: var(--bg); }
.demo-h { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.demo-panel .areas { gap: 8px; margin-top: 16px; }
.demo-panel .area { grid-template-columns: minmax(0, 1fr) 72px 42px; gap: 10px; font-size: 0.82rem; }
.demo-panel .area .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-panel .bar { height: 6px; }
.demo-panel .area .pts { font-size: 0.78rem; }
.demo-panel .top3 { margin-top: 0; }
.demo-where { font-size: 0.78rem; color: var(--text-3); margin-bottom: 6px; }
.demo-panel .diff-old, .demo-panel .diff-new { font-size: 0.86rem; padding-left: 24px; }
.demo-panel .diff { margin: 0; }
.demo-why { font-size: 0.78rem; color: var(--text-3); line-height: 1.35; }
/* Six fresh listings, each a link to the employer's own page. */
.live { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.live-row { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); color: inherit; min-width: 0; transition: box-shadow .15s, transform .15s; }
.live-row:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.live-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.live-t b { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-t i { font-style: normal; font-size: 0.84rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-when { flex: none; font-size: 0.76rem; color: var(--text-3); white-space: nowrap; margin-top: 2px; }
.live-more { text-align: center; margin-top: 22px; font-size: 1rem; }
/* The last word: the dark box with the one button. */
/* Pricing page: what every plan holds. */
.page-head-c { text-align: center; padding: 44px 0 8px; }
.page-head-c h1 { margin-top: 6px; }
.page-head-c p { margin-left: auto; margin-right: auto; }
.inc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inc-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; }
.inc-item > svg { flex: none; margin-top: 2px; color: var(--accent); width: 20px; height: 20px; }
.inc-item b { display: block; font-size: 1.02rem; letter-spacing: -0.01em; }
.inc-item p { color: var(--text-2); font-size: 0.92rem; margin-top: 4px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 28px 26px; display: flex; flex-direction: column; position: relative;
  border: 1px solid transparent;
}
.plan.featured { background: linear-gradient(var(--blue-bg), var(--surface) 70%); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-hover); }
.plan-top { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; letter-spacing: -0.02em; }
.plan-badge { background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 980px; letter-spacing: 0.01em; }
.plan .sub { color: var(--text-2); font-size: 0.94rem; margin-top: 8px; }
.plan-price { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.plan-price .now { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan-price .now sup { font-size: 1.2rem; font-weight: 600; vertical-align: top; position: relative; top: 4px; margin-right: 2px; }
.plan-price .per { color: var(--text-2); font-size: 0.94rem; align-self: flex-end; }
.plan-off { display: flex; flex-direction: column; line-height: 1.25; }
.plan-off i { font-style: normal; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.plan-off s { color: var(--text-3); font-size: 1.05rem; }
.plan-quota { color: var(--text-2); font-size: 0.98rem; margin: 14px 0 20px; }
.plan-quota b { color: var(--text); }
.plan-quota span { display: block; margin-top: 4px; }
.plan .btn { width: 100%; justify-content: center; gap: 6px; }
.plan-note { text-align: center; color: var(--text); font-size: 0.94rem; line-height: 1.5; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }

.plan-all { text-align: center; margin-top: 88px; }
.plan-all h3 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; }
.plan-all > p { color: var(--text-2); font-size: 1.15rem; line-height: 1.5; max-width: 30ch; margin: 14px auto 0; }
.plan-features { list-style: none; padding: 0; margin: 52px auto 0; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 40px; text-align: left; }
.plan-features li { flex: 0 0 calc((100% - 120px) / 4); display: flex; gap: 14px; align-items: center; font-size: 0.98rem; color: var(--text-2); line-height: 1.5; }
.plan-features li svg { flex: none; width: 16px; height: 16px; color: var(--accent); }
.plan-features b { color: var(--text); font-weight: 500; }
@media (max-width: 1000px) { .plan-features li { flex-basis: calc((100% - 40px) / 2); } }
@media (max-width: 820px) { .plan-all { margin-top: 64px; } .plan-features { gap: 18px; } .plan-features li { flex-basis: 100%; } }


/* ---------- Page headers ---------- */
.page-head { padding: 44px 0 24px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.025em; font-weight: 700; }
.page-head p { color: var(--text-2); font-size: 1.08rem; margin-top: 8px; max-width: 60ch; }

/* ---------- Jobs board ---------- */
.board { padding-bottom: 80px; }
.head-actions { display: flex; align-items: center; gap: 2px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.86rem; font-weight: 600; }
.input, .select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.94rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus { border-color: var(--accent); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.chip-box {
  min-height: 44px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: text; position: relative;
}
.chip-box .placeholder { color: var(--text-3); font-size: 0.94rem; padding-left: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 8px; padding: 5px 9px; font-size: 0.86rem; }
.chip button { border: 0; background: none; padding: 0 2px; line-height: 1; font-size: 0.95rem; color: var(--text-2); }
.chip button:hover { color: var(--text); }
.chip-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover); border: 1px solid var(--line);
  padding: 6px; display: none; flex-direction: column;
}
.chip-menu.open { display: flex; }
.chip-menu button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 0.92rem; display: flex; justify-content: space-between; }
.chip-menu button:hover { background: var(--bg); }
.chip-menu button span { color: var(--text-3); font-size: 0.8rem; }
.chip-menu .empty { color: var(--text-3); padding: 8px 10px; font-size: 0.86rem; }


/* Keyword on the left, city tokens on the right, both above the results. */
.search-row { margin-bottom: 16px; }
/* Named after the city you typed, with the key that adds it. */
/* Two range inputs sharing one track, so the band has a handle at each end. */
.field-val { float: right; font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.chip-input { cursor: text; }
.chip-input input { flex: 1; min-width: 90px; border: 0; outline: none; background: none; padding: 4px 2px; font-size: 0.9rem; }
.chip-input input::placeholder { color: var(--text-3); }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search-wrap .input { padding-left: 38px; padding-top: 12px; padding-bottom: 12px; }

.results-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.results-count { color: var(--text-2); font-size: 0.95rem; }
.results-count b { color: var(--text); font-weight: 600; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text-2); }
.sort .select { width: auto; padding: 6px 30px 6px 10px; font-size: 0.86rem; }

.notice { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.notice svg { flex: none; margin-top: 2px; }
.notice-amber { background: var(--amber-bg); color: var(--amber); }
.notice-blue { background: var(--blue-bg); color: #0b4f9c; }
.notice-red { background: var(--red-bg); color: var(--red); }
.notice-green { background: var(--green-bg); color: var(--green); }

.jobs { display: flex; flex-direction: column; gap: 14px; }
.job {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; transition: box-shadow .2s, transform .2s;
}
.job:hover { box-shadow: var(--shadow-hover); }
.job-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.job h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.job-company { color: var(--text-2); font-size: 0.95rem; margin-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.job-company .dot { color: var(--line-strong); }
.badge { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--bg); color: var(--text-2); letter-spacing: 0.01em; white-space: nowrap; }
.badge-live { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--accent); }
.badge-placement { background: #f0e9fd; color: #5b2fb8; }
.badge-intern { background: #e4f4f0; color: #0f6e5c; }
.badge-flag { background: var(--amber-bg); color: var(--amber); cursor: help; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; }
.check small { display: block; color: var(--text-3); font-size: 0.78rem; }
.job-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-2); font-size: 0.9rem; margin-top: 18px; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
/* The star sits at the bottom right of the card. Starred jobs come first on the Tailor page. */
.star { margin-left: auto; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-3); display: grid; place-items: center; transition: color .12s, background .12s, border-color .12s, transform .08s; }
.star:hover { color: #e0245e; border-color: #e0245e; }
.star:active { transform: scale(0.92); }
.star.on { color: #e0245e; background: #fdecf1; border-color: transparent; }
.star.on svg { fill: currentColor; }
.job-detail { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.job-detail.open { display: block; }
.job-detail h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 8px; }
.job-detail .desc { white-space: pre-line; color: var(--text); font-size: 0.95rem; line-height: 1.55; max-height: 320px; overflow: auto; padding-right: 8px; }
.skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skills .tag { font-size: 0.8rem; padding: 4px 10px; border-radius: 8px; background: var(--bg); color: var(--text); }
.skills .tag.have { background: var(--green-bg); color: var(--green); }
.skills .tag.miss { background: var(--bg); color: var(--text-2); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 18px; }

.load-more { display: flex; justify-content: center; margin-top: 24px; }
.empty { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 56px 24px; text-align: center; color: var(--text-2); }
.empty h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 8px; }

/* ---------- CV pages ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card h2 { font-size: 1.3rem; margin-bottom: 6px; }
.card .sub { color: var(--text-2); font-size: 0.95rem; }
.drop {
  margin-top: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 40px 24px; text-align: center;
  transition: border-color .15s, background .15s; cursor: pointer; position: relative;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--blue-bg); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--bg); display: grid; place-items: center; margin: 0 auto 14px; color: var(--accent); }
.drop b { display: block; font-size: 1.02rem; }
.drop span { color: var(--text-3); font-size: 0.86rem; display: block; margin-top: 4px; }
.drop.busy { pointer-events: none; opacity: 0.7; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Free CV score: the CV, the job, the gaps ---------- */
/* The four parts of the run, numbered, with the one you're on filled in. It
   opens the page — there is no title above it — so it carries the top gap. */
.strip {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  margin: 36px auto 26px; padding: 5px; width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 980px;
}
/* Each step is a button: the pill is the button, so the whole of it is the hit
   area and a step you can't reach yet reads as disabled. */
.strip li { display: flex; }
.strip li button {
  display: flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; background: none;
  border-radius: 980px; font-size: 0.86rem; color: var(--text-3); white-space: nowrap; transition: background .14s, color .14s;
}
.strip li button i { font-style: normal; font-variant-numeric: tabular-nums; font-size: 0.76rem; opacity: 0.6; }
.strip li button:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.strip li button:disabled { opacity: 0.45; cursor: default; }
.strip li.done button { color: var(--text-2); }
.strip li.on button { background: var(--ink); color: #fff; font-weight: 500; }
.strip li.on button:hover:not(:disabled) { background: var(--ink-hover); color: #fff; }
.strip li.on button i { opacity: 0.55; }

.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
/* Both cards are one grid row, so they are as tall as the taller one; the body
   between the heading and the footer stretches to take up the difference. */
/* min-width lets a long job title ellipsis rather than widen the column, so the
   two stay a half each. */
.io-card { display: flex; flex-direction: column; min-width: 0; }
.io-body { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 232px; }
.io-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.io-head h2 { font-size: 1.05rem; }
.io-l { flex: none; font-size: 0.72rem; font-weight: 600; color: var(--text-3); letter-spacing: 0.06em; }
.io-note { margin-left: auto; font-size: 0.8rem; color: var(--text-3); }
.io-text { margin-top: 0; flex: 1; min-height: 0; resize: vertical; }
.char-count, .pick-note { margin-top: 10px; font-size: 0.8rem; color: var(--text-3); }
.char-count.short { color: var(--amber); }
/* The CV once it's in: name, size-up, and a way back to the drop zone. */
.io-have { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.io-tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; }
.io-have b { display: block; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-have i { display: block; font-style: normal; font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
/* The name can be long, so it truncates, and the way to change it sits under it. */
.io-have > div { flex: 1; min-width: 0; }
.io-have .linky { margin-top: 6px; font-size: 0.85rem; }
.io-card .drop { margin-top: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* Nothing to upload? One of our CVs instead, named by the field it's in. */
.try { margin-top: 14px; }
.try small { display: block; font-size: 0.8rem; color: var(--text-3); margin-bottom: 8px; }
.try-row { display: flex; flex-wrap: wrap; gap: 8px; }
.try-chip {
  flex: 1 1 0; min-width: 120px; text-align: left; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-sm); padding: 8px 11px; transition: border-color .15s, background .15s;
}
.try-chip:hover { border-color: var(--accent); background: var(--blue-bg); }
.try-chip b { display: block; font-size: 0.86rem; font-weight: 600; }
.try-chip i { display: block; font-style: normal; font-size: 0.78rem; color: var(--text-3); }
.try-chip[disabled] { opacity: 0.5; }
.try-chip.busy { border-color: var(--accent); }
/* Our own listings, scrollable inside the box so it stays the height of card A. */
/* An employer we haven't been paid for yet: there, legible as a shape, not as a
   name. Selection is off so it can't be dragged out of the blur. */
.blur { filter: blur(4px); user-select: none; -webkit-user-select: none; pointer-events: none; }
/* Eight rows at most, so the box sizes to them rather than scrolling. */
.pick-list { flex: 1; min-height: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 2px; }
.pick-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 10px; transition: background .14s; }
.pick-row:hover { background: var(--bg); }
.pick-t { flex: 1 1 0; min-width: 0; }
.pick-t b { display: block; font-size: 0.88rem; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-t i { display: block; font-style: normal; font-size: 0.78rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-bottom: 80px; }
.io-foot-end { justify-content: center; }
.io-priv { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; color: var(--text-3); }
.io-foot .btn { margin-left: auto; }
.io-foot-end .btn { margin: 0; }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.match-card { margin-bottom: 20px; }
.match-card .tailor-head h2 { font-size: 1.5rem; letter-spacing: -0.02em; }

.score-hero { display: flex; gap: 28px; align-items: center; }
.ring { position: relative; width: 150px; height: 150px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring .track { stroke: var(--bg); }
.ring .fill { stroke: var(--accent); transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.2,1); }
.ring .fill.good { stroke: var(--green); }
.ring .fill.warn { stroke: #d48806; }
.ring .fill.bad { stroke: var(--red); }
.ring .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .num b { display: block; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ring .num span { display: block; font-size: 0.75rem; color: var(--text-3); margin-top: 4px; }
.score-hero h2 { font-size: 1.7rem; letter-spacing: -0.02em; }
.score-hero p { color: var(--text-2); margin-top: 6px; }
/* With a job picked, the general score is a line, not the page. */
.score-hero-sm { gap: 16px; }
.score-hero-sm h2 { font-size: 1.1rem; }
.score-hero-sm .ring { width: 46px; height: 46px; }
.score-hero-sm .ring circle { stroke-width: 4; }
.score-hero-sm .ring .num b { font-size: 0.95rem; }
.bench { font-size: 0.9rem; color: var(--text-2); margin-top: 6px; }
.bench b { color: var(--text); font-weight: 600; }
/* The switch between the two readings of a CV: the document score and readiness. */
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.04); }

/* Readiness: five pillars, each read in a sentence under its bar, then the moves. */
/* The rating page: the number is the stage, then a word and a line per area. */
.strip-one { display: flex; justify-content: center; margin: 36px auto 26px; }
.rating-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 26px; }
.rating-num { display: block; font-size: 5.6rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-tier { margin-top: 12px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); }
.rating-tier.good { color: var(--green); }
.rating-tier.warn { color: var(--amber); }
.stand { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.stand-row { display: grid; grid-template-columns: 128px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.stand-row .lbl { font-weight: 600; }
.stand-row .read { color: var(--text-2); line-height: 1.4; }
.stand-doc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; border-top: 0; margin-top: 10px; }
.stand-doc .stand-row { grid-template-columns: 1fr auto; padding: 9px 0; font-size: 0.86rem; }
.stand-doc .stand-row .lbl { font-weight: 500; color: var(--text-2); }
.rating-hero-sm { padding: 6px 0 14px; }
.rating-hero-sm .rating-num { font-size: 3.4rem; }
.rating-hero-sm .rating-tier { margin-top: 8px; }
.stand-demo { grid-template-columns: 1fr; margin-top: 0; border-top: 1px solid var(--line); }
.wb-where { display: block; font-size: 0.76rem; color: var(--text-3); font-weight: 500; margin-bottom: 5px; }
.wb-why { margin-top: 6px; font-size: 0.86rem; color: var(--amber); line-height: 1.4; }
.wb-fix { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.92rem; line-height: 1.45; }
.wb-fix b { flex: none; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); }
.wb-fix i { font-style: normal; color: var(--accent); background: var(--blue-bg); border-radius: 6px; padding: 0 5px; }
.rd-links { margin: 10px 0 0 38px; font-size: 0.84rem; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rd-links a::after { content: ' ›'; }
.fold-card { margin-top: 20px; }
.fold-card summary { font-weight: 500; }
.fold-h2 { margin-top: 26px; font-size: 1.05rem; }
.rd-moves { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.rd-move { padding: 16px 18px; background: var(--bg); border-radius: 14px; }
.rd-move-head { display: flex; gap: 12px; align-items: flex-start; }
.rd-move-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 600; display: grid; place-items: center; margin-top: 1px; }
.rd-move-head b { font-size: 0.98rem; letter-spacing: -0.01em; }
.rd-move-why { margin-top: 4px; font-size: 0.88rem; line-height: 1.45; color: var(--text-2); }
.rd-move-steps { list-style: none; padding: 0; margin: 12px 0 0 38px; display: flex; flex-direction: column; gap: 6px; }
.rd-move-steps li { font-size: 0.88rem; line-height: 1.45; padding-left: 14px; position: relative; }
.rd-move-steps li::before { content: '–'; position: absolute; left: 0; color: var(--accent); }
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 0 38px; }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 8px; }
.idea b { font-size: 0.9rem; }
.idea p { font-size: 0.84rem; line-height: 1.45; color: var(--text-2); }
.idea .skills .tag { font-size: 0.74rem; padding: 3px 8px; }
.idea i { font-style: normal; font-size: 0.76rem; color: var(--text-3); margin-top: auto; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 12px 0 0 38px; }
.guide { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--text); transition: border-color .12s, background .12s; }
.guide:hover { border-color: var(--accent); background: var(--blue-bg); }
.guide b { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 0.86rem; }
.guide b i { font-style: normal; font-weight: 400; font-size: 0.72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.guide span { display: block; margin-top: 4px; font-size: 0.8rem; line-height: 1.4; color: var(--text-2); }
@media (max-width: 640px) {
  .rd-move-steps, .ideas, .guides, .rd-links { margin-left: 0; }
  .stand-row-read { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .stand-row-read .read { grid-column: 1 / -1; grid-row: 2; }
  .stand-row-read .word { grid-column: 2; grid-row: 1; justify-self: end; }
  .stand-doc { grid-template-columns: 1fr; }
  .rating-num { font-size: 4.4rem; }
}

.fold { margin-top: 14px; }
.fold summary { cursor: pointer; font-size: 0.9rem; color: var(--text-2); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::before { content: '›'; display: inline-block; transition: transform .15s; font-weight: 600; }
.fold[open] summary::before { transform: rotate(90deg); }
.fold .areas { margin-top: 16px; }

/* Bullet by bullet: the weakest lines, each with what's missing and a shape to
   rewrite it into. The [brackets] are what only the candidate can fill. */
.wb { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.wb-item { padding: 14px 16px; background: var(--bg); border-radius: 14px; }
.wb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wb-head small { font-size: 0.78rem; color: var(--text-3); font-weight: 500; }
.wb-text { font-size: 0.94rem; line-height: 1.45; color: var(--text); }
.wb-issues { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.wb-issues li { font-size: 0.86rem; color: var(--text-2); line-height: 1.4; padding-left: 14px; position: relative; }
.wb-issues li::before { content: '–'; position: absolute; left: 0; color: var(--amber); }

.areas { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.area { display: grid; grid-template-columns: 170px 1fr 54px; gap: 14px; align-items: center; font-size: 0.92rem; }
.area .lbl { font-weight: 500; }
.area .lbl small { display: block; color: var(--text-3); font-weight: 400; font-size: 0.78rem; margin-top: 1px; }
.bar { height: 8px; border-radius: 980px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 980px; background: var(--accent); transition: width .8s cubic-bezier(.2,.7,.2,1); }
.bar i.good { background: var(--green); }
.bar i.warn { background: #d48806; }
.bar i.bad { background: var(--red); }
.area .pts { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tips li { display: flex; gap: 10px; font-size: 0.94rem; color: var(--text); }
.tips li svg { flex: none; margin-top: 3px; color: var(--accent); }

.fb { margin-top: 14px; padding: 14px 16px; background: var(--bg); border-radius: 14px; }
.fb-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.fb-head b { font-size: 0.95rem; }
.fb ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.fb li { display: flex; gap: 9px; font-size: 0.9rem; line-height: 1.45; }
.fb li svg { flex: none; margin-top: 3px; }
.fb-good svg { color: var(--green); }
.fb-improve svg { color: var(--amber); }
.cta-box { margin-top: 22px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-box b { font-size: 1.15rem; letter-spacing: -0.01em; }
.cta-box p { color: rgba(255,255,255,.7); font-size: 0.9rem; margin-top: 2px; }
.cta-box .btn { background: #fff; color: var(--ink); }
.cta-box .btn:hover { background: #f0f0f2; }

/* Match score on cards, have/missing rows */
.match-score { flex: none; width: 68px; height: 68px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; background: var(--bg); color: var(--text-2); line-height: 1; }
.match-score small { font-size: 0.6rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; opacity: 0.8; }
.match-score.good { background: var(--green-bg); color: var(--green); }
.match-score.ok { background: var(--green-bg); color: var(--green); }
.have-miss { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.have-miss small { display: block; color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.tiny { font-size: 0.84rem; }


.drop-compact .ico { display: none; }
.drop-compact b { font-size: 0.9rem; }
.drop-compact span { font-size: 0.78rem; }
.textarea { margin-top: 16px; resize: vertical; min-height: 112px; line-height: 1.45; font-family: inherit; }

/* Cover letter panel */
.cover { background: var(--bg); border-radius: 14px; padding: 20px 22px; margin-bottom: 22px; }
/* Sits below the role sections, introducing the values at the foot of the panel. */
.cover-block + .cover-block, .cover-grid + .cover-grid, .cover-block + .cover-grid { margin-top: 14px; }
.cover h5 { margin: 0 0 8px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 600; }
.cover ul { margin: 0; padding-left: 18px; font-size: 0.9rem; line-height: 1.5; }
.cover li + li { margin-top: 4px; }
.cover-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.values { display: flex; flex-wrap: wrap; gap: 8px; }
.value { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 11px; font-size: 0.86rem; cursor: default; }
.value i { font-style: normal; color: var(--text-3); font-size: 0.76rem; }

/* ---------- The dock ----------
   A tab at the bottom right of a page that opens a small panel over it: the
   starred jobs on the board, the fit explained on the Tailor page. */
.dock { position: fixed; right: 22px; bottom: 22px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dock:empty { display: none; }
.dock-tab { display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(29, 29, 31, 0.94); color: #fff; border-radius: 980px; padding: 10px 14px 10px 16px; font-size: 0.86rem; font-weight: 500; box-shadow: 0 12px 32px rgba(0,0,0,.28); transition: transform .08s; }
.dock-tab:hover { background: var(--ink); }
.dock-tab:active { transform: scale(0.97); }
.dock-tab svg { width: 15px; height: 15px; }
.dock-tab i { font-style: normal; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 980px; background: #fff; color: var(--ink); font-size: 0.76rem; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.dock-panel { display: none; width: min(360px, calc(100vw - 44px)); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-hover); padding: 18px 18px 16px; }
.dock.open .dock-panel { display: block; }
.dock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.dock-head h3 { font-size: 0.98rem; letter-spacing: -0.01em; }
.dock-list { display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow-y: auto; margin: 0 -8px; }
.dock-row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 10px; font-size: 0.86rem; }
.dock-row:hover { background: var(--bg); }
.dock-row b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.dock-row i { font-style: normal; color: var(--text-3); font-size: 0.76rem; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.dock-row button { border: 0; background: none; color: var(--text-3); padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.dock-row button:hover { color: var(--text); background: var(--line); }
.dock-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.dock .fit-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 0; padding-top: 0; border-top: 0; }
.dock .fit-parts .fit-note { grid-column: 1 / -1; }
.dock .gaps { grid-template-columns: 1fr; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 330px 1fr; gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
.dash-side { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.side-stack { display: flex; flex-direction: column; gap: 14px; }
.side-sec { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 18px 16px; }
.side-sec h2 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.side-sec h2 span { font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.side-empty { color: var(--text-3); font-size: 0.86rem; }
.linky { display: block; border: 0; background: none; padding: 0; color: var(--accent); font-size: 0.84rem; margin-top: 10px; text-align: left; }
.linky:hover { text-decoration: underline; }
.linky-inline { display: inline; margin-top: 0; font-size: inherit; }

/* The resume card is the drop zone: drag a CV onto it, or click to browse. */
.res {
  position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 13px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.res:hover, .res.over { border-color: var(--accent); background: var(--blue-bg); }
.res input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.res.busy { pointer-events: none; opacity: 0.7; text-align: center; padding: 20px 13px; }
.res.busy b { display: block; font-size: 0.92rem; }
.res.busy span { display: block; color: var(--text-3); font-size: 0.78rem; margin-top: 2px; }
.res-hint { display: block; margin-top: 8px; color: var(--text-3); font-size: 0.76rem; }
.res-top { display: flex; gap: 10px; align-items: center; }
.res-ico { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.02em; }
.res-top b { display: block; font-size: 0.92rem; font-weight: 600; }
.res-top i { display: block; font-style: normal; color: var(--text-3); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 210px; }
.res-meta { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-2); }
.side-sec .drop { margin-top: 0; padding: 28px 14px; }
.side-sec .drop .ico { width: 44px; height: 44px; border-radius: 13px; margin-bottom: 10px; }
.side-sec .drop b { font-size: 0.94rem; }

.input-sm { padding: 8px 11px; font-size: 0.88rem; }
/* Where the list is filtered to. × takes it off and shows every country. */

/* Dashboard filters: a card of its own in the sidebar that flips the page on
   the right between the job and the Filters page. Dark while the page is up. */
.side-filters-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 15px 18px; font-size: 0.92rem; font-weight: 600; color: var(--text);
  transition: background .15s, color .15s, box-shadow .15s;
}
.side-filters-btn > svg:first-child { color: var(--text-3); }
.side-filters-btn > svg:last-child { color: var(--text-3); transition: transform .15s; }
.side-filters-btn span { flex: 1; }
.side-filters-btn i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 980px; background: var(--ink); color: #fff; font-size: 0.74rem; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.side-filters-btn:hover { box-shadow: var(--shadow-hover); }
.side-filters-btn.on { background: var(--ink); color: #fff; }
.side-filters-btn.on > svg { color: #fff; }
.side-filters-btn.on > svg:last-child { transform: rotate(90deg); }
.side-filters-btn.on i { background: #fff; color: var(--ink); }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }

/* "About this job": the title, the copy and the hide button on one line. */
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-head h2 { margin-bottom: 0; flex: 1; gap: 7px; justify-content: flex-start; }
.side-head .head-actions { flex: none; }

/* The Filters page: four sections in two columns, the count along the foot. */
.prefs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.prefs-head h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
.prefs-head .head-actions { flex: none; gap: 6px; }
.prefs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; margin-top: 24px; }
.prefs-sec { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.prefs-sec h3 { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); font-weight: 600; }
.prefs-sec h3 svg { width: 14px; height: 14px; }
.prefs-sec .toggles { margin: 0; }
.prefs .field label small { display: block; color: var(--text-3); font-size: 0.78rem; font-weight: 400; margin-top: 1px; }
.prefs .chip-box { min-height: 40px; padding: 5px 7px; }
.prefs .chip-input input { font-size: 0.88rem; }
.prefs-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.prefs-foot b { color: var(--text); font-weight: 600; }
/* input-sm's shorthand would take back the room the select's arrow sits in. */
.select.input-sm { padding-right: 30px; }
.job-list { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; max-height: min(52vh, 520px); overflow-y: auto; margin-right: -6px; padding-right: 6px; }
.jrow { display: flex; gap: 11px; align-items: center; text-align: left; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 10px; transition: background .14s; }
.jrow:hover { background: var(--bg); }
/* No CV yet: the rows are a preview of the board, not something to open. */
.jrow[disabled] { cursor: default; opacity: 0.75; }
.jrow[disabled]:hover { background: none; }
.jrow.on { background: var(--ink); }
.jrow.on .jrow-t { color: #fff; }
/* The title, and under it one line on why the job ranks where it does. The
   company and the location are on the row's tooltip and in the card the row opens. */
.jrow-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 0.88rem; font-weight: 500; line-height: 1.3; }
.jrow-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow-t i { font-style: normal; font-weight: 400; font-size: 0.74rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jrow.on .jrow-t i { color: rgba(255,255,255,.62); }
.jrow-star { flex: none; display: grid; color: var(--star); }
.jrow-star svg { width: 13px; height: 13px; fill: currentColor; }
.jrow .jrow-star { padding: 3px; margin: -3px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.jrow .jrow-star:hover { background: rgba(0, 0, 0, 0.07); }
.jrow.on .jrow-star { color: #fff; }
.jrow.on .jrow-star:hover { background: rgba(255, 255, 255, 0.18); }
.fit { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* One colour for a fit worth applying to: green reads as go, and a second colour
   for "good" only made the list look like two scales. */
.fit.fit-strong, .fit.fit-good { background: var(--green-bg); color: var(--green); }
.fit.fit-fair { background: var(--amber-bg); color: var(--amber); }
.fit.fit-low { background: var(--bg); color: var(--text-3); }
.fit.fit-none { background: var(--bg); color: var(--text-3); }

.dash-main { display: flex; flex-direction: column; gap: 14px; }
.dash-card { padding: 22px 24px; }
.dash-busy { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 24px; }
.tailor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.tailor-head h2 { font-size: 1.35rem; letter-spacing: -0.02em; }
/* Score, band and the way on, stacked at the end of the card's head. */
.fit-col { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fit-col .fit-band { font-size: 0.84rem; font-weight: 600; }
/* The fit on a card: the same disc as the list rows, larger, so the number you
   clicked and the number you land on look like one thing. */
.fit-disc { flex: none; }
.fit-disc .fit { width: 68px; height: 68px; font-size: 1.5rem; letter-spacing: -0.03em; }
.fit-disc-lg .fit { width: 92px; height: 92px; font-size: 2.1rem; }
.fit-parts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.fit-parts i { font-style: normal; color: var(--text-3); margin-right: 6px; }
.fit-parts .fit-note { color: var(--amber); }
.gaps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
/* The gaps, then the way on at the end of the same row. */
.tailor-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.tailor-actions .fit-disc { margin-left: 8px; }
.gaps small { display: block; color: var(--text-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }

.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin: -4px 0 14px; }
.tabs button { border: 0; background: none; padding: 9px 12px; font-size: 0.9rem; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--ink); }
.tabs .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.blanks { margin-left: auto; font-size: 0.74rem; font-weight: 600; color: var(--amber); background: var(--amber-bg); padding: 3px 9px; border-radius: 980px; cursor: help; }
.tailor-box { margin-top: 0; font-size: 0.92rem; line-height: 1.6; }
.dash-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.dash-note { margin-left: auto; color: var(--text-3); }
.paste-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.spinner-sm { width: 14px; height: 14px; border-width: 2px; margin: 0; }


/* ---------- The editor ---------- */
.main-editor { padding: 0; }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - var(--nav-h)); }
.ed-main { position: relative; min-width: 0; display: flex; flex-direction: column; }
.ed-top { position: sticky; top: var(--nav-h); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 22px; background: rgba(245, 245, 247, 0.9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.ed-back { color: var(--text-2); font-size: 0.88rem; }
.ed-top-actions { display: flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 980px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 14px; border-radius: 980px; font-size: 0.84rem; color: var(--text-2); }
.seg button.on { background: var(--ink); color: #fff; }
.menu { position: relative; }
.menu-list { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-hover); padding: 6px; min-width: 240px; z-index: 20; }
.menu-list.open { display: flex; flex-direction: column; }
.menu-list button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 1px; }
.menu-list button:hover { background: var(--bg); }
.menu-list button b { font-size: 0.9rem; font-weight: 600; }
.menu-list button i { font-style: normal; font-size: 0.76rem; color: var(--text-3); }
.ed-scroll { padding: 22px 22px 40px; max-width: 980px; width: 100%; margin: 0 auto; }
.ed-job { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 4px 0 16px; }
.ed-job-t small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 4px; }
.ed-job-t h1 { font-size: 1.45rem; letter-spacing: -0.02em; }
.ed-job-t span { display: block; color: var(--text-2); font-size: 0.9rem; margin-top: 3px; }
.ed-job-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%; }
.jchip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 500; padding: 4px 10px; border-radius: 980px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); }
.jchip-have { background: var(--green-bg); border-color: transparent; color: var(--green); }
.jchip-miss { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.jchip-opt { color: var(--text-3); }
.ed-score { padding: 14px 20px; margin-bottom: 10px; }
.ed-score-top { display: flex; align-items: center; gap: 14px; }
.ring.ring-sm { width: 46px; height: 46px; }
.ring.ring-sm circle { stroke-width: 4; }
.ring.ring-sm .num b { font-size: 0.8rem; letter-spacing: 0; }
.ring .fill.good { stroke: var(--green); } .ring .fill.ok { stroke: var(--accent); } .ring .fill.warn { stroke: var(--amber); }
.ed-score-text { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ed-score-text b { font-size: 0.98rem; }
.ed-score-text span { font-size: 0.84rem; color: var(--text-2); }
.fit-chip { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: var(--bg); color: var(--text-2); white-space: nowrap; }
.fit-chip.fit-strong { background: var(--green-bg); color: var(--green); }
.fit-chip.fit-good { background: var(--green-bg); color: var(--green); }
.fit-chip.fit-fair { background: var(--amber-bg); color: var(--amber); }
.ed-score-more { margin: 0; font-size: 0.84rem; white-space: nowrap; }
.ed-score-line { margin: 10px -20px -14px; padding: 9px 20px; border-top: 1px solid var(--line); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); font-size: 0.86rem; color: var(--text-2); }
.ed-analysis { display: none; margin-top: 24px; }
.ed-analysis.open { display: block; }
.ed-analysis .areas { display: grid; gap: 6px; }
.ed-analysis .area { display: grid; grid-template-columns: 170px 1fr 48px; align-items: center; gap: 12px; font-size: 0.84rem; }
.ed-analysis .area .bar { height: 6px; background: var(--bg); border-radius: 980px; overflow: hidden; }
.ed-analysis .area .bar i { display: block; height: 100%; background: var(--green); }
.ed-analysis .area .bar i.warn { background: var(--amber); } .ed-analysis .area .bar i.bad { background: var(--red); }
.ed-tips { margin: 14px 0 0; padding-left: 18px; font-size: 0.86rem; color: var(--text-2); }
.ed-tips li + li { margin-top: 4px; }

/* The paper: Jake's layout, in a serif, every line editable. */
.paper { background: var(--surface); border-radius: 6px; box-shadow: 0 2px 16px rgba(0,0,0,.08), 0 0 1px rgba(0,0,0,.2); padding: 44px 52px 40px; font-family: "Times New Roman", Times, Georgia, serif; font-size: 15px; line-height: 1.4; color: #111; }
.paper .ce { outline: none; border-radius: 3px; min-width: 1ch; display: inline; }
.paper .ce:hover { background: rgba(0, 113, 227, 0.07); }
.paper .ce:focus { background: rgba(0, 113, 227, 0.1); box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.25); }
.paper .ce:empty::before { content: attr(data-ph); color: #a0a0a6; font-style: italic; font-weight: 400; opacity: 0; transition: opacity .12s; }
.entry:hover .ce:empty::before, .p-head:hover .ce:empty::before, .sec-head:hover .ce:empty::before, .leaf:hover .ce:empty::before, .paper .ce:focus:empty::before { opacity: 1; }
.p-head { text-align: center; margin-bottom: 14px; }
.p-head h1 { font-size: 30px; font-weight: 700; letter-spacing: 0.02em; font-variant: small-caps; margin: 0 0 4px; }
.p-contact { font-size: 13.5px; }
.c-sep { margin: 0 6px; color: #666; }
.c-link { text-decoration: underline; }
.p-contact .c-bit:empty::before { opacity: 1; }
/* A [bracket] is the candidate's to fill: yellow wherever it's drawn. */
.paper mark.blank, .diff-new mark.blank { background: #fff1c2; color: #7a4b00; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
/* "Summary – Software Engineer": the role on the heading line, in normal weight. */
.sec-role { font-variant: normal; font-weight: 400; letter-spacing: 0; font-size: 15px; display: inline-flex; align-items: baseline; gap: 6px; }
.sec-role:not(.sec-role-empty)::before, .sec-role-new::before { content: "–"; color: #555; }
.sec-role-empty { opacity: 0; transition: opacity .12s; }
.sec:hover .sec-role-empty, .sec-role-empty:focus-within { opacity: 1; }
.sec-role-empty::before { content: "–"; color: #999; }
.sec-role-new s { color: var(--red); } .sec-role-new b { color: var(--green); font-weight: 400; }
.c-addlink { display: inline; margin: 0 0 0 8px; font-family: var(--font); font-size: 0.74rem; }
.sec { margin-top: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; border-bottom: 1px solid #333; padding-bottom: 1px; margin-bottom: 6px; }
.sec-head h2 { font-size: 17px; font-weight: 600; font-variant: small-caps; letter-spacing: 0.02em; display: flex; align-items: baseline; gap: 8px; margin: 0; }
.sec-tools, .en-tools, .sec-del, .leaf-x { opacity: 0; transition: opacity .12s; font-family: var(--font); }
.sec:hover .sec-tools, .sec:hover .sec-del, .entry:hover .en-tools, .leaf:hover .leaf-x { opacity: 1; }
.sec-tools button, .en-tools button, .sec-del { border: 0; background: none; color: #8a8a90; font-size: 12px; padding: 0 4px; font-family: var(--font); display: inline-flex; align-items: center; gap: 4px; }
.sec-tools button:hover, .en-tools button:hover, .sec-del:hover { color: var(--accent); }
.sec-tools button[disabled] { opacity: 0.35; }
.sec-empty { color: #999; font-size: 13px; font-style: italic; margin: 4px 0 0 14px; }
.entry { margin: 4px 0 8px 14px; }
.en-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.en-left { flex: 1; min-width: 0; }
.en-title { font-weight: 700; }
.en-sep { color: #555; margin: 0 3px; }
.en-meta { font-style: italic; }
.en-sub { font-size: 14px; }
.en-org, .en-sub .en-right { font-style: italic; }
.en-right { flex: none; text-align: right; }
.en-sub .en-right { color: #333; }
.en-right:empty::before { font-style: normal; }
.field-diff s { color: var(--red); } .field-diff b { color: var(--green); font-weight: inherit; }
.bul { list-style: none; margin: 2px 0 0; padding: 0; }
.bul li { position: relative; padding-left: 18px; margin: 1px 0; }
.bul li::before { content: "•"; position: absolute; left: 4px; top: 0; color: #333; }
.bul li .ce { display: inline; }
.leaf { position: relative; }
.leaf-x { position: absolute; right: -22px; top: 1px; border: 0; background: none; color: #b0b0b6; font-size: 15px; line-height: 1; padding: 0 4px; }
.leaf-x:hover { color: var(--red); }
.items .line { margin: 2px 0 2px 14px; }
.items .para { margin: 4px 0 6px 14px; white-space: pre-line; }
.p-foot { margin-top: 18px; display: flex; gap: 16px; }
.p-foot .linky { font-family: var(--font); margin: 0; }

/* A suggested change: the old line struck through in red, the new line in green, then the bar. */
.diff { margin: 5px 0 8px 0; border-radius: 6px; overflow: hidden; font-family: inherit; }
.sec > .diff, .items .diff, .letter .diff { margin-left: 0; }
.diff-old, .diff-new { padding: 5px 10px 5px 26px; position: relative; font-size: 14.5px; line-height: 1.4; }
.diff-old { background: #fdecea; color: #b3261e; text-decoration: line-through; text-decoration-color: rgba(179, 38, 30, .6); }
.diff-new { background: #e6f4ea; color: #137333; }
.diff-old::before, .diff-new::before { position: absolute; left: 10px; top: 5px; font-weight: 700; text-decoration: none; }
.diff-old::before { content: "−"; } .diff-new::before { content: "+"; }
.diff-old + .diff-new { margin-top: 2px; }
.diff-move { display: flex; align-items: center; gap: 10px; background: var(--blue-bg); color: #0b5cc2; padding: 4px 6px 4px 26px; position: relative; font-size: 14.5px; line-height: 1.4; }
.diff-move::before { content: "↕"; position: absolute; left: 10px; top: 5px; font-weight: 700; }
.diff-move .diff-actions { gap: 5px; }
.diff-move .dbtn { width: 22px; height: 22px; margin: 0; background: #fff; border-color: transparent; }
.diff-move .dbtn svg { width: 10px; height: 10px; }
.diff-move .dbtn-accept { color: var(--accent); } .diff-move .dbtn-accept:hover { background: #fff; color: var(--accent-hover); }
.diff-m { margin-top: 3px; }
/* An idea: a bullet only the candidate can write, so it's a prompt, not a line. */
.diff-idea { display: flex; align-items: flex-start; gap: 8px; background: var(--amber-bg); color: var(--amber); padding: 6px 10px; font-size: 14.5px; line-height: 1.4; }
.diff-idea svg { flex: none; margin-top: 3px; }
.diff-idea b { font-weight: 700; margin-right: 2px; }
.diff-i .dbtn-accept { background: #fdebc8; color: var(--amber); } .diff-i .dbtn-accept:hover { background: #fbdfa8; color: var(--amber); }
.ed-must { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.ed-must small, .ed-values small { display: block; margin-bottom: 6px; }
.must { display: flex; align-items: flex-start; gap: 9px; font-size: 0.84rem; line-height: 1.35; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.must b { font-weight: 600; color: var(--text); }
.must i { font-style: normal; color: var(--text-3); }
.must-i { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; flex: none; font-size: 0.72rem; font-weight: 700; margin-top: 1px; }
.must-i svg { width: 11px; height: 11px; }
.must-met .must-i { background: var(--green-bg); color: var(--green); }
.must-unmet .must-i { background: #fdecea; color: #b3261e; }
.must-unmet { border-color: #f3c7c2; }
.must-unknown .must-i { background: var(--amber-bg); color: var(--amber); }
/* Under the change: round glyph buttons (another go, reject, accept), the
   way a system sheet puts the confirming one last. No reason line: the
   change speaks for itself. */
.diff-bar { display: flex; align-items: center; gap: 10px; padding: 6px 2px 2px; font-family: var(--font); }
.diff-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.dbtn { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); display: grid; place-items: center; transition: background .12s, color .12s, border-color .12s, transform .08s; }
.dbtn:hover { background: var(--bg); color: var(--text); }
.dbtn:active { transform: scale(0.94); }
.dbtn-reject { color: var(--red); }
.dbtn-reject:hover { background: var(--red-bg); border-color: transparent; color: var(--red); }
.dbtn-accept { background: var(--green-bg); border-color: transparent; color: var(--green); }
.dbtn-accept:hover { background: #d4ecdb; color: var(--green); }
.dbtn-mini { display: inline-flex; width: 20px; height: 20px; margin-left: 4px; vertical-align: middle; }
.dbtn-mini svg { width: 10px; height: 10px; }
.diff.flash { box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.45); }
.sec-removing > *:not(.diff) { opacity: 0.45; }

/* The floating bar for stepping through the suggestions. */

/* The chat. */
.ed-chat { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); }
.ed-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { border-radius: 14px; padding: 12px 14px; font-size: 0.88rem; line-height: 1.5; max-width: 92%; }
.msg p + p { margin-top: 8px; }
.msg-assistant { background: var(--bg); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-edits { display: inline-block; margin-top: 10px; font-size: 0.76rem; font-weight: 600; color: var(--green); background: var(--green-bg); padding: 4px 10px; border-radius: 980px; }
.msg-busy { display: flex; gap: 4px; padding: 14px 16px; }
.msg-busy span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: blink 1s infinite; }
.msg-busy span:nth-child(2) { animation-delay: .2s; } .msg-busy span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
/* The job, the scores and the editing hint sit at the top of Tailor, over the
   chat, so the page on the left is the paper alone. */
.ed-brief { flex: none; max-height: 55%; overflow-y: auto; padding: 14px 18px 4px; border-bottom: 1px solid var(--line); }
.ed-brief:empty { display: none; }
.ed-brief .ed-job { flex-direction: column; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.ed-brief .ed-job-t h1 { font-size: 1.08rem; }
.ed-brief .ed-job-t span { font-size: 0.82rem; }
.ed-brief .ed-job-chips { justify-content: flex-start; max-width: none; gap: 5px; }
.ed-brief .jchip { font-size: 0.72rem; padding: 3px 8px; }
.ed-values small { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 6px; }
.ed-brief .ed-values .value { font-size: 0.76rem; padding: 4px 9px; border-radius: 8px; gap: 5px; }
.ed-brief .ed-score { padding: 12px 14px; margin-bottom: 10px; box-shadow: none; border: 1px solid var(--line); }
.ed-brief .ed-score-top { flex-wrap: wrap; gap: 8px 12px; }
.ed-brief .ed-score-text { flex: 1 1 calc(100% - 60px); }
.ed-brief .ed-score-more { margin-left: auto; }
.ed-brief .ed-score-text b { font-size: 0.9rem; }
.ed-brief .ed-score-text span { font-size: 0.78rem; }
.ed-brief .ed-score-line { margin: 10px -14px -12px; padding: 8px 14px; font-size: 0.8rem; }
.ed-brief .ed-analysis { margin-top: 16px; }
.ed-brief .ed-analysis .area { grid-template-columns: 96px 1fr 40px; gap: 8px; font-size: 0.78rem; }
.ed-moves { padding: 10px 14px 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ed-moves small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 4px 4px; }
.move { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; border: 0; background: none; padding: 8px 6px; border-radius: 10px; font-size: 0.84rem; color: var(--text); }
.move:hover { background: var(--bg); }
.move i { font-style: normal; color: var(--text-3); }
.ed-ask { display: flex; gap: 8px; padding: 12px 14px 16px; }
.ed-ask .input { flex: 1; padding: 11px 14px; font-size: 0.9rem; }
.ed-send { border: 0; background: var(--ink); color: #fff; width: 42px; border-radius: 12px; display: grid; place-items: center; }
.ed-send:hover { background: var(--ink-hover); }

.letter { margin-top: 18px; }
.letter .para { margin: 0 0 14px; white-space: pre-line; }
.letter .para .ce:empty::before { opacity: 1; }

@media (max-width: 1100px) {
  .ed { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .ed { grid-template-columns: 1fr; }
  .ed-chat { position: static; height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .ed-msgs { max-height: 50vh; }
  .ed-top { flex-wrap: wrap; }
  .ed-job { flex-direction: column; align-items: flex-start; }
  .ed-job-chips { justify-content: flex-start; max-width: none; }
  .paper { padding: 26px 20px; font-size: 14px; }
  .en-row { flex-wrap: wrap; }
  .en-right { text-align: left; }
  .ed-analysis .area { grid-template-columns: 110px 1fr 44px; }
}

/* ---------- Terms ---------- */
.prose { max-width: 72ch; padding-bottom: 80px; }
.prose h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); font-size: 1rem; line-height: 1.6; }
.prose p + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 22px; margin: 10px 0; }
.prose code { font-size: 0.9em; background: var(--line); padding: 1px 5px; border-radius: 4px; }
.prose li + li { margin-top: 8px; }
.prose .muted { color: var(--text-2); }

/* ---------- Blog (the pages lib/blog.js serves) ---------- */
.post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 16px auto 0; padding-bottom: 80px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 30px 30px 26px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); transition: box-shadow .15s, transform .15s; }
.post-card:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }
.post-card > p:not(.eyebrow) { color: var(--text-2); font-size: 0.98rem; line-height: 1.5; }
.post-card .post-meta { margin-top: auto; padding-top: 8px; }
.post-meta { color: var(--text-3); font-size: 0.84rem; font-variant-numeric: tabular-nums; }
.post { max-width: 70ch; margin: 0 auto; padding: 22px 0 80px; }
.post-head { padding: 26px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.post-head h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -0.028em; font-weight: 700; line-height: 1.06; margin-top: 10px; }
.post-stand { color: var(--text-2); font-size: 1.2rem; line-height: 1.45; letter-spacing: -0.01em; margin-top: 16px; }
.post-head .post-meta { margin-top: 18px; }
.post-body { max-width: none; padding-bottom: 8px; }
.post-body p, .post-body li { font-size: 1.06rem; line-height: 1.65; }
.post-body h2 { font-size: 1.5rem; line-height: 1.2; margin: 44px 0 12px; }
.post-body h2 + p { margin-top: 0; }
.post-body h3 { font-size: 1.12rem; line-height: 1.3; margin: 26px 0 6px; }
.post-body h2 + h3 { margin-top: 14px; }
.post-body h3 + p { margin-top: 0; }
.post-body p + p, .post-body ul + p, .post-body ol + p, .post-body div + p { margin-top: 14px; }
.post-body ul, .post-body ol { margin: 14px 0; }
.post-body a { text-decoration: underline; text-decoration-color: rgba(0, 113, 227, 0.35); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 12px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; font-weight: 600; letter-spacing: 0; vertical-align: 3px; }
.post-steps { padding-left: 24px; }
.post-steps li + li { margin-top: 14px; }
.post-key { background: var(--blue-bg); border-radius: var(--radius-sm); padding: 20px 24px; }
.post-key > b { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.post-key ul { margin: 10px 0 0; }
.post-key li { font-size: 1rem; line-height: 1.5; }
.post-ex { margin: 18px 0; padding: 18px 22px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.post-ex small { display: block; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.post-ex p { font-size: 1rem; line-height: 1.55; margin-top: 4px; }
.post-ex p + small { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.post-ex p + p { margin-top: 6px; }
.post-ex > b { display: block; margin-top: 4px; font-size: 1.05rem; }
.post-ex mark { background: var(--blue-bg); color: inherit; border-radius: 4px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.post-listing { border-left: 3px solid var(--accent); }
.post .cta-box { margin-top: 44px; }
.post-sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-sources h2 { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.post-sources ol { margin: 12px 0 0; padding-left: 20px; color: var(--text-3); font-size: 0.86rem; line-height: 1.5; }
.post-sources li + li { margin-top: 5px; }
.post-sources a { color: var(--text-2); }
.post-next { display: block; margin-top: 36px; padding: 20px 24px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); color: var(--text); transition: box-shadow .15s; }
.post-next:hover { text-decoration: none; box-shadow: var(--shadow-hover); }
.post-next small { display: block; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.post-next b { display: block; margin-top: 4px; font-size: 1.1rem; letter-spacing: -0.01em; }
@media (max-width: 820px) {
  .post-list { grid-template-columns: 1fr; }
  .post-card { padding: 24px 22px 22px; }
  .post-stand { font-size: 1.08rem; }
  .post-body p, .post-body li { font-size: 1rem; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 0.78rem; color: var(--text-3); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer a { color: var(--text-2); }

.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps, .live, .inc { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 290px 1fr; }
  .bento .tile, .bento .tile-third { grid-column: span 6; }
  .bento .tile.tile-half { grid-column: span 3; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: grid; gap: 5px; background: none; border: 0; padding: 8px; }
  .nav-toggle span { width: 18px; height: 1.5px; background: var(--text); display: block; transition: transform .2s; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(251,251,253,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 14px 22px 20px; gap: 14px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-links a { font-size: 1.05rem; }
  .io-grid, .plans, .detail-grid, .steps, .live, .inc { grid-template-columns: 1fr; }
  .dash, .gaps, .paste-row, .prefs-grid { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .job-list { max-height: 300px; }
  .dash-note { margin-left: 0; width: 100%; }
  .hero { padding: 64px 0 48px; }
  .tile { grid-column: span 6; }
  .have-miss, .cover-grid { grid-template-columns: 1fr; }
  .match-score { width: 56px; height: 56px; font-size: 0.95rem; }
  .area { grid-template-columns: 130px 1fr 44px; }
  .score-hero { flex-direction: column; align-items: flex-start; }
  /* The step strip wraps to two rows on a phone, so it stops being a pill. */
  .strip { border-radius: 18px; width: 100%; }
  .strip li { padding: 7px 10px; font-size: 0.82rem; }
  .io-head { flex-wrap: wrap; }
  .io-note { margin-left: 0; width: 100%; }
  .io-body { min-height: 0; }
  .io-text { min-height: 180px; }
  .io-foot .btn { margin-left: 0; width: 100%; }
  .job { padding: 22px; }
  .job h3 { font-size: 1.25rem; }
}

/* ---------- Free CV Score: the CV and its score, the matches beside ---------- */
.score-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; padding-top: 28px; padding-bottom: 80px; }
.score-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* With the CV in, its card is the one row, not the drop zone's height. */
/* A CV or job in hand is one line, so the card shrinks to it. */
.io-body:has(> .io-have) { min-height: 0; }
.paste-link { font-size: 0.9rem; margin: -2px 0 0 4px; }
.io-head-r { margin-left: auto; }
.io-paste .io-body { margin-top: 0; }
.score-empty > .sub { margin-top: -4px; }
.score-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.score-foot .btn { margin-left: auto; }
/* The rail stays in view while the review scrolls past. */
.score-rail { position: sticky; top: calc(var(--nav-h) + 20px); padding: 24px; }
.score-rail h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.2; }
.score-rail > .sub { margin-top: 8px; font-size: 0.88rem; }
.top3 { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.top3-row { display: flex; gap: 11px; align-items: flex-start; padding: 12px 13px; background: var(--bg); border-radius: 14px; }
.top3-row .fit { width: 38px; height: 38px; font-size: 0.92rem; }
.top3-t { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.top3-t b { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.top3-t i { font-style: normal; font-size: 0.82rem; color: var(--text-2); }
.top3-why { font-size: 0.76rem; color: var(--text-3); }
/* Before a score: three rows' worth of shape, so the space reads as what it will hold. */
.top3-ghost .fit { background: var(--line); }
.top3-ghost b, .top3-ghost i { display: block; height: 11px; border-radius: 6px; background: var(--line); }
.top3-ghost b { width: 72%; margin-top: 4px; }
.top3-ghost i { width: 46%; height: 9px; margin-top: 5px; }
.cta-stack { flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; margin-top: 16px; }
.cta-stack b { font-size: 1.05rem; }
.cta-stack .btn { text-align: center; }
.signup { max-width: 640px; margin: 28px auto 60px; }
.signup h1 { font-size: 2rem; letter-spacing: -0.03em; margin-top: 4px; }
.signup > .sub { margin-top: 10px; font-size: 1rem; }
.signup-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; }
.signup-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg); border-radius: 12px; }
.signup-list li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.signup-list b { font-size: 0.95rem; font-weight: 600; }
.signup-list i { font-style: normal; font-size: 0.84rem; color: var(--text-2); }
.signup-form { margin-top: 22px; }
.signup-form label { display: block; font-size: 0.84rem; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.signup-row { display: flex; gap: 10px; }
.signup-row .input { flex: 1 1 0; min-width: 0; }
#signup-note { margin-top: 14px; }
@media (max-width: 1000px) {
  .score-page { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 820px) {
  .score-page { grid-template-columns: 1fr; padding-top: 20px; }
  .score-rail { position: static; }
  .score-foot .btn { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
  .signup-row { flex-direction: column; }
}

/* The app's CV review: the score page without the matches rail. */
.score-solo { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

/* ---------- The editor's five stages ---------- */
/* The strip across the top of the paper: done, current, to come. */
.ed-steps { list-style: none; margin: 0; padding: 10px 22px 0; display: flex; gap: 6px; max-width: 980px; width: 100%; margin: 0 auto; }
.ed-steps li { flex: 1 1 0; min-width: 0; }
.ed-steps button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text-3); font-size: 0.8rem; font-weight: 500; text-align: left; box-shadow: var(--shadow); transition: background .12s, color .12s; position: relative; }
.ed-steps button:hover { color: var(--text); }
.ed-steps i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.7rem; font-weight: 600; background: var(--bg); color: var(--text-2); }
.ed-steps i svg { width: 11px; height: 11px; }
.ed-steps span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-steps li.now button { background: var(--ink); color: #fff; }
.ed-steps li.now i { background: rgba(255,255,255,.18); color: #fff; }
.ed-steps li.done button { color: var(--text-2); }
.ed-steps li.done i { background: var(--green-bg); color: var(--green); }
.ed-step-dot { margin-left: auto; font-style: normal; font-size: 0.68rem; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-bg); color: var(--accent); }
.ed-steps li.now .ed-step-dot { background: rgba(255,255,255,.18); color: #fff; }
.ed-step-wait { min-width: 8px; width: 8px; height: 8px; padding: 0; border-radius: 50%; background: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
/* The panel's card for the stage: what it does, and the colour it comes in. */
.ed-stage { margin: 2px 0 14px; }
.ed-stage small { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 4px; }
.ed-stage h2 { font-size: 1.12rem; letter-spacing: -0.02em; }
.ed-stage p { font-size: 0.84rem; color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.ed-key { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 0.74rem; color: var(--text-3); }
.ed-key span { width: 10px; height: 10px; border-radius: 3px; }
.ed-key-move { background: #0b5cc2; } .ed-key-add { background: #137333; } .ed-key-edit { background: linear-gradient(90deg, #b3261e 50%, #137333 50%); } .ed-key-idea { background: #e39a00; }
/* The letter's format: the parts in order, each with what it holds. */
.ed-format { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; counter-reset: fmt; }
.ed-format li { display: grid; grid-template-columns: 86px 1fr; gap: 8px; font-size: 0.76rem; line-height: 1.35; padding: 6px 9px; background: var(--bg); border-radius: 9px; }
.ed-format li::before { display: none; }
.ed-format b { font-weight: 600; text-transform: capitalize; color: var(--text); }
.ed-format span { color: var(--text-2); }
/* The bar: Back, the stage, what's left, Undo, Keep all, Next. */
.spinner-light { border-color: rgba(255,255,255,.3); border-top-color: #fff; display: inline-block; vertical-align: middle; }
.ed-more { padding-left: 10px; padding-right: 10px; font-size: 0.9rem; line-height: 1; }
@media (max-width: 820px) {
  .ed-steps { flex-wrap: wrap; }
  .ed-steps li { flex: 1 1 30%; }
}

/* ---------- Accounts: sign up, sign in, profile ---------- */
.auth { max-width: 440px; margin: 40px auto 70px; }
.auth h1 { font-size: 1.9rem; letter-spacing: -0.03em; margin-top: 4px; }
.auth > .sub { margin-top: 8px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 500; color: var(--text-2); }
.auth-form .input { width: 100%; }
.auth-form .btn { margin-top: 6px; width: 100%; }
/* The cancel page: a quiet, centred card with the end date and what goes. */
.cancel { text-align: center; padding-top: 40px; padding-bottom: 28px; }
.cancel-when { margin-top: 14px; font-size: 1.05rem; color: var(--text); }
.cancel-when b { font-weight: 600; }
.cancel-lose { margin-top: 4px; font-size: 0.95rem; color: var(--text-2); }
.cancel .auth-form { margin-top: 28px; gap: 6px; }
.cancel-go { background: none; border: 0; padding: 10px; font: inherit; font-size: 0.9rem; color: var(--red); cursor: pointer; border-radius: 980px; }
.cancel-go:hover { background: var(--red-bg); }
.cancel-go:disabled { opacity: 0.5; cursor: default; }
.auth-foot { margin-top: 18px; font-size: 0.86rem; color: var(--text-2); text-align: center; }
.auth-hint { font-size: 0.76rem; color: var(--text-3); font-weight: 400; }
/* The profile: a header, three tabs (About, Filter, Management) and a save
   bar under About and Filter. */
.pf { max-width: 760px; padding-top: 32px; padding-bottom: 70px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; flex: none; }
.pf-head { display: flex; align-items: center; gap: 16px; }
.pf-head .avatar { width: 64px; height: 64px; font-size: 1.45rem; background: linear-gradient(145deg, #3a3a3c, var(--ink)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }
.pf-who { min-width: 0; }
.pf-who h1 { font-size: 1.7rem; letter-spacing: -0.03em; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-who p { margin-top: 3px; font-size: 0.9rem; color: var(--text-2); display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.pf-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.pf-demo { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.pf-demo span { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); background: var(--surface); box-shadow: var(--shadow); border-radius: 980px; padding: 5px 10px; }
.pf-panel { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.pf-card { padding: 26px 28px; }
.pf-intro h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.pf-intro h2 .pf-test { margin-left: 10px; vertical-align: 2px; letter-spacing: 0; }
.pf-intro p { margin-top: 4px; font-size: 0.9rem; color: var(--text-2); }
.pf-grid label { display: block; font-size: 0.84rem; font-weight: 500; color: var(--text-2); }
.pf-form .input { width: 100%; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.pf-grid .wide { grid-column: 1 / -1; }
.pf-hint { font-size: 0.76rem; color: var(--text-3); font-weight: 400; }
.pf-grid label .input { margin-top: 6px; }
.pf-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.pf-actions .note { font-size: 0.84rem; color: var(--green); }
.pf-actions .note.pf-muted { color: var(--text-2); }
.pf-row .pf-note { margin-top: 6px; color: var(--accent); }
.pf-note:empty { display: none; }
.pf-plan { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-bg), #f4f0fd); }
.pf-plan b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.pf-plan span { display: block; font-size: 0.84rem; color: var(--text-2); margin-top: 2px; }
.pf-plan .btn, .pf-row .btn { margin-left: auto; flex: none; }
.pf-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pf-intro + .pf-row { margin-top: 6px; }
.pf-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-row > div { min-width: 0; }
.pf-row b { display: block; font-size: 0.92rem; font-weight: 600; }
.pf-row span { display: block; font-size: 0.84rem; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.pf-plan + .pf-row { margin-top: 6px; }
.pf-danger { background: var(--surface); color: var(--red); border-color: var(--line-strong); }
.pf-danger:hover { background: var(--red-bg); border-color: var(--red); }
.nav-user { display: inline-flex; align-items: center; gap: 7px; }
.nav-user i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 0.66rem; font-weight: 600; }
@media (max-width: 640px) {
  .pf { padding-top: 20px; }
  .pf-head { flex-wrap: wrap; gap: 14px; }
  .pf-head .avatar { width: 54px; height: 54px; font-size: 1.2rem; }
  .pf-who { flex: 1; }
  .pf-who h1 { font-size: 1.35rem; }
  .pf-demo { margin-left: 0; width: 100%; justify-content: space-between; }
  .pf-card { padding: 20px 18px; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-plan { flex-wrap: wrap; }
  .pf-plan .btn { margin-left: 0; }
}

/* ---------- The app shell: the pages in a sidebar ---------- */
/* The landing side keeps the top nav. In the app it's hidden, the pages sit in
   a sidebar on the left with the account at its foot, and the footer goes:
   the page is the app. On a phone the sidebar is a tab bar along the bottom
   and the top bar comes back for the mark. */
.shell { display: flex; align-items: flex-start; }
.shell .main { flex: 1 1 auto; min-width: 0; }
.app-side { display: none; }
body.in-app { --nav-h: 0px; }
body.in-app .nav, body.in-app .footer { display: none; }
body.in-app .app-side {
  display: flex; flex-direction: column; gap: 6px; flex: none;
  position: sticky; top: 0; height: 100vh; width: 232px; padding: 18px 14px 16px;
  background: rgba(251, 251, 253, 0.86); border-right: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.side-brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; padding: 6px 10px 18px; }
.side-brand .brand-tag { display: inline-block; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-user { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: var(--text); font-size: 0.92rem; font-weight: 500; transition: background .12s, color .12s; }
.side-nav a svg, .side-user > svg { width: 19px; height: 19px; color: var(--text-2); flex: none; }
.side-nav a:hover, .side-user:hover { background: rgba(0, 0, 0, 0.05); text-decoration: none; }
.side-nav a.active, .side-user.active { background: var(--ink); color: #fff; }
.side-nav a.active svg, .side-user.active svg { color: #fff; }
.side-nav a small { display: block; font-size: 0.72rem; font-weight: 400; color: var(--text-3); margin-top: 1px; }
.side-nav a.active small { color: rgba(255, 255, 255, 0.65); }
.side-account { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.side-user i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 0.66rem; font-weight: 600; flex: none; }
.side-user.active i { background: #fff; color: var(--ink); }
@media (max-width: 820px) {
  body.in-app { --nav-h: 52px; }
  body.in-app .nav { display: block; }
  body.in-app .nav-cta, body.in-app .nav-toggle { display: none; }
  body.in-app .app-side {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; width: auto; z-index: 40;
    flex-direction: row; align-items: stretch; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-right: 0; border-top: 1px solid var(--line);
  }
  .side-brand { display: none; }
  .side-nav { flex-direction: row; flex: 1; justify-content: space-around; }
  .side-nav a, .side-user { flex-direction: column; gap: 3px; font-size: 0.66rem; padding: 6px 8px; border-radius: 10px; }
  .side-nav a small { display: none; }
  .side-account { margin: 0; padding: 0; border: 0; display: flex; }
  .side-user span { font-size: 0.66rem; }
  body.in-app .main { padding-bottom: 76px; }
  body.in-app .dock { bottom: 84px; }
}

@media (max-width: 374px) { .side-nav a, .side-user { padding: 6px 3px; } }

/* ---------- Swipe ---------- */
.swipe-page { max-width: 730px; margin: 0 auto; padding: 22px 22px 40px; }
.swipe-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; }
.swipe-head h1 { font-size: 1.9rem; letter-spacing: -0.025em; font-weight: 700; }
.swipe-head .sub { color: var(--text-2); font-size: 0.9rem; margin-top: 2px; }
.swipe-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.swipe-tools .btn svg { width: 14px; height: 14px; }
.swipe-tools .btn.on { border-color: var(--accent); color: var(--accent); }
.swipe-locbox { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.swipe-locbox .input { flex: 1 1 160px; width: auto; }
.swipe-locbox .input.bad { border-color: var(--red); }
.swipe-locbox[hidden] { display: none; }
.deck { position: relative; height: 760px; }
.scard {
  position: absolute; inset: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-hover);
  overflow: hidden; display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none;
  transform: translateY(calc(var(--n) * 10px)) scale(calc(1 - var(--n) * 0.04)); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  z-index: calc(10 - var(--n));
}
.scard.top { cursor: grab; }
.scard.dragging { cursor: grabbing; transition: none; }
.scard-art { position: relative; height: 280px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 40%)); }
.scard-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.scard-mono { position: relative; font-size: 4.2rem; font-weight: 700; letter-spacing: -0.04em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
.scard-logo { position: absolute; left: 22px; bottom: -26px; width: 64px; height: 64px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-hover); object-fit: contain; }
.scard-tags { position: absolute; top: 14px; left: 16px; display: flex; gap: 6px; }
.scard-tags .badge { background: rgba(255, 255, 255, 0.92); }
.scard-fit { position: absolute; top: 12px; right: 14px; display: flex; flex-direction: column; align-items: center; }
.scard-fit .fit { width: 46px; height: 46px; font-size: 1.05rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }
.scard-fit small { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; font-weight: 600; }
/* The stamps: Like comes up as the card goes right, Pass as it goes left. */
.stamp {
  position: absolute; top: 26px; padding: 5px 12px; border: 3px solid; border-radius: 10px;
  font-size: 1.25rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.92); opacity: 0;
}
.stamp svg { width: 20px; height: 20px; }
.stamp-like { left: 18px; color: var(--green); border-color: var(--green); transform: rotate(-14deg); opacity: var(--like, 0); }
.stamp-like svg { fill: currentColor; }
.stamp-pass { right: 18px; color: var(--red); border-color: var(--red); transform: rotate(14deg); opacity: var(--pass, 0); }
.scard.liking .stamp-like, .scard.passing .stamp-pass { opacity: 1; }
.scard-body { padding: 38px 28px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; overflow: hidden; }
.scard-body h2 { font-size: 1.65rem; letter-spacing: -0.025em; line-height: 1.15; }
.scard-co { color: var(--text-2); font-size: 1.05rem; display: flex; gap: 8px; flex-wrap: wrap; }
.scard-co .dot { color: var(--line-strong); }
.scard-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.96rem; }
.scard-facts span, .scard-locbtn { display: inline-flex; align-items: center; gap: 6px; }
.scard-facts svg { color: var(--text-3); flex: none; }
.scard-facts .faint { color: var(--text-3); }
.scard-locbtn { border: 0; background: none; padding: 0; color: var(--accent); font-size: 0.88rem; }
.scard-locbtn svg { color: var(--accent); }
.scard-why { font-size: 0.8rem; color: var(--text-3); }
.scard-more { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.94rem; line-height: 1.5; color: var(--text-2); overflow: hidden; flex: 1; min-height: 0; }
.scard-more .lead { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.scard-more .lead-more { display: block; margin-top: 8px; font-size: 0.84rem; color: var(--accent); }
/* The whole description, laid out: headings, paragraphs and bullets. */
.rich { display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; line-height: 1.5; }
.rich h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); margin: 8px 0 -4px; }
.rich h4:first-child { margin-top: 0; }
.rich p { margin: 0; }
.rich ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.scard-empty { position: relative; inset: auto; height: 100%; justify-content: center; text-align: center; box-shadow: var(--shadow); cursor: default; }
.scard-empty .scard-body { align-items: center; justify-content: center; padding: 40px 28px; }
.scard-empty .dash-actions { justify-content: center; margin-top: 10px; }
.swipe-actions { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 22px; }
.sw-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; box-shadow: var(--shadow); color: var(--text-2); padding: 0;
  transition: transform .08s, background .12s, color .12s, border-color .12s, box-shadow .12s;
}
.sw-btn svg { width: 18px; height: 18px; }
.sw-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.sw-btn:active { transform: scale(0.94); }
.sw-btn[disabled] { opacity: 0.4; pointer-events: none; }
.sw-pass, .sw-like { width: 68px; height: 68px; }
.sw-pass svg, .sw-like svg { width: 24px; height: 24px; }
.sw-pass { color: var(--red); }
.sw-pass:hover { background: var(--red-bg); border-color: var(--red); }
.sw-like { color: #e0245e; }
.sw-like svg { fill: currentColor; }
.sw-like:hover { background: #ffe4ec; border-color: #e0245e; }
.sw-info[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sw-apply { color: var(--accent); }
.sw-apply[hidden] { display: none; }
.swipe-hint { text-align: center; color: var(--text-3); font-size: 0.78rem; margin-top: 14px; }
.jrow-heart, .dock-tab-heart svg { color: #e0245e; }
.jrow-heart svg { fill: currentColor; }
@media (max-width: 640px) {
  .deck { height: min(760px, calc(100vh - 290px)); }
  .swipe-head { flex-direction: column; align-items: flex-start; }
  .swipe-tools { justify-content: flex-start; }
  .scard-art { height: 150px; }
  .swipe-actions { gap: 10px; }
  .sw-pass, .sw-like { width: 60px; height: 60px; }
}

/* ---------- Tracker (draft) ---------- */
.track-page { padding-bottom: 60px; }
.draft-tag { display: inline-block; font-size: 0.6rem; border: 1px solid currentColor; border-radius: 980px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; letter-spacing: 0.06em; }
.track-connect { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.track-connect .sub { max-width: 60ch; }
.track-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.funnel { display: flex; gap: 44px; justify-content: center; padding: 12px 0 28px; flex-wrap: wrap; }
.funnel .stat b { font-size: 1.8rem; }
.track-card { padding: 8px 10px; }
.track-rows { display: flex; flex-direction: column; }
.trow { display: grid; grid-template-columns: 1.3fr 110px 1.6fr 1fr; gap: 16px; align-items: center; padding: 14px 12px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.trow:first-child { border-top: 0; }
.trow-co { display: flex; align-items: center; gap: 11px; min-width: 0; }
.trow-co > div { min-width: 0; }
.trow-co b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-co i { display: block; font-style: normal; color: var(--text-3); font-size: 0.78rem; }
.trow-mono { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.78rem; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 40%)); }
.pill { display: inline-flex; font-size: 0.74rem; font-weight: 600; padding: 4px 10px; border-radius: 980px; background: var(--bg); color: var(--text-2); justify-self: start; }
.pill-blue { background: var(--blue-bg); color: var(--accent); }
.pill-good { background: var(--green-bg); color: var(--green); }
.pill-bad { background: var(--red-bg); color: var(--red); }
.trow-mail { min-width: 0; }
.trow-mail b { display: block; font-weight: 600; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-mail i { display: block; font-style: normal; color: var(--text-3); font-size: 0.76rem; }
.trow-mail p { color: var(--text-2); font-size: 0.82rem; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trow-mail .faint { color: var(--text-3); }
.trow-next { color: var(--text-2); font-size: 0.84rem; }
@media (max-width: 820px) {
  .trow { grid-template-columns: 1fr auto; }
  .trow-mail, .trow-next { grid-column: 1 / -1; }
}

/* ---------- Landing: the app in pictures ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shot-wide { grid-column: 1 / -1; }
.shot-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); background: var(--surface); border: 1px solid var(--line); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot figcaption b { font-size: 1.1rem; letter-spacing: -0.01em; }
.shot figcaption p { color: var(--text-2); font-size: 0.95rem; margin-top: 4px; }
@media (max-width: 820px) {
  .shots { grid-template-columns: 1fr; }
}

/* ---------- The hero's logo strip ---------- */
.logos { padding: 8px 0 64px; overflow: hidden; text-align: center; }
.logos-head { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: 0 0 8px; }
.logos-sub { color: var(--text-3); font-size: 1rem; margin: 0 0 36px; }
.logos-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logos-track { display: flex; width: max-content; animation: logos-scroll var(--dur, 60s) linear infinite; will-change: transform; }
.logos-half { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.logo-mark { display: inline-flex; align-items: center; gap: 10px; height: 52px; white-space: nowrap; color: #8a8a8e; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }
.logo-mark img { height: 36px; width: auto; opacity: 0.45; }
.logo-word img { height: 64px; }
.logos-row:hover .logos-track { animation-play-state: paused; }
@keyframes logos-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation: none; } }
@media (max-width: 820px) {
  .logos { padding-bottom: 44px; }
  .logos-sub { margin-bottom: 24px; }
  .logos-half { gap: 40px; padding-right: 40px; }
  .logo-mark { height: 40px; font-size: 1.15rem; }
  .logo-mark img { height: 28px; }
  .logo-word img { height: 50px; }
}

/* ---------- Where the jobs come from ---------- */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 880px; margin: 0 auto; }
.logo-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; }
.logo-chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.logo-chip.no-logo img { display: none; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 960px; margin: 0 auto 40px; }
.compare-col { padding: 28px 30px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.compare-col h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.compare-col li { display: flex; align-items: flex-start; gap: 11px; font-size: 1rem; line-height: 1.45; color: var(--text-2); }
.compare-col li svg { flex: none; width: 20px; height: 20px; padding: 4px; border-radius: 50%; margin-top: 2px; }
.compare-them li svg { color: var(--red); background: var(--red-bg); }
.compare-us li { color: var(--text); }
.compare-us li svg { color: #fff; background: var(--accent); }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; gap: 14px; } .compare-col { padding: 22px 20px; } }
.proof-facts { list-style: none; margin: 34px auto 0; padding: 0; display: flex; justify-content: center; gap: 14px 40px; flex-wrap: wrap; color: var(--text-2); font-size: 0.95rem; }
.proof-facts li { display: inline-flex; align-items: center; gap: 9px; }
.proof-facts li svg { color: var(--accent); flex: none; }
.proof-facts li b { color: var(--text); font-weight: 600; }

/* ---------- Swipe: photos, pages and the map ---------- */
.scard-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scard-art.has-photo { background: #333; }
.scard-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, 0.45) 100%); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scard-art.has-photo::after { opacity: 1; }
.scard-art.has-photo::before, .scard-art.has-photo .scard-mono { display: none; }
.scard-art > * { z-index: 1; }
.scard-place { position: absolute; right: 16px; bottom: 12px; display: none; align-items: center; gap: 5px; color: #fff; font-size: 0.82rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
.scard-place svg { color: #fff; }
.scard-art.has-photo .scard-place { display: inline-flex; }
.scard-dots { position: absolute; top: 8px; left: 16px; right: 16px; display: flex; gap: 4px; }
.scard-dots i { flex: 1; height: 3px; border-radius: 980px; background: rgba(255, 255, 255, 0.45); }
.scard-dots i.on { background: #fff; }
.scard-tags { top: 20px; }
.scard-fit { top: 18px; }
.stamp { top: 32px; }
.scard-page { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.scard-page[hidden] { display: none; }
.scard-h { font-size: 1.3rem; }
.scard-h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); margin-top: 6px; }
.scard-h3.scard-miss { color: var(--amber); }
.scard-list { margin: 0; padding-left: 18px; font-size: 0.96rem; line-height: 1.45; color: var(--text); display: flex; flex-direction: column; gap: 5px; }
.skills .tag.miss-ats { background: var(--amber-bg); color: var(--amber); }
.scard-desc { overflow: auto; flex: 1; min-height: 0; cursor: text; user-select: text; -webkit-user-select: text; padding-right: 6px; }
.scard-page .linky { flex: none; }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; padding: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-hover); width: min(680px, 100%); max-height: 100%; overflow: auto; }
.modal-x { border: 0; background: var(--bg); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); flex: none; }
.modal-x:hover { background: var(--line); color: var(--text); }
.map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; }
.map-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.map-head .sub { font-size: 0.88rem; margin-top: 4px; }
.map { height: 380px; background: var(--bg); position: relative; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; }
/* The red pin: on the map, in the toolbar to pick up, and under the pointer. */
.map-pin svg { display: block; width: 28px; height: 36px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35)); cursor: pointer; }
.map-pin-src { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 14px 4px 9px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.map-pin-src:hover { border-color: #b5b5ba; background: #fafafa; }
.map-pin-src svg { width: 17px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); transition: transform .15s; }
.map-pin-src:hover svg { transform: translateY(-1px); }
.map-pin-src.dragging { cursor: grabbing; }
.map-pin-src.dragging svg { opacity: 0.25; transform: none; }
.map-pin-ghost { position: fixed; z-index: 100; pointer-events: none; width: 28px; height: 36px; transform: translate(-50%, -100%) scale(1.2) translateY(-6px); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); transition: transform .12s, filter .12s; }
.map-pin-ghost.over { transform: translate(-50%, -100%); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35)); }
.map-pin-ghost svg { display: block; width: 100%; height: 100%; }
.map-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px 18px; flex-wrap: wrap; }
.map-range { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); flex: 1 1 220px; }
.map-range b { color: var(--text); min-width: 96px; font-variant-numeric: tabular-nums; }
.map-range input { flex: 1; accent-color: var(--accent); }
.map-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.leaflet-container { font: inherit; }
.leaflet-tooltip { font-size: 0.78rem; }

/* ---------- Sign in with Google ---------- */
.btn-google { width: 100%; margin-top: 22px; background: var(--surface); color: var(--text); border-color: var(--line-strong); gap: 10px; }
.btn-google:hover { border-color: #b5b5ba; background: #fafafa; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 -8px; font-size: 0.8rem; color: var(--text-3); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Demo: the swap between the landing page and the app ---------- */
/* The demo's Pages menu: hidden unless a script finds it's on this machine. */
.swap { position: fixed; right: 22px; bottom: 22px; z-index: 31; display: none; flex-direction: column; align-items: flex-end; gap: 10px; }
.swap.local { display: flex; }
.swap-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 980px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow-hover); font: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; }
.swap-btn:hover, .swap-btn[aria-expanded=true] { color: var(--text); border-color: #b5b5ba; }
.swap-btn svg { width: 15px; height: 15px; }
.swap-menu { width: 230px; max-height: min(70vh, 560px); overflow: auto; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-hover); font-size: 0.84rem; }
.swap-menu a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--text); }
.swap-menu a:hover { background: var(--bg); text-decoration: none; }
.swap-menu a.on { color: var(--accent); font-weight: 600; }
.swap-menu a svg { width: 13px; height: 13px; }
.dock { bottom: 70px; }
@media (max-width: 820px) {
  body.in-app .swap { bottom: 84px; }
  body.in-app .dock { bottom: 132px; }
  .map { height: 300px; }
}

/* Keys on the swipe hint. */
.swipe-hint kbd { font: inherit; font-size: 0.72rem; font-weight: 600; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); }
.side-brand .brand-tag { display: none; }

/* ---------- Landing: the hero deck and the step cards ---------- */
.hero-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; text-align: left; padding: 64px 22px 40px; }
.hero-split h1 { margin: 0; max-width: 12ch; }
.hero-split p { margin-left: 0; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.hero-cta .hero-note { margin: 0; }
.hero-visual { min-width: 0; }
.hero-deck { position: relative; height: 560px; }
.hero-skel { border-radius: 22px; background: linear-gradient(160deg, #e9eef6, #f5f5f7); }
.hero-deck .scard, .mini-deck .scard { position: absolute; inset: auto; left: 50%; top: 0; width: min(380px, 100%); height: 480px; transform: translateX(-50%) translateY(calc(var(--n) * 14px)) rotate(calc(var(--n) * -5deg)) scale(calc(1 - var(--n) * 0.04)); cursor: default; }
.hero-deck .scard-art { height: 220px; }
.hero-deck .scard-body { padding: 34px 22px 18px; gap: 10px; }
.hero-deck .scard-body h2 { font-size: 1.3rem; }
.hero-deck .scard-co { font-size: 0.92rem; }
.hero-deck .scard-facts { font-size: 0.86rem; }
.hero-btns { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 18px; }
.hero-btns .sw-btn { width: 60px; height: 60px; }
.hero-btns .sw-btn svg { width: 22px; height: 22px; }
/* The hero deck swipes for real: the top card drags, the stamps show, the rest wait behind. */
.hero-live .scard.top { cursor: grab; }
.hero-live .scard.dragging { cursor: grabbing; transition: none; }
.hero-live .scard .stamp { top: 22px; }
.mini-deck { position: relative; height: 400px; }
.mini-deck .scard { height: 400px; width: 100%; box-shadow: var(--shadow); }
.mini-deck .scard-art { height: 170px; }
.mini-deck .scard-body { padding: 30px 20px 16px; gap: 8px; }
.mini-deck .scard-body h2 { font-size: 1.1rem; }
.mini-deck .scard-co, .mini-deck .scard-facts { font-size: 0.84rem; }
.mini-deck .scard-logo { width: 52px; height: 52px; bottom: -20px; left: 18px; padding: 8px; }
.credits { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; }
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; padding: 44px 22px 24px; gap: 32px; }
  .hero-split h1 { margin: 0 auto; }
  .hero-split p { margin-left: auto; }
  .hero-cta { justify-content: center; }
  .hero-deck { height: 520px; }
}

/* The fit for an example CV: grey, and labelled as the example's. */
.scard-fit-ex .fit { background: rgba(255, 255, 255, 0.92); color: var(--text-2); }
.scard-why a { color: var(--accent); }

/* Tracker: the agent's run card, the per-CV table, and what each row sent. */
.pill-warn { background: var(--amber-bg); color: var(--amber); }
.track-msg { margin: -4px 0 18px; color: var(--text-2); font-size: 0.9rem; }
.track-versions-card { margin-bottom: 18px; padding: 14px 10px 6px; }
.track-h2 { font-size: 0.95rem; margin: 0 12px 6px; }
.track-versions { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.track-versions th, .track-versions td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); }
.track-versions th { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; border-top: 0; }
.track-versions .num { text-align: right; font-variant-numeric: tabular-nums; }
.trow-cv { display: inline-block; margin-left: 6px; font-size: 0.7rem; color: var(--text-3); border: 1px solid var(--line-strong); border-radius: 980px; padding: 0 7px; vertical-align: 1px; }
.trow-status { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 4px 24px 4px 10px; border-radius: 980px; border: 0; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.trow-more { grid-column: 1 / -1; font-size: 0.84rem; }
.trow-more summary { cursor: pointer; color: var(--accent); }
.trow-more dl { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 6px 14px; margin: 10px 0 0; }
.trow-more dt { color: var(--text-3); }
.trow-more dd { margin: 0; white-space: pre-wrap; }
.trow-more img { max-width: 100%; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }

/* What they'll ask: the questions section on Tailor and in the Apply sheet. */
.q-card { margin-bottom: 18px; }
.q-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.q-top h3 { font-size: 1.05rem; margin: 0 0 2px; }
.q-top .sub { max-width: 60ch; }
.q-kind { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 18px 0 4px; }
.q-item { padding: 10px 0; border-top: 1px solid var(--line); }
.q-item:first-child, .q-kind + .q-item { border-top: 0; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; font-size: 0.92rem; }
.q-head b { font-weight: 600; }
.q-req { color: var(--red); margin-left: 3px; }
.q-tag { flex: none; font-size: 0.72rem; border-radius: 980px; padding: 2px 9px; white-space: nowrap; }
.q-sure { background: var(--green-bg); color: var(--green); }
.q-check { background: #fff7d6; color: #8a6400; }
.q-need { background: var(--amber-bg); color: var(--amber); }
.q-opts { font-size: 0.78rem; color: var(--text-3); margin: -2px 0 6px; }
.q-ans { display: flex; gap: 8px; align-items: flex-start; }
.q-text { flex: 1; font: inherit; font-size: 0.9rem; line-height: 1.45; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; color: inherit; resize: none; min-height: 38px; overflow: hidden; }
.q-text:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.q-copy { flex: none; margin-top: 2px; }
.q-foot { font-size: 0.8rem; color: var(--text-3); margin-top: 14px; }

/* The Apply sheet. */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.42); z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.sheet { background: var(--surface, #fff); color: inherit; width: min(760px, 100%); max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 12px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-size: 1.25rem; margin: 0 0 2px; }
.sheet-body { padding: 14px 24px; overflow: auto; }
.sheet-sys { font-size: 0.9rem; color: var(--text-2); margin: 0 0 10px; }
.sheet-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 24px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sheet-msg { margin-right: auto; font-size: 0.86rem; color: var(--text-2); }
body.sheet-open { overflow: hidden; }
@media (min-width: 760px) { .sheet-back { align-items: center; padding: 20px; } .sheet { border-radius: 18px; } }

/* Did you apply? */
.applied-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 55; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 980px; background: var(--card, #fff); border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14); font-size: 0.9rem; max-width: calc(100% - 32px); flex-wrap: wrap; }
.track-ai { font-size: 0.82rem; color: var(--text-3); margin: -8px 0 18px; }

/* Usage: the admin page. */
.admin-page { padding-bottom: 60px; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.adm-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.adm-tile span { display: block; font-size: 0.78rem; color: var(--text-3); }
.adm-tile b { display: block; font-size: 1.7rem; margin: 2px 0; font-variant-numeric: tabular-nums; }
.adm-tile i { display: block; font-style: normal; font-size: 0.76rem; color: var(--text-3); }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.adm-card { margin-bottom: 18px; padding: 16px 18px; }
.adm-card h2 { font-size: 0.95rem; margin: 0 0 10px; }
.adm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.adm-days a { font-size: 0.8rem; margin-left: 10px; color: var(--text-3); }
.adm-days a.on { color: var(--accent); font-weight: 600; }
.adm-funnel { display: flex; flex-direction: column; gap: 8px; }
.adm-step { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; font-size: 0.86rem; }
.adm-step span { color: var(--text-2); }
.adm-bar { height: 10px; background: var(--line); border-radius: 980px; overflow: hidden; }
.adm-bar i { display: block; height: 100%; background: var(--accent); border-radius: 980px; }
.adm-step b { text-align: right; font-variant-numeric: tabular-nums; }
.adm-scroll { overflow-x: auto; }
.adm-recent { list-style: none; margin: 0; padding: 0; font-size: 0.84rem; }
.adm-recent li { display: grid; grid-template-columns: 110px 1fr; gap: 2px 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.adm-recent li:first-child { border-top: 0; }
.adm-recent span { color: var(--text-3); }
.adm-recent i { grid-column: 2; font-style: normal; color: var(--text-3); font-size: 0.78rem; }
@media (max-width: 760px) { .adm-grid { grid-template-columns: 1fr; } .adm-step { grid-template-columns: 110px 1fr 40px; } }

/* The rating: words for each area, never points. */
.areas-words .area { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.word { flex: none; font-size: 0.74rem; font-weight: 600; border-radius: 980px; padding: 2px 9px; background: var(--bg); color: var(--text-2); }
.word.good { background: var(--green-bg); color: var(--green); }
.word.ok { color: var(--green); }
.word.warn { background: var(--amber-bg); color: var(--amber); }
.word.bad { background: var(--red-bg); color: var(--red); }
.ring-elo .num b { font-size: 0.92em; letter-spacing: -0.02em; }

/* ---------- The CV page (#/cv) ----------
   The editor's paper with every line's grade in the left margin, marked the
   way chess annotates a move, and the tutor in the panel on the right. */
.cv-page { max-width: 760px; padding-top: 28px; padding-bottom: 60px; }
.cv-empty .sub { margin: 4px 0 2px; }
/* How GradGrid goes: one bubble floating at the foot of the screen, centred
   on the page beside the sidebar, closed with its ✕. */
.cv-page { padding-bottom: 120px; }
.cv-path-bubble { position: fixed; bottom: 22px; left: calc(50% + 116px); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 16px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--line); border-radius: 980px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); max-width: calc(100vw - 280px); }
.cv-path { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.cv-path li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; font-size: 0.8rem; color: var(--text-3); white-space: nowrap; }
.cv-path li + li::before { content: ""; width: 14px; height: 1px; background: var(--line-strong); margin-right: 6px; }
.cv-path li i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text-2); font-style: normal; font-size: 0.7rem; font-weight: 600; }
.cv-path li i svg { width: 11px; height: 11px; }
.cv-path li b { display: block; color: var(--text); font-size: 0.84rem; font-weight: 600; }
.cv-path li.on i { background: var(--accent); color: #fff; }
.cv-path li.done i { background: var(--blue-bg); color: var(--accent); }
.cv-path-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; padding: 0; }
.cv-path-x:hover { background: rgba(0, 0, 0, 0.06); color: var(--text); }
.cv-path-x svg { width: 12px; height: 12px; }
@media (max-width: 1100px) { .cv-path li span { font-size: 0; } .cv-path li b { font-size: 0.84rem; } }
@media (max-width: 820px) { .cv-path-bubble { left: 50%; bottom: 86px; max-width: calc(100vw - 24px); } .cv-path li + li::before { width: 6px; margin-right: 2px; } .cv-path li { padding-right: 6px; } }

.rv-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-file b { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.rv-file i { display: block; font-style: normal; font-size: 0.76rem; color: var(--text-3); }
.rv-replace { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.res-empty { display: block; color: var(--text); }
.res-empty b { display: block; font-size: 0.92rem; }

/* The marks: glyph badges in the panel and the tally, underlines on the paper. */
.gmark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; color: #fff; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; flex: none; }
.gmark svg { width: 11px; height: 11px; }
.gmark-sm { width: 18px; height: 18px; font-size: 9.5px; }
.gmark-sm svg { width: 9px; height: 9px; }
.gmark.g-brilliant, .cv-bar.g-brilliant { background: #1aa39d; }
.gmark.g-great, .cv-bar.g-great { background: #1f6b3a; }
.gmark.g-good, .cv-bar.g-good { background: #3fa75a; }
.gmark.g-okay, .cv-bar.g-okay { background: #c7c7cc; }
.gmark.g-inaccuracy, .cv-bar.g-inaccuracy { background: #e9b23a; }
.gmark.g-mistake, .cv-bar.g-mistake { background: #e0812a; }
.gmark.g-blunder, .cv-bar.g-blunder { background: #cf3b30; }

/* On the paper, like Grammarly: a wavy line under what needs work, a quiet
   straight one under what's strong, nothing under what's fine. */
.paper-review { --u-brilliant: #1aa39d; --u-great: #1f6b3a; --u-good: #3fa75a; --u-inaccuracy: #e9b23a; --u-mistake: #e0812a; --u-blunder: #cf3b30; }
/* Each rule reaches only the line's own text: a bullet's words, an entry's
   title, the header's contact row. Otherwise an entry's mark would run on
   into every bullet under it. */
.paper-review .leaf.g-line > .ce, .paper-review .entry.g-line > .en-row .en-title, .paper-review .p-head.g-line .p-contact .ce { text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.paper-review .leaf.g-inaccuracy > .ce, .paper-review .entry.g-inaccuracy > .en-row .en-title, .paper-review .p-head.g-inaccuracy .p-contact .ce { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--u-inaccuracy); }
.paper-review .leaf.g-mistake > .ce, .paper-review .entry.g-mistake > .en-row .en-title, .paper-review .p-head.g-mistake .p-contact .ce { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--u-mistake); }
.paper-review .leaf.g-blunder > .ce, .paper-review .entry.g-blunder > .en-row .en-title, .paper-review .p-head.g-blunder .p-contact .ce { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--u-blunder); }
.paper-review .leaf.g-great > .ce, .paper-review .entry.g-great > .en-row .en-title, .paper-review .p-head.g-great .p-contact .ce { text-decoration-line: underline; text-decoration-color: var(--u-great); }
.paper-review .leaf.g-good > .ce, .paper-review .entry.g-good > .en-row .en-title, .paper-review .p-head.g-good .p-contact .ce { text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--u-good) 60%, transparent); }
.paper-review .leaf.g-brilliant > .ce, .paper-review .entry.g-brilliant > .en-row .en-title, .paper-review .p-head.g-brilliant .p-contact .ce { text-decoration-line: underline; text-decoration-color: var(--u-brilliant); }
.paper-review [data-g] { cursor: text; }
.paper-review .focus:not(.gwrap) { background: rgba(0, 113, 227, 0.06); border-radius: 4px; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.06); }
.paper-review .gwrap.focus > .diff { box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.3); }

/* The reviewer takes the whole screen: no sidebar, no tab bar, a back arrow. */
body.focus-mode .app-side { display: none !important; }
body.focus-mode { --nav-h: 0px; }
body.focus-mode .nav { display: none !important; }
body.focus-mode .main { padding-bottom: 0 !important; }
.rv-back { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; color: var(--text); font-size: 1.5rem; line-height: 1; padding-bottom: 3px; }
.rv-back:hover { background: rgba(0, 0, 0, 0.06); text-decoration: none; }

/* The CV page with a CV in: a card for it. */
.cv-card { padding: 0; overflow: hidden; }
.cv-open { display: flex; gap: 28px; align-items: center; padding: 26px 28px; color: var(--text); transition: background .12s; }
.cv-open:hover { background: #fafafc; text-decoration: none; }
.cv-open:hover .cv-sheet { box-shadow: 0 6px 22px rgba(0,0,0,.12), 0 0 1px rgba(0,0,0,.25); transform: translateY(-2px); }
.cv-sheet { flex: none; width: 150px; aspect-ratio: 1 / 1.414; background: #fff; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 0 1px rgba(0,0,0,.25); padding: 16px 14px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.cv-sheet .spinner { margin: auto; }
.cv-bar { display: block; height: 3px; border-radius: 2px; flex: none; }
.cv-bar:first-child { height: 6px; margin: 0 auto 6px; }
.cv-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cv-card-t small { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.cv-card-t h2 { font-size: 1.25rem; letter-spacing: -0.02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-card-line { margin: 0; font-size: 0.92rem; color: var(--text-2); }
.cv-card-t .rv-tally { border: 0; padding: 0; justify-content: flex-start; }
.cv-go { margin-top: 8px; }
.cv-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 28px; border-top: 1px solid var(--line); background: var(--bg); font-size: 0.84rem; color: var(--text-2); }
.cv-card-acts { display: inline-flex; gap: 16px; }
.cv-card-acts .linky { margin: 0; font-size: 0.84rem; cursor: pointer; }
.cv-card .notice { margin: 0 28px 20px; }
.cv-details { margin-top: 14px; }
@media (max-width: 640px) { .cv-open { flex-direction: column; align-items: stretch; padding: 20px; } .cv-sheet { width: 120px; margin: 0 auto; } .cv-card-foot { padding: 12px 20px; } }

/* The rating at a bar's end, the front page's design at its smallest. */
.rating-hero-xs { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; text-align: left; }
.rating-hero-xs .rating-num { font-size: 1.9rem; }
.rating-hero-xs .rating-tier { margin: 0; font-size: 0.7rem; }

/* The panel: the rating, the tally, and the tutor on one line. */
.rv-stand { text-align: center; padding: 6px 0 4px; }
.rv-stand .rating-hero { padding: 4px 0 6px; }
.rv-stand-t { margin: 0 0 8px; font-size: 0.84rem; color: var(--text-2); }
.rv-tally { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); font-size: 0.84rem; font-variant-numeric: tabular-nums; color: var(--text-2); }
.rv-tally-i { display: inline-flex; align-items: center; gap: 5px; }
.tutor { padding: 12px 0 14px; }
.tu-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.tu-head small { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.tu-nav { display: inline-flex; gap: 4px; }
.tu-nav button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.tu-nav button:hover { border-color: var(--accent); color: var(--accent); }
.tu-grade { display: flex; align-items: center; gap: 8px; }
.tu-grade .gmark { cursor: default; }
.tu-grade b { font-size: 1.02rem; }
.tu-why { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.45; }
.tu-blurb { margin: 6px 0 0; font-size: 0.82rem; color: var(--text-3); }
.tu-line { margin: 10px 0 0; padding: 9px 11px; background: var(--bg); border-radius: 10px; font-size: 0.86rem; line-height: 1.45; color: var(--text-2); }
.tu-fix { margin-top: 10px; padding: 10px 11px; background: #e6f4ea; border-radius: 10px; }
.tu-fix small { display: block; font-size: 0.66rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #137333; margin-bottom: 4px; }
.tu-fix p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: #0d5a26; }
.tu-fix mark.blank { background: #fff1c2; color: #7a4b00; border-radius: 3px; padding: 0 2px; }
.tu-acts { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.tu-wait { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.84rem; color: var(--text-2); }
.tu-wait .spinner { margin: 0; }
.tu-ask { margin: 10px 0 0; font-size: 0.86rem; }
.tu-next { margin-top: 12px; }
.tu-next small { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 6px; }
.tu-next ol { margin: 0; padding-left: 18px; font-size: 0.86rem; }
.tu-next li + li { margin-top: 6px; }
.tu-next li b { display: block; }
.tu-next li span { color: var(--text-2); }
.tu-go { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ed-review .ed-top { flex-wrap: nowrap; }
.rv-file { flex: 1 1 auto; }
.rv-file > div { min-width: 0; }
.rv-file b, .rv-file i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: none; }
.ed-review .ed-top-actions { flex: none; }
/* On a phone there's no hover, so the paper's hover tools only take the heading's room. */
@media (max-width: 640px) { .paper-review .sec-tools, .paper-review .sec-del, .paper-review .en-tools { display: none; } }

/* The reviewer's one action at the top: a glyph, not a labelled button. */
.rv-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--text); padding: 0; }
.rv-icon:hover { background: rgba(0, 0, 0, 0.06); }
.rv-icon svg { width: 18px; height: 18px; }
/* Tailor's resume card is a link to the CV page now, not a drop zone: a block, solid, and not underlined. */
a.res { display: block; border-style: solid; border-color: var(--line); color: var(--text); text-decoration: none; }
a.res:hover { text-decoration: none; border-color: var(--accent); background: var(--blue-bg); }
a.res b { color: var(--text); }

/* Tailor tokens: what pressing Tailor costs, and the moment one is spent. */
.btn-token { display: inline-flex; align-items: center; gap: 8px; }
.btn-token .tok { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.btn-token .tok svg { width: 11px; height: 11px; }
.toast { position: fixed; top: 18px; left: 50%; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; z-index: 90; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 980px; background: rgba(29, 29, 31, 0.94); color: #fff; font-size: 0.88rem; box-shadow: 0 12px 32px rgba(0,0,0,.22); transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: #ffd166; }
.toast b { font-weight: 600; }
@keyframes tok-pulse { 0% { color: inherit; transform: none; } 30% { color: var(--accent); transform: scale(1.18); } 100% { transform: none; } }
.side-nav small.tok-pulse { animation: tok-pulse .9s ease-out 2; transform-origin: left center; }
.msg-token { background: var(--blue-bg); color: #0b4f9c; font-size: 0.82rem; padding: 9px 12px; }

/* A move in Tailor: a blue U-shaped arrow in the margin from the thing to its new place. */
.paper { position: relative; }
.mv-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mv-svg { position: absolute; inset: 0; overflow: visible; }
.mv-path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.mv-dot { fill: var(--accent); stroke: none; }
/* The head's own outline, with round joins, rounds off its point and corners. */
.mv-head { fill: var(--accent); stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; }
.mv-arrow { pointer-events: visibleStroke; }
.mv-acts { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 980px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.05); pointer-events: auto; }
.mv-acts .dbtn { margin: 0; width: 26px; height: 26px; border: 0; background: none; }
.mv-acts .dbtn:hover { background: var(--bg); }
.mv-acts .dbtn-accept { color: var(--accent); }
.paper .mv-from { background: rgba(0, 113, 227, 0.06); border-radius: 4px; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.06); }

/* Tailor's last stage: the form's questions on the paper, in the app's own type. */
.paper-q { font-family: var(--font); font-size: 0.95rem; color: var(--text); }
.paper-q .q-h { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.paper-q .q-top { margin-bottom: 14px; }


/* ---------- Filters (#/filters) ---------- */
.want { max-width: 880px; padding-top: 28px; padding-bottom: 80px; }
.want-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.want-head h1 { font-size: 1.9rem; letter-spacing: -0.03em; }
.want-head .sub { margin-top: 4px; font-size: 0.95rem; }
.want-head .sub b { color: var(--text); }
.want-sec { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px 22px; margin-bottom: 14px; }
.want-sec > h2 { font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 12px; }
.want-sec > .sub { font-size: 0.88rem; margin: -6px 0 12px; }
.want-tiles { display: grid; gap: 10px; }
.want-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.want-kinds-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.want-roles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.want-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 13px 14px; cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.want-tile:hover { border-color: #b5b5ba; }
.want-tile b { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; padding-right: 52px; }
.want-tile span { font-size: 0.8rem; color: var(--text-2); }
.want-tile i { position: absolute; top: 13px; right: 13px; font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; }
.want-tile.on { border-color: var(--accent); background: var(--blue-bg); box-shadow: 0 0 0 1px var(--accent) inset; }
.want-tile.on i { color: var(--accent); }
.want-chip { flex-direction: row; align-items: center; padding: 10px 12px; }
.want-chip b { font-size: 0.9rem; }
.want-chip i { top: 50%; transform: translateY(-50%); }
.want-titles { margin-top: 16px; }
.want-where .map { height: 360px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.want-where .map-foot { padding: 14px 0 0; }
.want-note { font-size: 0.82rem; color: var(--text-3); margin-top: 8px; }
/* The country search: one field, its flag, and a list floating over the page and the map. */
.cpick { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--bg); border: 1px solid transparent; border-radius: 13px; cursor: text; transition: background .15s, border-color .15s, box-shadow .15s; }
.cpick:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15); }
.cpick-flag { flex: none; width: 24px; display: grid; place-items: center; color: var(--text-3); }
.cpick-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.cpick-input:focus-visible { box-shadow: none; }
.cpick-input::placeholder { color: var(--text-3); font-weight: 400; }
.cpick-chev { flex: none; color: var(--text-3); transition: transform .15s; }
.cpick:focus-within .cpick-chev { transform: rotate(180deg); }
.cflag { display: block; flex: none; width: 24px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.cpick-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1100; max-height: 324px; overflow-y: auto; padding: 6px; background: var(--surface); border-radius: 15px; box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.08); cursor: default; }
.cpick-list[hidden] { display: none; }
.cpick-list button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 0.95rem; text-align: left; }
.cpick-list button svg { flex: none; width: 24px; color: var(--text-3); }
.cpick-list button span { flex: 1; min-width: 0; }
.cpick-list button small { font-size: 0.78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cpick-list button:hover, .cpick-list button.active { background: var(--bg); }
.cpick-list button.on span { color: var(--accent); font-weight: 600; }
.cpick-none { padding: 14px 10px; color: var(--text-3); font-size: 0.9rem; text-align: center; }
.want-cur { margin-bottom: 12px; }
.want-pay-top { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.want-pct { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.want-pct b { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.want-pct span { font-size: 0.9rem; color: var(--text-2); }
.want-hist { display: block; width: 100%; height: 120px; }
.want-hist rect { fill: #d9d9de; transition: fill .1s; }
.want-hist rect.in { fill: var(--accent); }
.want-range { display: block; width: 100%; margin: 8px 0 2px; accent-color: var(--accent); }
.want-axis { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-3); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
@media (max-width: 640px) {
  .want { padding-left: 16px; padding-right: 16px; }
  .want-kinds, .want-kinds-four { grid-template-columns: 1fr; }
  .want-where .map { height: 300px; }
}
/* The Filters link sits above Account, with how many are set. */
.side-account .side-nav { margin-bottom: 4px; }
.side-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; display: grid; place-items: center; }
.side-nav a.active .side-count { background: #fff; color: var(--ink); }
/* Tailor's list: where the jobs inside your filters end. */
.jrow-split { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); padding: 12px 10px 6px; border-top: 1px solid var(--line); margin-top: 6px; }
.side-count[hidden], .want-head [hidden] { display: none; }
/* The box carries the focus ring; the field inside it would draw a second one. */
.chip-input input:focus-visible { box-shadow: none; }
/* Leaflet stacks its panes up to z-index 1000; kept inside the map, so menus above it open over it. */
.want-where .map { isolation: isolate; z-index: 0; }
.want-titles .chip-menu { z-index: 20; }
/* Wage: the currency in the section's top right; the listed-pay option on one small line. */
.want-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.want-sec-head h2 { font-size: 1.08rem; letter-spacing: -0.015em; }
.want-cur { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 4px 8px; cursor: pointer; }
.want-listed { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-2); cursor: pointer; }
.want-listed input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.want-listed span { color: var(--text-3); }

/* ---------- Tracker: a card per job, and the job's page ---------- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.tcard { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 16px 14px; color: var(--text); transition: box-shadow .15s, transform .15s; min-height: 176px; }
a.tcard:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); text-decoration: none; }
.tcard-demo { opacity: 0.75; }
.tcard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.tcard-role { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tcard-co { font-size: 0.85rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard-next { font-size: 0.82rem; color: var(--text-3); margin-top: 2px; }
.tcard-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-3); }
.tcard-foot .fit { font-style: normal; }
.track-job { max-width: 900px; }
.track-job-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; flex-wrap: wrap; }
.track-job-head h1 { font-size: 1.5rem; letter-spacing: -0.025em; line-height: 1.2; }
.track-job-head > div:nth-child(2) { flex: 1 1 260px; min-width: 0; }
.track-job-head .head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.track-next { font-size: 0.88rem; color: var(--text-2); margin-bottom: 12px; }
.track-tabs { margin: 6px 0 16px; }
.track-tabs button[disabled] { opacity: 0.4; cursor: default; }
/* The editor's paper, read only: none of its editing handles. */
.paper-read .sec-tools, .paper-read .sec-del, .paper-read .p-foot, .paper-read .c-addlink, .paper-read .leaf-x, .paper-read .mv-layer { display: none !important; }
.paper-read .ce { cursor: text; }
.paper-read .ce:empty { display: none; }
@media (max-width: 640px) { .tgrid { grid-template-columns: 1fr; } }
.track-back { display: inline-block; font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-top: 8px; }
.tcard-next { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
