/* Job Editor (#/job-editor): super-admin correction page. Scoped to the section. */
#job-editor {
  --je-reason-sensor: var(--rose-400);
  --je-reason-tz: var(--violet-400);
  --je-reason-other: var(--amber-400);
  --je-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
}
#job-editor [hidden] { display: none !important; }
#job-editor code { font-family: var(--je-mono); font-size: 0.85em; }
#job-editor .je-muted { color: var(--color-text-muted); }
#job-editor .je-faint { color: var(--color-text-faint); }
#job-editor .je-small { font-size: 0.78rem; }
#job-editor .je-nowrap { white-space: nowrap; }
#job-editor .je-grow { flex: 1; min-width: 0; }
#job-editor .je-row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
#job-editor .je-stack { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
#job-editor .je-stack-sm { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
#job-editor .je-stack-xs { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
#job-editor .je-hint { font-size: 0.75rem; color: var(--color-text-faint); margin: 0; }
#job-editor .je-err { font-size: 0.75rem; color: var(--color-danger-text); margin: 0; }
#job-editor .je-warn-text { color: var(--amber-300); }
#job-editor .je-h4 { margin: 0.4rem 0 0; font-size: 0.85rem; display: flex; gap: 0.5rem; align-items: baseline; }

/* ---------- controls ---------- */
#job-editor input[type="text"], #job-editor input[type="search"], #job-editor input[type="number"],
#job-editor input[type="datetime-local"], #job-editor select, #job-editor textarea {
  background: var(--color-surface-sunken); border: 1px solid var(--color-border); border-radius: 4px;
  color: var(--color-text); padding: 0.36rem 0.5rem; font: inherit; font-size: 0.85rem; width: 100%;
  color-scheme: dark; box-sizing: border-box;
}
#job-editor textarea { resize: vertical; min-height: 3rem; }
#job-editor input:focus-visible, #job-editor select:focus-visible, #job-editor textarea:focus-visible,
#job-editor button:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; }
#job-editor .je-changed { border-color: var(--amber-400) !important; background: color-mix(in srgb, var(--amber-500) 7%, var(--color-surface-sunken)) !important; }
#job-editor .je-invalid { border-color: var(--red-400) !important; }
#job-editor .je-btn-sm { padding: 0.22rem 0.6rem; font-size: 0.78rem; min-height: 0; }
#job-editor .je-btn-xs { padding: 0.08rem 0.45rem; font-size: 0.72rem; min-height: 0; }
#job-editor .optA-btn:disabled { opacity: 0.45; cursor: not-allowed; }
#job-editor .je-btn-ghost, #job-editor .je-btn-danger-ghost, #job-editor .je-linkish {
  background: none; border: none; padding: 0.1rem 0.25rem; cursor: pointer; font: inherit; color: var(--color-text-muted);
}
#job-editor .je-btn-ghost:hover { color: var(--color-text); }
#job-editor .je-btn-danger-ghost { color: var(--color-danger-text); }
#job-editor .je-btn-danger-ghost:hover { background: color-mix(in srgb, var(--red-500) 12%, transparent); }
#job-editor .je-linkish { padding: 0; color: var(--blue-300); text-decoration: underline; text-underline-offset: 2px; }
#job-editor .je-select-inline { width: auto; min-width: 10rem; padding: 0.16rem 0.4rem; font-size: 0.76rem; }
#job-editor .je-search { max-width: 18rem; }
#job-editor .je-paste { max-width: 24rem; font-family: var(--je-mono); }
#job-editor .je-badge {
  display: inline-flex; align-items: center; padding: 0.04rem 0.45rem; border-radius: 999px; font-size: 0.7rem;
  white-space: nowrap; line-height: 1.4; color: var(--color-text-muted);
  border: 1px solid color-mix(in srgb, var(--slate-500) 35%, transparent);
}
#job-editor .je-badge-ok { color: var(--green-300); border-color: color-mix(in srgb, var(--green-500) 35%, transparent); background: color-mix(in srgb, var(--green-500) 10%, transparent); }
#job-editor .je-badge-warn { color: var(--amber-300); border-color: color-mix(in srgb, var(--amber-500) 40%, transparent); background: color-mix(in srgb, var(--amber-500) 10%, transparent); }
#job-editor .je-badge-bad { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 40%, transparent); background: color-mix(in srgb, var(--red-500) 10%, transparent); }
#job-editor .je-badge-info { color: var(--blue-200); border-color: color-mix(in srgb, var(--blue-500) 40%, transparent); background: color-mix(in srgb, var(--blue-500) 12%, transparent); }
#job-editor .je-badge-role { color: var(--emerald-300); border-color: color-mix(in srgb, var(--emerald-400) 40%, transparent); background: color-mix(in srgb, var(--emerald-400) 10%, transparent); }
#job-editor .je-badge-staged { color: var(--violet-100); border-color: color-mix(in srgb, var(--violet-500) 55%, transparent); background: color-mix(in srgb, var(--violet-500) 22%, transparent); }
#job-editor .je-dot { display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--amber-400); flex: none; }
#job-editor .je-note {
  font-size: 0.8rem; padding: 0.45rem 0.65rem; border-radius: 5px; border-left: 3px solid var(--amber-500);
  background: color-mix(in srgb, var(--amber-500) 10%, transparent); color: var(--amber-100);
}
#job-editor .je-note-info { border-left-color: var(--blue-400); background: color-mix(in srgb, var(--blue-500) 10%, transparent); color: var(--blue-100); }
#job-editor .je-note-bad { border-left-color: var(--red-400); background: color-mix(in srgb, var(--red-500) 10%, transparent); color: var(--red-100); }
#job-editor .je-note-staged { border-left-color: var(--violet-400); background: color-mix(in srgb, var(--violet-500) 12%, transparent); color: var(--violet-100); }
#job-editor .je-seg { display: inline-flex; border: 1px solid var(--color-border-strong); border-radius: 5px; overflow: hidden; }
#job-editor .je-seg button { background: transparent; border: none; padding: 0.28rem 0.7rem; font-size: 0.78rem; cursor: pointer; color: var(--color-text-muted); }
#job-editor .je-seg button + button { border-left: 1px solid var(--color-border-strong); }
#job-editor .je-seg button[aria-pressed="true"] { background: var(--blue-600); color: var(--white); }
#job-editor .je-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
#job-editor .je-chip {
  border: 1px solid var(--color-border-strong); background: transparent; color: var(--color-text-subtle); border-radius: 999px;
  padding: 0.16rem 0.65rem; font-size: 0.76rem; cursor: pointer; display: inline-flex; gap: 0.35rem; align-items: center;
}
#job-editor .je-chip:hover { background: var(--color-surface-raised); }
#job-editor .je-chip[aria-pressed="true"] { background: color-mix(in srgb, var(--blue-500) 25%, transparent); border-color: var(--blue-400); color: var(--white); }
#job-editor .je-chip-static { cursor: default; }
#job-editor .je-chip-x { background: none; border: none; padding: 0; color: var(--color-text-muted); cursor: pointer; font-size: 0.95rem; line-height: 1; }
#job-editor .je-chip-x:hover { color: var(--white); }
#job-editor .je-copyable {
  display: inline-flex; gap: 0.25rem; align-items: center; font-family: var(--je-mono); font-size: 0.75rem; color: var(--color-text-subtle);
  background: var(--color-surface-sunken); border: 1px solid var(--color-border); border-radius: 4px; padding: 0.02rem 0.15rem 0.02rem 0.4rem;
}
#job-editor .je-copyable button { background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 0.72rem; padding: 0 0.25rem; }
#job-editor .je-copyable button:hover { color: var(--white); }
#job-editor .je-fold { border: 1px solid var(--color-border); border-radius: 6px; padding: 0 0.8rem 0.6rem; }
#job-editor .je-fold > summary { cursor: pointer; padding: 0.5rem 0; font-size: 0.82rem; color: var(--color-text-subtle); }

/* ---------- picker + header + tabs ---------- */
#job-editor .je-picker-host { display: flex; flex-direction: column; gap: 0.4rem; margin: 0.25rem 0 0.75rem; max-width: 44rem; }
#job-editor .je-picker { position: relative; }
#job-editor .je-picker-input { padding: 0.5rem 0.6rem; border-color: var(--color-border-strong); border-radius: 6px; }
#job-editor .je-picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; margin: 0; padding: 0.25rem 0; list-style: none;
  background: var(--slate-900); border: 1px solid var(--color-border-strong); border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); max-height: 26rem; overflow: auto;
}
#job-editor .je-picker-opt { padding: 0.4rem 0.75rem; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.8rem; font-size: 0.84rem; }
#job-editor .je-picker-opt > .je-faint { grid-column: 1 / -1; }
#job-editor .je-picker-opt[aria-selected="true"], #job-editor .je-picker-opt:hover { background: color-mix(in srgb, var(--blue-600) 30%, transparent); }
#job-editor .je-picker-empty { padding: 0.6rem 0.75rem; font-size: 0.82rem; color: var(--color-text-muted); }
#job-editor .je-recent { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
#job-editor .je-head {
  border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-surface);
  padding: 0.6rem 0.9rem; display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap;
}
#job-editor .je-head-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
#job-editor .je-head-title { margin: 0; font-size: 1.05rem; font-weight: 650; }
#job-editor .je-head-meta { font-size: 0.78rem; color: var(--color-text-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
#job-editor .je-tabs { margin: 0.4rem 0 0.75rem; border-bottom: 1px solid var(--color-border); gap: 0.25rem; }
#job-editor .je-tab { display: inline-flex; gap: 0.4rem; align-items: center; }
#job-editor .je-tab-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber-400); display: inline-block; }
#job-editor .je-panel { display: flex; flex-direction: column; gap: 0.8rem; }
#job-editor .je-card { position: relative; }
#job-editor .je-card .optA-card-header { flex-wrap: wrap; gap: 0.6rem; justify-content: flex-start; }
#job-editor .je-card-body { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
#job-editor .je-savebar {
  position: sticky; bottom: 0; z-index: 5; display: flex; gap: 0.5rem; align-items: center; padding: 0.55rem 1rem;
  border-top: 1px solid var(--color-border); border-radius: 0 0 10px 10px; font-size: 0.82rem;
  background: color-mix(in srgb, var(--amber-500) 9%, var(--slate-900));
}
#job-editor .je-savebar-summary { flex: 1; min-width: 0; color: var(--amber-100); }

/* ---------- fields ---------- */
#job-editor .je-fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem 1rem; }
#job-editor .je-fgroup { display: flex; flex-direction: column; gap: 0.55rem; }
#job-editor .je-fgroup > h4 {
  margin: 0.2rem 0 0; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-faint);
  font-weight: 600; display: flex; gap: 0.5rem; align-items: center;
}
#job-editor .je-fgroup > h4::after { content: ''; flex: 1; border-top: 1px solid var(--color-border); }
#job-editor .je-field { display: flex; flex-direction: column; gap: 0.22rem; min-width: 0; }
#job-editor .je-field-wide { grid-column: 1 / -1; }
#job-editor .je-field > label, #job-editor .je-lbl { font-size: 0.78rem; color: var(--color-text-subtle); font-weight: 500; display: flex; gap: 0.4rem; align-items: baseline; }
#job-editor .je-field > label code { color: var(--color-text-faint); font-size: 0.68rem; font-weight: 400; }
#job-editor .je-was { font-size: 0.72rem; color: var(--amber-300); margin: 0; display: flex; gap: 0.3rem; align-items: center; }
#job-editor .je-was s { color: var(--color-text-faint); }
#job-editor .je-unit-wrap { position: relative; }
#job-editor .je-unit { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: var(--color-text-faint); pointer-events: none; }
#job-editor .je-unit-wrap input { padding-right: 3rem; }
#job-editor .je-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
#job-editor .je-plug-display { font-weight: 500; }
#job-editor .je-mdbar { max-width: 46rem; }
#job-editor .je-mdbar svg { display: block; width: 100%; height: auto; }
#job-editor .je-md-track { stroke: var(--color-border-strong); stroke-width: 2; }
#job-editor .je-md-mark { stroke: var(--blue-400); stroke-width: 2; }
#job-editor .je-md-bad { stroke: var(--red-400); stroke-width: 3; }
#job-editor .je-mdbar text { fill: var(--color-text-muted); font-size: 10px; }

/* ---------- tables ---------- */
#job-editor .je-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
#job-editor .je-table th, #job-editor .je-table td {
  border-bottom: 1px solid color-mix(in srgb, var(--slate-700) 70%, transparent); padding: 0.32rem 0.5rem; text-align: left; vertical-align: middle;
}
#job-editor .je-table thead th {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); font-weight: 600;
  position: sticky; top: 0; background: var(--color-surface); z-index: 1;
}
#job-editor .je-table tbody tr:hover { background: color-mix(in srgb, var(--slate-800) 60%, transparent); }
#job-editor .je-table input, #job-editor .je-table select { padding: 0.22rem 0.4rem; font-size: 0.8rem; }
#job-editor .je-table input[type="checkbox"] { width: auto; }
#job-editor .je-row-changed td:first-child { box-shadow: inset 3px 0 0 var(--amber-400); }
#job-editor .je-row-selected { background: color-mix(in srgb, var(--blue-600) 16%, transparent); }
#job-editor .je-row-sub td { background: color-mix(in srgb, var(--navy-950) 55%, transparent); font-size: 0.78rem; }
#job-editor .je-col-check { width: 1.8rem; }
#job-editor .je-units-input { max-width: 7rem; }
#job-editor .je-tablewrap { overflow: auto; max-height: 36rem; border: 1px solid var(--color-border); border-radius: 6px; }
#job-editor .je-chname { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
#job-editor .je-chname small { color: var(--color-text-faint); font-size: 0.68rem; font-family: var(--je-mono); }
#job-editor .je-diff-from { color: var(--color-text-muted); }
#job-editor .je-diff-to { color: var(--green-300); }
#job-editor .je-toolbar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
#job-editor .je-subcard {
  border: 1px solid var(--color-border); border-radius: 6px; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--color-surface-sunken);
}

/* ---------- report roles ---------- */
#job-editor .je-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.4rem; }
#job-editor .je-rolecell {
  border: 1px solid var(--color-border); border-radius: 6px; padding: 0.35rem 0.55rem; font-size: 0.78rem; display: flex;
  flex-direction: column; gap: 0.1rem; background: var(--color-surface-sunken); cursor: pointer; text-align: left; color: inherit;
}
#job-editor .je-rolecell:hover { border-color: var(--color-border-strong); }
#job-editor .je-rolecell code { font-size: 0.72rem; color: var(--emerald-300); }
#job-editor .je-rolecell span { color: var(--color-text-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#job-editor .je-role-none span { color: var(--color-text-faint); font-style: italic; }
#job-editor .je-role-dup { border-color: color-mix(in srgb, var(--red-500) 55%, transparent); }
#job-editor .je-role-dup span { color: var(--red-300); }
#job-editor .je-role-mixed, #job-editor .je-role-split { border-color: color-mix(in srgb, var(--amber-500) 55%, transparent); }
#job-editor .je-role-mixed span, #job-editor .je-role-split span { color: var(--amber-300); }

/* ---------- charts ---------- */
#job-editor .je-chartbox { position: relative; background: var(--color-surface-sunken); border: 1px solid var(--color-border); border-radius: 6px; min-height: 4rem; }
#job-editor .je-chart-canvas { width: 100%; }
#job-editor .je-chart-empty { padding: 1.2rem; text-align: center; }
#job-editor .je-legend { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.72rem; color: var(--color-text-muted); align-items: center; }
#job-editor .je-legend i { display: inline-block; width: 1.1rem; height: 0.65rem; border-radius: 2px; vertical-align: -1px; margin-right: 0.3rem; }
#job-editor .je-legend i.je-reason-sensor { background: color-mix(in srgb, var(--je-reason-sensor) 35%, transparent); border: 1px solid var(--je-reason-sensor); }
#job-editor .je-legend i.je-reason-tz { background: color-mix(in srgb, var(--je-reason-tz) 35%, transparent); border: 1px solid var(--je-reason-tz); }
#job-editor .je-legend i.je-reason-other { background: color-mix(in srgb, var(--je-reason-other) 35%, transparent); border: 1px solid var(--je-reason-other); }
#job-editor .je-legend i.je-legend-gap { background: color-mix(in srgb, var(--slate-500) 25%, transparent); border: 1px solid var(--slate-600); }

/* ---------- exclusions ---------- */
#job-editor .je-ex-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem); gap: 0.9rem; align-items: start; }
@media (max-width: 1100px) { #job-editor .je-ex-layout { grid-template-columns: 1fr; } }
#job-editor .je-blocklist { display: flex; flex-direction: column; gap: 0.4rem; max-height: 24rem; overflow: auto; }
#job-editor .je-blk {
  border: 1px solid var(--color-border); border-radius: 6px; padding: 0.45rem 0.6rem; display: grid;
  grid-template-columns: 0.3rem 1fr auto; gap: 0.15rem 0.6rem; cursor: pointer; background: var(--color-surface);
  font: inherit; font-size: 0.8rem; text-align: left; color: inherit; width: 100%;
}
#job-editor .je-blk:hover { border-color: var(--color-border-strong); }
#job-editor .je-blk-selected { border-color: var(--blue-400); box-shadow: 0 0 0 1px var(--blue-400); }
#job-editor .je-blk-removed { opacity: 0.65; cursor: default; }
#job-editor .je-blk-bar { grid-row: span 3; border-radius: 2px; }
#job-editor .je-blk-when { font-weight: 600; font-variant-numeric: tabular-nums; }
#job-editor .je-blk-status { grid-row: 1; grid-column: 3; display: flex; gap: 0.25rem; }
#job-editor .je-blk-what, #job-editor .je-blk-note { grid-column: 2 / 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.75rem; }
#job-editor .je-blk-what { color: var(--color-text-muted); }
#job-editor .je-blk-note { color: var(--color-text-faint); font-style: italic; }
#job-editor .je-reason-sensor .je-blk-bar, #job-editor .je-dot.je-reason-sensor { background: var(--je-reason-sensor); }
#job-editor .je-reason-tz .je-blk-bar, #job-editor .je-dot.je-reason-tz { background: var(--je-reason-tz); }
#job-editor .je-reason-other .je-blk-bar, #job-editor .je-dot.je-reason-other { background: var(--je-reason-other); }
#job-editor .je-editor {
  border: 1px solid var(--color-border-strong); border-radius: 8px; background: var(--color-surface-raised);
  padding: 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.65rem;
}
#job-editor .je-editor h4 { margin: 0; font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }
#job-editor .je-steps { margin: 0; padding-left: 1.2rem; font-size: 0.8rem; color: var(--color-text-subtle); display: flex; flex-direction: column; gap: 0.25rem; }
#job-editor .je-nudge { display: inline-flex; gap: 0.15rem; }
#job-editor .je-nudge button {
  padding: 0.15rem 0.35rem; font-size: 0.7rem; border-radius: 3px; border: 1px solid var(--color-border);
  background: transparent; color: var(--color-text-muted); cursor: pointer;
}
#job-editor .je-nudge button:hover { color: var(--white); border-color: var(--color-border-strong); }
#job-editor .je-chlist {
  max-height: 11rem; overflow: auto; border: 1px solid var(--color-border); border-radius: 5px; padding: 0.25rem 0.4rem;
  background: var(--color-surface-sunken); display: flex; flex-direction: column; gap: 0.1rem; font-size: 0.78rem;
}
#job-editor .je-chlist label { display: flex; gap: 0.45rem; align-items: center; padding: 0.1rem 0; cursor: pointer; }
#job-editor .je-chlist label input { width: auto; }
#job-editor .je-chlist label small { color: var(--color-text-faint); margin-left: auto; font-size: 0.68rem; }

/* ---------- cohort lanes ---------- */
#job-editor .je-lanes {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr) 9rem; border: 1px solid var(--color-border); border-radius: 6px;
  overflow: hidden; background: var(--color-surface-sunken); font-size: 0.78rem;
}
#job-editor .je-lane-head {
  padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column;
  justify-content: center; line-height: 1.2; min-width: 0;
}
#job-editor .je-lane-head b, #job-editor .je-lane-head small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#job-editor .je-lane-head small { color: var(--color-text-faint); font-size: 0.68rem; }
#job-editor .je-lane-me { box-shadow: inset 3px 0 0 var(--blue-400); }
#job-editor .je-lane-action { align-items: flex-end; }
#job-editor .je-lane-axis { position: relative; height: 1.6rem; border-bottom: 1px solid var(--color-border); font-size: 0.66rem; color: var(--color-text-faint); }
#job-editor .je-lane-axis span { position: absolute; top: 0.35rem; white-space: nowrap; padding: 0 0.3rem; }
#job-editor .je-lane-track { position: relative; border-bottom: 1px solid var(--color-border); min-height: 2.4rem; }
#job-editor .je-lane-window {
  position: absolute; top: 0; bottom: 0; pointer-events: none; background: color-mix(in srgb, var(--blue-400) 8%, transparent);
  border-left: 1px dashed var(--blue-400); border-right: 1px dashed var(--blue-400);
}
#job-editor .je-lane-bar {
  position: absolute; top: 0.45rem; bottom: 0.45rem; border-radius: 4px; border: 1px solid; font-size: 0.68rem;
  padding: 0 0.35rem; display: flex; align-items: center; overflow: hidden; white-space: nowrap;
}
#job-editor .je-cohort-a { background: color-mix(in srgb, var(--blue-500) 30%, var(--navy-950)); border-color: var(--blue-400); color: var(--blue-100); }
#job-editor .je-cohort-b { background: color-mix(in srgb, var(--emerald-400) 26%, var(--navy-950)); border-color: var(--emerald-400); color: var(--emerald-200); }
#job-editor .je-cohort-c { background: color-mix(in srgb, var(--violet-500) 28%, var(--navy-950)); border-color: var(--violet-400); color: var(--violet-100); }
#job-editor .je-cohort-d { background: color-mix(in srgb, var(--amber-500) 24%, var(--navy-950)); border-color: var(--amber-400); color: var(--amber-100); }
#job-editor .je-cohort-none { background: color-mix(in srgb, var(--slate-500) 22%, var(--navy-950)); border-color: var(--slate-500); color: var(--slate-300); border-style: dashed; }
#job-editor .je-cohort-summary { gap: 1.2rem; align-items: flex-start; }

/* ---------- overview ---------- */
#job-editor .je-ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0.9rem; align-items: start; }
@media (max-width: 1100px) { #job-editor .je-ov-grid { grid-template-columns: 1fr; } }
#job-editor .je-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
#job-editor .je-stats > div {
  border: 1px solid var(--color-border); border-radius: 6px; padding: 0.5rem 0.7rem; background: var(--color-surface-sunken);
  display: flex; flex-direction: column; gap: 0.15rem;
}
#job-editor .je-stats b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
#job-editor .je-checks { list-style: none; margin: 0.4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
#job-editor .je-check {
  display: grid; grid-template-columns: 1.2rem 1fr auto; gap: 0.6rem; align-items: center; padding: 0.45rem 0.6rem;
  border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-surface-sunken); font-size: 0.82rem;
}
#job-editor .je-check-icon { width: 0.7rem; height: 0.7rem; border-radius: 50%; justify-self: center; background: var(--blue-300); }
#job-editor .je-check-bad { border-color: color-mix(in srgb, var(--red-500) 45%, transparent); }
#job-editor .je-check-bad .je-check-icon { background: var(--red-400); }
#job-editor .je-check-warn { border-color: color-mix(in srgb, var(--amber-500) 45%, transparent); }
#job-editor .je-check-warn .je-check-icon { background: var(--amber-400); }
#job-editor .je-check-ok .je-check-icon { background: var(--green-400); }

/* ---------- confirm dialog (static markup in index.html) ---------- */
.archive-confirm-dialog-panel.je-confirm-panel { width: min(46rem, 94vw); max-height: 88vh; overflow: auto; }
.je-confirm-panel .je-confirm-subtitle { margin: 0 0 0.6rem; font-size: 0.8rem; color: var(--color-text-muted); }
.je-confirm-panel .je-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.je-confirm-panel .je-table th, .je-confirm-panel .je-table td { border-bottom: 1px solid var(--color-border); padding: 0.3rem 0.45rem; text-align: left; vertical-align: top; }
.je-confirm-panel .je-table th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-faint); }
.je-confirm-panel .je-diff-from { color: var(--color-text-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red-400) 60%, transparent); }
.je-confirm-panel .je-diff-to { color: var(--green-300); }
.je-confirm-panel .je-diff-scope { color: var(--color-text-faint); font-size: 0.75rem; }
.je-confirm-panel h5 { margin: 0.8rem 0 0.3rem; font-size: 0.78rem; color: var(--color-text-subtle); }
.je-confirm-panel .je-effects { margin: 0; padding-left: 1.1rem; font-size: 0.8rem; color: var(--color-text-subtle); display: flex; flex-direction: column; gap: 0.25rem; }
