/* The Showcase page. Page-only styles; colours come from styles.css's own variables. */
/* the head: two monitors on a desk, the pal sitting on it */
.pa-sc .pal{left:calc(50% - 26px);top:calc(196px - var(--s) * .94)}

/* the demo buttons: the open one green, the others grey until hovered (as on the Data page) */
.sc-tabs{display:flex;flex-wrap:wrap;gap:14px;margin-top:22px}
.sc-tabs[hidden]{display:none}
.sc-tab[aria-selected="true"]{cursor:default}
.sc-tab[aria-selected="false"]:not(:hover){background:var(--panel);border-color:var(--bd2);color:var(--mut);
  box-shadow:0 calc(4px - var(--lift)) 0 -1px #0b0b0e,0 calc(4px - var(--lift)) 0 0 var(--bd2)}

/* the prompt, in the app's composer */
#sc-panel[hidden]{display:none}
.sc-prompt{margin-top:70px;border:1px solid var(--bd2);border-radius:14px;background:var(--sunk);padding:16px 18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;box-shadow:0 5px 0 -1px #0b0b0e,0 5px 0 0 var(--bd2)}
.sc-prompt p{margin:0;color:var(--txt);font:500 16px/1.5 var(--sans);overflow-wrap:anywhere}
.sc-prompt .lbl{display:block;margin-bottom:6px;color:var(--mut2);font:700 11px/1 var(--mono);letter-spacing:.12em}
.sc-go{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent);color:var(--on-accent)}
.sc-go svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* the cards: one run each */
.sc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;margin-top:34px}
.sc-card{border:1px solid var(--bd2);border-radius:18px;background:var(--panel);padding:14px;box-shadow:0 6px 0 -1px #0b0b0e,0 6px 0 0 var(--bd2);min-width:0}

/* the live output: a monitor, blank for now, with a pal napping in it */
.sc-screen{position:relative;aspect-ratio:16/10;border-radius:12px;border:1px solid var(--bd3);background:#000;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding-top:26px}
.sc-bar{position:absolute;left:0;right:0;top:0;height:26px;display:flex;align-items:center;gap:8px;padding:0 10px;border-bottom:1px solid var(--bd);background:var(--sunk);font:700 10.5px/1 var(--mono);letter-spacing:.1em;color:var(--mut2)}
.sc-bar b{color:var(--accent);font-weight:700}
.sc-bar .sp{flex:1}
.sc-bar > *{white-space:nowrap}
.sc-idle{position:relative;width:44px;height:44px}
.sc-idle[hidden],.sc-play[hidden],.sc-tools[hidden]{display:none}
/* a card with an output: Play under the pal; once live, the output fills the monitor below the bar */
.sc-play{height:40px;padding:0 18px;font-size:15px}
.sc-play .ic{width:16px;height:16px}
.sc-frame{position:absolute;left:0;right:0;bottom:0;top:26px;width:100%;height:calc(100% - 26px);border:0;background:#000}
.sc-screen.live .sc-state{color:var(--accent)}
.sc-tools{display:flex;gap:6px;margin-left:4px}
.sc-tool{height:19px;padding:0 7px;border:1px solid var(--bd3);border-radius:5px;background:var(--panel);color:var(--txt2);font:700 9.5px/1 var(--mono);letter-spacing:.1em;cursor:pointer}
.sc-tool:hover{border-color:var(--accent);color:var(--accent-hi)}

/* hardware, model and quant */
.sc-chin{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 4px 2px}
.sc-hw{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--txt2);font:700 13px/1.2 var(--sans);overflow-wrap:anywhere}
.sc-hw svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sc-led{flex:none;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.sc-name{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 4px 0}
.sc-name h3{margin:0;min-width:0;font:800 21px/1.1 var(--display);color:var(--brand);overflow-wrap:anywhere}
.sc-q{height:24px;padding:0 9px;display:inline-flex;align-items:center;border-radius:7px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent);font:700 11.5px/1 var(--mono)}

/* the result: the Pump cockpit's rings */
.sc-rings{display:flex;gap:18px;margin:14px 4px 0;padding:14px;border:1px solid var(--bd);border-radius:12px;background:var(--sunk)}
.sc-ring{display:grid;justify-items:center;gap:5px;flex:1;min-width:0}
.sc-ring svg{width:46px;height:46px}
.sc-ring .t{stroke:var(--bd2);fill:none;stroke-width:4}
.sc-ring .v{stroke:var(--accent);fill:none;stroke-width:4;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}
.sc-ring b{font:700 14px/1 var(--mono);color:var(--txt);white-space:nowrap}
.sc-ring span{font:700 9.5px/1 var(--mono);letter-spacing:.12em;color:var(--mut2)}

/* the fields: small boxes, label and value on one line */
.sc-specs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 4px 4px}
.sc-spec{display:inline-flex;align-items:baseline;gap:7px;max-width:100%;min-height:26px;padding:0 9px;border:1px solid var(--bd2);border-radius:7px;background:var(--panel2)}
.sc-spec span{flex:none;font:700 9.5px/26px var(--mono);letter-spacing:.1em;color:var(--mut2)}
.sc-spec b{min-width:0;font:700 12px/26px var(--mono);color:var(--txt);overflow-wrap:anywhere}

/* no demos: the pal naps and says so */
.sc-none{position:relative;margin-top:56px}
.sc-none[hidden]{display:none}
/* behind it, two empty demo cards in grey, in the shape of the real ones (one on phones) */
.sc-ghosts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.sc-ghost{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px dashed var(--g6);border-radius:18px;background:rgba(255,255,255,.012)}
.sc-gh{display:block;width:38%;height:14px;border-radius:4px;background:var(--g3)}
.sc-gf{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sc-gf i{height:30px;border:1px solid var(--bd);border-radius:7px;background:var(--g2)}
.sc-gout{height:210px;border:1px solid var(--bd);border-radius:10px;background:repeating-linear-gradient(135deg,var(--bg) 0 9px,var(--g2) 9px 10px)}
.sc-nap{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 30px;border:1px solid var(--bd2);border-radius:16px;background:var(--bg)}
@media (max-width:760px){.sc-ghosts{grid-template-columns:minmax(0,1fr)}.sc-ghost + .sc-ghost{display:none}}
.sc-none .pal{position:relative;--s:58px}
.sc-none p{color:var(--mut);font-weight:600}

@media (max-width:900px){.sc-grid{grid-template-columns:minmax(0,1fr)}}
/* narrow cards: once live, the bar keeps the state and the two keys, and drops its label */
@media (max-width:420px){.sc-screen.live .sc-lbl{display:none}}
@media (max-width:640px){.pa-sc .pal{left:calc(50% - 21px);top:calc(157px - var(--s) * .94)}}
@media (max-width:520px){.sc-rings{gap:8px;padding:12px 8px}.sc-prompt p{font-size:15px}.sc-tab{height:44px;padding:0 16px;font-size:15px}}
