/* YouScoreThem: the signed-in pages and the shared page parts in the leading design S·09 (OD-67).
   General rules sit in :where(), so they have no weight against the design's component classes; only the
   resets of the design's bare-element rules (section padding, heading sizes) keep a plain body.app main.
   design.css holds the design's own rules and loads first; this file adds what the design has no page for:
   compact page titles, forms, tables, notices and the cookie banner. Rules for bare elements are scoped to
   body.app, so they never reach the public pages (body.site), which follow the design exactly. */

/* ---------- shared page parts (every page) ---------- */
.label-early-access { align-self: center; margin-right: auto; margin-left: 14px; font: 600 11px var(--k-mono); letter-spacing: .06em; color: inherit; border: 1.5px solid currentColor; padding: 3px 7px; white-space: nowrap; } /* in the nav's own colour: over the giant words the nav blends (difference), which would turn red into teal */
/* phones: the logo row has no room beside "Log in" and "Get started", so the label takes its own line under the tabs */
@media (max-width: 520px) { .knav .label-early-access { order: 4; margin: 8px 0 2px; } }
.kcta form { margin: 0; display: flex; }
.kcta button { font: 600 14px/1.4 var(--fb); padding: 8px 14px; border: 2px solid; cursor: pointer; white-space: nowrap; }
.kcta button.k-login { background: var(--k-bg, #fff); color: var(--k-ink-c, #000); border-color: currentColor; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.notice { display: block; border: 2px solid var(--ink); border-left: 6px solid var(--k-accent); background: var(--card); padding: 14px 18px; margin: 0 0 16px; font-size: 15px; line-height: 1.5; }
.notice strong { display: block; font: 700 12px var(--k-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.notice p { margin: 0; }
#ai-disclosure { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1192px; margin: 16px auto 0; }
@media (max-width: 1240px) { body.app #ai-disclosure { margin: 16px 24px 0; } }
body.site #ai-disclosure { position: relative; z-index: 2; margin: 0 24px; top: calc(var(--nav-h, 64px) + 12px); }
#ai-disclosure button { font: 600 13px var(--fb); background: var(--ink); color: var(--bg); border: 2px solid var(--ink); padding: 7px 14px; cursor: pointer; }

/* The cookie choice sits at the bottom of the screen; both buttons look the same (no nudge towards "Accept all"). */
.cookie-banner { position: sticky; bottom: 0; z-index: 50; background: var(--bg); color: var(--ink); border-top: 2px solid var(--ink); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: 15px; }
.cookie-banner p { margin: 0; max-width: 80ch; }
.cookie-banner a { color: inherit; }
.cookie-banner form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.cookie-banner button { min-width: 9rem; font: 700 14px var(--fb); background: var(--bg); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--sh); padding: 10px 16px; cursor: pointer; }

/* ---------- signed-in pages: layout and type ---------- */
body.app { padding-top: var(--nav-h, 64px); }
body.app main { max-width: 1240px; margin: 0 auto; padding: 36px 24px 90px; }
body.app main section, body.app main section.wrap { padding: 0; }
body.app main section + section { margin-top: 44px; }
body.app main h1 { font-size: clamp(36px, 4.4vw, 52px); margin: 0 0 22px; }
body.app main h2 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.05; margin: 34px 0 14px; }
body.app main h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.15; margin: 24px 0 10px; }
:where(body.app h4) { font: 700 12px var(--k-mono); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; }
:where(body.app h1 + p), :where(body.app .lead) { font-size: 19px; max-width: 62ch; }
:where(body.app p), :where(body.app li) { max-width: 76ch; }
:where(body.app a) { color: inherit; text-decoration-color: var(--k-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:where(body.app a:hover) { color: var(--k-accent); }
:where(body.app main .tag) { margin-bottom: 12px; }
:where(body.app main ul), :where(body.app main ol) { padding-left: 1.2em; }
:where(body.app code), :where(body.app pre) { font-family: var(--k-mono); font-size: .9em; }
:where(body.app hr) { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:where(body.app .muted), :where(body.app .mute) { opacity: .65; }
:where(body.app .empty) { font: 13px/1.6 var(--k-mono); opacity: .7; border: 1px dashed var(--ink); padding: 18px; }
:where(body.app details > summary) { cursor: pointer; font-weight: 700; }
:where(body.app dl) { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
:where(body.app dt) { font: 600 12px var(--k-mono); text-transform: uppercase; letter-spacing: .06em; opacity: .7; padding-top: 3px; }
:where(body.app dd) { margin: 0; }

/* ---------- forms ---------- */
:where(body.app label) { font-weight: 600; }
:where(body.app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=button]),
body.app select, body.app textarea) { font: 15px/1.4 var(--fb); color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 0; padding: 9px 11px; max-width: 100%; }
:where(body.app input:focus), :where(body.app select:focus), :where(body.app textarea:focus) { outline: 2px solid var(--k-accent); outline-offset: 2px; }
:where(body.app input[type=checkbox]), :where(body.app input[type=radio]) { accent-color: var(--k-accent); width: 18px; height: 18px; vertical-align: -3px; }
:where(body.app input[type=range]) { accent-color: var(--k-accent); }
:where(body.app fieldset) { border: 2px solid var(--ink); padding: 14px 18px 18px; margin: 0 0 18px; min-width: 0; }
:where(body.app input[type=file]) { max-width: 100%; }
:where(body.app legend) { font: 700 12px var(--k-mono); text-transform: uppercase; letter-spacing: .08em; padding: 0 6px; }
:where(body.app form p) { margin: 0 0 14px; }
:where(body.app .field) { display: grid; gap: 6px; margin: 0 0 16px; }
:where(body.app .errornote), :where(body.app .errorlist) { color: var(--k-accent); font-weight: 600; }
:where(body.app .errorlist) { list-style: none; padding: 0; margin: 4px 0 0; }

/* Buttons: the design's red button with the hard shadow; secondary ones are outlined. */
:where(body.app button:not(.link-button):not(.k-w-reset):not([data-a])), :where(body.app input[type=submit]), :where(body.app .button) {
  display: inline-block; font: 700 15px/1.2 var(--fb); background: var(--k-accent); color: var(--on-acc); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--sh); border-radius: 0; padding: 11px 18px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .1s, box-shadow .1s; }
:where(body.app button:not(.link-button):not(.k-w-reset):not([data-a]):active), :where(body.app input[type=submit]:active), :where(body.app .button:active) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--sh); }
:where(body.app .button-quiet), :where(body.app button.button-quiet), :where(body.app form.inline button), :where(body.app .inline-form button) { background: var(--bg) !important; color: var(--ink) !important; box-shadow: none !important; }
:where(body.app .danger), :where(body.app button.danger) { background: var(--ink) !important; color: var(--bg) !important; }
:where(body.app button:disabled), :where(body.app input[type=submit]:disabled) { opacity: .5; cursor: not-allowed; }
:where(body.app .kcta button.k-login) { box-shadow: none; font-size: 14px; padding: 8px 14px; background: var(--k-bg, #fff); color: var(--k-ink-c, #000); }
:where(body.app .link-button) { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-decoration-color: var(--k-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; font: inherit; box-shadow: none; }
:where(body.app form.inline), :where(body.app .inline-form) { display: inline; }
:where(body.app .actions), :where(body.app .toolbar) { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0; }

/* ---------- tables (the design's sheet) ---------- */
:where(body.app table) { border-collapse: collapse; width: 100%; font-size: 14px; }
:where(body.app th) { font: 600 12px var(--k-mono); letter-spacing: .02em; text-align: left; opacity: .7; padding: 10px 12px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
:where(body.app td) { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
:where(body.app .table-scroll) { overflow-x: auto; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--sh); background: var(--card); }
:where(body.app .table-scroll table th:first-child), :where(body.app .table-scroll table td:first-child) { padding-left: 14px; }

/* ---------- small parts used across the app ---------- */
.link-secondary { font-size: .85em; opacity: .8; }
.listing-facts { font: 12px/1.5 var(--k-mono); opacity: .7; }
.saved { font: 600 12px var(--k-mono); color: var(--k-good, #0A7F4F); margin-left: 6px; }
.saved.error { color: var(--k-accent); }
.stale { font: 600 11px var(--k-mono); color: var(--k-accent); white-space: nowrap; }
.chip { display: inline-block; font: 500 12px var(--k-mono); border: 1.5px solid var(--ink); padding: 3px 9px; color: var(--ink); text-decoration: none; }
.chips { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; margin: 10px 0 0; white-space: nowrap; }
:where(body.app .upgrade-prompt) { border: 2px solid var(--k-accent); box-shadow: inset 6px 0 0 var(--k-accent); padding: 14px 18px 14px 24px; margin: 16px 0; }

/* The A-02 line under the score demo (REQ-006, OD-67.18), in the design's small mono note style. */
.ai-line { font: 12px/1.5 var(--k-mono); opacity: .75; margin: 16px 0 0; max-width: none; }

/* ---------- signed-in pages, area by area (OD-67) ---------- */
/* Search: the form is a framed card; each result reads like the design's ranked list, the score large. */
:where(body.app) .search-form { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--sh); background: var(--card); padding: 22px 24px; margin: 0 0 22px; display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
:where(body.app) .search-form > * { margin: 0 0 12px; }
:where(body.app) .search-form > details, :where(body.app) .search-form > button, :where(body.app) .search-form > ul { grid-column: 1 / -1; justify-self: start; }
:where(body.app) .search-form label { display: block; margin-bottom: 6px; }
:where(body.app) .search-form input[type=text], :where(body.app) .search-form select { width: 100%; }
:where(body.app) .search-form fieldset ul, :where(body.app) .search-form fieldset div { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
:where(body.app) ol.results { list-style: none; padding: 0; margin: 18px 0 0; border-top: 2px solid var(--ink); }
:where(body.app) .result-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
:where(body.app) .result-card > * { grid-column: 1; margin: 0; max-width: none; }
body.app main .result-card h3 { margin: 0; font-size: 19px; }
:where(body.app) .result-card h3 a { text-decoration: none; }
:where(body.app) .result-card > p:not(.score) { font: 12px/1.5 var(--k-mono); opacity: .75; }
:where(body.app) .result-card .score { grid-column: 2; grid-row: 1 / span 3; align-self: start; font: 800 24px/1 var(--fd); letter-spacing: -.03em; white-space: nowrap; }
:where(body.app) .result-card .actions { margin: 10px 0 0; gap: 8px; }
:where(body.app) .result-card .actions button { font-size: 13px; padding: 7px 12px; box-shadow: none; background: var(--bg); color: var(--ink); }
:where(body.app) .result-card .actions button:first-child { background: var(--k-accent); color: var(--on-acc); }
:where(body.app) .requirements-detail { margin: 8px 0 0; }
:where(body.app) ul.requirements { list-style: none; padding: 0; }
:where(body.app) ul.requirements li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.flag { font: 600 10px var(--k-mono); text-transform: uppercase; letter-spacing: .06em; background: var(--k-accent); color: var(--on-acc); padding: 2px 6px; vertical-align: 2px; }
.state { font: 600 11px var(--k-mono); text-transform: uppercase; letter-spacing: .05em; }

/* Tracker: the design's editable sheet; notes stay one line high; the open application below in a frame. */
.k-app textarea { font: inherit; font-size: 13px; color: inherit; background: var(--k-surface-solid, #fff); border: 1px solid transparent; padding: 6px 7px; height: 34px; min-height: 34px; width: 24ch; resize: vertical; outline: none; }
.k-app textarea:hover { border-color: var(--k-line); }
.k-app textarea:focus { border-color: var(--k-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--k-accent) 25%, transparent); }
.k-app .link-button { font: 600 12px var(--k-mono); text-transform: uppercase; letter-spacing: .05em; }
:where(body.app) .filter-bar { margin: 14px 0 16px; }
:where(body.app) .filter-row > summary { display: inline-block; list-style: none; font: 700 14px var(--fb); border: 2px solid var(--ink); padding: 7px 14px; cursor: pointer; }
:where(body.app) .filter-row > summary::-webkit-details-marker { display: none; }
:where(body.app) .filter-inputs { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-top: 12px; font-size: 13px; }
:where(body.app) .filter-inputs label { display: flex; flex-direction: column; gap: 4px; }
:where(body.app) .filter-inputs input, :where(body.app) .filter-inputs select { font-size: 13px; padding: 6px 8px; }
:where(body.app) .detail-slot { margin-top: 28px; }
:where(body.app) .tracker-detail { border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--sh); background: var(--card); padding: 8px 24px 24px; }
:where(body.app) .detail-close { text-align: right; margin: 8px 0 0; }
:where(body.app) .pipeline-section { margin-top: 56px; }

/* Score breakdown: the posting card beside the dials, as on the design's "The score" page. */
:where(body.app) .score-side { margin: 24px 0 8px; }
:where(body.app) .score-side .k-title a { text-decoration: none; }
:where(body.app) .score-side .score { margin: 6px 0 0; font: 12px var(--k-mono); }
:where(body.app) .score-side .notice { margin: 14px 0 4px; }
:where(body.app) .k-weights output { font: 500 13px var(--k-mono); text-align: right; }
:where(body.app) #whatif-result { border-top: 1.5px solid currentColor; margin-top: 10px; padding-top: 10px; font: 13px/1.5 var(--k-mono); }
:where(body.app) #whatif-result p { margin: 0 0 4px; }
:where(body.app) #whatif-result p:first-child { font: 800 24px/1.1 var(--fd); letter-spacing: -.03em; }
:where(body.app) .k-w-foot input { width: 14ch; }

/* Quick questions: each question a framed row like the design's yes/no cards; answered rows get the red edge. */
:where(body.app) table.questions { border-collapse: separate; border-spacing: 0 10px; }
:where(body.app) table.questions tbody td { background: var(--card); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 14px 16px; vertical-align: middle; }
:where(body.app) table.questions tbody td:first-child { border-left: 2px solid var(--ink); font-weight: 600; }
:where(body.app) table.questions tbody td:last-child { border-right: 2px solid var(--ink); font: 12px var(--k-mono); }
:where(body.app) table.questions tbody tr:has(input:checked) td:first-child { box-shadow: inset 6px 0 0 var(--k-accent); }
:where(body.app) table.questions input[type=checkbox] { width: 22px; height: 22px; }

/* Lists of things you own (profiles, tickets, imports): ruled rows under a heavy line. */
:where(body.app) ul.profiles, :where(body.app) .tickets ul, :where(body.app) ul.ticket-list { list-style: none; padding: 0; border-top: 2px solid var(--ink); }
:where(body.app) ul.profiles > li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
:where(body.app) ul.profiles > li > a { font-weight: 700; text-decoration: none; }
:where(body.app) ul.profiles strong { font: 600 11px var(--k-mono); text-transform: uppercase; letter-spacing: .08em; background: var(--k-accent); color: var(--on-acc); padding: 3px 7px; }
.import-rows input[type="text"], .import-rows input[type="url"], .import-rows textarea { width: 100%; min-width: 8em; box-sizing: border-box; }
.import-rows td { vertical-align: top; }

/* Sign-in pages: one framed card, fields stacked (OD-67). */
:where(body.app) .auth-card { max-width: 600px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--sh); background: var(--card); padding: 30px 32px 22px; }
body.app main .auth-card h1 { font-size: clamp(32px, 4vw, 44px); }
body.app main .auth-card h2 { font-size: 20px; margin: 30px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
:where(body.app) .auth-card form { display: grid; gap: 8px; margin: 0 0 12px; }
:where(body.app) .auth-card form input:not([type=checkbox]) { width: 100%; }
:where(body.app) .auth-card form button { justify-self: start; margin-top: 6px; }
:where(body.app) .auth-card #auth-message, :where(body.app) .auth-card #auth-error { font-weight: 600; }
:where(body.app) .auth-card #auth-error { color: var(--k-accent); }

/* The tracker's status dots, as the design's .k-mkr (OD-67). */
.marker { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }
.marker.status-offer { background: var(--k-accent); border-color: var(--k-accent); }
.marker.status-interviewing { background: color-mix(in srgb, var(--k-accent) 40%, transparent); border-color: var(--k-accent); }
.marker.status-rejected { background: currentColor; }
.marker.status-ghosted { border-style: dashed; opacity: .5; }
.marker.status-not_applied { opacity: .35; }

/* Phones: each quick question becomes a stacked card; the Yes and No boxes carry their own words. */
@media (max-width: 640px) {
  :where(body.app) table.questions thead { display: none; }
  :where(body.app) table.questions, :where(body.app) table.questions tbody, :where(body.app) table.questions tr { display: block; }
  :where(body.app) table.questions tr { border: 2px solid var(--ink); background: var(--card); margin: 0 0 10px; padding: 12px 14px; }
  :where(body.app) table.questions tr:has(input:checked) { box-shadow: inset 6px 0 0 var(--k-accent); }
  :where(body.app) table.questions tbody td { display: inline-block; border: 0 !important; box-shadow: none !important; background: none; padding: 4px 14px 4px 0; }
  :where(body.app) table.questions tbody td:first-child, :where(body.app) table.questions tbody td:nth-child(2) { display: block; }
  :where(body.app) table.questions tbody td:nth-child(3)::before { content: "Yes "; font: 600 12px var(--k-mono); text-transform: uppercase; }
  :where(body.app) table.questions tbody td:nth-child(4)::before { content: "No "; font: 600 12px var(--k-mono); text-transform: uppercase; }
  :where(body.app) table.questions tbody td:last-child::before { content: "Postings "; }
}

/* Wide tables outside the design's own components (legal documents, tickets, answers, import and CV previews)
   scroll inside their own box: the design hides horizontal overflow on the body, which would cut them off (PRD-R1-1). */
:where(body.app main) table:not(.k-app):not(.questions) { display: block; max-width: 100%; overflow-x: auto; }

/* The tracker: the design's frame around a box that scrolls sideways, as in the design (the frame clips). */
.sheet-frame > .table-scroll { border: 0; box-shadow: none; overflow-x: auto; }

/* OD-69 (owner's review notes, 2026-11-19) */
/* owner note: the chosen sub-tab filled with colour, the other plainly a button you can press */
.subtabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 24px; }
.subtabs a { font: 600 14px var(--k-mono); letter-spacing: .04em; text-decoration: none; color: var(--k-ink-c); padding: 9px 18px; border: 2px solid var(--k-ink-c); background: transparent; }
.subtabs a:hover { background: var(--k-tint); }
.subtabs a.on { background: var(--k-accent); border-color: var(--k-accent); color: var(--k-on-accent); }
.saved { transition: opacity .6s; }
.saved.gone { opacity: 0; }
:where(body.app) [data-session-close] { position: relative; padding-right: 44px; }
:where(body.app) .session-close { position: absolute; top: 8px; right: 12px; font: 400 24px/1 var(--fb); text-decoration: none; }
:where(body.app) .search-form .inline-field label, :where(body.app) .search-form .check-field label { display: inline; margin: 0 8px 0 0; }
:where(body.app) .search-form .inline-field input { width: auto; }
:where(body.app) .search-form .check-field { display: flex; align-items: center; gap: 8px; }
:where(body.app) .search-form .check-field input { margin: 0; }
:where(body.app) .excluded-group { margin: 0 0 14px; }
:where(body.app) .excluded-group > p { margin-bottom: 6px; }
:where(body.app) fieldset.plain { border: 0; padding: 0; margin: 0; }
:where(body.app) fieldset.plain legend { font: inherit; text-transform: none; letter-spacing: 0; padding: 0; opacity: .75; font-size: 13px; margin-bottom: 4px; }
/* The type-to-search picker (static/js/typeahead.js) */
.ta { position: relative; }
.ta-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border: 2px solid var(--ink); background: var(--card, #fff); padding: 6px 8px; min-height: 44px; }
.ta-box:focus-within { outline: 2px solid var(--k-accent); outline-offset: 2px; }
.ta-box input { border: 0 !important; outline: 0 !important; flex: 1 1 140px; min-width: 120px; padding: 4px; background: transparent; box-shadow: none; }
.ta-chip { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--k-mono); border: 1.5px solid var(--ink); padding: 2px 4px 2px 8px; text-transform: capitalize; }
.ta-chip button { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 4px !important; font: 400 16px/1 var(--fb) !important; color: inherit !important; cursor: pointer; }
.ta-list { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 0; list-style: none; border: 2px solid var(--ink); background: var(--card, #fff); box-shadow: 6px 6px 0 var(--sh); max-height: 300px; overflow-y: auto; }
.ta-list li { padding: 8px 12px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; text-transform: capitalize; }
.ta-list li small { font: 500 11px var(--k-mono); opacity: .6; text-transform: uppercase; }
.ta-list li[aria-selected=true], .ta-list li:hover { background: color-mix(in srgb, var(--k-accent) 12%, transparent); }
.ta-list li.ta-head { cursor: default; font: 600 11px var(--k-mono); text-transform: uppercase; letter-spacing: .08em; opacity: .6; padding: 6px 12px 2px; background: none; }
/* Tracker (OD-69): compact rows, every cell centred on one line, the sideways scrollbar always shown. */
.k-tracker.table-scroll { overflow-x: scroll; }
/* Firefox has no ::-webkit-scrollbar; Chrome ignores those rules once scrollbar-color is set, so only Firefox gets it. */
@supports not selector(::-webkit-scrollbar) { .k-tracker.table-scroll { scrollbar-width: auto; scrollbar-color: var(--ink) color-mix(in srgb, var(--ink) 8%, transparent); } }
.k-tracker.table-scroll::-webkit-scrollbar { height: 12px; -webkit-appearance: none; }
.k-tracker.table-scroll::-webkit-scrollbar-thumb { background: var(--ink); }
.k-tracker.table-scroll::-webkit-scrollbar-track { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tracker-table td, .tracker-table th { padding: 6px 10px; vertical-align: middle; }
.tracker-table td.field { display: table-cell; margin: 0; }
.tracker-table .status-cell { white-space: nowrap; }
.tracker-table .status-cell .marker { margin-right: 6px; }
.tracker-table .saved-slot { display: inline-block; min-width: 0; }
.tracker-table .saved-slot:empty { display: none; }
.tracker-table input, .tracker-table select, .tracker-table textarea { padding: 4px 8px; min-height: 0; vertical-align: middle; }
.tracker-table textarea { resize: horizontal; height: 2.1em; overflow: hidden; }
.tracker-table .applied-field { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.tracker-table.k-app .open-row { font: 600 14px var(--fb); text-transform: none; letter-spacing: 0; text-align: left; }
.k-trk-match.big { font: 700 34px/1 var(--k-display, inherit); letter-spacing: -.02em; }
/* The detail panel */
body.app main section.tracker-detail { position: relative; padding: 22px 26px 26px; margin-top: 22px; border: 2px solid var(--ink); background: var(--card); box-shadow: 8px 8px 0 var(--sh); }
.tracker-detail .detail-close { position: absolute; top: 16px; right: 20px; }
.tracker-detail h2 { padding-right: 90px; }
.tracker-detail .req-group { margin: 0 0 10px; }
.tracker-detail .req-group summary { cursor: pointer; font-weight: 600; }
.tracker-detail .req-group .k-reqs { margin: 6px 0 0 4px; }
.tracker-detail .detail-edit .field { max-width: 640px; }
.tracker-detail .detail-edit textarea, .tracker-detail .detail-edit input[type=text] { width: 100%; }
.app-history { list-style: none; padding: 0; margin: 0 0 18px; }
.app-history li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.app-history time { font: 600 12px var(--k-mono); display: inline-block; min-width: 96px; }
.ai-usage { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font: 500 12px var(--k-mono); margin: 4px 0 18px; }
.ai-usage span { opacity: .8; }
.ai-usage .ai-upgrade { font: 600 12px var(--k-mono); border: 1.5px solid var(--ink); padding: 2px 8px; text-decoration: none; color: var(--ink); }
.hint-q { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid currentColor; border-radius: 50%; font: 700 11px var(--k-mono); cursor: help; margin-left: 6px; vertical-align: 1px; position: relative; }
.hint-q .hint-text { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: min(320px, 80vw); background: var(--ink); color: var(--bg); font: 400 13px/1.45 var(--fb); padding: 10px 12px; z-index: 20; text-align: left; }
.hint-q:hover .hint-text, .hint-q:focus .hint-text, .hint-q:focus-within .hint-text { display: block; }
body.app main section.paste-link { border-top: 2px solid var(--ink); margin-top: 28px; padding-top: 18px; }
.paste-link input[type=text], .paste-link input[type=url] { width: min(680px, 100%); }
:where(body.app) .wide-text { width: 100%; box-sizing: border-box; }
/* Score breakdown (OD-69) */
.posting-picker { flex-wrap: wrap; }
.posting-picker .picker-ta { flex: 1 1 360px; max-width: 640px; }
.posting-picker .picker-ta input { width: 100%; }
.posting-picker .ta-list li { text-transform: none; }
.k-score [data-g] { cursor: pointer; }
.k-why b.sim, small b.sim { font-weight: 700; color: var(--ink); }
.whatif-badge { font: 600 12px var(--k-mono); color: var(--k-accent); }
.weight-sets details li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.weight-sets details li > form { flex: none; white-space: nowrap; }
.weight-sets details li button { padding: 6px 12px; font-size: 13px; }
.posting-dialog { width: min(980px, 94vw); max-height: 86vh; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--sh); padding: 18px 22px; background: var(--card, #fff); color: var(--ink); }
.posting-dialog::backdrop { background: rgb(0 0 0 / .35); }
.pd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pd-head h2 { margin: 0 0 12px; }
.pd-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.pd-filters label { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--k-mono); }
.pd-table { max-height: 56vh; overflow: auto; border: 1px solid var(--line); }
.pd-table tbody tr { cursor: pointer; }
.pd-table tbody tr:hover, .pd-table tbody tr:focus, .pd-table tbody tr.on { background: color-mix(in srgb, var(--k-accent) 10%, transparent); outline: 0; }
.pd-table table { display: table; width: 100%; }
.ai-usage { max-width: none; }

/* OD-70 (owner notes 2026-11-19): "How it combines" as numbered steps in the site's style, each result large
   on the right, the final score filled; "Show sentence evidence" uses the page's heading font. */
body.app main ol.combination { list-style: none; counter-reset: cb; margin: 14px 0 18px; padding: 0; border-top: 1.5px solid var(--k-ink-c); }
body.app main ol.combination li { counter-increment: cb; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); font: 400 14px/1.55 var(--k-mono); }
body.app main ol.combination li::before { content: counter(cb, decimal-leading-zero); font: 700 13px var(--k-mono); color: var(--k-accent); }
body.app main ol.combination .cb-result { font: 800 28px/1 var(--k-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.app main ol.combination li.final { background: var(--k-accent); color: var(--k-on-accent); border-bottom: 0; padding: 16px 12px; }
body.app main ol.combination li.final::before { color: inherit; }
body.app main ol.combination li.final .cb-result { font-size: 40px; }
@media (max-width: 640px) { body.app main ol.combination li { grid-template-columns: 30px 1fr; } body.app main ol.combination .cb-result { grid-column: 2; } }
body.app main details.evidence > summary { cursor: pointer; list-style: none; }
body.app main details.evidence > summary::-webkit-details-marker { display: none; }
body.app main details.evidence > summary h2 { display: inline; }
body.app main details.evidence > summary h2::after { content: " ▸"; font-size: .7em; }
body.app main details.evidence[open] > summary h2::after { content: " ▾"; }
/* OD-70: the tracker's text boxes show a light outline at rest, so it is plain you can type in them */
.tracker-table.k-app :is(input[type=text], textarea, input[type=date]) { border: 1px solid color-mix(in srgb, currentColor 28%, transparent); background: var(--k-surface-solid, var(--k-bg, #fff)); }
.tracker-table.k-app :is(input[type=text], textarea, input[type=date]):hover { border-color: color-mix(in srgb, currentColor 50%, transparent); }
.tracker-table.k-app :is(input[type=text], textarea, input[type=date]):focus { border-color: var(--k-accent); }
/* OD-70: the quick yes/no question under an unanswered requirement in the tracker detail */
.tracker-detail .quick-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font: 600 12px var(--k-mono); }
.tracker-detail .quick-ask button { padding: 3px 12px; min-height: 0; font: 600 12px var(--k-mono); }
.tracker-detail .quick-ask a { font-weight: 400; }
.tracker-detail .k-reqs .hint-q .hint-text { left: 0; transform: none; }

/* OD-70: the Manual (scoring explained, listing facts, sources) reads in the site's style: numbered steps
   with large accent numerals, ruled section headings, tables with a strong head. */
article.document.manual .manual-tag { margin: 0 0 4px; }
article.document.manual h1 { font: 800 clamp(34px, 4.4vw, 56px)/1.02 var(--k-display); letter-spacing: -.03em; margin: 8px 0 6px; }
article.document.manual .version { font: 500 12px var(--k-mono); letter-spacing: .04em; opacity: .65; }
article.document.manual h2 { font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--k-display); border-top: 2px solid var(--k-ink-c); padding-top: 14px; margin: 40px 0 12px; }
article.document.manual h3 { font: 700 13px var(--k-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--k-accent); margin: 24px 0 6px; }
article.document.manual ol { list-style: none; counter-reset: man; padding: 0; margin: 22px 0; max-width: 78ch; }
article.document.manual ol > li { counter-increment: man; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); line-height: 1.6; }
article.document.manual ol > li:last-child { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
article.document.manual ol > li::before { content: counter(man, decimal-leading-zero); font: 800 34px/1 var(--k-display); letter-spacing: -.04em; color: var(--k-accent); }
article.document.manual ul { max-width: 78ch; padding-left: 0; list-style: none; }
article.document.manual ul > li { position: relative; padding: 6px 0 6px 22px; }
article.document.manual ul > li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; background: var(--k-accent); }
article.document.manual table th { font: 700 12px var(--k-mono); letter-spacing: .05em; text-transform: uppercase; border-bottom: 2px solid var(--k-ink-c); text-align: left; }
article.document.manual strong { color: var(--k-accent); }
@media (max-width: 640px) { article.document.manual ol > li { grid-template-columns: 44px 1fr; gap: 10px; } article.document.manual ol > li::before { font-size: 26px; } }
.manual-link { padding-top: 10px; padding-bottom: 10px; }
.manual-link a { font-weight: 700; white-space: nowrap; }
/* OD-72 (owner): in the tracker table good scores stay black but stand out in bold; the others are regular */
.tracker-table .k-trk-match { font-weight: 400; }
.tracker-table .k-trk-match[data-band="high"] { font-weight: 800; }
/* the Stale header's "?" opens downwards and to the left, inside the scrolling sheet */
/* a "?" whose text is the browser's own tooltip (title), so the header cell's text stays the column name and
   the tip is never cut off by the scrolling sheet */
.hint-q.hint-attr::before { content: "?"; }
/* OD-72: the answered-question buttons are small, stacked and centred on one another, with a gap */
form.answer-actions { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
form.answer-actions button { padding: 4px 12px; min-height: 0; font-size: 12px; }
/* OD-72: the Manual's three parts follow one another on one page */
article.document.manual .manual-part + .manual-part { margin-top: 72px; padding-top: 28px; border-top: 3px solid var(--k-ink-c); }
article.document.manual .manual-part { scroll-margin-top: 90px; }
/* OD-72: the counter of a used-up limit pulses red once (red to white, then its normal look) */
@keyframes limit-pulse { 0% { background: transparent; color: inherit; } 35% { background: var(--k-accent); color: #fff; } 70% { background: #fff; color: inherit; } 100% { background: transparent; color: inherit; } }
.ai-usage.limit-pulse { animation: limit-pulse 1.4s ease-out 1; }
.ai-usage.limit-pulse .ai-upgrade { color: inherit; }
.ai-usage .full { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .ai-usage.limit-pulse { animation-duration: .01s; outline: 2px solid var(--k-accent); } }

/* OD-72: score page. Sentence evidence clear of the Components table; plain-language combination steps with
   numbers that point at their dials; component names as buttons; the weight panel's requirement tags. */
body.app main details.evidence { margin-top: 48px; clear: both; }
body.app main ol.combination.simple .cb-text b { font-family: var(--k-body, inherit); }
body.app main ol.combination.simple li { font: 400 15px/1.6 var(--k-body, inherit); }
body.app main button.jump { all: unset; cursor: pointer; font: 700 15px var(--k-mono); padding: 0 4px; border-bottom: 2px solid var(--k-accent); }
body.app main button.jump:hover, body.app main button.jump:focus-visible { background: color-mix(in srgb, var(--k-accent) 15%, transparent); }
body.app main ol.combination.simple li.final button.jump { border-color: currentColor; }
body.app main details.exact-formula { margin: 8px 0 18px; }
body.app main details.exact-formula > summary { cursor: pointer; font: 600 13px var(--k-mono); }
body.app main tr.jump-row th { cursor: pointer; text-decoration: underline dashed 1.5px; text-underline-offset: 4px; }
body.app main tr.jump-row th:hover { color: var(--k-accent); }
/* the dial tags are buttons (keyboard) drawn like the demo's tags */
.k-weights .k-w-items .k-chip { font: normal 11px/1 var(--k-mono); padding: 4px 7px; border: 1px solid var(--k-line); border-radius: var(--k-r); color: var(--k-mute); background: transparent; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: 0; cursor: pointer; transition: transform .15s, border-color .15s, color .15s, background .15s; }
.k-weights .k-w-items .k-chip:hover, .k-weights .k-w-items .k-chip:focus-visible { transform: translateY(-2px); border-color: var(--k-accent); color: inherit; background: color-mix(in srgb, var(--k-accent) 8%, transparent); }
.k-weights .k-w-items .k-chip { display: inline-block; }
/* a long list of tags must not push the panel's buttons off a sticky screen (only while it is sticky) */
@media (min-width: 901px) { .score-side .stick { max-height: calc(100vh - 100px); overflow-y: auto; } }
