/* The plan in the page and the build's panel beside it (appWindow/planParts.js), as the app draws them
   (electron-app's capabilityListTheme.ts and executionPanel.css), with the page's 16 px for the app's 17. Each is
   shown by the state its stage carries; appWindow/signingHand.js ticks the boxes. */

.planblock { display: none; position: relative; margin-top: 18px; padding: 16px 0 16px 26px; line-height: 1.65; }
:is([data-state^="plan"], [data-state^="ending"]) .planblock { display: block; }
/* Before it is written it keeps its place, so the camera that goes to it knows where it will stand. */
[data-state="plan-start"] .planblock { visibility: hidden; }
.planblock::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--whisper); }
.phead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-left: 2px; font: italic 400 15px/1.55 var(--face-serif); color: var(--ink); }
.phead small { font: 400 11px/1 var(--face-sans); color: var(--faint); }
.prow { display: flex; align-items: center; gap: 8px; min-height: 34px; white-space: nowrap; }
.foldx { flex: none; width: 14px; font: 14px/1 var(--face-sans); color: var(--muted); text-align: center; }
.foldx::before { content: "›"; }
.foldx.open::before { content: "▾"; }
.tickbox { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--muted); font: 600 12px/1 var(--face-sans); color: transparent; }
.tickbox.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.prow .word { margin-left: auto; font-size: 11px; line-height: 1; color: var(--ink-strong); visibility: hidden; }
.planblock .detail { margin: 0 0 6px 48px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.planblock .add { margin-top: 4px; font-size: 13px; line-height: 29px; color: var(--faint); }
.pfoot { display: flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); font-size: 13px; line-height: 1.5; }
.build { padding: 4px 16px; border-radius: 4px; border: 1px solid transparent; background: var(--whisper); color: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums lining-nums; }
.build.off { background: none; border-color: var(--hairline); color: var(--muted); }
.tray { display: grid; place-items: center; width: 24px; height: 24px; color: var(--faint); }
.pfoot .into { margin-left: auto; font-size: 12px; color: var(--muted); }
.pfoot .status { display: none; align-items: center; gap: 4px; color: var(--ink-strong); }
.pfoot .status i { font-style: normal; font-size: 10px; color: var(--ink); }
/* Once Build is pressed the foot says where the build is, and the plan takes no row. */
:is([data-state="plan-pressed"], [data-state="plan-3"], [data-state^="ending"]) :is(.build, .tray, .into) { display: none; }
:is([data-state="plan-pressed"], [data-state="plan-3"], [data-state^="ending"]) .planblock .add { visibility: hidden; }
:is([data-state="plan-pressed"], [data-state="plan-3"], [data-state^="ending"]) .pfoot .status { display: flex; }
:is([data-state="plan-3"], [data-state^="ending"]) .prow .word { visibility: visible; }
.planblock .hand { position: absolute; left: 0; top: 0; }
[data-state="plan-2"] .planblock .hand { visibility: visible; }

/* The word of the build's state, in the foot and at the panel's head: at work, then delivered. */
:is([data-state="plan-3"], [data-state^="ending"]) :is(.status, .phd, .stops) .working, :is([data-state="plan-pressed"]) :is(.status, .phd, .stops) .review { display: none; }

/* The app docks the panel under its top bar and scrolls the page beside it. Here the camera goes down
   the page instead, so the panel's parts are drawn from where the page's bar cuts the window, which the
   stage says as --bar. */
.panel { display: none; position: absolute; right: 0; top: 0; bottom: 0; width: var(--panel-w); padding: calc(var(--bar, 560px) - 52px) 16px 0; background: var(--panel); border-left: 1px solid var(--hairline); font-size: 13px; line-height: 1.5; color: var(--muted); }
:is([data-state="plan-pressed"], [data-state="plan-3"]) .panel { display: block; }
.panel p { margin: 0; }
.panel .phd { margin: 0 -16px; padding: 12px 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ink); }
.panel .stops { margin-top: 18px; }
.stop { position: relative; padding: 0 0 18px 26px; }
.stop::before { content: ""; position: absolute; z-index: 1; left: 4px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.stop.past::after { content: ""; position: absolute; left: 8.75px; top: 15px; bottom: -6px; width: 1.5px; background: var(--ink); }
.stop.now { padding-bottom: 0; }
.stop.now::before { left: 3px; top: 4px; width: 13px; height: 13px; border: 2.5px solid var(--ink); background: var(--panel); }
.stop.now > b { font-weight: 600; color: var(--ink-strong); }
.stop.working p { margin-top: 4px; color: var(--ink); line-height: 1.55; }
.panel .outcome { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink-strong); }
/* Nothing runs on under the last stop's mark, so the delivery stands at the marks' own left edge. */
.panel .delivery { margin-left: -23px; }
.panel .says { margin-top: 8px; line-height: 1.55; color: var(--ink); }
.panel .foldrow { margin-top: 8px; display: flex; gap: 6px; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.panel .foldrow i { font-style: normal; color: var(--faint); }
.panel .plus { color: var(--green); } .panel .minus { color: var(--red); }
.panel .goes { margin-top: 14px; }
.panel .acts { margin-top: 12px; display: flex; align-items: center; gap: 14px; font-weight: 500; color: var(--ink); }
/* One filled shape at each step: none, then Build, then this. */
.panel .accept { padding: 7px 13px; border-radius: 4px; background: var(--whisper); color: var(--paper); font-weight: 600; line-height: 1.4; }
