/* Five-step Watch & Poke studio. Paper #FAF8F4 comes from styles.css :root. */
body { background: #FAF8F4; }
.studio [hidden], .studio[hidden], #lesson-room[hidden] { display: none; }
.studio { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; overflow-wrap: anywhere; }
.studio-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.studio-brand { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.studio-top small { color: var(--quiet); }
.studio h1 { font-size: clamp(26px, 6vw, 38px); margin: 22px 0 8px; line-height: 1.15; }
.studio-lede { font-size: 17px; line-height: 1.5; margin: 0 0 16px; }
.studio-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.studio-tabs button { font: inherit; font-size: 15px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer; }
.studio-tabs button[aria-current="step"] { background: var(--green); border-color: var(--green); color: #fff; }
.studio-panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.part-number { margin: 0; color: var(--quiet); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.studio-panel h2 { margin: 4px 0 8px; font-size: 24px; }
.step-intro { font-size: 17px; line-height: 1.55; margin: 0 0 12px; }
.studio code { font-family: var(--mono); background: var(--mint); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.studio-figure { margin: 0 0 12px; }
.studio-figure svg { display: block; width: 100%; height: auto; max-height: 300px; background: #FAF8F4; border: 1px solid var(--line); border-radius: 6px; }
.studio-figure figcaption { font-size: 14px; color: var(--quiet); margin-top: 6px; line-height: 1.4; }
.control { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; margin: 0 0 12px; font-size: 16px; }
.control input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--green); }
.control output { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.control.toggle { grid-template-columns: auto 1fr; }
.control.toggle input { width: 20px; height: 20px; accent-color: var(--green); }
.predict-card { background: #FAF8F4; border-radius: 6px; padding: 12px; margin: 0 0 12px; }
.predict-card h3 { font-family: var(--sans); font-weight: 650; font-size: 16px; line-height: 1.4; margin: 0 0 8px; }
.choices { display: grid; gap: 8px; margin-top: 6px; }
.choices label { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 1.4; cursor: pointer; }
.choices input { margin-top: 4px; accent-color: var(--green); }
.run { font: inherit; font-size: 17px; font-weight: 650; padding: 10px 18px; border: 0; border-radius: 6px; background: var(--green); color: #fff; cursor: pointer; }
.run:focus-visible, .studio-tabs button:focus-visible { outline: 3px solid #b0772c; outline-offset: 2px; }
.need { color: #8a2c1f; min-height: 1.2em; margin: 8px 0 0; }
.outcome { margin-top: 12px; padding: 12px; border-radius: 6px; background: var(--mint); line-height: 1.5; }
.outcome p { margin: 0 0 8px; }
.verdict { font-weight: 700; }
.verdict.failed { color: #8a2c1f; }
.verdict.held { color: var(--green); }
.observed { font-family: var(--mono); font-size: 14.5px; }
.history { margin: 16px 0; }
.history summary { cursor: pointer; font-weight: 600; }
.studio-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 12px 0; font-size: 16px; }
.studio-links a, .studio-return a { color: var(--green); }
.studio-return { margin: 0; padding: 8px 16px; font-size: 15px; }
/* Picture parts */
.svg-label { font-size: 15px; fill: #1C1917; font-family: var(--sans); }
.svg-small { font-size: 15px; fill: #1C1917; font-family: var(--sans); }
.svg-value { font-size: 26px; fill: #1C1917; font-family: var(--mono); font-weight: 700; }
.drive { stroke: #1C1917; stroke-width: 1; }
.drive.copy { fill: #d9c9a8; }
.drive.data { fill: #e4ece1; }
.drive.check { fill: #f2d7b8; }
.drive.dead { fill: #ffffff; stroke-dasharray: 5 4; }
.drive.used { stroke-width: 4; stroke: #215749; }
.axis { stroke: #a8a99c; stroke-width: 1; }
.curve { fill: none; stroke: #215749; stroke-width: 3; }
.curve.rival { stroke: #b0772c; stroke-dasharray: 7 6; }
.dot { stroke: #1C1917; stroke-width: 2; }
.dot.data { fill: #215749; }
.dot.check { fill: #b0772c; }
.dot.lost { fill: #ffffff; stroke-dasharray: 3 3; }
.wheel { fill: none; stroke: #a8a99c; stroke-width: 10; }
.mark.start { fill: #215749; }
.mark.answer { fill: #b0772c; }
.bar.over { fill: #f2d7b8; stroke: #1C1917; }
.svg-small.warn { fill: #8a2c1f; font-weight: 700; }
.limit { stroke: #8a2c1f; stroke-width: 2; }
.origin { stroke: #1C1917; stroke-width: 2.5; }
a.studio-brand { color: var(--ink); text-decoration: none; }
.studio-source { margin: 12px 0; font-size: 15px; color: var(--quiet); }
.studio-source summary { cursor: pointer; }
.studio-source pre { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 13px; }
.studio-source a { color: var(--green); }
