/* ══════════════════════════════════
   SPECIAL SETS SHEET — protocol runner + insert
   (sheet shell reuses the settings-sheet classes from settings.css)
══════════════════════════════════ */

/* Entry point in the session page */
.editor-actions { padding: 0 18px 10px; display: flex; gap: 8px; }
.ss-open-btn { font-size: 12px; padding: 6px 12px; border-radius: 8px;
  color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent);
  border: 1px dashed color-mix(in srgb, var(--acc) 34%, transparent); white-space: nowrap;
  transition: background var(--dur-fast) var(--ease); }
.ss-open-btn:hover { background: color-mix(in srgb, var(--acc) 15%, transparent); }

.ss-stage { background: var(--s2); border: 1px solid var(--b); border-radius: 12px;
  padding: 16px 14px 13px; text-align: center; margin-bottom: 10px; }
/* Read at arm's length mid-set: big, tabular so digits don't jitter each tick */
.ss-disp { font-size: 52px; font-weight: 800; line-height: 1; color: var(--dim);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transition: color var(--dur) var(--ease); }
.ss-disp.run  { color: var(--text); }
.ss-disp.done { color: var(--ok); }
.ss-sub { font-size: 13px; font-weight: 600; color: var(--acc); margin-top: 6px; }
.ss-track { height: 4px; border-radius: 2px; background: var(--s4); margin: 11px 2px 7px;
  overflow: hidden; }
/* Width is written every frame — transition it and the bar lags the clock */
.ss-bar { height: 100%; width: 0; border-radius: 2px; background: var(--acc); }
.ss-meta { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Pyramid ladder — the whole plan at a glance, with position in it */
.ss-ladder { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin: 11px 0 3px; }
.ss-rung { min-width: 26px; padding: 3px 7px; border-radius: 7px; font-size: 12px;
  font-variant-numeric: tabular-nums; background: var(--s3); color: var(--dim);
  border: 1px solid var(--b2); transition: background var(--dur-fast) var(--ease); }
.ss-rung.done { background: color-mix(in srgb, var(--ok) 18%, transparent);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }
.ss-rung.cur { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 700; }

.ss-actions { display: flex; gap: 8px; }
.ss-btn { flex: 1; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
  background: var(--s3); color: var(--dim); border: 1px solid var(--b2);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.ss-btn:hover { background: var(--s4); color: var(--text); }
.ss-btn.primary { background: var(--acc); color: #fff; border-color: var(--acc); }
.ss-btn.primary:hover { opacity: .9; }
/* Running: the primary button now says Pause, so it should stop shouting */
.ss-btn.primary.paused { background: var(--s3); color: var(--text); border-color: var(--b2); }
/* Advancing the ladder is the button you hit under fatigue — make it the target */
.ss-btn.next { flex: 2; background: var(--ok); border-color: var(--ok); color: #fff; }
.ss-btn.next:hover { opacity: .9; }

/* Config frozen while a run is loaded */
.setting-row.locked { opacity: .45; pointer-events: none; }

/* Volume */
.ss-vol { width: 118px; accent-color: var(--acc); }

/* Exactly what will be written, before it is written */
.ss-preview { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 11px;
  color: var(--dim); background: var(--s2); border: 1px solid var(--b);
  border-radius: 8px; padding: 7px 9px; margin-top: 10px; word-break: break-word; }
.ss-preview:empty { display: none; }
.ss-insert { width: 100%; margin-top: 10px; padding: 11px; border-radius: 10px;
  background: var(--acc); color: #fff; font-size: 14px; font-weight: 600;
  transition: opacity var(--dur-fast) var(--ease); }
.ss-insert:disabled { opacity: .4; cursor: default; }

/* Override field — the plan, editable when the body disagreed with it */
.ss-actual-lbl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ss-actual-reset { font-size: 10px; color: var(--acc); padding: 0; }
.ss-actual-reset:hover { opacity: .7; }
