/* Vershinia app — Evergreen Summit (same tokens as the landing page, brief §7) */

@font-face {
  font-family: "Manrope";
  src: url("../vendor/manrope/manrope-latin-wght-normal.938c6e8019b6.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #1F4E4A;   /* deep pine */
  --sky2: #3F7A70;   /* gradient end */
  --sec: #8FB3A6;    /* sage */
  --bg: #F3F0EA;     /* warm stone */
  --acc: #D9A441;    /* muted gold — buttons/highlights only */
  --ink: #1C2E2C;    /* body text */
  --soft: #E3EBE6;   /* soft surfaces */
  --muted: #4B5563;
  --surface: #FFFFFF;
  --ok: #3F7A70;
  --warn: #9A6B12;
  --error: #8C3B2E;  /* muted brick — no alarm red */

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 46, 44, .06), 0 4px 16px rgba(28, 46, 44, .05);
  --gutter: 20px;
  --maxw: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { max-width: 100%; }
a { color: var(--base); }
a:hover { color: var(--sky2); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
[x-cloak] { display: none !important; }

h1, h2, h3 { color: var(--base); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--base); }
.brand img { width: 44px; height: 32px; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--base); }
.nav .who { font-size: 14px; color: var(--muted); padding: 0 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--base); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch;
         background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; z-index: 5; }
  .nav.open { display: flex; }
  .site-header .wrap { position: relative; }
}

/* Main + footer */
main { flex: 1; padding: 12px 0 56px; }
.site-footer { border-top: 1px solid var(--soft); padding: 22px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--base); }

/* Hero (public home) */
.hero { background: linear-gradient(180deg, var(--base) 0%, var(--sky2) 100%); color: #fff; border-radius: 28px; padding: 64px 24px; text-align: center; }
.hero h1 { color: #fff; }
.hero .lead { max-width: 580px; margin: 0 auto 26px; font-size: clamp(16px, 2vw, 19px); opacity: .92; }
.hero .tagline { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
/* Exactly-three rows (Capture/Tailor/Prepare): one column, then three — never a 2+1 orphan
   on tablet portrait or phone landscape. */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 900px) { .grid-3 .card { padding: 20px; } }
.card { background: var(--surface); border: 1px solid var(--soft); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sky2); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px;
       padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--acc); color: var(--ink); }
.btn-primary:hover { background: #E4B25A; color: var(--ink); }
.btn-secondary { background: var(--surface); color: var(--base); border-color: var(--sec); }
.btn-secondary:hover { background: var(--soft); color: var(--base); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Pills / status */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--base); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sec); }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--acc); }
.dot.error { background: var(--error); }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.message { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px;
           border-radius: var(--radius-sm); background: var(--soft); color: var(--base); font-weight: 500; }
.message-close { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -2px 0;
                 border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; opacity: .65; }
.message-close:hover { opacity: 1; background: rgba(31, 78, 74, .08); }
.message.error { background: #F4E4E0; color: var(--error); }
.message.warning { background: #F7EDD8; color: var(--warn); }

/* Empty / error pages */
.center-page { text-align: center; max-width: 560px; margin: 40px auto 0; }
.center-page img { width: 88px; margin-bottom: 18px; }

/* Nav extras */
.nav-form { margin: 0; display: inline; }
.nav-link { font: inherit; font-weight: 600; font-size: 15px; color: var(--base); background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.nav-link:hover { background: var(--soft); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.nav a.btn-primary, .nav a.btn-primary:hover { background: var(--acc); color: var(--ink); }
.btn-block { width: 100%; }
.hero .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-on-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* Auth pages (allauth) — centred card */
.auth-wrap { max-width: 480px; }
.auth-card { margin-top: 12px; padding: 32px; }
.auth-card h1 { font-size: clamp(24px, 4vw, 30px); }
.auth-card h2 { font-size: 18px; margin-top: 20px; }
.auth-card hr { border: 0; border-top: 1px solid var(--soft); margin: 22px 0; }
.auth-card > p, .auth-card > .messages { margin-bottom: 18px; }
.provider-list { display: grid; gap: 10px; }
.panel + .panel { margin-top: 24px; }
@media (max-width: 480px) { .auth-card { padding: 22px 18px; } }

/* Forms */
.form-stack { display: grid; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; color: var(--base); }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid #C9D6D0; border-radius: var(--radius-sm); padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sky2); box-shadow: 0 0 0 3px rgba(63, 122, 112, .18); }
.field.has-error input { border-color: var(--error); }
.field-check label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.field-check input { flex: none; width: 18px; height: 18px; accent-color: var(--base); }
.help { font-size: 13px; color: var(--muted); }
.help ul { margin: 4px 0 0; padding-left: 18px; }
.errorlist { list-style: none; margin: 0; padding: 0; color: var(--error); font-size: 14px; font-weight: 600; }
.form-errors { background: #F4E4E0; color: var(--error); border-radius: var(--radius-sm); padding: 10px 14px; }
.form-errors .errorlist { color: inherit; }
.field-turnstile { min-height: 65px; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Background task status */
.task-result:not(:empty) { margin-top: 14px; }
.task-status .help { margin: 8px 0 0; }
.task-status code { font-size: 13px; }

/* Dev inbox (local development only) */
.dev-hint { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--sec); border-radius: var(--radius-sm);
            font-size: 14px; color: var(--muted); background: transparent; }
.inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.inbox-item { display: grid; gap: 2px; padding: 16px 20px; text-decoration: none; color: var(--ink); }
.inbox-item:hover { border-color: var(--sec); color: var(--ink); }
.inbox-item strong { color: var(--base); }
.inbox-item .muted { font-size: 14px; overflow-wrap: anywhere; }
.inbox-subject { font-size: 22px; }
.inbox-body { font-size: 15px; overflow-wrap: anywhere; }

/* HTMX loading state */
.htmx-request.htmx-indicator, .htmx-request .htmx-indicator { opacity: 1; }
.htmx-indicator { opacity: 0; transition: opacity .2s; }

/* Job vault */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.optional { font-weight: 500; color: var(--muted); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #74301F; color: #fff; }
.back-link { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.back-link a { text-decoration: none; }
.posting-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.posting-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px 14px 12px; }
.posting-item:hover { border-color: var(--sec); }
.posting-item.is-pinned { border-color: var(--acc); }
.posting-item-main { flex: 1; display: grid; gap: 3px; min-width: 0; text-decoration: none; color: var(--ink); }
.posting-item-main:hover { color: var(--ink); }
.posting-item-main strong { color: var(--base); overflow-wrap: anywhere; }
.posting-item-main .muted { font-size: 14px; }
.posting-item-notes { font-size: 14px; color: var(--muted); font-style: italic; overflow-wrap: anywhere; }
.posting-item .pill { flex: none; }
@media (max-width: 560px) {
  .posting-item { flex-wrap: wrap; row-gap: 8px; }
  .posting-item-main { flex-basis: calc(100% - 60px); }  /* title takes the row; badges go below */
  .posting-item-main + .match-chip, .posting-item-main + .pill { margin-left: 46px; }
  .posting-item .match-chip span { display: inline; }  /* room for "must-haves" on its own line */
}
.pin-form { margin: 0; flex: none; }
.pin-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--sec); fill: none; cursor: pointer; }
.pin-btn:hover { background: var(--soft); color: var(--base); }
.pin-btn.pinned { color: var(--acc); fill: var(--acc); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state p { max-width: 460px; margin-left: auto; margin-right: auto; }
.notice { border-color: var(--acc); background: #FBF5E8; margin-bottom: 18px; }
.capture-form { max-width: 820px; }
.capture-form textarea { resize: vertical; }
.posting-meta { overflow-wrap: anywhere; }
.posting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.posting-layout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .posting-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.posting-side { display: grid; gap: 18px; }
.posting-text, .notes-text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; margin-top: 10px; }
.notes-text { margin: 4px 0 10px; }
.posting-footnote { margin: 16px 0 0; }
.dialog { border: 0; border-radius: var(--radius); padding: 24px; max-width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow); color: var(--ink); }
.dialog::backdrop { background: rgba(28, 46, 44, .45); }
.confirm-card { max-width: 560px; margin: 24px auto 0; }
.confirm-card h1 { font-size: clamp(24px, 4vw, 30px); }

@media print {
  .site-header, .site-footer, .messages, .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .posting-layout { display: block; }
  .posting-side .card { margin-top: 24px; }
}

.card-title { font-size: 20px; margin-top: 4px; }
.text-fallback { margin-top: 14px; }
.text-fallback summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--base); }
.text-fallback .posting-text { font-size: 14px; max-height: 420px; overflow: auto; }
.inline-form { display: inline; margin: 0; }
.snapshot-status { display: inline-flex; }
.paste-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }

/* Job analysis */
.analysis-waiting { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--base); }
.analysis-summary { font-size: 17px; line-height: 1.6; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; margin: 18px 0 22px; padding: 14px 16px; background: var(--soft); border-radius: var(--radius-sm); }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky2); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.req-heading { font-size: 16px; margin: 20px 0 8px; display: flex; align-items: center; gap: 8px; }
.req-heading .count { font-size: 12px; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 1px 8px; color: var(--base); }
.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--soft); border-radius: var(--radius-sm); }
.req-text { overflow-wrap: anywhere; }
.req-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--base); }
.tag-skill { background: #E4EFEA; color: var(--sky2); }
.tag-warn { background: #F7EDD8; color: var(--warn); }
.signal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more-details { margin-top: 20px; }
.more-details summary { cursor: pointer; font-weight: 700; color: var(--base); }
.more-details h4 { margin: 14px 0 6px; font-size: 14px; color: var(--base); }
.more-details ul { margin: 0; padding-left: 1.2em; }
.analysis-footnote { margin: 22px 0 10px; }
.req { position: relative; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 8px; }
.req-main { display: grid; gap: 4px; min-width: 0; }
.req-editing { grid-template-columns: 1fr; }
/* Row "more actions" menu (native <details>) */
.row-menu { position: relative; }
.row-menu > summary { list-style: none; }
.row-menu > summary::-webkit-details-marker { display: none; }
.row-menu-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; margin: -4px -6px 0 0; border-radius: 50%; color: var(--muted); cursor: pointer; }
.row-menu-btn:hover, .row-menu[open] .row-menu-btn { background: var(--soft); color: var(--base); }
.row-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; min-width: 190px; display: grid; padding: 6px; background: var(--surface); border: 1px solid var(--soft); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(28, 46, 44, .12); }
.row-menu-list form { margin: 0; }
.row-menu-item { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: none; border: 0; border-radius: 6px; padding: 8px 10px; cursor: pointer; text-decoration: none; }
.row-menu-item:hover, .row-menu-item:focus-visible { background: var(--soft); color: var(--base); }
.row-menu-danger { color: var(--error); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head .card-title { margin-bottom: 0; }
.tag-user { background: #FBF5E8; color: var(--warn); }
.req-editing { border-color: var(--sec); background: #FAFCFB; }
.req-form { display: grid; gap: 10px; }
.req-form input, .req-form select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #C9D6D0; border-radius: var(--radius-sm); width: 100%; background: var(--surface); }
.req-form label { font-size: 13px; }
.req-form-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.req-add { margin-top: 16px; }
.req-add summary { cursor: pointer; font-weight: 700; color: var(--base); margin-bottom: 10px; }
.details-fieldset { border: 1px solid var(--soft); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0; display: grid; gap: 14px; }
.details-fieldset legend { font-weight: 700; color: var(--base); padding: 0 6px; }
@media (min-width: 640px) { .form-row-3 { grid-template-columns: repeat(3, 1fr); } .form-row-pay { grid-template-columns: 1fr 1fr 110px 1fr; } }
.notice-inline { margin: 12px 0; padding: 10px 14px; border-radius: var(--radius-sm); background: #F7EDD8; color: var(--warn); font-weight: 600; }
.usage-line { font-size: 14px; }

/* Profile */
.profile-main { display: grid; gap: 18px; min-width: 0; }
.role + .role { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--soft); }
.role-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.role-title { font-size: 17px; margin: 0 0 2px; }
.role-head .help { margin: 0; }
.skill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 12px; border: 1px solid var(--soft); border-radius: 999px; font-weight: 600; font-size: 14px; }
.skill-chip .row-menu-btn { width: 26px; height: 26px; margin: 0; }
.skill-chip .row-menu-btn svg { width: 16px; height: 16px; }
.field input[type="file"] { padding: 8px; }

/* Resume check */
.check-summary p { margin: 0; }
.check-summary p + p { margin-top: 6px; }
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.check-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.check-item .help { margin: 2px 0 0; }
.check-title { margin: 2px 0 0; font-weight: 700; }
.check-mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--soft); color: var(--base); }
.check-ok .check-mark { background: #E4EFEA; color: var(--ok); }
.check-tip .check-mark { background: #FBF5E8; color: var(--warn); }
.check-fix .check-mark { background: #F7EDD8; color: var(--error); }
.strength-list { margin: 10px 0 0; padding-left: 20px; color: var(--sky2); font-weight: 600; }
.finding-list { margin-top: 16px; }
.finding-line { font-size: 13px; font-weight: 700; text-decoration: none; }
.finding-quote { display: block; font-style: normal; padding-left: 10px; border-left: 3px solid var(--acc); overflow-wrap: anywhere; }
.finding-quote::before, .finding-quote::after { content: none; }
.finding-tip { margin: 2px 0 0; color: var(--muted); }
.verdict-shown .verdict-tag { background: #E4EFEA; color: var(--ok); }
.verdict-partly .verdict-tag { background: #FBF5E8; color: var(--warn); }
.verdict-not_shown .verdict-tag { background: #F7EDD8; color: var(--error); }
.req .help { margin: 0; overflow-wrap: anywhere; }
.resume-lines { list-style: none; margin: 12px 0 0; padding: 10px 0; max-height: 520px; overflow: auto; background: var(--bg); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; }
.resume-lines li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; padding: 1px 12px 1px 0; scroll-margin-top: 80px; }
.resume-lines .line-no { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; user-select: none; }
.resume-lines .line-text { white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.5em; }
.resume-lines li.is-marked { background: #FBF5E8; box-shadow: inset 3px 0 0 var(--acc); }
.resume-lines li:target { background: #F7EDD8; }
.choice-list { display: grid; gap: 4px; }
.choice-list .help { margin: 0 0 10px; }
.check-history { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.check-history a { font-weight: 600; overflow-wrap: anywhere; }
.check-history .help { display: block; margin: 0; }
.req.is-stacked { grid-template-columns: minmax(0, 1fr); }
.finding-head { display: flex; align-items: center; gap: 8px; }

/* Profile: sticky section bar, collapsible roles */
.profile-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin: -10px 0 8px; background: var(--bg); }
.profile-nav::-webkit-scrollbar { display: none; }
.profile-nav a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--soft); font-size: 14px; font-weight: 600; color: var(--base); text-decoration: none; white-space: nowrap; }
.profile-nav a:hover { border-color: var(--sec); }
.profile-nav a[aria-current="true"] { background: var(--base); border-color: var(--base); color: #fff; }
.profile-nav .count { font-size: 12px; font-weight: 700; padding: 0 7px; border-radius: 999px; background: var(--soft); color: var(--base); }
.profile-nav a[aria-current="true"] .count { background: rgba(255, 255, 255, .2); color: #fff; }
.profile-nav .nav-review { margin-left: auto; border-color: #EBD9B0; background: #FBF5E8; color: var(--warn); }
.profile-section { scroll-margin-top: 64px; }
.role { scroll-margin-top: 64px; }
.role + .role { margin-top: 10px; padding-top: 10px; }
.role-head { margin-bottom: 0; align-items: center; }
.role-toggle { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; margin: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-sm); }
.role-toggle:hover { background: var(--soft); }
.role-toggle .chevron { flex: none; margin-top: 3px; color: var(--sky2); transition: transform .15s ease; }
.role-toggle[aria-expanded="true"] .chevron { transform: rotate(90deg); }
.role-summary { display: grid; gap: 2px; min-width: 0; }
.role-summary .role-title { display: block; font-weight: 700; overflow-wrap: anywhere; }
.role-summary .help { margin: 0; }
.role-body { padding: 8px 0 4px 30px; }
.flash-highlight { outline: 2px solid var(--acc); outline-offset: 2px; transition: outline-color .3s; }
@media (max-width: 600px) { .role-body { padding-left: 0; } }
@media print { .role-body { display: block !important; } }

/* Merging roles */
.duplicates-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 4px; padding: 10px 14px; border-radius: var(--radius-sm); background: #FBF5E8; }
.duplicates-note p { margin: 0; font-weight: 600; color: var(--warn); }
.wordings { font-size: 13px; }
.wordings summary { cursor: pointer; color: var(--sky2); font-weight: 600; }
.wordings ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.merge-form { display: grid; gap: 18px; }
.merge-roles { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: start; margin: 8px 0; }
.merge-roles > div { display: grid; gap: 2px; min-width: 0; }
.merge-role-title { font-size: 16px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.merge-arrow { font-size: 20px; color: var(--sky2); padding-top: 18px; }
.merge-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.merge-choice { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.merge-choice legend { font-weight: 700; margin-bottom: 6px; }
.merge-choice label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 600px) { .merge-roles { grid-template-columns: 1fr; } .merge-arrow { display: none; } }

/* Skills: strength and evidence */
.skill-open { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.skill-open:hover { color: var(--sky2); text-decoration: underline; }
.skill-open .dot, .strength .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.strength-strong .dot { background: var(--ok); }
.strength-some .dot { background: var(--sec); }
.strength-listed .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sec); }
.strength { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.skill-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 4px 0 12px; }
.skill-legend-hint { flex-basis: 100%; }
#skill-detail { scroll-margin-top: 70px; }
.skill-detail { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--sec); border-radius: var(--radius-sm); background: #FAFCFB; }
.skill-detail h3 { margin: 0 0 4px; }
.proof-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.proof { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.proof .help { grid-column: 2; margin: 0; }
.proof-text { overflow-wrap: anywhere; }
.proof-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.proof-picker legend { font-weight: 700; margin-bottom: 6px; }
.proof-group { border: 1px solid var(--soft); border-radius: var(--radius-sm); padding: 8px 12px; }
.proof-group summary { cursor: pointer; font-weight: 700; color: var(--base); }
.proof-group .count { font-size: 12px; background: var(--soft); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.proof-group ul { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 6px; }
.proof-group label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.proof-group input { margin-top: 4px; flex: none; }
a.row-menu-item { display: block; text-decoration: none; color: inherit; }

/* Removing safely: divider, dialog, undo, "Recently removed" */
.row-menu-divider { border: 0; border-top: 1px solid var(--soft); margin: 4px 0; }
.message-action { margin-left: auto; }
.message-action + .message-close { margin-left: 4px; }
.removed-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.removed-row > div:first-child { display: grid; gap: 2px; min-width: 0; }
.removed-row .help { margin: 0; }
.removed-row .form-actions { margin: 0; }

/* Adding entries */
.add-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.add-link:hover { text-decoration: underline; }
.card-head .form-actions { margin: 0; }
.entry-form input[type="text"], .entry-form textarea, .entry-form select { width: 100%; }

/* Match report */
.match-headline { font-size: 18px; margin: 4px 0 12px; }
.match-good { color: var(--ok); font-weight: 600; }
.match-met .verdict-tag { background: #E4EFEA; color: var(--ok); }
.match-partly .verdict-tag { background: #FBF5E8; color: var(--warn); }
.match-not_met .verdict-tag { background: #F7EDD8; color: var(--error); }
.match-proof { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.match-proof li { overflow-wrap: anywhere; }
.proof-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sky2); margin-right: 4px; }
.match-chip { flex: none; display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 10px; border-radius: 999px; background: #E4EFEA; color: var(--ok); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.match-chip span { font-weight: 600; font-size: 12px; }
@media (max-width: 600px) { .match-chip span { display: none; } }

/* Jobs: match box, fit colours, collapsible requirement groups */
.match-chip.fit-strong { background: #E4EFEA; color: var(--ok); }
.match-chip.fit-partial { background: #FBF5E8; color: var(--warn); }
.match-chip.fit-low { background: #F4E3DE; color: var(--error); }
.match-box h3 { margin: 2px 0 8px; }
.match-big { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.match-big strong { font-size: 32px; line-height: 1; color: var(--base); }
.match-gaps { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.match-gaps li { display: grid; gap: 2px; }
.best-list { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 8px; }
.best-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.best-list a { font-weight: 600; overflow-wrap: anywhere; }
.vault-main { min-width: 0; }
.req-group { margin-top: 6px; }
.req-group > summary { cursor: pointer; list-style: none; }
.req-group > summary::-webkit-details-marker { display: none; }
.req-group > summary::before { content: "›"; display: inline-block; width: 12px; color: var(--sky2); transition: transform .15s; }
.req-group[open] > summary::before { transform: rotate(90deg); }
#notes-card, #original-card { scroll-margin-top: 64px; }

/* Two-line limit with "… more" */
.clamp .clamp-text { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp.is-open .clamp-text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.clamp.is-clamped .clamp-text { cursor: pointer; }
.clamp.is-clamped .clamp-text:hover, .clamp.is-clamped .clamp-text:focus-visible { color: var(--sky2); }

/* Vault: compact best fits, rows the height of a job row */
.vault-layout .match-box { padding-top: 16px; padding-bottom: 16px; }
.vault-layout .match-box h3.eyebrow { margin: 0 0 6px; font-size: 12px; }
.best-list { list-style: none; margin: 0; padding: 0; gap: 6px; }
.best-list li { min-width: 0; }
.best-list a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.best-list .match-chip { flex: none; }
.vault-layout .match-box .help { margin: 8px 0 0; }


/* Skills your saved jobs ask for (step 9b) */
.gaps-card h3 { margin: 2px 0 6px; }
.gaps-card > .help { margin: 0 0 10px; }
.gap-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gap { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid var(--soft); }
.gap:first-child { border-top: 0; padding-top: 0; }
.gap details { flex: 1; min-width: 0; }
.gap summary { cursor: pointer; overflow-wrap: anywhere; }
.gap summary .help { display: block; }
.gap .btn-sm { flex: none; padding: 4px 12px; font-size: 13px; }
.gap-jobs { margin: 6px 0 2px; padding-left: 16px; font-size: 14px; display: grid; gap: 4px; }
.gap-added { flex: none; max-width: 120px; font-size: 12px; font-weight: 700; color: var(--ok); text-align: right; }
.gap-more { margin-top: 10px; }
.gap-more > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--base); margin-bottom: 8px; }
.gaps-update { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: #FBF5E8; }
.gaps-update .help { margin: 0; }
.gaps-updating { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.gap-top .help { flex: none; white-space: nowrap; }
.gap-note { margin-bottom: 4px; padding: 10px 14px; border-radius: var(--radius-sm); background: #E4EFEA; font-size: 14px; }
.gap-note p { margin: 0; }
.gap-note p + p { margin-top: 4px; }
.gaps-update .btn { flex: none; white-space: nowrap; }
.check-card > summary { cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.check-card > summary::-webkit-details-marker { display: none; }
.check-card > summary::after { content: "›"; position: absolute; right: 0; top: 0; font-size: 22px; line-height: 1; color: var(--sky2); transition: transform .15s; }
.check-card[open] > summary::after { transform: rotate(90deg); }
.check-card > summary .help { margin-bottom: 0; }
.check-card[open] > summary { margin-bottom: 14px; }
/* Proof from the user's profile under a job requirement — visibly the user's, not the job's */
.match-proof-box { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--sky2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #EEF4F0; }
.proof-head { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.match-proof-box .match-proof { margin: 0; }
.proof-group .role-pick { flex-wrap: wrap; column-gap: 6px; row-gap: 0; align-items: baseline; }
.proof-group .role-pick input { align-self: center; margin-top: 0; }
.proof-group .role-pick strong { color: var(--base); }
.proof-group details { margin: 6px 0 0 24px; }
.proof-group details summary { font-weight: 600; font-size: 14px; }
.tag-oneof { background: transparent; border: 1px dashed var(--sage, #8FB3A6); color: var(--sky2); }

/* Dashboard: connected browsers (extension) */
.browser-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.browser-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--soft); }
.browser-list li:first-child { border-top: 0; padding-top: 0; }
.browser-list li > div { display: grid; gap: 2px; }

/* Legal pages (Terms, Privacy) */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { font-size: 20px; margin: 30px 0 8px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal .legal-summary { background: var(--soft); border-radius: var(--radius-sm); padding: 14px 18px; }
.btn-link { background: none; border: 0; padding: 4px 0; color: var(--base); text-decoration: underline; font-weight: 600; cursor: pointer; }

/* Free resume check (public) */
.hero-signin { margin: 16px 0 0; font-size: 14px; opacity: .9; }
.hero-signin a { color: #fff; }
.plain-points { margin: 6px 0 14px; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.plain-points strong { color: var(--ink); }
.notice-card { border: 1px solid var(--acc); }

