/* JobRadar. Tokens and rules follow DESIGN.md: ledger paper, ink, one blue accent, hairlines. */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('/ui/83bdc7efd8ae/vendor/fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #F4F6F2; --sheet: #FBFCFA; --raised: #FFFFFE;
  --rule: #DCE2D9; --rule-strong: #C3CCBF;
  --ink: #16211C; --ink-2: #45554D; --ink-3: #64736B; --ink-4: #98A49D; --placeholder: #64736B;
  --blue: #2B44C7; --blue-hover: #2137A6; --blue-wash: #E6EAFA; --on-blue: #FFFFFF;
  --green: #1F7A4D; --green-wash: #E2F1E8; --amber: #9A5B06; --amber-wash: #F8ECD6; --red: #B3362B; --red-wash: #F9E4E1;
  --hover: rgb(22 33 28 / 0.045); --selected: #EAEFE8;
  --shadow: 0 12px 32px -10px rgb(22 46 34 / 0.24), 0 2px 6px rgb(22 46 34 / 0.08);
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-chip: 4px; --r-ctl: 6px; --r-panel: 10px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --paper: #0D1112; --sheet: #131819; --raised: #1A2021;
  --rule: #252D2D; --rule-strong: #364040;
  --ink: #ECF0ED; --ink-2: #B7C2BC; --ink-3: #89958E; --ink-4: #616D66; --placeholder: #808C85;
  --blue: #8FA0FF; --blue-hover: #A9B6FF; --blue-wash: rgb(143 160 255 / 0.14); --on-blue: #0D1112;
  --green: #4CC38A; --green-wash: rgb(76 195 138 / 0.14); --amber: #E0A84A; --amber-wash: rgb(224 168 74 / 0.14); --red: #F0796B; --red-wash: rgb(240 121 107 / 0.14);
  --hover: rgb(236 240 237 / 0.055); --selected: #1D2526;
  --shadow: 0 14px 36px -10px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0D1112; --sheet: #131819; --raised: #1A2021;
    --rule: #252D2D; --rule-strong: #364040;
    --ink: #ECF0ED; --ink-2: #B7C2BC; --ink-3: #89958E; --ink-4: #616D66; --placeholder: #808C85;
    --blue: #8FA0FF; --blue-hover: #A9B6FF; --blue-wash: rgb(143 160 255 / 0.14); --on-blue: #0D1112;
    --green: #4CC38A; --green-wash: rgb(76 195 138 / 0.14); --amber: #E0A84A; --amber-wash: rgb(224 168 74 / 0.14); --red: #F0796B; --red-wash: rgb(240 121 107 / 0.14);
    --hover: rgb(236 240 237 / 0.055); --selected: #1D2526;
    --shadow: 0 14px 36px -10px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 13px/20px var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow: hidden; cursor: default; }
h1, h2, h3, p { margin: 0; }
h1 { font: 600 20px/26px var(--sans); letter-spacing: -0.015em; white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font: 600 15px/22px var(--sans); letter-spacing: -0.01em; }
h3 { font: 600 13px/20px var(--sans); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: var(--r-chip); }
::selection { background: var(--blue-wash); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; line-height: 18px; }
.meta { font: 500 11px/16px var(--sans); letter-spacing: 0.01em; color: var(--ink-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.selectable { user-select: text; cursor: text; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--raised); padding: 6px 10px; border-radius: var(--r-ctl); z-index: 100; }
.skip-link:focus { left: 8px; }
/* The main region takes focus from the skip link. It is most of the window: no ring round it. */
.main:focus { outline: none; }
/* A file chooser drawn as a button: the browser's own control sits inside the label, out of sight. */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label.btn { position: relative; cursor: pointer; }
label.btn:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
label.btn.disabled { opacity: 0.55; pointer-events: none; }
* { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }

/* Shell */
/* The single row is bounded to the window, so each pane scrolls inside itself and the window never does. */
#app { display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; overflow: hidden; user-select: none; }
.sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--rule); padding: 52px 8px 8px; -webkit-app-region: drag; min-height: 0; }
.sidebar > * { -webkit-app-region: no-drag; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; font: 600 15px/22px var(--sans); letter-spacing: -0.01em; }
.brand-mark { width: 20px; height: 20px; color: var(--blue); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: var(--r-ctl); color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--hover); text-decoration: none; color: var(--ink); }
.nav a[aria-current='page'] { background: var(--selected); color: var(--ink); }
.nav a i { font-size: 16px; color: var(--ink-3); }
.nav a[aria-current='page'] i { color: var(--blue); }
.nav .count { margin-left: auto; font: 400 11px/16px var(--mono); color: var(--ink-3); }
.nav .count.hot { color: var(--blue); font-weight: 500; }
.nav-gap { height: 14px; }
.status { margin-top: auto; border-top: 1px solid var(--rule); padding: 10px 8px 4px; display: flex; flex-direction: column; gap: 8px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 18px; color: var(--ink-2); }
.status-line i { font-size: 14px; color: var(--ink-3); }

.main { display: grid; grid-template-rows: 52px minmax(0, 1fr); background: var(--sheet); min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--rule); -webkit-app-region: drag; }
.topbar > * { -webkit-app-region: no-drag; }
.topbar h1 { margin-right: 4px; }
.topbar .spacer { flex: 1; -webkit-app-region: drag; align-self: stretch; }
.view { min-height: 0; overflow: auto; }
.page { max-width: 880px; padding: 24px 28px 48px; display: flex; flex-direction: column; gap: 28px; }
.page.wide { max-width: none; }
.section { display: flex; flex-direction: column; gap: 12px; }
.section > header { display: flex; align-items: baseline; gap: 12px; }
.section > header h2 { flex: none; }
.section > header p { color: var(--ink-3); }
.panel { border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--raised); }
.panel-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--rule); }
.panel-row:first-child { border-top: 0; }
.panel-row .label { font-weight: 500; }
.panel-row .help { color: var(--ink-3); font-size: 12px; line-height: 18px; }
/* A question and the control it is answered with. The question can run to several lines. */
.q-row { align-items: flex-start; }
.q-row .seg, .q-row .btn { flex: none; }
.q-row .q-control { flex: none; width: 300px; }
.q-row textarea.q-control { min-height: 30px; padding: 4px 10px; resize: none; overflow: hidden; }
.q-row .help.warn { color: var(--amber); }
.q-several { flex: none; width: 300px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* An answer the app wrote, shown under the question until it is used. */
.q-draft { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.q-draft p { line-height: 20px; }

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--raised); color: var(--ink); font-weight: 500; white-space: nowrap; cursor: default; text-decoration: none; transition: background 120ms ease-out, transform 80ms ease-out; }
.btn:hover:not(:disabled) { background: var(--paper); text-decoration: none; }
.btn[aria-disabled='true'] { color: var(--ink-4); pointer-events: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { color: var(--ink-4); }
.btn i { font-size: 15px; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn.primary:disabled { opacity: 0.5; color: var(--on-blue); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--hover); }
.btn.danger { color: var(--red); }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn.icon { width: 30px; padding: 0; }
.btn.icon.sm { width: 26px; }
.btn[aria-pressed='true'] { background: var(--blue-wash); border-color: transparent; color: var(--blue); }
kbd { font: 500 11px/16px var(--mono); color: var(--ink-3); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: var(--r-chip); padding: 0 4px; background: var(--raised); }

.input { height: 30px; padding: 0 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); background: var(--raised); min-width: 0; cursor: text; }
/* (Not --ink-4: words to be read need 4.5 to 1 against the field, in both themes.) */
.input::placeholder, .palette input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.input[aria-invalid='true'] { border-color: var(--red); }
select.input { cursor: default; padding-right: 6px; }
textarea.input { height: auto; padding: 8px 10px; line-height: 20px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label, .field > .label { font-weight: 500; }
.field > .help { color: var(--ink-3); font-size: 12px; line-height: 18px; }
.field > .error { color: var(--red); font-size: 12px; line-height: 18px; }
.search { position: relative; display: flex; align-items: center; }
.search i { position: absolute; left: 9px; color: var(--ink-3); font-size: 14px; pointer-events: none; }
.search .input { padding-left: 28px; width: 220px; }

.switch { position: relative; width: 32px; height: 18px; border-radius: 9px; border: 0; background: var(--rule-strong); padding: 0; flex: none; transition: background 150ms ease-out; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--raised); transition: transform 150ms ease-out; }
.switch[aria-checked='true'] { background: var(--blue); }
.switch[aria-checked='true']::after { transform: translateX(14px); background: var(--on-blue); }
/* A switch, and a chip that is pressed, are drawn smaller than a finger: each takes a press
   from 24px of height all the same. */
.switch::before, button.chip::before, a.chip::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 24px; transform: translateY(-50%); }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-chip); border: 1px solid var(--rule); font: 500 11px/16px var(--sans); color: var(--ink-2); white-space: nowrap; }
.chip.blue { background: var(--blue-wash); border-color: transparent; color: var(--blue); }
.chip.green { background: var(--green-wash); border-color: transparent; color: var(--green); }
.chip.amber { background: var(--amber-wash); border-color: transparent; color: var(--amber); }
.chip.red { background: var(--red-wash); border-color: transparent; color: var(--red); }
.chip i { font-size: 12px; }
button.chip, a.chip { position: relative; }
button.chip { background: transparent; cursor: default; }
button.chip:hover { background: var(--hover); }

.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 200px; max-height: 340px; overflow: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--raised); box-shadow: var(--shadow); }
.menu.right { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 28px; padding: 0 8px; border: 0; border-radius: var(--r-chip); background: transparent; text-align: left; }
.menu-item:hover, .menu-item.active { background: var(--hover); }
.menu-item .n { margin-left: auto; font: 400 11px/16px var(--mono); color: var(--ink-3); }
.menu-item i { font-size: 14px; width: 14px; color: var(--blue); }
.menu-label { padding: 6px 8px 2px; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 60; align-items: center; }
.toasts > div { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.toasts > div:empty { display: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-ctl); background: var(--ink); color: var(--paper); box-shadow: var(--shadow); max-width: 520px; }
.toast.error { background: var(--red); color: #fff; }
.toast button { border: 0; background: transparent; color: inherit; font-weight: 600; text-decoration: underline; padding: 0; }

.scrim { position: fixed; inset: 0; background: rgb(13 17 18 / 0.32); z-index: 50; display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; }
.palette { width: 560px; max-width: calc(100vw - 32px); border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--raised); box-shadow: var(--shadow); overflow: hidden; }
.palette input { width: 100%; height: 44px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; font-size: 15px; outline: none; }
.palette input:focus-visible { box-shadow: inset 0 -2px 0 var(--blue); }
.palette-list { max-height: 340px; overflow: auto; padding: 4px; overscroll-behavior: contain; }
.dialog { width: 480px; max-width: calc(100vw - 32px); border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--raised); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.dialog footer { display: flex; justify-content: flex-end; gap: 8px; }

.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 40px 28px; max-width: 460px; color: var(--ink-2); }
.empty i { font-size: 24px; color: var(--ink-4); }
.empty h2 { color: var(--ink); }
.sk { border-radius: var(--r-chip); background: var(--rule); height: 12px; }
@media (prefers-reduced-motion: no-preference) { .sk { animation: pulse 1.4s ease-in-out infinite; } }
@keyframes pulse { 50% { opacity: 0.45; } }
.banner { display: flex; align-items: center; gap: 10px; padding: 8px 20px; border-bottom: 1px solid var(--rule); font-size: 12px; line-height: 18px; }
.banner.amber { background: var(--amber-wash); color: var(--amber); }
.banner.red { background: var(--red-wash); color: var(--red); }
.banner.blue { background: var(--blue-wash); color: var(--blue); }
.banner .btn { margin-left: auto; }

/* Radar */
.radar { display: grid; grid-template-columns: minmax(440px, 1fr) 440px; height: 100%; min-height: 0; }
.radar.no-detail { grid-template-columns: minmax(0, 1fr); }
.feed { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.strip { position: relative; padding: 10px 20px 4px; border-bottom: 1px solid var(--rule); background: var(--paper); overflow: hidden; }
.strip svg { display: block; width: 100%; height: 64px; overflow: visible; touch-action: none; }
.strip .dot { fill: var(--ink-4); }
.strip .dot.new { fill: var(--blue); }
.strip .dot.sel { fill: var(--ink); stroke: var(--sheet); stroke-width: 1; }
.strip .axis { stroke: var(--rule-strong); }
.strip text { font: 400 10px var(--mono); fill: var(--ink-3); }
.strip .brush { fill: var(--blue); opacity: 0.1; }
.strip .brush-edge { stroke: var(--blue); }
.strip-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.strip-head .num { color: var(--ink); font-weight: 500; }
.sweep { position: absolute; top: 34px; height: 51px; left: 0; width: 72px; background: linear-gradient(90deg, transparent, var(--blue-wash)); border-right: 1px solid color-mix(in oklab, var(--blue) 45%, transparent); opacity: 0; pointer-events: none; }
/* Two passes when a refresh starts, then still. The sidebar keeps saying what is being checked. */
@media (prefers-reduced-motion: no-preference) { .strip.scanning .sweep { animation: sweep 2.4s linear 2; } }
@keyframes sweep { from { transform: translateX(-72px); opacity: 1; } to { transform: translateX(calc(100vw - 216px)); opacity: 1; } }
.filters { display: flex; align-items: center; gap: 6px; padding: 8px 20px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.filters .btn.sm.on { background: var(--blue-wash); border-color: transparent; color: var(--blue); }
.list { overflow: auto; min-height: 0; }
.job { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; padding: 9px 20px 9px 16px; border-bottom: 1px solid var(--rule); border-left: 2px solid transparent; }
.job { content-visibility: auto; contain-intrinsic-size: auto 57px; }
.job:hover { background: var(--hover); }
.job[aria-selected='true'] { background: var(--selected); border-left-color: var(--blue); }
.job .fit { font: 500 15px/20px var(--mono); text-align: right; color: color-mix(in oklab, var(--blue) calc(var(--f) * 1%), var(--ink-4)); }
.job .title { font-weight: 500; }
.job.seen .title { font-weight: 400; }
.job .line2 { grid-column: 2 / 4; color: var(--ink-3); font-size: 12px; line-height: 18px; }
.job .line2 .co { color: var(--ink-2); }
.job .line2 .why-inline { margin-left: 10px; }
.job .side { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; }
.job .pay { font: 400 12px/18px var(--mono); color: var(--ink-2); }
.job .pay.est { color: var(--ink-3); }
.unseen { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.unseen.off { visibility: hidden; }
.list-foot { padding: 14px 20px 28px; color: var(--ink-3); font-size: 12px; }

/* Job detail */
.detail { border-left: 1px solid var(--rule); display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; background: var(--sheet); }
.detail-body { overflow: hidden auto; overscroll-behavior: contain; padding: 18px 20px 24px; display: flex; flex-direction: column; gap: 20px; user-select: text; }
.detail-body > * { min-width: 0; }
.detail-body .row { flex-wrap: wrap; }
.detail-body > header > .row:first-child { flex-wrap: nowrap; gap: 2px; }
.detail-actions { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-top: 1px solid var(--rule); background: var(--paper); min-width: 0; flex-wrap: wrap; }
.detail-actions .btn:not(.icon) { padding: 0 10px; }
.detail h2 { font-size: 17px; line-height: 24px; overflow-wrap: anywhere; }
.fit-big { font: 500 28px/32px var(--mono); letter-spacing: -0.02em; color: var(--blue); }
.parts { display: grid; grid-template-columns: repeat(5, auto); gap: 2px 16px; justify-content: start; }
.parts dt { font: 500 11px/16px var(--sans); color: var(--ink-3); }
.parts dd { margin: 0; font: 400 13px/20px var(--mono); }
.why { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.why li { display: grid; grid-template-columns: 16px 1fr; gap: 6px; align-items: start; }
.why li i { font-size: 14px; line-height: 20px; }
.why li.plus i { color: var(--green); }
.why li.minus i { color: var(--amber); }
.block { display: flex; flex-direction: column; gap: 8px; }
.block > header { display: flex; align-items: baseline; gap: 8px; }
details.boxes { display: flex; flex-direction: column; gap: 10px; }
details.boxes > summary { cursor: pointer; font-weight: 500; }
details.boxes[open] > summary { margin-bottom: 8px; }
details.boxes table { table-layout: fixed; width: 100%; }
details.boxes td { vertical-align: top; overflow-wrap: anywhere; }
.pay-figure { font: 500 20px/26px var(--mono); letter-spacing: -0.01em; }
.desc { white-space: pre-wrap; color: var(--ink-2); line-height: 21px; overflow-wrap: anywhere; }
.desc.clamped { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }

/* Ledger ruling: header double rule, ruled rows, figures right-aligned in mono */
.ruled { width: 100%; border-collapse: collapse; }
.ruled th { text-align: left; font: 500 11px/16px var(--sans); color: var(--ink-3); padding: 6px 10px; border-bottom: 3px double var(--rule-strong); white-space: nowrap; position: sticky; top: 0; background: var(--sheet); z-index: 1; }
.ruled td { padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ruled tbody tr:hover { background: var(--hover); }
.ruled tbody tr[aria-selected='true'] { background: var(--selected); }
.ruled .r, .ruled th.r { text-align: right; }
.ruled td.num { font-size: 12px; white-space: nowrap; }
.ruled.compact td { padding: 4px 10px; }
.red-ink { color: var(--red); }
.blue-ink { color: var(--blue); }

.board { display: flex; gap: 12px; padding: 16px 20px; height: 100%; overflow-x: auto; align-items: stretch; }
.col { flex: 1 0 208px; max-width: 280px; display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-panel); }
.col.over { background: var(--blue-wash); }
.col > header { display: flex; align-items: baseline; gap: 8px; padding: 4px 6px 8px; border-bottom: 3px double var(--rule-strong); }
.col-body { overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px 2px; min-height: 60px; flex: 1; }
.card { border: 1px solid var(--rule); border-radius: var(--r-ctl); background: var(--raised); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.card:hover { border-color: var(--rule-strong); }
.card[aria-selected='true'] { border-color: var(--blue); }
.card.dragging { opacity: 0.4; }
.card .co { font-weight: 500; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; height: 100%; min-height: 0; }
.split.no-detail { grid-template-columns: minmax(0, 1fr); }
.split > .left { min-width: 0; min-height: 0; overflow: auto; display: flex; flex-direction: column; }
.toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 20px; border-bottom: 1px solid var(--rule); }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--r-ctl); overflow: hidden; }
.seg button { height: 26px; padding: 0 10px; border: 0; background: var(--raised); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--rule-strong); }
.seg button:hover { background: var(--paper); color: var(--ink); }
.seg button[aria-pressed='true'] { background: var(--selected); color: var(--ink); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 64px 18px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.timeline time { font: 400 12px/20px var(--mono); color: var(--ink-3); }
.timeline i { font-size: 14px; line-height: 20px; color: var(--ink-3); }
.timeline li.warn i { color: var(--amber); }
.timeline li.error i { color: var(--red); }
.day-head { padding: 16px 0 6px; font-weight: 600; border-bottom: 3px double var(--rule-strong); }

.mail { border: 1px solid var(--rule); border-radius: var(--r-panel); background: var(--raised); }
.mail > header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.mail-body { padding: 12px 14px; white-space: pre-wrap; color: var(--ink-2); user-select: text; }
.mail > footer { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid var(--rule); }
.steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

@media (max-width: 1180px) {
  .radar, .split { grid-template-columns: minmax(0, 1fr); }
  .radar > .detail, .split > .detail { position: fixed; top: 52px; right: 0; bottom: 0; width: min(440px, 100vw - 216px); box-shadow: var(--shadow); z-index: 20; }
}
/* ---------- On the web ---------- */
/* The same screens in a browser. There are no window buttons to leave room for, so the name
   stands level with a view's title. (html[data-web] is set by the page the site serves; nothing
   under it reaches the Mac app.) */
html[data-web] .sidebar { padding-top: 0; }
html[data-web] .brand { height: 52px; padding: 0 8px; }
html[data-web] .status form { display: contents; }
/* What the page says before the app has drawn anything (the page comes with it, and the app
   draws over it). The last line waits eight seconds: by then something has gone wrong, and the
   front page is a page that needs no script. */
.boot { grid-column: 1 / -1; padding: 15px 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); user-select: text; }
.boot-name { font: 600 15px/22px var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.boot-late { visibility: hidden; animation: boot-late 0s 8s forwards; }
@keyframes boot-late { to { visibility: visible; } }
/* The way in for someone with no account, where the sidebar's foot is not shown (a phone). */
.nav a.narrow-only { display: none; }
.status a.status-line:hover { color: var(--ink); text-decoration: none; }
.status .btn { width: 100%; }

/* What belongs to another plan: a lock where a count would be, a small blue mark that leads to
   the plans, and a view that says what it is in place of itself. */
.nav .count.lock i { font-size: 13px; color: var(--ink-4); }
a.plan-chip, a.plan-chip:hover { text-decoration: none; }
a.plan-chip:hover { filter: brightness(0.96); }
.locked { max-width: 520px; padding: 56px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.locked > i { font-size: 28px; color: var(--ink-4); }
.locked h2 { font-size: 20px; line-height: 26px; }
.locked-what { color: var(--ink-2); font-size: 14px; line-height: 22px; }
.locked .row { margin-top: 6px; }

/* A list with no fit scores has no strip and no column of scores. */
.strip.bare { padding-bottom: 9px; }
.strip svg.day { cursor: crosshair; }
.strip svg.day .dot[data-id] { cursor: pointer; }
.strip.bare .strip-head { margin-bottom: 0; }
.banner .num { font-weight: 500; }
.list.no-fit .job { grid-template-columns: minmax(0, 1fr) auto; padding-left: 18px; }
.list.no-fit .job .line2 { grid-column: 1 / 3; padding-left: 14px; }

/* The plans, as one ruled table: a column for each, the reader's own marked. */
.plans { table-layout: fixed; }
.plans th { position: static; vertical-align: top; white-space: normal; padding: 4px 14px 14px; font-weight: 400; color: var(--ink-2); }
.plans th:first-child, .plans td:first-child { width: 34%; padding-left: 0; }
.plans td { padding: 9px 14px; vertical-align: middle; }
.plans td:first-child { color: var(--ink-2); }
.plans td i { font-size: 15px; color: var(--green); vertical-align: -2px; }
.plans .mine { background: var(--blue-wash); }
.plans .plan-name { font: 600 17px/24px var(--sans); letter-spacing: -0.01em; color: var(--ink); }
.plans .plan-line { font-size: 12px; line-height: 18px; min-height: 36px; }
.plans .plan-price { margin-top: 10px; min-height: 40px; color: var(--ink); font-size: 13px; line-height: 20px; }
.plans .plan-price .num { font: 500 15px/20px var(--mono); }
.plans .plan-price .more { color: var(--ink-3); font-size: 12px; line-height: 18px; }
.plans .plan-price .more .num { font-size: 12px; }
.plans .plan-act { margin-top: 10px; min-height: 26px; }
.plans tr.group td { padding: 22px 0 8px; font: 500 11px/16px var(--sans); color: var(--ink-3); border-bottom: 3px double var(--rule-strong); }
.plans tbody tr.group:hover { background: none; }

/* For whoever runs the service: the same table of plans with a control in every cell, and what
   they have changed marked on the cell's edge. */
.plans.switchable td { padding: 6px 14px; }
.plans.switchable .cell { display: flex; align-items: center; gap: 4px; min-height: 30px; }
.plans.switchable select.input { width: 100%; max-width: 210px; }
.plans.switchable td.changed { box-shadow: inset 2px 0 0 var(--blue); }
.plans.switchable td .btn i { color: var(--ink-3); vertical-align: 0; }
.plans.switchable .plan-line { min-height: 0; }
.parts.figures { gap: 2px 28px; }
.parts.figures dd { font-size: 17px; line-height: 24px; }
.timeline.wide li { grid-template-columns: 104px 18px minmax(0, 1fr); }
html[data-web] .switch:disabled, html[data-web] .seg button:disabled { opacity: 0.5; }

/* A phone, or a narrow window, on the web. The sidebar becomes a bar of tabs along the bottom,
   a view's top bar wraps, a job opens over the whole list, and a menu opens as a sheet from the
   bottom so it can never run off the side. (The Mac app's window is never this narrow.) */
html[data-web] #app { height: 100dvh; }
@media (max-width: 760px) {
  html[data-web] #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  html[data-web] .main { grid-row: 1; grid-template-rows: auto minmax(0, 1fr); }
  html[data-web] .sidebar { grid-row: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--rule); padding: 4px 4px max(4px, env(safe-area-inset-bottom)); background: var(--paper); }
  html[data-web] .brand, html[data-web] .nav-gap, html[data-web] .status, html[data-web] .nav a.far { display: none; }
  html[data-web] .nav { flex-direction: row; flex: 1; justify-content: space-around; gap: 0; }
  html[data-web] .nav a { position: relative; flex: 1 1 0; min-width: 0; height: 46px; flex-direction: column; justify-content: center; gap: 2px; padding: 0 2px; font-size: 11px; line-height: 14px; }
  html[data-web] .nav a.narrow-only { display: flex; }
  html[data-web] .nav a i { font-size: 20px; }
  html[data-web] .nav .count { position: absolute; top: 3px; left: calc(50% + 8px); margin: 0; }
  html[data-web] .topbar { flex-wrap: wrap; row-gap: 8px; min-height: 52px; padding: 8px 12px; }
  html[data-web] .topbar .spacer { display: none; }
  html[data-web] .topbar > .muted { flex-basis: 100%; }
  html[data-web] .topbar .search { flex: 1 1 150px; }
  html[data-web] .topbar .search .input { width: 100%; }
  html[data-web] .topbar [aria-label='Search and commands'], html[data-web] .list-foot kbd, html[data-web] .list-foot .grow ~ span { display: none; }
  html[data-web] .strip, html[data-web] .filters, html[data-web] .banner, html[data-web] .toolbar { padding-left: 12px; padding-right: 12px; }
  html[data-web] .banner { flex-wrap: wrap; }
  html[data-web] .job, html[data-web] .list.no-fit .job { padding-left: 10px; padding-right: 12px; }
  html[data-web] .job .line2 { white-space: normal; }
  html[data-web] .radar > .detail, html[data-web] .split > .detail { top: 0; left: 0; width: 100vw; bottom: calc(55px + env(safe-area-inset-bottom)); box-shadow: none; border-left: 0; }
  html[data-web] .menu, html[data-web] .menu.right { position: fixed; left: 8px; right: 8px; top: auto; bottom: calc(63px + env(safe-area-inset-bottom)); max-height: 56vh; z-index: 40; }
  html[data-web] .page { padding: 16px 12px 32px; gap: 22px; }
  html[data-web] .page.wide { overflow-x: auto; }
  html[data-web] .plans { min-width: 780px; }
  html[data-web] .wide-only { display: none; }
  html[data-web] .section > header { flex-wrap: wrap; row-gap: 2px; }
  html[data-web] .panel-row { flex-wrap: wrap; }
  html[data-web] .locked { padding: 32px 16px; }
  html[data-web] .toasts { bottom: calc(66px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) { *:not(.boot-late) { transition: none !important; animation: none !important; } }

/* Settings: a choice that takes several values, as toggle chips. */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { height: 28px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--raised); font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.chip-btn:hover { border-color: var(--ink-3); }
.chip-btn[aria-pressed="true"] { background: var(--blue-wash); border-color: var(--blue); color: var(--blue); }
.chip-btn[aria-pressed="true"]::before { content: "✓ "; }
