/* Spring Shop: the clockmakers' oscillator bench (workshop wall, shelf of clocks, wooden bench). Scene by art.js;
   colors from the --ss-* properties below (light and dark). Keeps Codex's .core-* hooks (e2e and read/restore). */
html {
  --ss-wall1: #f3ece0; --ss-wall2: #e4d8c4; --ss-trim: #b08a5a; --ss-wood1: #a77b56; --ss-wood2: #74512f; --ss-grain: #5d3f22;
  --ss-line: #2b2016; --ss-ink: #1d2a33; --ss-eq: #2d6f8c; --ss-spring: #4a5866; --ss-paper: #fffdf7; --ss-gridline: #d9cdb6;
  --ss-data: #e0a526; --ss-mine: #2459a6; --ss-ok: #12704a; --ss-bad: #b3261e; --ss-arrow: #c2410c; --ss-arrow2: #7c3aed;
  --ss-c0: #1d2a33; --ss-c1: #2459a6; --ss-c2: #c2410c; --ss-kin: #2a7f62; --ss-pot: #b9770e;
  --ss-panel1: #fbf7ef; --ss-panel2: #f1e8d8; --ss-accent: #245e76; --ss-ticket: #fff8e1; --ss-ticket-line: #e6d3a3;
}
html[data-theme="dark"] {
  --ss-wall1: #2a241d; --ss-wall2: #1f1a15; --ss-trim: #6e5539; --ss-wood1: #5e4330; --ss-wood2: #3e2c1f; --ss-grain: #24180e;
  --ss-line: #0b0806; --ss-ink: #ece4d6; --ss-eq: #7cc4e8; --ss-spring: #b9c4cd; --ss-paper: #1b1f23; --ss-gridline: #3a3f45;
  --ss-data: #f2c14e; --ss-mine: #8fb8ff; --ss-ok: #4fd08c; --ss-bad: #ff8a80; --ss-arrow: #ff9a5a; --ss-arrow2: #c4a5ff;
  --ss-c0: #ece4d6; --ss-c1: #8fb8ff; --ss-c2: #ff9a5a; --ss-kin: #5fd3a5; --ss-pot: #f2b84b;
  --ss-panel1: #1f2328; --ss-panel2: #181b1f; --ss-accent: #7cc4e8; --ss-ticket: #2a261c; --ss-ticket-line: #4d4430;
}
.core.ss { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 12px; padding: 10px;
  color: var(--tlg-text, var(--ss-ink)); font-size: 16px; box-sizing: border-box; overflow: hidden; }
.ss *, .ss *::before, .ss *::after { box-sizing: border-box; }
.ss input, .ss select, .ss button { font: inherit; font-size: 16px; }

/* bench (scene) */
.ss-bench { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; overflow: auto; padding: 10px 12px;
  background: linear-gradient(var(--ss-panel1), var(--ss-panel2)); color: var(--ss-ink); border: 3px solid var(--ss-trim); border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.16); }
.ss-bench-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss-kicker { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-accent); }
.ss-model-tag { margin-left: auto; padding: 2px 10px; border-radius: 999px; border: 1px dashed var(--ss-trim); font-size: 16px; font-weight: 700; }
.ss-scene { flex: none; overflow-x: auto; overflow-y: hidden; border-radius: 12px; border: 2px solid var(--ss-line); background: var(--ss-wall2); }
.ss-scene:focus-visible { outline: 3px solid #dd9823; outline-offset: 3px; }
.ss-scene svg { display: block; width: 100%; min-width: 460px; height: auto; }
.ss-scene svg .ss-t { font-size: 24px; font-weight: 600; fill: var(--ss-ink); font-family: inherit; }
.ss-scene svg .ss-t-sm { font-size: 22px; font-weight: 600; }
.ss-scene svg .ss-t-strong { font-size: 26px; font-weight: 800; }
.ss-scene svg .ss-t-obs { font-size: 24px; font-weight: 800; fill: var(--ss-mine); }
.ss-scene svg .ss-t-ok { fill: var(--ss-ok); }
.ss-obs { margin: 0; min-height: 3em; line-height: 1.45; font-weight: 600; }
.ss-about summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }
.ss-about p { margin: 0 0 8px; line-height: 1.5; }

/* panel */
.ss-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow: auto; padding: 10px 14px;
  background: linear-gradient(var(--ss-panel1), var(--ss-panel2)); color: var(--ss-ink); border: 3px solid var(--ss-accent); border-radius: 14px; box-shadow: 0 3px 8px rgba(0,0,0,.16); }
.ss-ticket { position: relative; padding: 10px 14px 8px 18px; background: var(--ss-ticket); border: 1px solid var(--ss-ticket-line); border-radius: 6px;
  background-image: repeating-linear-gradient(transparent 0 27px, var(--ss-ticket-line) 27px 28px); box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.ss-ticket::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; border-left: 2px dotted var(--ss-trim); }
.ss-ticket-h { margin: 0 0 4px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-accent); }
.ss-ticket-line { margin: 0 0 6px; line-height: 1.45; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ss-step { display: grid; gap: 8px; padding: 8px 0 4px; border-top: 1px solid var(--ss-ticket-line); }
.ss-step-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.ss-n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ss-accent); color: #fff; font-size: 16px; font-weight: 800; }
html[data-theme="dark"] .ss-n { color: #0d1d27; }
.ss-mark { margin-left: auto; font-weight: 800; font-size: 20px; }
.ss-mark.is-ok { color: var(--ss-ok); } .ss-mark.is-bad { color: var(--ss-bad); }
.ss-note { margin: -4px 0 0; font-size: 16px; opacity: .8; }
.ss-step.is-sealed .ss-note { opacity: 1; font-weight: 700; }
.ss-step.is-sealed .ss-note::before { content: "🔒 "; }
.ss-field { display: grid; gap: 4px; margin: 0; font-weight: 600; }
.ss-flabel { line-height: 1.3; }
.ss-dual { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; align-items: center; }
.ss-field input[type=number], .ss-field select { min-height: 44px; width: 100%; max-width: 100%; padding: 8px 10px; border-radius: 8px; border: 2px solid var(--ss-trim);
  background: var(--ss-paper); color: var(--ss-ink); font-variant-numeric: tabular-nums; }
.ss-range { width: 100%; min-height: 44px; accent-color: var(--ss-accent); background: transparent; }
.ss-field :disabled { opacity: .7; cursor: not-allowed; }
.ss-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss button { min-height: 48px; border-radius: 10px; font-weight: 800; padding: 8px 12px; cursor: pointer; }
.ss-run { background: var(--ss-accent); color: #fff; border: 2px solid var(--ss-accent); }
html[data-theme="dark"] .ss-run { color: #0d1d27; }
.ss-revise { background: transparent; color: var(--ss-ink); border: 2px solid var(--ss-trim); }
.ss button:disabled { opacity: .5; cursor: not-allowed; }
.ss :focus-visible { outline: 3px solid #dd9823; outline-offset: 3px; }
.ss-status { margin: 0; line-height: 1.4; }
.core.ss.is-tested .ss-status { font-weight: 700; }

/* shell text the core requested at 16 px (shell request 2026-10-21) */
body[data-activity="spring-shop"] .ps-kicker, body[data-activity="spring-shop"] .ps-hint-note, body[data-activity="spring-shop"] .ps-badge { font-size: 16px; }

@media (max-width: 900px) {
  .core.ss { position: static; height: auto; grid-template-columns: 1fr; padding: 8px; overflow: visible; }
  .ss-bench, .ss-panel { overflow: visible; }
  .ss-panel { padding-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ss * { animation: none !important; transition: none !important; } }
