/* ============================================================
   Pamposhun — premium.css  (design refresh layer, loads AFTER main.css)

   Same brand (black ink on warm white, Inter) and the
   same color tokens, so dark mode and the WCAG contrast work in main.css carry
   over unchanged. This layer changes the *craft*: calmer chrome, real hierarchy,
   consistent components, softer depth, and one vocabulary for chips, surfaces,
   steppers, stats and empty states. Delete this file and <link> to roll back.
   ============================================================ */

:root {
    --pm-radius-card: 16px;
    --pm-radius-control: 10px;
    --pm-ring: 0 0 0 3px color-mix(in srgb, var(--color-brand) 28%, transparent);
    --pm-shadow-card: 0 1px 2px rgba(26,23,20,.04), 0 10px 28px -14px rgba(26,23,20,.16);
    --pm-shadow-lift: 0 2px 4px rgba(26,23,20,.05), 0 18px 36px -16px rgba(26,23,20,.22);
    --pm-hairline: color-mix(in srgb, var(--color-border) 70%, transparent);
    --pm-ease: cubic-bezier(.2, 0, 0, 1);
}

/* ── Foundations ─────────────────────────────────────────────── */
::selection { background: color-mix(in srgb, var(--color-brand) 22%, transparent); color: inherit; }
:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
/* Every number we display large uses lining, tabular figures. */
.tabular, .stat__value, .job-card__score, .page-title, .empty__title, .detail-score__num {
    font-variant-numeric: lining-nums tabular-nums;
    /* body sets font-feature-settings, which beats font-variant-*; restate lnum/tnum explicitly. */
    font-feature-settings: "lnum" 1, "tnum" 1;
}
.main-content { padding-top: 2.5rem; padding-bottom: 4rem; }

/* hover lift for list rows: replaces inline onmouseover/onmouseout handlers (blocked by the CSP) */
.hover-shadow { transition: box-shadow .15s var(--pm-ease); }
.hover-shadow:hover { box-shadow: 0 2px 12px rgba(26,23,20,.10); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── Header + navigation ─────────────────────────────────────── */
.site-header { padding: .5rem 0; box-shadow: none; border-bottom: 1px solid var(--pm-hairline); }
.site-header .logo { font-size: 1.3rem; letter-spacing: -.02em; }
.site-nav { gap: .125rem; }
.site-nav a, .site-nav .btn-link, .nav-more-toggle {
    font-size: .9rem;
    font-weight: 500;
    padding: .5rem .85rem;
    border-radius: var(--pm-radius-control);
    position: relative;
}
/* <button> does not inherit the page font or color, so "More" looked heavier than its link neighbours. */
.nav-more-toggle { font-family: inherit; color: var(--color-muted); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.nav-more-toggle:hover, .nav-more-toggle[aria-expanded="true"] { background: color-mix(in srgb, var(--color-text) 5%, transparent); color: var(--color-text); }
.site-nav a:hover, .site-nav .btn-link:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); color: var(--color-text); }
/* Active tab: ink text + a brand underline instead of a pink pill.
   The underline is an inset box-shadow. NOT an ::after (axe reports text on an element with
   pseudo-content as "needs review": pseudoContent) and NOT a background-image (axe cannot
   compute the background under a gradient: bgGradient). pa11y counts "needs review" as an error. */
.site-nav a[aria-current="page"]:not(.btn), .site-nav a.nav-active:not(.btn) {
    color: var(--color-text); font-weight: 600; background-color: transparent;
    border-radius: 0; box-shadow: inset 0 -2px 0 var(--color-brand);
}
.nav-search-input {
    height: 38px; padding: 0 1rem; font-size: .875rem; min-width: 220px;
    background: color-mix(in srgb, var(--color-text) 4%, var(--color-bg));
    border: 1px solid transparent; border-radius: var(--pm-radius-control);
    transition: border-color .15s var(--pm-ease), background .15s var(--pm-ease), box-shadow .15s var(--pm-ease);
}
.nav-search-input:focus { background: var(--color-surface); border-color: var(--color-brand); box-shadow: var(--pm-ring); }
.theme-toggle, .nav-notif { border-radius: var(--pm-radius-control); }
.nav-bell { display: inline-flex; vertical-align: middle; color: var(--color-muted); }
.nav-notif:hover .nav-bell { color: var(--color-text); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn, button.btn { font-family: inherit; border-radius: var(--pm-radius-control); min-height: 44px; padding: .6rem 1.35rem; font-size: .925rem; letter-spacing: 0; }
.btn-sm { min-height: 36px; padding: .4rem 1rem; font-size: .85rem; }
.btn-xs { min-height: 30px; padding: .25rem .7rem; font-size: .78rem; }
.btn-primary {
    background: var(--color-brand);
    box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 1px 2px rgba(0,0,0,.35), 0 8px 18px -8px rgba(var(--primary-rgb),.55);
}
.btn-primary:hover { background: var(--color-brand-dk); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
/* Secondary is neutral, not pink: the tinted-pink fill read as disabled. */
.btn-secondary {
    background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-border); box-shadow: 0 1px 2px rgba(26,23,20,.05);
}
.btn-secondary:hover { background: var(--color-surface); border-color: var(--color-brand); color: var(--color-brand-dk); transform: translateY(-1px); }
.btn-ghost, .btn-outline { border-width: 1px; border-radius: var(--pm-radius-control); }
.btn:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link { font-family: inherit; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-control, input.form-control, select.form-control, textarea.form-control {
    min-height: 44px; border-radius: var(--pm-radius-control); font-family: inherit; font-size: .95rem;
    background: var(--color-surface); border: 1px solid var(--color-border);
}
.form-control:focus { border-color: var(--color-brand); box-shadow: var(--pm-ring); outline: none; }
select.form-control, .pm-select {
    appearance: none; -webkit-appearance: none; padding-right: 2.25rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
    background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.pm-select { min-height: 44px; border-radius: var(--pm-radius-control); border: 1px solid var(--color-border); background-color: var(--color-surface); color: var(--color-text); font: inherit; font-size: .95rem; padding-left: .85rem; width: 100%; }
.pm-select:focus { border-color: var(--color-brand); box-shadow: var(--pm-ring); outline: none; }
.pm-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.pm-field label { font-size: .85rem; font-weight: 600; color: var(--color-text); }
.pm-input { min-height: 44px; border-radius: var(--pm-radius-control); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: inherit; font-size: .95rem; padding: .6rem .85rem; width: 100%; }
.pm-input:focus { border-color: var(--color-brand); box-shadow: var(--pm-ring); outline: none; }

/* ── Page head ───────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.page-title { font-family: var(--font-display); font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.page-sub { color: var(--color-muted); margin: .4rem 0 0; font-size: 1rem; max-width: 60ch; }
.page-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--color-muted); margin-bottom: .75rem; }
.crumb:hover { color: var(--color-text); text-decoration: none; }

/* ── Surfaces ────────────────────────────────────────────────── */
.surface { background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: var(--pm-radius-card); box-shadow: var(--pm-shadow-card); padding: 1.5rem; }
.surface--flush { padding: 0; overflow: hidden; }
.surface + .surface { margin-top: 1.25rem; }
.surface__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.surface__title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: .55rem; }
.surface__title svg { color: var(--color-brand); flex-shrink: 0; }
.surface__hint { color: var(--color-muted); font-size: .9rem; margin: -.5rem 0 1rem; }
.link-more { font-size: .875rem; font-weight: 600; color: var(--color-brand-dk); display: inline-flex; align-items: center; gap: .25rem; }

/* ── Chips ───────────────────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; line-height: 1; padding: .38rem .65rem; border-radius: 999px; background: var(--color-surface-container); color: var(--color-text); white-space: nowrap; }
.chip--ok { background: var(--color-success-lt); color: var(--color-success); }
.chip--gap { background: var(--color-warning-lt); color: var(--color-warning); }
.chip--brand { background: var(--color-brand-lt); color: var(--color-brand-dk); }
.chip--muted { color: var(--color-muted); background: transparent; border: 1px solid var(--color-border); font-weight: 500; }
.chip--stale { background: var(--color-warning-lt); color: var(--color-warning); }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ── Stat strip ──────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat { background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: var(--pm-radius-card); padding: 1.1rem 1.25rem; box-shadow: var(--pm-shadow-card); }
.stat__value { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.stat__label { font-size: .82rem; color: var(--color-muted); margin-top: .25rem; font-weight: 500; }
.stat--plain { background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: .5rem; }

/* ── Pipeline stepper ────────────────────────────────────────── */
.stepper { display: flex; align-items: flex-start; gap: 0; margin: 1.5rem 0 .5rem; padding: 0; list-style: none; }
.stepper__step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; position: relative; text-align: center; min-width: 0; }
.stepper__step::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--color-border); z-index: 0; }
.stepper__step:first-child::before { display: none; }
.stepper__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-muted); font-size: .75rem; font-weight: 700; position: relative; z-index: 1; }
.stepper__label { font-size: .78rem; font-weight: 600; color: var(--color-muted); line-height: 1.25; padding: 0 .2rem; }
.stepper__step.is-done::before, .stepper__step.is-current::before { background: var(--color-brand); }
.stepper__step.is-done .stepper__dot { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-on-brand); }
.stepper__step.is-current .stepper__dot { border-color: var(--color-brand); color: var(--color-brand-dk); box-shadow: var(--pm-ring); }
.stepper__step.is-done .stepper__label, .stepper__step.is-current .stepper__label { color: var(--color-text); }

/* ── Job cards (list) ────────────────────────────────────────── */
.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.75rem; align-items: start; }
.job-list { display: flex; flex-direction: column; gap: .875rem; }
.job-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1.25rem; padding: 1.25rem 1.4rem; background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: var(--pm-radius-card); box-shadow: var(--pm-shadow-card); transition: transform .18s var(--pm-ease), box-shadow .18s var(--pm-ease), border-color .18s var(--pm-ease); }
.job-card:hover { transform: translateY(-2px); box-shadow: var(--pm-shadow-lift); border-color: var(--color-border); }
.job-card:focus-within { border-color: var(--color-brand); box-shadow: var(--pm-ring); }
.job-card__title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.3; }
.job-card__title a { color: var(--color-text); }
.job-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: var(--pm-radius-card); } /* whole card is the link */
.job-card__title a:hover { text-decoration: none; color: var(--color-brand-dk); }
.job-card__meta { color: var(--color-muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .15rem .6rem; align-items: center; }
.job-card__meta .dot::before { content: '\00b7'; margin-right: .6rem; color: var(--color-border); }
.job-card__salary { font-weight: 700; font-size: .95rem; color: var(--color-text); }
.job-card__chips { grid-column: 1 / -1; margin-top: .6rem; }
.job-card__side { grid-row: 1 / span 3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.job-card__score { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.job-card__score small { font-family: var(--font-sans); font-size: .7rem; font-weight: 600; color: var(--color-muted); display: block; text-align: right; margin-top: .2rem; letter-spacing: .04em; text-transform: uppercase; }
.score--high { color: var(--color-success); }
.score--mid { color: var(--color-warning); }
.score--low { color: var(--color-muted); }
.job-card__age { font-size: .8rem; color: var(--color-muted); }
.job-card__age--stale { color: var(--color-warning); font-weight: 600; }

/* sidebar widgets */
.pipeline-rows { display: flex; flex-direction: column; }
.pipeline-row { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-top: 1px solid var(--pm-hairline); font-size: .9rem; }
.pipeline-row:first-child { border-top: 0; }
.pipeline-row strong { font-variant-numeric: tabular-nums; }

/* ── Job detail ──────────────────────────────────────────────── */
.detail { max-width: 800px; margin: 0 auto; }
.detail-head { padding: 1.75rem 1.75rem 1.5rem; }
.detail-head__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.detail-head .page-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; margin-top: .6rem; color: var(--color-muted); }
.detail-meta strong { color: var(--color-text); }
.detail-score { text-align: right; flex-shrink: 0; }
.detail-score__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.detail-score__label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin-top: .3rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--pm-hairline); }
.detail-actions form { display: inline-flex; margin: 0; }
.text-actions { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: 1rem; font-size: .85rem; }
.text-actions form { display: inline; margin: 0; }
.text-actions button { all: unset; cursor: pointer; color: var(--color-muted); font-weight: 500; border-radius: 4px; }
.text-actions button:hover { color: var(--color-text); text-decoration: underline; }
.text-actions button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
.reasons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.reasons li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.reasons svg { flex-shrink: 0; margin-top: .2rem; }
.reasons .is-ok svg { color: var(--color-success); }
.reasons .is-gap svg { color: var(--color-warning); }
.prose { max-width: 68ch; color: var(--color-muted); white-space: pre-wrap; line-height: 1.7; margin: 0; }
.section-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--color-brand-lt); color: var(--color-brand-dk); font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.callout { border-radius: 12px; padding: .85rem 1rem; font-size: .9rem; margin-bottom: 1rem; display: flex; gap: .7rem; align-items: flex-start; }
.callout--warn { background: var(--color-warning-lt); color: var(--color-warning); border: 1px solid color-mix(in srgb, var(--color-warning) 35%, transparent); }
.callout svg { flex-shrink: 0; margin-top: .15rem; }
.letter { width: 100%; font: inherit; font-size: .95rem; line-height: 1.65; padding: 1rem 1.15rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-bg); color: var(--color-text); resize: vertical; min-height: 220px; }
.letter:focus { outline: none; border-color: var(--color-brand); box-shadow: var(--pm-ring); }
.bullets { margin: .35rem 0 0; padding-left: 1.15rem; display: flex; flex-direction: column; gap: .3rem; }
.sub-label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); margin: 1.1rem 0 .4rem; }
.sub-label--warn { color: var(--color-warning); }
.quiet-details summary { cursor: pointer; font-size: .85rem; color: var(--color-muted); margin-top: 1rem; }
.quiet-details summary:hover { color: var(--color-text); }
.quiet-details div { font-size: .85rem; color: var(--color-muted); margin-top: .5rem; }

.callout--brand { background: var(--color-brand-lt); color: var(--color-brand-dk); border: 1px solid color-mix(in srgb, var(--color-brand) 25%, transparent); }
.callout--ok { background: var(--color-success-lt); color: var(--color-success); border: 1px solid color-mix(in srgb, var(--color-success) 25%, transparent); }
.add-fact { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 1rem; align-items: end; }
@media (max-width: 640px) { .add-fact { grid-template-columns: 1fr; } }

/* ── Facts (candidate verification) ──────────────────────────── */
.fact-group { margin-top: 1.25rem; }
.fact-group__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 .25rem; display: flex; align-items: center; gap: .6rem; }
.fact-group__count { font-size: .78rem; font-weight: 600; color: var(--color-muted); background: var(--color-surface-container); border-radius: 999px; padding: .2rem .55rem; }
.fact-list { display: flex; flex-direction: column; margin-top: .5rem; }
.fact-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--pm-hairline); flex-wrap: wrap; }
.fact-row:first-child { border-top: 0; }
.fact-row__main { min-width: 0; flex: 1 1 260px; }
.fact-row__title { font-weight: 600; }
.fact-row__sub { color: var(--color-muted); font-size: .88rem; margin-top: .15rem; }
.fact-row__actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fact-row form { display: inline; margin: 0; }
.fact-row.needs-review { background: color-mix(in srgb, var(--color-warning-lt) 38%, transparent); margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
.skill-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.skill-pill { display: inline-flex; align-items: center; gap: .15rem; padding: .3rem .3rem .3rem .8rem; background: var(--color-surface-container); border-radius: 999px; font-weight: 600; font-size: .9rem; }
.skill-pill--review { background: var(--color-warning-lt); color: var(--color-warning); }
.skill-pill__btn { all: unset; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: inherit; }
.skill-pill__btn:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.skill-pill__btn:focus-visible { outline: 2px solid var(--color-brand); }

/* ── Tracker board ───────────────────────────────────────────── */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.board-col { background: color-mix(in srgb, var(--color-text) 3.5%, var(--color-bg)); border-radius: var(--pm-radius-card); padding: .85rem; scroll-snap-align: start; min-height: 120px; }
.board-col__head { display: flex; align-items: center; justify-content: space-between; padding: .25rem .35rem .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); }
.board-col__count { background: var(--color-surface); border-radius: 999px; padding: .1rem .55rem; font-variant-numeric: tabular-nums; color: var(--color-text); }
.board-card { background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: 12px; padding: .9rem 1rem; box-shadow: 0 1px 2px rgba(26,23,20,.05); margin-bottom: .6rem; position: relative; transition: box-shadow .15s var(--pm-ease), transform .15s var(--pm-ease); }
.board-card:hover { box-shadow: var(--pm-shadow-card); transform: translateY(-1px); }
.board-card__company { font-weight: 700; }
.board-card__role { color: var(--color-muted); font-size: .88rem; margin-top: .1rem; }
.board-card__meta { color: var(--color-muted); font-size: .8rem; margin-top: .5rem; }
.board-card__salary { font-weight: 600; color: var(--color-text); font-size: .85rem; margin-top: .35rem; }
.board-card .pm-select { min-height: 36px; font-size: .82rem; margin-top: .65rem; }
.board-empty { color: var(--color-muted); font-size: .85rem; text-align: center; padding: 1.25rem .5rem; border: 1.5px dashed var(--color-border); border-radius: 12px; }
.subnav { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1.5rem; font-size: .9rem; }
.subnav a { color: var(--color-muted); font-weight: 500; }
.subnav a:hover { color: var(--color-text); }

/* ── Empty states ────────────────────────────────────────────── */
.empty { text-align: center; padding: 3.5rem 1.5rem; }
.empty__art { width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 22px; display: grid; place-items: center; background: var(--color-brand-lt); color: var(--color-brand-dk); }
.empty__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5rem; }
.empty__text { color: var(--color-muted); max-width: 46ch; margin: 0 auto 1.5rem; }

.how-steps { list-style: none; display: flex; justify-content: center; gap: .75rem 2rem; flex-wrap: wrap; margin: 2rem 0 0; padding: 0; color: var(--color-muted); font-size: .9rem; }
.how-steps li { display: inline-flex; align-items: center; gap: .55rem; }
.board-card__link { display: block; color: inherit; text-decoration: none; }
.board-card__link:hover { text-decoration: none; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.25rem; margin: 0; }
.kv dt { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .25rem; }
.kv dd { margin: 0; font-weight: 600; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .two-up { grid-template-columns: 1fr; } }

/* settings list */
.settings-layout { max-width: 720px; margin: 0 auto; }
.settings-nav { display: flex; flex-direction: column; gap: .6rem; }
.settings-nav-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: 14px; box-shadow: var(--pm-shadow-card); color: var(--color-text); transition: transform .15s var(--pm-ease), box-shadow .15s var(--pm-ease); }
.settings-nav-item:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--pm-shadow-lift); }
.settings-nav-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--color-brand-lt); color: var(--color-brand-dk); flex-shrink: 0; font-size: 0; }
.settings-nav-item--danger .settings-nav-icon { background: var(--color-error-lt); color: var(--color-error); }
.settings-nav-item--danger .settings-nav-title { color: var(--color-error); }
.settings-nav-title { font-weight: 700; }
.settings-nav-desc { color: var(--color-muted); font-size: .88rem; margin-top: .1rem; }
.settings-nav-chevron { margin-left: auto; color: var(--color-muted); font-size: 1.4rem; line-height: 1; }

/* only one floating card at a time: the install prompt waits for the cookie choice */
body:has(#consent-banner) #install-prompt, body:has(#consent-banner) #pwa-install-banner { display: none !important; }

/* ── Cookie banner: a compact card, not a full-width black bar ── */
.consent-banner {
    position: fixed; left: 1rem; bottom: 1rem; right: auto; z-index: 90;
    max-width: 400px; width: calc(100% - 2rem);
    background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--pm-hairline); border-radius: var(--pm-radius-card);
    box-shadow: var(--pm-shadow-lift); padding: 1.1rem 1.25rem;
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .75rem;
    font-size: .875rem; line-height: 1.5;
}
.consent-banner p { margin: 0; color: var(--color-muted); }
.consent-banner a { color: var(--color-brand-dk); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner__actions { margin-top: 0; }
.consent-banner .btn-primary { background: var(--color-brand); color: var(--color-on-brand); }
.consent-banner .btn-primary:hover { background: var(--color-brand-dk); }
.consent-banner .btn-ghost { color: var(--color-text) !important; border-color: var(--color-border) !important; background: transparent !important; }
.consent-banner .btn-ghost:hover { border-color: var(--color-brand) !important; background: var(--color-brand-tint) !important; }
@media (max-width: 640px) { .consent-banner { left: .5rem; right: .5rem; bottom: .5rem; width: auto; max-width: none; } }

/* ── PWA install prompts: a phone feature, not a desktop one ─── */
#install-prompt, #pwa-install-banner { font-family: var(--font-sans); }
#install-prompt .btn, #pwa-install-banner .btn { font-family: inherit; }
@media (min-width: 900px) { #install-prompt, #pwa-install-banner { display: none !important; } }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .layout-2col { grid-template-columns: 1fr; }
    .stepper__label { font-size: .7rem; }
}
@media (max-width: 640px) {
    .main-content { padding-top: 1.5rem; }
    .surface { padding: 1.15rem; }
    .job-card { grid-template-columns: 1fr; }
    .job-card__side { grid-column: 1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-top: .5rem; }
    .job-card__score small { display: inline; margin-left: .35rem; }
    .page-head { margin-bottom: 1.25rem; }
    .nav-search-input { min-width: 0; }
}

/* ── Motion: respect the user's setting ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .job-card, .board-card, .btn { transition: none !important; }
    .job-card:hover, .board-card:hover, .btn:hover { transform: none !important; }
}

/* ── Form pages & list pages (second restyle pass) ────────────── */
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap--narrow { max-width: 680px; margin: 0 auto; }
.wrap--mid { max-width: 860px; margin: 0 auto; }
.pm-form .form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.pm-form .form-label, .pm-form label.form-label { font-size: .85rem; font-weight: 600; color: var(--color-text); margin: 0; }
.pm-form .form-control, .pm-form .form-select, .pm-form select { min-height: 44px; width: 100%; border-radius: var(--pm-radius-control); border: 1px solid var(--color-border); background-color: var(--color-surface); color: var(--color-text); font: inherit; font-size: .95rem; padding: .6rem .85rem; }
.pm-form select { appearance: none; -webkit-appearance: none; padding-right: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.pm-form textarea.form-control { min-height: 110px; line-height: 1.5; }
.pm-form .form-control:focus, .pm-form select:focus { border-color: var(--color-brand); box-shadow: var(--pm-ring); outline: none; }
.field-help { color: var(--color-muted); font-size: .82rem; margin: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--pm-hairline); }
.req { color: var(--color-error); }
.notice { background: var(--color-brand-lt); color: var(--color-text); border-radius: 12px; padding: .9rem 1.1rem; font-size: .9rem; margin-bottom: 1.25rem; }
.notice p { margin: 0; }
.check-row { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.1rem; }
.check-row input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--color-brand); flex-shrink: 0; }
.check-row label { font-size: .9rem; font-weight: 400; margin: 0; }
.pm-form input[type=file] { padding: .55rem; }
.btn-danger-quiet { background: transparent; color: var(--color-error); border: 1px solid var(--color-border); }
.btn-danger-quiet:hover { background: var(--color-error-lt); }

.row-list { display: flex; flex-direction: column; gap: .6rem; }
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.15rem; background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: 14px; box-shadow: var(--pm-shadow-card); color: var(--color-text); transition: transform .15s var(--pm-ease), box-shadow .15s var(--pm-ease); }
a.row-item:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--pm-shadow-lift); }
.row-item__main { min-width: 0; }
.row-item__title { font-weight: 700; overflow-wrap: anywhere; }
.row-item__meta { color: var(--color-muted); font-size: .88rem; margin-top: .15rem; }

.meter { display: grid; grid-template-columns: 8.5rem 1fr 2rem; align-items: center; gap: .75rem; padding: .45rem 0; font-size: .9rem; }
.meter__track { height: 8px; border-radius: 999px; background: var(--color-surface-container); overflow: hidden; }
.meter__fill { height: 100%; background: var(--color-brand); border-radius: 999px; }
.meter__fill--warn { background: var(--color-warning); }
.meter__n { text-align: right; font-weight: 700; font-feature-settings: "lnum" 1, "tnum" 1; }
@media (max-width: 480px) { .meter { grid-template-columns: 6rem 1fr 1.6rem; } }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--pm-hairline); vertical-align: top; }
.data-table thead th { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); font-weight: 700; }
.data-table tbody th { font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: 0; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .5rem; }
.pick { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); font-size: .9rem; font-weight: 400; cursor: pointer; }
.pick:hover { border-color: var(--color-brand); }
.pick input { margin-top: .2rem; accent-color: var(--color-brand); }

.qa-item { padding: 1rem 0; border-bottom: 1px solid var(--pm-hairline); }
.qa-item:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-item:first-child { padding-top: 0; }
.qa-item__q { font-weight: 700; margin: 0; }
.qa-item__tip { color: var(--color-muted); font-size: .9rem; margin: .3rem 0 0; }
.script-block { white-space: pre-wrap; font: inherit; font-size: .92rem; line-height: 1.6; background: var(--color-surface-container); border-radius: 12px; padding: 1rem 1.15rem; margin: 0; overflow-wrap: anywhere; }

.score-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 1rem; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring__value { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring__num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--color-brand-dk); font-feature-settings: "lnum" 1, "tnum" 1; }
.score-ring__of { font-size: .78rem; color: var(--color-muted); }
.checklist { list-style: none; margin: 0; padding: 0; text-align: left; }
.checklist li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; font-size: .9rem; }
.checklist li > span:nth-child(2) { flex: 1; }
.checklist .is-todo { color: var(--color-muted); }
.checklist__pts { color: var(--color-brand-dk); font-weight: 700; font-size: .82rem; }
.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.tip-list li { border-left: 3px solid var(--color-brand); background: var(--color-surface-container); border-radius: 0 10px 10px 0; padding: .7rem .9rem; font-size: .92rem; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--color-brand-dk); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }

.stack-steps { list-style: none; margin: 0; padding: 0; }
.stack-steps li { position: relative; padding: 0 0 1.4rem 2rem; }
.stack-steps li::before { content: ""; position: absolute; left: 7px; top: 1.2rem; bottom: -.2rem; width: 2px; background: var(--color-border); }
.stack-steps li:last-child::before { display: none; }
.stack-steps li::after { content: ""; position: absolute; left: 0; top: .3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--color-surface); box-shadow: inset 0 0 0 3px var(--color-brand); }
.stack-steps li:first-child::after { background: var(--color-brand); }
.stack-steps__label { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; color: var(--color-muted); font-weight: 700; }
.stack-steps__text { font-weight: 600; margin: .1rem 0 0; }
.numbered { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }

.notif-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem; background: var(--color-surface); border: 1px solid var(--pm-hairline); border-radius: 14px; box-shadow: var(--pm-shadow-card); }
.notif-row--unread { box-shadow: inset 3px 0 0 var(--color-brand), var(--pm-shadow-card); }
.notif-row__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--color-brand-lt); display: grid; place-items: center; flex-shrink: 0; position: relative; font-size: 1.1rem; }
.notif-row__dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--color-brand); box-shadow: 0 0 0 2px var(--color-surface); }
.notif-row__body { flex: 1; min-width: 0; }
.notif-row__title { margin: 0; font-weight: 600; }
.notif-row--unread .notif-row__title { font-weight: 800; }
.notif-row__text { margin: .2rem 0 0; color: var(--color-muted); font-size: .92rem; }
.notif-row__time { margin: .3rem 0 0; color: var(--color-muted); font-size: .78rem; font-feature-settings: "lnum" 1, "tnum" 1; }

.search-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: .75rem; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .search-row { grid-template-columns: 1fr; } }
.co-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.co-card { display: flex; flex-direction: column; gap: .5rem; }
.co-card__head { display: flex; gap: .75rem; align-items: center; }
.co-card__logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--color-surface-container); flex-shrink: 0; }
.co-card__name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.co-card__name a { color: var(--color-text); }

.calc-result { margin: 1rem 0 0; padding: 0; font-weight: 600; min-height: 1.4em; }

.meter__fill--quiet { background: color-mix(in srgb, var(--color-muted) 55%, var(--color-surface)); }

/* ── Account menu (2026-11-06): one compact dropdown instead of Profile / Settings / Log out in the bar ── */
.nav-account .nav-mega { min-width: 240px !important; right: 0; left: auto; }
.nav-account .mega-col { min-width: 0; }
.nav-account .nav-more-toggle { gap: .4rem; font-weight: 500; }
.nav-account .nav-logout {
  display: block; width: 100%; text-align: left; padding: .5rem .75rem; border-radius: var(--radius-sm);
  font-size: .875rem; color: var(--color-text); text-decoration: none;
}
.nav-account .nav-logout:hover { background: var(--color-brand-tint); color: var(--color-brand); }

/* ── Matches page (2026-11-06): usage card, grouped links, quiet salary panel ── */
.link-group { display: flex; gap: 1rem; align-items: center; margin-left: auto; }
.usage-card__num { margin: 0 0 .6rem; color: var(--color-muted); }
.usage-card__num strong { font-size: 1.75rem; font-weight: 800; color: var(--color-text); letter-spacing: -.02em; margin-right: .2rem; }
.usage-bar { height: 8px; border-radius: 999px; background: var(--color-border); overflow: hidden; }
.usage-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--color-text); transition: width .4s ease; }
.usage-bar > span.is-full { background: #B45309; }
details.quiet-panel > summary { list-style: none; margin-bottom: 0; }
details.quiet-panel > summary::-webkit-details-marker { display: none; }
details.quiet-panel[open] > summary { margin-bottom: .85rem; }
.quiet-panel__hint { margin-left: auto; font-size: .8rem; color: var(--color-muted); }
details.quiet-panel[open] .quiet-panel__hint { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .usage-bar > span { transition: none; } }

/* ── Job page "Next step" box (2026-11-06): one clear main action per stage ── */
.next-step {
  margin: 1.5rem 0 0; padding: 1.25rem 1.35rem; border-radius: var(--radius, 14px);
  background: #F8F4EF; border: 1px solid var(--color-border);
}
.next-step--warn { background: #FEF6E7; border-color: #F3D9A4; }
.next-step--done { background: #ECF7EF; border-color: #BFE3C9; }
.next-step__label { margin: 0 0 .25rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.next-step__title { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.next-step__text { margin: .4rem 0 0; color: var(--color-muted); max-width: 62ch; }
.next-step__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1rem; }
.next-step__actions form { margin: 0; }
.next-step__retry { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.detail-actions { margin-top: 1rem; }
.more-options { margin-top: .75rem; }
.more-options > summary { cursor: pointer; font-size: .875rem; color: var(--color-muted); list-style: none; display: inline-flex; gap: .35rem; align-items: center; }
.more-options > summary::-webkit-details-marker { display: none; }
.more-options > summary::after { content: '\25BE'; font-size: .7rem; }
.more-options[open] > summary::after { content: '\25B4'; }
.more-options .text-actions { margin-top: .5rem; }
[data-theme="dark"] .next-step { background: rgba(255,255,255,.04); }
[data-theme="dark"] .next-step--warn { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.35); }
[data-theme="dark"] .next-step--done { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.35); }

/* Install banner (3rd visit on): compact on phones so it never hides the page's main button */
@media (max-width: 480px) {
  #pwa-install-banner { bottom: 4.75rem !important; padding: .6rem .85rem !important; gap: .6rem !important; width: calc(100vw - 2rem); }
  #pwa-install-banner > span { display: none !important; }
  #pwa-install-banner > div:nth-child(2) > div:last-child { display: none; }
}

/* ── Auto-apply settings (2026-11-06): choice cards instead of raw radios ── */
.apply-settings { display: grid; gap: 1.75rem; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group__title { padding: 0; font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.choice-group__hint { margin: 0 0 .85rem; font-size: .875rem; color: var(--color-muted); }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .6rem; }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card {
  position: relative; display: flex; gap: .7rem; align-items: flex-start; cursor: pointer;
  padding: 1rem 1rem 1.05rem; border: 1.5px solid var(--color-border); border-radius: 14px;
  background: var(--color-surface); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.choice-card:hover { border-color: var(--color-text); }
.choice-card input { margin-top: .2rem; accent-color: var(--color-text); width: 1.05rem; height: 1.05rem; flex: none; }
.choice-card:has(input:checked) { border-color: var(--color-text); box-shadow: 0 0 0 3px rgba(28, 25, 23, .08); background: #FBF8F5; }
.choice-card:has(input:focus-visible) { outline: 3px solid #F6B53D; outline-offset: 2px; }
.choice-card.is-locked { cursor: not-allowed; opacity: .7; }
.choice-card.is-locked:hover { border-color: var(--color-border); }
.choice-card__body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.choice-card__title { font-weight: 700; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.choice-card__text { font-size: .875rem; color: var(--color-muted); line-height: 1.45; }
.choice-card__tag { font-size: .68rem; font-weight: 700; letter-spacing: .03em; padding: .12rem .45rem; border-radius: 999px; background: #F6B53D; color: #1C1917; }
.choice-card__lock { font-size: .8rem; color: #92400E; }
.toggle-row {
  display: flex; gap: .75rem; align-items: flex-start; cursor: pointer;
  padding: 1rem 1.1rem; border-radius: 14px; background: #FBF8F5; border: 1px solid var(--color-border);
}
.toggle-row input { margin-top: .25rem; accent-color: var(--color-text); width: 1.05rem; height: 1.05rem; flex: none; }
.toggle-row__body { display: flex; flex-direction: column; gap: .2rem; }
.toggle-row__title { font-weight: 700; }
.toggle-row__text { font-size: .875rem; color: var(--color-muted); }
.rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.apply-settings__actions { display: flex; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--color-border); padding-top: 1.25rem; }
[data-theme="dark"] .choice-card:has(input:checked), [data-theme="dark"] .toggle-row { background: rgba(255,255,255,.04); }
@media (max-width: 720px) {
  .choice-grid, .choice-grid--2, .rules-grid { grid-template-columns: 1fr; }
}

/* Profile actions (2026-11-06): two buttons + a quiet "More" */
.more-options--inline { display: inline-block; margin-top: 0; align-self: center; }
.more-options--inline .text-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.more-options--inline .text-actions a, .more-options--inline .text-actions button { font: inherit; font-size: .875rem; font-weight: 400; color: var(--color-text); background: none; border: 0; padding: 0; cursor: pointer; }
.tracker-tools { margin: 0 0 1.25rem; }
.tracker-tools .subnav { margin-top: .5rem; }
