/* Job OS v0.1.0 — interface.
   Dense enough to triage 20 jobs quickly, spacious enough to read.
   No scroll effects: this is a tool that opens every morning, not a landing page. */

:root {
  --bg: #0a0c10;
  --panel: #12151c;
  --panel-2: #171b24;
  --panel-3: #1d222c;
  --line: #262c38;
  --line-soft: #1c212a;
  --text: #e9edf4;
  --muted: #8d97a9;
  --muted-2: #6a7385;

  --accent: #c8f751;
  --accent-ink: #0a1004;
  --excellent: #c8f751;
  --strong: #7ee0a8;
  --good: #62c8e8;
  --possible: #f0b429;
  --weak: #7b8496;
  --danger: #f2545b;
  --warn: #f0b429;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -18px rgba(0,0,0,.9);

  --sans: 'Geist', ui-sans-serif, 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Ambient depth so the page is not a flat slab. */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(200,247,81,.05), transparent 62%),
    radial-gradient(700px 420px at 96% 4%, rgba(98,200,232,.045), transparent 60%);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ------------------------------------------------------------------ shell -- */

#app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1015, #0a0c10);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; font-size: 17px; letter-spacing: -.03em;
}
.brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand span { display: block; font-size: 11px; color: var(--muted-2); font-family: var(--mono); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent; color: var(--muted);
  text-align: left; font-size: 13.5px; font-weight: 500;
  transition: background .16s ease, color .16s ease;
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item.active { background: var(--panel-3); border-color: var(--line); color: var(--text); }
.nav-item .badge {
  margin-left: auto; font-family: var(--mono); font-size: 11px;
  background: var(--accent); color: var(--accent-ink);
  padding: 1px 7px; border-radius: 20px; font-weight: 600;
}
.nav-item.active .badge, .nav-item:hover .badge { background: var(--accent); }
.nav-item .badge.quiet { background: var(--panel); color: var(--muted); border: 1px solid var(--line); }

.sidebar-foot { margin-top: auto; font-size: 11px; color: var(--muted-2); line-height: 1.6; padding: 0 6px; }
.sidebar-foot strong { color: var(--muted); display: block; font-size: 11.5px; }

.main { min-width: 0; }
.mobile-header { display: none; }
.page-wrap { padding: 34px 38px 90px; max-width: 1320px; }

/* ------------------------------------------------------------------- head -- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 {
  margin: 6px 0 7px;
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.03; letter-spacing: -.035em; font-weight: 600;
  max-width: 62ch;
}
.page-head .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; max-width: 78ch; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- buttons -- */

.btn {
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  padding: 8px 15px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  text-decoration: none; text-align: center; display: inline-block;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--panel-3); border-color: #333b49; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: #d3ff63; border-color: #d3ff63; }
.btn-ghost { background: transparent; }
.btn-danger { border-color: #4a2429; color: #ff9aa0; background: #1a1013; }
.btn-danger:hover { background: #241417; border-color: #6b3138; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------------ bento -- */

.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 14px; margin-bottom: 26px; }
.cell { grid-column: span 4; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.cell.span6 { grid-column: span 6; }
.cell.span8 { grid-column: span 8; }
.cell.span12 { grid-column: span 12; }
.cell h3 { margin: 0 0 3px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; font-family: var(--mono); }

/* ------------------------------------------------------------------ donut -- */

.donut {
  --size: 60px; --thick: 6px; --progress: 0%;
  width: var(--size); height: var(--size); border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(currentColor var(--progress), var(--panel-3) 0);
  display: grid; place-items: center; position: relative;
}
.donut::before { content: ""; position: absolute; inset: var(--thick); border-radius: 50%; background: var(--panel); }
.donut b { position: relative; font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: -.04em; }
.score-block { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; }
.score-block > span { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.score-excellent { color: var(--excellent); }
.score-strong { color: var(--strong); }
.score-good { color: var(--good); }
.score-possible { color: var(--possible); }
.score-weak { color: var(--weak); }

/* Goal donut on Today */
.goal { display: flex; align-items: center; gap: 18px; }
.goal .donut { --size: 92px; --thick: 9px; color: var(--accent); }
.goal .donut::before { background: var(--panel); }
.goal .donut b { font-size: 21px; }
.goal-meta strong { display: block; font-size: 25px; letter-spacing: -.03em; line-height: 1.1; }
.goal-meta span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.goal-actions { display: flex; gap: 7px; margin-top: 11px; }

/* ----------------------------------------------------------------- chips --- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  white-space: nowrap;
}
.chip.on { border-color: rgba(200,247,81,.32); color: var(--accent); background: rgba(200,247,81,.06); }
.chip.warn { border-color: rgba(240,180,41,.3); color: var(--warn); background: rgba(240,180,41,.06); }
.chip.bad { border-color: rgba(242,84,91,.3); color: var(--danger); background: rgba(242,84,91,.06); }

/* ---------------------------------------------------------------- notices -- */

.notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--panel);
  border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px;
}
.notice.attention { border-color: rgba(240,180,41,.32); background: rgba(240,180,41,.05); }
.notice.error { border-color: rgba(242,84,91,.32); background: rgba(242,84,91,.05); }
/* The dot is also a div, so exclude it before handing the text block the free space. */
.notice > div:not(.dot) { flex: 1; min-width: 220px; }
.notice strong { display: block; font-size: 13px; }
.notice span { color: var(--muted); font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.dot.live { background: var(--accent); box-shadow: 0 0 0 4px rgba(200,247,81,.14); }
.dot.busy { background: var(--warn); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ------------------------------------------------------------------ cards -- */

.job-list { display: flex; flex-direction: column; gap: 11px; }

.job-card {
  border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius);
  padding: 16px 18px; display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px;
  align-items: start;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.job-card:hover { border-color: #333c4b; background: var(--panel-2); transform: translateY(-1px); }
.job-card.is-skipped { opacity: .42; }
.job-card.is-excluded { border-style: dashed; opacity: .72; }

.job-main { min-width: 0; }
.job-title { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.job-title button { background: none; border: 0; padding: 0; font: inherit; text-align: left; color: inherit; }
.job-title button:hover { color: var(--accent); }
.job-company { color: var(--muted); font-size: 13px; margin-top: 2px; }
.job-company b { color: var(--text); font-weight: 500; }

.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fact {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: var(--panel-3); border: 1px solid var(--line-soft); color: var(--muted);
  white-space: nowrap;
}
.fact.key { color: var(--text); }
.fact.fresh { color: var(--excellent); border-color: rgba(200,247,81,.24); background: rgba(200,247,81,.06); }
.fact.miss { color: var(--muted-2); font-style: italic; }
/* The key-skills line is the one fact that can legitimately be long; let it wrap
   instead of pushing past the card edge on narrow screens. */
.fact.wrap { white-space: normal; }

.reasons { margin-top: 11px; display: grid; gap: 4px; font-size: 12.5px; }
.reasons .why { color: #a9b6c7; }
.reasons .why b, .reasons .risk b { font-weight: 600; color: var(--muted-2); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; }
.reasons .risk { color: var(--warn); }
.reasons .block { color: var(--danger); }

.job-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 136px; }
.job-actions .row { display: flex; gap: 6px; }
.job-actions .row .btn { flex: 1; text-align: center; }
.btn.active-save { border-color: rgba(200,247,81,.4); color: var(--accent); background: rgba(200,247,81,.08); }
.btn.active-skip { border-color: #4a2429; color: #ff9aa0; }

/* ---------------------------------------------------------------- filters -- */

.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); }
.field { display: grid; gap: 5px; min-width: 0; }
.field > label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; font-family: var(--mono); }
.input, .select, textarea.input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 8px 11px; font-size: 13px;
  transition: border-color .15s ease;
}
.input:focus, .select:focus { outline: none; border-color: rgba(200,247,81,.45); }
textarea.input { resize: vertical; line-height: 1.6; font-family: var(--sans); }
select.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 51%, calc(100% - 11px) 51%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--accent); flex-shrink: 0; }
.check span { color: var(--text); }

/* --------------------------------------------------------------- settings -- */

.settings-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: dense; gap: 14px; }
.sc { grid-column: span 6; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.sc.span4 { grid-column: span 4; }
.sc.span12 { grid-column: span 12; }
.sc > h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.sc > .hint { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }
.sc .field + .field { margin-top: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.tag-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  background: var(--panel-3); border: 1px solid var(--line); border-radius: 20px; padding: 3px 6px 3px 11px;
}
.tag button { background: none; border: 0; color: var(--muted-2); font-size: 15px; line-height: 1; padding: 0 4px; border-radius: 50%; }
.tag button:hover { color: var(--danger); }
.tag-add { display: flex; gap: 7px; }
.tag-add .input { flex: 1; }

.prio { display: grid; gap: 9px; }
.prio-row { display: grid; grid-template-columns: minmax(0,1fr) 116px 68px; gap: 12px; align-items: center; font-size: 13px; }
.prio-row input[type=range] { width: 100%; accent-color: var(--accent); }
.prio-row .val { font-family: var(--mono); font-size: 12px; color: var(--accent); text-align: right; }
.prio-row .val.off { color: var(--muted-2); }

.weights { display: grid; gap: 7px; }
.weight-row { display: grid; grid-template-columns: 120px minmax(0,1fr) 46px; gap: 12px; align-items: center; font-size: 13px; }
.weight-row input[type=range] { accent-color: var(--accent); }
.weight-row .val { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--muted); }

.area-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; background: var(--panel-2); }
.area-card .top { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 10px; }
.area-card .top strong { font-size: 13.5px; }
.area-switches { display: flex; gap: 16px; flex-wrap: wrap; }

.list-rows { display: grid; gap: 8px; }
.list-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto auto; gap: 8px; align-items: center; }

/* ---------------------------------------------------------------- sources -- */

.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 9px; }
.source-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); font-size: 12.5px;
}
.source-row .dot { width: 7px; height: 7px; }
.source-row .dot.ok { background: var(--strong); }
.source-row .dot.fail { background: var(--danger); }
.source-row div { min-width: 0; flex: 1; }
.source-row strong { display: block; font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-row span { color: var(--muted-2); font-size: 11px; font-family: var(--mono); }

/* ---------------------------------------------------------------- tracker -- */

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.stat b { display: block; font-size: 26px; font-family: var(--mono); letter-spacing: -.04em; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 11.5px; }

/* align-items must stay stretch: flex-end collapses each column to its content
   height and the tracks lose the height the fills are a percentage of. */
.bars { display: flex; align-items: stretch; gap: 6px; height: 150px; padding-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.bar-track { width: 100%; flex: 1; display: flex; align-items: flex-end; background: var(--panel-3); border-radius: 5px; overflow: hidden; position: relative; }
.bar-fill { width: 100%; background: var(--accent); border-radius: 5px 5px 0 0; min-height: 3px; transition: height .3s ease; }
.bar-fill.under { background: #4b5566; }
.bar-col .lbl { font-family: var(--mono); font-size: 10px; color: var(--muted-2); white-space: nowrap; }
.bar-col .num { font-family: var(--mono); font-size: 11px; color: var(--text); }
.goal-line { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(200,247,81,.4); }

.pipeline { display: grid; gap: 7px; }
.pipe-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 34px; gap: 11px; align-items: center; font-size: 12.5px; }
.pipe-bar { height: 7px; background: var(--panel-3); border-radius: 4px; overflow: hidden; }
.pipe-bar i { display: block; height: 100%; background: var(--good); border-radius: 4px; }
.pipe-row .n { font-family: var(--mono); text-align: right; font-size: 12px; }

table.apps { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.apps th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; padding: 0 10px 9px 0; border-bottom: 1px solid var(--line); }
table.apps td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.apps tr:hover td { background: rgba(255,255,255,.015); }
table.apps td.t { color: var(--text); font-weight: 500; }
table.apps .select { padding: 4px 24px 4px 8px; font-size: 12px; }

/* ----------------------------------------------------------------- drawer -- */

.backdrop { position: fixed; inset: 0; background: rgba(4,6,9,.7); backdrop-filter: blur(3px); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%);
  background: var(--panel); border-left: 1px solid var(--line); z-index: 50;
  overflow-y: auto; padding: 30px 32px 40px; box-shadow: -30px 0 60px -30px rgba(0,0,0,.9);
}
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.drawer-top h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.03em; line-height: 1.18; max-width: 26ch; }
.drawer-top .sub { color: var(--muted); font-size: 13px; }
.close-btn { background: var(--panel-3); border: 1px solid var(--line); border-radius: 8px; width: 32px; height: 32px; color: var(--muted); font-size: 17px; line-height: 1; flex-shrink: 0; }
.close-btn:hover { color: var(--text); border-color: #3a4352; }

.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; position: sticky; top: -30px; background: var(--panel); z-index: 2; }
.sec { margin-bottom: 26px; }
.sec > h3 { margin: 0 0 11px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-family: var(--mono); font-weight: 600; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 11px; }
.kv > div { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 13px; min-width: 0; }
.kv dt { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); font-family: var(--mono); margin-bottom: 3px; }
.kv dd { margin: 0; font-size: 13px; word-break: break-word; }
.kv dd.none { color: var(--muted-2); font-style: italic; }

.breakdown { display: grid; gap: 8px; }
.bd-row { display: grid; grid-template-columns: 96px 52px minmax(0,1fr); gap: 12px; align-items: center; font-size: 12.5px; }
.bd-row .name { color: var(--muted); text-transform: capitalize; }
.bd-row .n { font-family: var(--mono); font-size: 12px; text-align: right; }
.bd-track { height: 6px; background: var(--panel-3); border-radius: 3px; overflow: hidden; position: relative; }
.bd-track i { display: block; height: 100%; border-radius: 3px; background: currentColor; }
.bd-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted-2); margin: -3px 0 4px 108px; }

ul.plain { margin: 0; padding-left: 17px; display: grid; gap: 5px; font-size: 13px; }
ul.plain li::marker { color: var(--muted-2); }
ul.plain.risks li { color: var(--warn); }
ul.plain.blocks li { color: var(--danger); }

.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); }
.skill.match { color: var(--strong); border-color: rgba(126,224,168,.3); background: rgba(126,224,168,.07); }
.skill.transfer { color: var(--good); border-color: rgba(98,200,232,.28); background: rgba(98,200,232,.06); }
.skill.missing { color: var(--muted-2); }
.skill em { font-style: normal; opacity: .65; font-size: 10px; margin-left: 4px; }

.desc { font-size: 13px; line-height: 1.7; color: #b9c3d1; max-height: 340px; overflow-y: auto; white-space: pre-wrap; padding: 15px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }

.qa { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--panel-2); }
.qa summary { cursor: pointer; padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 10px; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "+"; font-family: var(--mono); color: var(--muted-2); }
.qa[open] summary::before { content: "−"; }
.qa summary .st { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; }
.st.ready { color: var(--strong); background: rgba(126,224,168,.1); }
.st.place { color: var(--warn); background: rgba(240,180,41,.1); }
.st.needs { color: var(--muted-2); background: var(--panel-3); }
.qa .body { padding: 0 14px 12px; display: grid; gap: 8px; }
.qa .body .row { display: flex; gap: 7px; }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--panel-3); border: 1px solid var(--line); color: var(--text);
  padding: 11px 20px; border-radius: 30px; font-size: 13px; z-index: 90;
  box-shadow: var(--shadow); max-width: 90vw;
}

.empty { padding: 44px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13.5px; }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 5px; }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1080px) {
  .cell { grid-column: span 6; }
  .cell.span4 { grid-column: span 6; }
  .sc { grid-column: span 12; }
  .sc.span4 { grid-column: span 6; }
}
@media (max-width: 860px) {
  #app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 246px; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  .sidebar.open { transform: none; }
  .mobile-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 20;
  }
  .mobile-header strong { font-size: 15px; }
  .mobile-header .btn { padding: 5px 11px; }
  .page-wrap { padding: 22px 16px 80px; }
  .cell, .cell.span4, .cell.span6, .cell.span8 { grid-column: span 12; }
  .sc, .sc.span4 { grid-column: span 12; }
  .job-card { grid-template-columns: 60px minmax(0,1fr); gap: 13px; }
  .job-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .job-actions .row { flex: 1; }
  .drawer { padding: 22px 18px 34px; }
  .drawer-top h2 { font-size: 20px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .list-row { grid-template-columns: 1fr; }
  .bd-row { grid-template-columns: 82px 44px minmax(0,1fr); }
  .bd-note { margin-left: 0; }
  table.apps { display: block; overflow-x: auto; white-space: nowrap; }
}
