/* First lifted from comms-console.html (v0.6) by scripts/lift-design.mjs; hand-edited since. Since 20 Nov 2026 the
   design is the prototype Michael approved (docs/portal-uplift-2026-11-20/spec/index.html): Geist on paper, ink pill
   buttons with amber text, 44px (36px small), hairlines, no lifted shadows. Do not lift again over it. */
/* Lines 229-670 */
/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; font-weight: var(--fw-title); line-height: var(--lh-head); }
h1 { font-size: var(--fs-h1); letter-spacing: var(--tr-title); }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
h4 { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-strong); }
p { margin: 0; }
a { color: inherit; }
a.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a.link:hover { text-decoration-color: var(--ink); }
code, kbd, samp, pre, .mono { font-family: var(--font-mono); font-size: 0.93em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--selection-bg); color: var(--selection-fg); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
/* the browser's own ticks and radios in ink, never its blue */
input[type="checkbox"], input[type="radio"], input[type="range"] { accent-color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the label (the prototype's .eyebrow and .tagl): the sans, 12px, medium, uppercase, a little tracked */
.tag, .lbl {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: var(--fw-medium);
}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.dot.signal { background: var(--signal); }
.tag .dot { margin-right: 8px; vertical-align: 1px; }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.figure { font-size: var(--fs-num); font-weight: var(--fw-strong); letter-spacing: var(--tr-display); line-height: 1; font-variant-numeric: tabular-nums; }

/* layout helpers */
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ================= brand ================= */
/* the open ring: a circle with its top quarter open, turned -32° */
.ring {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-32deg);
  flex: 0 0 auto;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: var(--fw-regular);
  letter-spacing: 0.2em;
}
.wordmark .product { color: var(--muted); }
.brand-surface {
  background-color: var(--amber);
  background-image: radial-gradient(var(--brand-dot) 1.1px, transparent 0);
  background-size: 34px 34px;
  color: var(--brand-ink);
}
.brand-surface .tag { color: var(--brand-ink); opacity: 0.72; }
.fuzzmark { display: block; width: 100%; height: auto; color: var(--brand-ink); }

/* ================= buttons: pills, quiet ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--ctl-h-lg);
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.btn-primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-line { border-color: var(--line-strong); }
.btn-line:hover, .btn-line.is-hover { border-color: var(--muted); background: var(--hover); }
/* the prototype's ghost: a hairline pill, ink words */
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost.is-hover { background: var(--hover); border-color: var(--muted); }
.btn-danger { border-color: var(--line-strong); color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.btn-danger.is-solid { background: var(--bad); border-color: var(--bad); color: var(--bg); }
/* the prototype's buttons are 44px; a small one 36px */
.btn-sm { min-height: var(--ctl-h-md); padding: 0 var(--sp-4); font-size: 14px; }
.btn-lg { min-height: var(--ctl-h-lg); padding: 0 var(--sp-6); font-size: var(--fs-lg); }
.btn-block { width: 100%; }
.btn.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled { background: transparent; border-color: var(--line); color: var(--muted); cursor: not-allowed; }
/* busy: the label stays readable, a small ring turns in front of it */
.btn[aria-busy="true"], .btn.is-busy { pointer-events: none; }
.btn[aria-busy="true"]::before, .btn.is-busy::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: var(--ctl-h-md);
  height: var(--ctl-h-md);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
}
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.is-quiet { border-color: transparent; }
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ================= fields ================= */
.field { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.field > label, .field .label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--ink-soft);
}
.input, .select, .textarea {
  width: 100%;
  min-height: var(--ctl-h-lg);
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-input);
  outline: none;
  transition: border-color var(--dur-base) var(--ease);
}
.textarea { padding: 11px 14px; min-height: 112px; resize: vertical; line-height: var(--lh-read); }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
/* the ReqOps menu every select opens (web/src/selectMenu.js), never the browser's own list */
.rq-pop { position: fixed; z-index: 90; box-sizing: border-box; max-width: calc(100vw - 16px); margin: 0; padding: 6px; list-style: none; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); font-size: var(--fs-sm); }
.rq-pop:focus { outline: none; }
.rq-pop [role="option"] { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: 8px 12px; border-radius: var(--r-md); cursor: pointer; }
.rq-pop [role="option"].is-at { background: var(--pressed); }
.rq-pop [role="option"][aria-selected="true"] { font-weight: var(--fw-medium); }
.rq-pop [role="option"][aria-selected="true"]::after { content: "✓"; color: var(--signal); }
.rq-pop [role="option"][aria-disabled="true"] { color: var(--muted); opacity: 0.6; cursor: default; }
.rq-pop-group { padding: 10px 12px 4px; font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus, .input.is-focus { border-color: var(--ink); }
.input[disabled] { background: var(--well); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--bad); }
.field .error { font-size: var(--fs-sm); color: var(--bad); display: flex; gap: 6px; align-items: center; }
.search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--ctl-h-md);
  padding: 0 var(--sp-2) 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
}
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search:focus-within { border-color: var(--line-strong); }
kbd, .kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  padding: 1px 6px;
  color: var(--muted);
}

/* checkbox, radio, switch: selected is ink, not amber */
.check { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-md); color: var(--ink-soft); cursor: pointer; }
.check input { appearance: none; margin: 0; width: 16px; height: 16px; border: 1.5px solid var(--faint); border-radius: 4px; background: transparent; display: grid; place-items: center; }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after { content: ""; width: 8px; height: 4px; border: 1.5px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check input[type="radio"]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bg); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink-soft); }
.switch input { appearance: none; margin: 0; width: 34px; height: 20px; border-radius: var(--r-pill); background: var(--line-strong); position: relative; transition: background var(--dur-base) var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: transform var(--dur-base) var(--ease); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(14px); }

/* segmented control */
/* segmented control: the prototype's .stabs, equal parts on a well, the chosen one on the surface with a hairline */
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--r-lg); background: var(--well); }
.segmented > * { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 14px; color: var(--muted); }
.segmented > button:hover { color: var(--ink); }
.segmented > [aria-pressed="true"], .segmented > .is-on, .segmented > [aria-selected="true"] { background: var(--surface); color: var(--ink); font-weight: var(--fw-medium); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* tabs */
/* tabs: the prototype's .ptabs, an ink line under the one you are on */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs > * {
  border: 0;
  background: transparent;
  padding: 11px 14px 12px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  font-size: var(--fs-md);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.tabs > a:hover, .tabs > button:hover { color: var(--ink); }
.tabs > [aria-selected="true"], .tabs > [aria-current="page"], .tabs > .is-on { color: var(--ink); border-bottom-color: var(--ink); font-weight: var(--fw-medium); }
.tabs .count { margin-left: 6px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: var(--muted); }

/* ================= status: neutral chips, the dot carries the tone ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 9px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 100%;
}
/* a long status on a phone wraps inside its chip rather than pushing the page sideways */
@media (max-width: 600px) { .badge { white-space: normal; } }
.badge .dot { background: var(--faint); flex: none; }
.badge.ok .dot { background: var(--ok); }
.badge.warn .dot { background: var(--warn-dot); }
.badge.bad .dot { background: var(--bad); }
.badge.info .dot { background: var(--info); }
/* solid: one headline status per view */
.badge.solid { border-color: transparent; }
.badge.solid.ok { background: var(--ok-soft); color: var(--ok); }
.badge.solid.warn { background: var(--warn-soft); color: var(--warn); }
.badge.solid.bad { background: var(--bad-soft); color: var(--bad); }
.badge.solid.info { background: var(--info-soft); color: var(--info); }
/* filter toggle */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--ctl-h-sm);
  padding: 0 var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.chip:hover { color: var(--ink-soft); border-color: var(--line-strong); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .x { color: inherit; opacity: 0.6; border: 0; background: transparent; padding: 0; display: inline-grid; }

/* ================= cards, frames ================= */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.card-pad { padding: var(--sp-5); }
.card.is-link { text-decoration: none; transition: border-color var(--dur-base) var(--ease); }
.card.is-link:hover { border-color: var(--line-strong); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
/* the console frame, from the site's "Ask the record": bar, body, foot */
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); overflow: hidden; }
.frame-bar, .frame-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 14px var(--sp-5); flex-wrap: wrap; }
.frame-bar { border-bottom: 1px solid var(--line); }
.frame-foot { border-top: 1px solid var(--line); }
.frame-body { padding: var(--sp-5); }
/* "Read this" items, as on the site, with a hairline */
.rule-item { border-top: 1px solid var(--line); padding-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.rule-item .mk { font-family: var(--font-mono); font-size: var(--fs-code); color: var(--muted); }
.rule-item p { color: var(--ink-soft); line-height: var(--lh-read); }

.stat { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.stat .value { font-size: var(--fs-h2); font-weight: var(--fw-strong); letter-spacing: var(--tr-head); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: var(--fs-sm); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.stat .delta .dot { width: 5px; height: 5px; }
.stat .delta.up-good .dot { background: var(--ok); }
.stat .delta.up-bad .dot { background: var(--bad); }

/* ================= table ================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th {
  text-align: left;
  font-weight: var(--fw-medium);
  font-size: var(--fs-xs);
  color: var(--muted);
  padding: 10px var(--sp-4);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  white-space: nowrap;
}
.table th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.table th .sort { display: inline-flex; gap: 4px; align-items: center; }
.table th[aria-sort] { color: var(--ink-soft); }
.table td { padding: 0 var(--sp-4); height: var(--row-h); border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-soft); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--hover); }
.table tbody tr[aria-selected="true"] { background: var(--pressed); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .id, .table .when { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--muted); }
.table .title { color: var(--ink); font-weight: var(--fw-medium); }

/* ================= drawer, dialog, toast, menu ================= */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  z-index: 51;
  display: flex;
  flex-direction: column;
}
.drawer-head { display: flex; align-items: flex-start; gap: var(--sp-3); justify-content: space-between; padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line); }
.drawer-body { padding: var(--sp-6); overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 28px; }
.drawer-foot { padding: 14px var(--sp-6); border-top: 1px solid var(--line); display: flex; gap: var(--sp-2); justify-content: flex-end; align-items: center; }
.dialog {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-frame);
  box-shadow: var(--shadow-3);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.dialog .actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-2); }
.toast {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 6px 6px 6px var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-2);
  font-size: var(--fs-md);
}
.toast .icon { color: var(--ok); }
.menu { min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 1px; }
.menu .menu-head { font-size: var(--fs-label); font-weight: var(--fw-medium); color: var(--muted); padding: 8px 10px 6px; }
.menu button, .menu a, .menu .menu-item { all: unset; display: flex; align-items: center; gap: var(--sp-2); padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--fs-md); color: var(--ink-soft); cursor: pointer; }
.menu button:hover, .menu a:hover, .menu .is-hover { background: var(--hover); color: var(--ink); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.menu .danger { color: var(--bad); }

/* ================= states ================= */
.empty {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.empty h3 { color: var(--ink); }
.error-state { border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); border-radius: var(--r-lg); padding: 10px 10px 10px var(--sp-4); display: flex; gap: var(--sp-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.error-state .what { display: flex; gap: 10px; align-items: center; }
.error-state .what .icon { color: var(--bad); }
.skeleton { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--skeleton-a), var(--skeleton-b), var(--skeleton-a)); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.caret { display: inline-block; width: 7px; height: 13px; margin-left: 6px; vertical-align: -2px; background: currentColor; opacity: 0.7; animation: caret 1.1s step-end infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ================= pagination, breadcrumb, avatar ================= */
.pager { display: flex; align-items: center; gap: var(--sp-3); justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); }
.pager .pages { display: flex; gap: var(--sp-1); }
.crumbs { display: flex; gap: var(--sp-2); align-items: center; font-size: var(--fs-sm); color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--well); color: var(--ink); font-size: 12px; font-weight: var(--fw-medium); flex: 0 0 auto; }
.avatar.lg { width: 48px; height: 48px; font-size: 12px; }

/* ================= app shell (portal uplift, 20 Nov 2026) =================
   One top bar (Shell.jsx TopBar, drawn in portal.css) and the page under it on paper, centred: 1140px wide, 40px
   from the bar, room at the foot. A job draws its side panel inside the page (Job.jsx JobFrame, portal.css .pt-split).
   No menu on the left: More and the initials menu carry what it had. */
.app { min-height: 100vh; background: var(--panel); }
.panel { min-width: 0; background: var(--panel); }
.page, .jobmain { padding: 40px 20px 140px; max-width: var(--content-max); width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-6); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.page-head .titles { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.page-head .actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
/* today's pages carry their title as .page-head h2: it reads as the prototype's page title */
.page-head h2, .page-head h1 { font-size: var(--fs-title); font-weight: var(--fw-title); letter-spacing: var(--tr-title); line-height: 1.1; }
/* the line under a page's title (the prototype's .lede) */
.lede { font-size: var(--fs-xl); line-height: 1.5; color: var(--ink-soft); max-width: 36em; margin-top: -12px; }
.toolbar { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }
/* inside a job's frame its pages are named once, by the panel: New job's own step line and a page's crumbs go */
.pt-col .nj-steps, .pt-col .crumbs { display: none; }
.dot.on { background: var(--ok); }
.dot.warn { background: var(--warn-dot); }
.dot.off { background: var(--bad); }
.quiet-line { display: flex; gap: var(--sp-2); align-items: baseline; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); text-decoration: none; }
.quiet-line:hover { color: var(--ink-soft); }

@media (max-width: 1100px) {
  .drawer { width: 100%; }
}
@media (max-width: 640px) {
  .page, .jobmain { padding: 26px 14px 120px; }
  .page-head h2, .page-head h1 { font-size: var(--fs-h2); }
  .lede { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  .btn-primary, .chip[aria-pressed="true"], .segmented button[aria-pressed="true"] { border: 1px solid CanvasText; }
  .ring { border-color: CanvasText; border-top-color: transparent; }
  .dot { forced-color-adjust: none; }
}

/* ================= one dropdown and one file picker (23 Nov) =================
   Every <select> in the app looks like .select, even where a screen left the class off; :where() keeps it at zero
   specificity so a screen's own size rules still win. Disabled, error and keyboard focus states are shared. */
:where(select) {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; min-height: var(--ctl-h-md); padding: 0 38px 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--ink); background-color: var(--surface);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
  font: inherit; line-height: 1.2; cursor: pointer; outline: none; transition: border-color var(--dur-base) var(--ease);
}
:where(select):hover { border-color: var(--faint); }
:where(select):focus { border-color: var(--ink); }
select:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
select:disabled, .select:disabled { background-color: var(--well); color: var(--muted); border-color: var(--line); cursor: not-allowed; opacity: 1; }
select[aria-invalid="true"], .select[aria-invalid="true"], .select.is-error { border-color: var(--bad); }

/* a button-styled <label> around a hidden file input shows the focus ring when the input has keyboard focus */
label:has(> input[type="file"]:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
label:has(> input[type="file"]:disabled) { opacity: 0.55; cursor: not-allowed; }

/* the file picker (components/FilePick.jsx) */
.fp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface); transition: border-color var(--dur-base) var(--ease), background var(--dur-base) var(--ease); }
.fp.has-file { border-style: solid; }
.fp.is-over { border-color: var(--ink); background: var(--hover); }
.fp.is-error { border-color: var(--bad); }
.fp.is-disabled { background: var(--well); opacity: 0.7; }
.fp:has(.fp-input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.fp-ico { width: 20px; height: 20px; color: var(--muted); flex: none; }
.fp-ico svg { width: 100%; height: 100%; display: block; }
.fp-name { flex: 1 1 160px; min-width: 0; }
.fp-name b { display: block; font-weight: var(--fw-medium); word-break: break-word; line-height: 1.3; }
.fp-name small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.fp-empty { color: var(--ink-soft); }
.fp-acts { display: flex; gap: 8px; flex: none; }
.fp-btn { cursor: pointer; }
.fp.is-disabled .fp-btn { pointer-events: none; }
@media (max-width: 520px) { .fp-acts { width: 100%; } .fp-acts > * { flex: 1; justify-content: center; } }
/* the chevron sits 14–24px from the right: no screen's own padding may put the chosen text under it */
select:not([multiple]) { padding-right: 34px !important; appearance: none !important; -webkit-appearance: none !important; }
select:not([multiple]) { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important; background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50% !important; background-size: 5px 5px !important; background-repeat: no-repeat !important; }
