.studio-page { background: var(--ground); font-family: "Manrope", system-ui, sans-serif; }
.studio-page main { max-width: 1100px; }
.studio-intro { padding: 48px 0 24px; }
.studio-page h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.15; }
.studio-page h2 { margin-top: 0; font-size: 24px; }
.studio-page summary { min-height: 48px; padding-block: 8px; cursor: pointer; font-size: 20px; font-weight: 700; }
.studio-page p { line-height: 1.7; }
.studio-page a { color: var(--green); }
.panel { margin: 24px 0; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.notice { padding: 16px; border-left: 3px solid var(--green); background: #17241c; }
.hint, #graph-summary { color: var(--muted); font-size: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0; }
.studio-page .graph-view-controls > button { flex: 0 1 auto; }
#zoom-level { min-width: 50px; text-align: center; font-variant-numeric: tabular-nums; }
.studio-page button { min-height: 48px; line-height: 1.4; padding: 12px 16px; }
.studio-page input, .studio-page select, .studio-page textarea { width: 100%; max-width: 100%; min-height: 48px; border: 1px solid #617366; border-radius: 4px; padding: 10px; color: var(--ink); background: var(--ground); font: inherit; }
.studio-page input[type="file"] { width: min(100%, 350px); height: auto; flex: 0 1 350px; }
.studio-page label { display: block; line-height: 1.6; margin: 0; }
.studio-page input[type="checkbox"] { flex: none; width: 26px; height: 26px; min-height: 26px; accent-color: var(--green); }
.check { display: flex !important; align-items: center; gap: 12px; min-height: 48px; }
.studio-page input[type="range"] { padding: 0; accent-color: var(--green); }
.custom-controls, .point-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin: 24px 0; align-items: end; }
.custom-controls output { display: block; font-variant-numeric: tabular-nums; }
.studio-page textarea { resize: vertical; font: 13px/1.7 "DM Mono", monospace; }
.studio-page pre { max-width: 100%; overflow-x: auto; padding: 16px; background: var(--ground); font-size: 13px; line-height: 1.7; }
.studio-page :focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
#error { padding: 16px; color: #ffb5a9; border: 1px solid #ffb5a9; overflow-wrap: anywhere; }
#path-graph { display: block; width: min(100%, 600px); aspect-ratio: 1; margin: 24px auto; border: 1px solid #617366; border-radius: 4px; cursor: crosshair; background: #0b100e; touch-action: none; user-select: none; }
.grid-line { fill: none; stroke: #263c2f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.axes { fill: none; stroke: #607a69; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.path-line { stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pen-up { stroke: #d9c77b; stroke-dasharray: 3 2; }
.path-point { cursor: grab; }
.vertex-hit { fill: transparent; stroke: transparent; stroke-width: 26px; vector-effect: non-scaling-stroke; pointer-events: all; }
.vertex { fill: #0b100e; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.vertex.selected { fill: var(--green); stroke: white; stroke-width: 2.5; }
#path-graph.dragging, #path-graph.dragging .path-point, #path-graph.panning, #path-graph.panning .path-point { cursor: grabbing; }
#playhead { fill: white; stroke: #0b100e; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 12px; background: var(--ground); z-index: 1; }
.skip-link:focus { top: 16px; }
@media (max-width: 600px) {
  .panel { padding: 16px; }
  .studio-page main { width: calc(100% - 28px); }
  .toolbar > button { flex: 1 1 180px; }
  .point-editor, .custom-controls { grid-template-columns: 1fr; }
  .studio-intro { padding-top: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .studio-page button { transition: none; }
}
