/* ════════════════════════════════════════════════════════════════
   Multi-session Spark settings — sessions list page (Phase 2).
   ════════════════════════════════════════════════════════════════ */
.sparksess-root {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink, #0f172a);
  max-width: 920px;
}
.sparksess-loading,
.sparksess-error {
  padding: 28px; font-size: 14px; color: var(--ink-soft, #64748b);
}
.sparksess-error { color: #b4232a; }

/* ── Header ─────────────────────────────────────────────────────── */
.sparksess-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 6px;
}
.sparksess-head h2 {
  margin: 0; font-size: 21px; font-weight: 700;
}
.sparksess-hw {
  margin: 4px 0 16px; font-size: 12.5px; color: var(--ink-soft, #64748b);
}
.sparksess-hw .sparksess-gpu-ok { color: #0c7a3e; font-weight: 600; }
.sparksess-hw .sparksess-gpu-no { color: #b4232a; font-weight: 600; }

.sparksess-add {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border: 0; border-radius: 9px;
  background: var(--accent, #1f4fd6); color: #fff;
  font: 600 13px "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}
.sparksess-add:hover { filter: brightness(1.08); }

/* ── Capacity banner ────────────────────────────────────────────── */
.sparksess-banner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 11px 14px; border-radius: 10px; margin-bottom: 18px;
  font-size: 12.5px; line-height: 1.5;
  border: 1px solid transparent;
}
.sparksess-banner.lvl-none { display: none; }
.sparksess-banner.lvl-moderate {
  background: #eef4ff; border-color: #c7d8f7; color: #1f3d7a;
}
.sparksess-banner.lvl-high {
  background: #fff6e6; border-color: #f3d79a; color: #8a5a06;
}
.sparksess-banner.lvl-oversubscribed {
  background: #fdecec; border-color: #f3b4b4; color: #a31f1f;
}
.sparksess-banner b { font-weight: 700; }
.sparksess-banner-toggle {
  align-self: flex-start; background: none; border: 0; padding: 2px 0;
  font: 600 12px "Space Grotesk", system-ui, sans-serif;
  color: inherit; cursor: pointer; text-decoration: underline;
}
.sparksess-banner-break {
  margin-top: 4px; display: grid;
  grid-template-columns: 1fr auto auto; gap: 2px 14px;
}
.sparksess-banner-break span { font-size: 11.5px; }

/* ── Session cards ──────────────────────────────────────────────── */
.sparksess-list { display: flex; flex-direction: column; gap: 12px; }

.sparksess-card {
  border: 1px solid var(--hairline, rgba(15,23,42,0.12));
  border-radius: 14px; background: #fff; padding: 15px 17px;
  position: relative;
}
.sparksess-card-top {
  display: flex; align-items: center; gap: 9px;
}
.sparksess-name {
  font-size: 15.5px; font-weight: 700; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sparksess-card-meta {
  margin: 7px 0 0 23px;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 12.5px; color: var(--ink-soft, #5b6675);
}
.sparksess-card-meta .sparksess-routed {
  color: var(--ink-soft, #8a93a3); font-size: 11.5px;
}

/* state dot */
.sparksess-dot {
  flex: none; width: 11px; height: 11px; border-radius: 50%;
  background: #b6bdc8;
}
.sparksess-dot.is-running   { background: #1fae54; }
.sparksess-dot.is-running.is-busy { animation: sparksess-pulse 1.4s infinite; }
.sparksess-dot.is-idle      { background: #e0991b; }
.sparksess-dot.is-starting  { background: #2f6be0;
                              animation: sparksess-pulse 1.1s infinite; }
.sparksess-dot.is-stopped   { background: #b6bdc8; }
.sparksess-dot.is-error     { background: #d33; }
@keyframes sparksess-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31,174,84,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(31,174,84,0); }
}

/* configure dropdown */
.sparksess-cfg { position: relative; flex: none; }
.sparksess-cfg-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 8px;
  border: 1px solid var(--hairline, rgba(15,23,42,0.16));
  background: #fff; color: var(--ink, #0f172a);
  font: 600 12.5px "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}
.sparksess-cfg-btn:hover { background: #f4f6fb; }
.sparksess-menu {
  position: absolute; right: 0; top: calc(100% + 5px); z-index: 50;
  min-width: 168px; padding: 5px;
  background: #fff; border-radius: 10px;
  border: 1px solid var(--hairline, rgba(15,23,42,0.14));
  box-shadow: 0 12px 30px rgba(15,23,42,0.18);
}
.sparksess-menu[hidden] { display: none; }
.sparksess-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 7px; background: none;
  font: 500 12.5px "Space Grotesk", system-ui, sans-serif;
  color: var(--ink, #0f172a); cursor: pointer;
}
.sparksess-menu button:hover { background: #f4f6fb; }
.sparksess-menu button.is-danger { color: #b4232a; }
.sparksess-menu button.is-danger:hover { background: #fdecec; }
.sparksess-menu .sparksess-menu-sep {
  height: 1px; margin: 4px 6px;
  background: var(--hairline, rgba(15,23,42,0.1));
}

/* ── Modal (create / rename / duplicate / delete) ───────────────── */
.sparksess-overlay {
  position: fixed; inset: 0; z-index: 7000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 11vh; background: rgba(15,23,42,0.44);
}
.sparksess-modal {
  width: min(540px, 93vw);
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,0.32);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.sparksess-modal h3 { margin: 0; font-size: 18px; font-weight: 700; }
.sparksess-modal label.sparksess-fld {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft, #8a93a3);
}
.sparksess-modal input[type="text"] {
  padding: 9px 11px; font-size: 13.5px;
  border: 1px solid var(--hairline, rgba(15,23,42,0.18));
  border-radius: 9px; color: var(--ink, #0f172a);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.sparksess-modal input[type="text"]:focus {
  outline: none; border-color: var(--accent, #1f4fd6);
  box-shadow: 0 0 0 3px rgba(31,79,214,0.14);
}
.sparksess-presets { display: flex; flex-direction: column; gap: 7px; }
.sparksess-preset {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--hairline, rgba(15,23,42,0.14));
}
.sparksess-preset.is-sel {
  border-color: var(--accent, #1f4fd6);
  background: rgba(31,79,214,0.05);
}
.sparksess-preset input { margin-top: 2px; }
.sparksess-preset-label { font-size: 13.5px; font-weight: 600; }
.sparksess-preset-blurb {
  font-size: 11.5px; color: var(--ink-soft, #6b7480); margin-top: 1px;
}
.sparksess-preview {
  font-size: 12px; line-height: 1.6; color: var(--ink-soft, #5b6675);
  background: #f6f8fc; border-radius: 9px; padding: 10px 12px;
}
.sparksess-preview.lvl-high { background: #fff6e6; color: #8a5a06; }
.sparksess-preview.lvl-oversubscribed {
  background: #fdecec; color: #a31f1f;
}
.sparksess-preview b { font-weight: 700; }
.sparksess-modal-msg {
  font-size: 12.5px; color: #b4232a;
  background: rgba(180,35,42,0.08); padding: 8px 11px; border-radius: 8px;
}
.sparksess-modal-actions {
  display: flex; justify-content: flex-end; gap: 9px;
}
.sparksess-btn {
  padding: 9px 16px; border-radius: 9px; cursor: pointer;
  font: 600 13px "Space Grotesk", system-ui, sans-serif;
  border: 1px solid var(--hairline, rgba(15,23,42,0.18));
  background: #fff; color: var(--ink, #0f172a);
}
.sparksess-btn:hover { background: #f4f6fb; }
.sparksess-btn-primary {
  background: var(--accent, #1f4fd6); border-color: transparent;
  color: #fff;
}
.sparksess-btn-primary:hover {
  background: var(--accent, #1f4fd6); filter: brightness(1.1);
}
.sparksess-btn-danger {
  background: #c5302f; border-color: transparent; color: #fff;
}
.sparksess-btn-danger:hover {
  background: #c5302f; filter: brightness(1.1);
}
.sparksess-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Toast ──────────────────────────────────────────────────────── */
.sparksess-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 7200; padding: 11px 18px; border-radius: 10px;
  background: #0f172a; color: #fff;
  font: 500 13px "Space Grotesk", system-ui, sans-serif;
  box-shadow: 0 12px 30px rgba(15,23,42,0.3);
}
.sparksess-toast.is-bad { background: #b4232a; }

/* ════════════════════════════════════════════════════════════════
   Per-session three-tier configuration page (Phase 3).
   ════════════════════════════════════════════════════════════════ */
.sparkcfg-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 4px;
}
.sparkcfg-back {
  border: 0; background: none; cursor: pointer; padding: 4px 6px;
  font: 600 13px "Space Grotesk", system-ui, sans-serif;
  color: var(--accent, #1f4fd6);
}
.sparkcfg-back:hover { text-decoration: underline; }
.sparkcfg-title { font-size: 20px; font-weight: 700; }
.sparkcfg-title small {
  font-weight: 500; color: var(--ink-soft, #8a93a3); font-size: 14px;
}

/* tier toggle */
.sparkcfg-tiers {
  display: inline-flex; gap: 3px; padding: 3px; margin: 14px 0 18px;
  background: #eef1f6; border-radius: 11px;
}
.sparkcfg-tier {
  border: 0; background: none; cursor: pointer;
  padding: 8px 16px; border-radius: 8px;
  font: 600 13px "Space Grotesk", system-ui, sans-serif;
  color: var(--ink-soft, #5b6675);
}
.sparkcfg-tier.is-active {
  background: #fff; color: var(--ink, #0f172a);
  box-shadow: 0 1px 4px rgba(15,23,42,0.12);
}

.sparkcfg-q { font-size: 15px; font-weight: 700; margin: 18px 0 9px; }
.sparkcfg-q:first-child { margin-top: 0; }
.sparkcfg-grid {
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.sparkcfg-opt {
  text-align: left; cursor: pointer;
  padding: 12px 13px; border-radius: 11px; background: #fff;
  border: 1.5px solid var(--hairline, rgba(15,23,42,0.14));
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.sparkcfg-opt.is-sel {
  border-color: var(--accent, #1f4fd6);
  background: rgba(31,79,214,0.045);
}
.sparkcfg-opt-name { font-size: 13.5px; font-weight: 700; }
.sparkcfg-opt-sub {
  font-size: 11.5px; color: var(--ink-soft, #6b7480); margin-top: 2px;
}
.sparkcfg-badge {
  display: inline-block; margin-top: 8px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
}
.sparkcfg-badge.help-very-helpful,
.sparkcfg-badge.help-helpful {
  background: #e3f6e9; color: #0c7a3e;
}
.sparkcfg-badge.help-marginal { background: #fdf0d8; color: #8a5a06; }

/* outcomes controls */
.sparkcfg-ctrl { margin-bottom: 16px; }
.sparkcfg-ctrl-head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.sparkcfg-ctrl-name { font-size: 14px; font-weight: 700; }
.sparkcfg-ctrl-val {
  font-size: 12px; font-weight: 600; color: var(--accent, #1f4fd6);
}
.sparkcfg-ctrl-sub {
  font-size: 11.5px; color: var(--ink-soft, #8a93a3); margin: 1px 0 7px;
}
.sparkcfg-seg { display: flex; gap: 7px; }
.sparkcfg-seg button {
  flex: 1; cursor: pointer; padding: 9px 6px; border-radius: 9px;
  border: 1.5px solid var(--hairline, rgba(15,23,42,0.14));
  background: #fff; color: var(--ink, #0f172a);
  font: 600 12.5px "Space Grotesk", system-ui, sans-serif;
}
.sparkcfg-seg button.is-sel {
  border-color: var(--accent, #1f4fd6);
  background: rgba(31,79,214,0.06);
}

/* advanced knobs */
.sparkcfg-knobs {
  display: flex; flex-direction: column; gap: 2px;
}
.sparkcfg-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft, #8a93a3);
  margin: 14px 0 5px;
}
.sparkcfg-knob {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hairline, rgba(15,23,42,0.07));
}
.sparkcfg-knob-name { flex: 1 1 auto; font-size: 13px; font-weight: 600; }
.sparkcfg-knob input[type="text"] {
  width: 78px; padding: 6px 8px; text-align: right;
  border: 1px solid var(--hairline, rgba(15,23,42,0.18));
  border-radius: 7px; font: 13px "Space Grotesk", system-ui, sans-serif;
}
.sparkcfg-knob input.is-bad { border-color: #d33; background: #fdecec; }
.sparkcfg-knob select {
  padding: 6px 8px; border-radius: 7px;
  border: 1px solid var(--hairline, rgba(15,23,42,0.18));
  font: 13px "Space Grotesk", system-ui, sans-serif;
}
.sparkcfg-knob input[type="range"] { width: 130px; }
.sparkcfg-knob-num {
  min-width: 24px; text-align: center; font-weight: 700; font-size: 13px;
}
.sparkcfg-tag {
  flex: none; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px;
}
.sparkcfg-tag.restart { background: #fdf0d8; color: #8a5a06; }
.sparkcfg-tag.live { background: #e3f6e9; color: #0c7a3e; }
.sparkcfg-switch {
  width: 38px; height: 22px; border-radius: 999px; border: 0;
  background: #c7ccd6; cursor: pointer; position: relative;
}
.sparkcfg-switch.is-on { background: var(--accent, #1f4fd6); }
.sparkcfg-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform .15s;
}
.sparkcfg-switch.is-on::after { transform: translateX(16px); }
.sparkcfg-knob.is-disabled { opacity: 0.45; pointer-events: none; }

.sparkcfg-oom {
  margin-top: 10px; padding: 9px 12px; border-radius: 9px;
  font-size: 12.5px; font-weight: 600;
}
.sparkcfg-oom.low { background: #e3f6e9; color: #0c7a3e; }
.sparkcfg-oom.moderate { background: #eef4ff; color: #1f3d7a; }
.sparkcfg-oom.high { background: #fff6e6; color: #8a5a06; }
.sparkcfg-oom.critical { background: #fdecec; color: #a31f1f; }

/* impact panel */
.sparkcfg-impact {
  margin-top: 20px; border-radius: 14px; padding: 16px 18px;
  background: #f6f8fc;
  border: 1px solid var(--hairline, rgba(15,23,42,0.1));
}
.sparkcfg-impact-h {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft, #8a93a3);
  margin-bottom: 12px;
}
.sparkcfg-warn {
  border-radius: 10px; padding: 11px 13px; margin-bottom: 13px;
  background: #fff6e6; border: 1px solid #f3d79a; color: #7a4f06;
  font-size: 12.5px; line-height: 1.55;
}
.sparkcfg-warn b { font-weight: 700; }
.sparkcfg-warn-rows {
  margin-top: 8px; display: flex; flex-direction: column; gap: 4px;
}
.sparkcfg-warn-rows div { display: flex; justify-content: space-between; }
.sparkcfg-irow {
  display: flex; gap: 12px; padding: 9px 0;
  border-top: 1px solid var(--hairline, rgba(15,23,42,0.08));
}
.sparkcfg-irow:first-of-type { border-top: 0; }
.sparkcfg-irow-ic { font-size: 17px; flex: none; }
.sparkcfg-irow-body { flex: 1 1 auto; }
.sparkcfg-irow-top {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13.5px; font-weight: 700;
}
.sparkcfg-irow-sub {
  font-size: 11.5px; color: var(--ink-soft, #6b7480);
  margin-top: 2px; line-height: 1.5;
}

/* save bar */
.sparkcfg-savebar {
  display: flex; justify-content: flex-end; gap: 9px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--hairline, rgba(15,23,42,0.1));
}

/* ── Phase 6: routing ──────────────────────────────────────────── */
.sparksess-head-actions { display: flex; gap: 8px; flex: none; }
.sparksess-modal select {
  padding: 9px 11px; font-size: 13.5px;
  border: 1px solid var(--hairline, rgba(15,23,42,0.18));
  border-radius: 9px; color: var(--ink, #0f172a);
  font-family: "Space Grotesk", system-ui, sans-serif; background: #fff;
}
.sparksess-modal select:focus {
  outline: none; border-color: var(--accent, #1f4fd6);
  box-shadow: 0 0 0 3px rgba(31,79,214,0.14);
}

/* ════════════ Phase 8 — activity tile + verify GPU ════════════ */
.sparkcfg-actbar {
  display: flex; align-items: center; gap: 12px; margin-top: 14px;
}
.sparkcfg-verify-out { font-size: 12.5px; color: var(--ink-soft,#5b6675); }
.sparkcfg-verify-out.is-good { color: #0c7a3e; font-weight: 600; }
.sparkcfg-verify-out.is-bad { color: #b4232a; font-weight: 600; }
.sparkcfg-activity {
  margin-top: 16px; border-radius: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--hairline,rgba(15,23,42,0.1));
}
.sparkcfg-act-h, .sparksess-ov-h {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft,#8a93a3);
  margin-bottom: 11px;
}
.sparkcfg-act-empty, .sparkcfg-act-load {
  font-size: 12.5px; color: var(--ink-soft,#8a93a3);
}
.sparkcfg-act-cards, .sparksess-ov-cards {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.sparkcfg-act-card, .sparksess-ov-card {
  background: #f6f8fc; border-radius: 10px; padding: 11px 13px;
}
.sparkcfg-act-big, .sparksess-ov-big {
  font-size: 18px; font-weight: 700; color: var(--ink,#0f172a);
}
.sparkcfg-act-small, .sparksess-ov-small {
  font-size: 11px; color: var(--ink-soft,#8a93a3); margin-top: 2px;
}
.sparkcfg-act-tbl {
  width: 100%; margin-top: 12px; border-collapse: collapse;
  font-size: 12px;
}
.sparkcfg-act-tbl td {
  padding: 6px 8px;
  border-top: 1px solid var(--hairline,rgba(15,23,42,0.07));
}
.sparkcfg-eng {
  font-size: 9.5px; font-weight: 700; padding: 2px 6px;
  border-radius: 999px;
}
.sparkcfg-eng.eng-gpu { background: #e3f6e9; color: #0c7a3e; }
.sparkcfg-eng.eng-cpu { background: #eef1f6; color: #5b6675; }
.sparkcfg-eng.eng-mixed { background: #fdf0d8; color: #8a5a06; }
.sparkcfg-act-note {
  margin-top: 11px; font-size: 11.5px; line-height: 1.55;
  color: var(--ink-soft,#6b7480);
}
/* ════════════ Phase 9 — cross-session overview ════════════ */
.sparksess-overview {
  border-radius: 14px; padding: 15px 17px; margin-bottom: 16px;
  background: #fff; border: 1px solid var(--hairline,rgba(15,23,42,0.1));
}
.sparksess-overview-empty {
  font-size: 12.5px; color: var(--ink-soft,#8a93a3);
}
.sparksess-ov-h2 {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft,#8a93a3);
  margin: 14px 0 7px;
}
.sparksess-ov-bar {
  display: grid; grid-template-columns: 140px 1fr 40px;
  align-items: center; gap: 10px; margin-bottom: 5px; font-size: 11.5px;
}
.sparksess-ov-track {
  height: 9px; border-radius: 999px; background: #eef1f6;
  overflow: hidden;
}
.sparksess-ov-track div {
  height: 100%; background: #1fae54; border-radius: 999px;
}

/* ════════════════════════════════════════════════════════════════
   REDESIGN — calmer information hierarchy, inline accordion config.
   These rules come last, so they override the earlier ones.
   ════════════════════════════════════════════════════════════════ */
.sparksess-root { max-width: 860px; }

/* compact one-line header — no tinted banner */
.sparksess-head {
  align-items: flex-start; margin-bottom: 18px;
}
.sparksess-head-title h2 { margin: 0; font-size: 20px; }
.sparksess-subtitle {
  margin: 3px 0 0; font-size: 12.5px; color: var(--ink-soft, #6b7480);
}
.sparksess-hw {
  margin: 0 0 22px; font-size: 12px; color: var(--ink-soft, #8a93a3);
}

/* quiet secondary buttons — Add session / routing must not shout */
.sparksess-btn-quiet {
  background: transparent; border-color: transparent;
  color: var(--ink-soft, #5b6675);
}
.sparksess-btn-quiet:hover {
  background: #eef1f6; border-color: transparent;
}

/* session card as the hero surface */
.sparksess-list { gap: 16px; }
.sparksess-card { padding: 18px 20px; }
.sparksess-card.is-expanded {
  border-color: var(--accent, #1f4fd6);
  box-shadow: 0 6px 22px rgba(31,79,214,0.1);
}
.sparksess-card-top { gap: 11px; }
.sparksess-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  background: #eef1f6; font-size: 11px; font-weight: 600;
  color: var(--ink-soft, #5b6675);
}
.sparksess-name { font-size: 17px; }
.sparksess-card-actions {
  display: flex; align-items: center; gap: 6px; flex: none;
}
.sparksess-summary {
  margin: 11px 0 0; font-size: 13.5px; font-weight: 500;
  color: var(--ink, #0f172a);
}
.sparksess-routed-line {
  margin: 5px 0 0; font-size: 11.5px; color: var(--ink-soft, #8a93a3);
}

/* inline accordion config slot */
.sparksess-cfgslot {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--hairline, rgba(15,23,42,0.1));
}

/* tabs — Preset / Details / Advanced */
.sparkcfg-tabs {
  display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 18px;
  background: #eef1f6; border-radius: 11px;
}
.sparkcfg-tab {
  border: 0; background: none; cursor: pointer;
  padding: 7px 15px; border-radius: 8px;
  font: 600 12.5px "Space Grotesk", system-ui, sans-serif;
  color: var(--ink-soft, #5b6675);
}
.sparkcfg-tab.is-active {
  background: #fff; color: var(--ink, #0f172a);
  box-shadow: 0 1px 4px rgba(15,23,42,0.12);
}

.sparkcfg-helper {
  margin-top: 14px; font-size: 12px; line-height: 1.55;
  color: var(--ink-soft, #8a93a3);
}

/* impact — plain key/value list, no emoji */
.sparkcfg-impact { background: #f6f8fc; }
.sparkcfg-impact-title {
  font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
.sparkcfg-kv {
  padding: 9px 0;
  border-top: 1px solid var(--hairline, rgba(15,23,42,0.08));
}
.sparkcfg-kv:first-of-type { border-top: 0; }
.sparkcfg-kv-row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 600;
}
.sparkcfg-kv-value { color: var(--accent, #1f4fd6); }
.sparkcfg-kv-sub {
  margin-top: 2px; font-size: 11.5px; line-height: 1.5;
  color: var(--ink-soft, #6b7480);
}
.sparkcfg-impact-caveat {
  margin-top: 11px; font-size: 11px; color: var(--ink-soft, #9aa3b0);
}

/* save bar — single Apply, restart notice, conditional Cancel */
.sparkcfg-savebar {
  align-items: center; gap: 12px; margin-top: 18px;
}
.sparkcfg-restart-note {
  margin-right: auto; font-size: 12px; color: #8a5a06;
}

/* runtime details disclosure (legacy Spark runtime block) */
.settings-runtime {
  margin-top: 56px;
  border-top: 1px solid var(--hairline, rgba(15,23,42,0.1));
  padding-top: 24px;
}
.settings-runtime > summary {
  cursor: pointer; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft, #6b7480); list-style: none;
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.settings-runtime > summary::before { content: "▸ "; }
.settings-runtime[open] > summary::before { content: "▾ "; }
.settings-runtime > summary:hover { color: var(--ink, #0f172a); }
.settings-runtime .settings-card { margin-top: 12px; }
