/* Sound Studio: the session sheet and the controls on the left, the control room (live-room window, display, monitors,
 * console) on the right, inside the practice shell's stage. */
.ss { position: absolute; inset: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 12px; padding: 8px 12px; }
.ss-panel { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }

.ss-sheet { padding: 8px 14px 10px; border-radius: var(--tlg-radius-lg, 14px); border: 2px solid #9ec3cf; background: #f2f9fb; color: #10262e; box-shadow: inset 0 0 0 4px #fbfeff; }
.ss-sheet-k { margin: 0 0 4px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: var(--tlg-tracking-caps, .08em); color: #245c70; }
.ss-sheet-g { margin: 4px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
html[data-theme="dark"] .ss-sheet { background: #13262d; color: #e3f2f6; border-color: #3d6a78; box-shadow: inset 0 0 0 4px #182e36; }
html[data-theme="dark"] .ss-sheet-k { color: #8fd6ea; }

.ss-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.ss-field legend { padding: 0; margin: 0 0 6px; font-size: 16px; font-weight: 800; color: var(--tlg-text, #172c38); }
.ss-cards { display: grid; gap: 8px; }
.ss-cards--2 { grid-template-columns: 1fr 1fr; }
.ss-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 12px; font: inherit; font-size: 17px; font-weight: 800; text-align: left; cursor: pointer;
  border-radius: 12px; color: var(--tlg-text, #172c38); background: var(--tlg-surface, #fff); border: 2px solid var(--tlg-border, #a5b6c1); box-shadow: 0 2px 0 rgba(0, 0, 0, .1); touch-action: manipulation; }
.ss-cards--2 .ss-card { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 92px; }
.ss-card svg { flex: none; width: 52px; height: 32px; }
.ss-card:hover:not(:disabled) { border-color: #245c70; }
.ss-card[aria-pressed="true"] { border-color: #245c70; border-width: 3px; background: #e3f4f8; box-shadow: inset 0 0 0 2px #b8e2ec; }
.ss-card[aria-pressed="true"] span::after { content: ' ✓'; color: #245c70; }
html[data-theme="dark"] .ss-card[aria-pressed="true"] { background: #173540; box-shadow: inset 0 0 0 2px #2a5a68; }
html[data-theme="dark"] .ss-card[aria-pressed="true"] span::after { color: #8fd6ea; }

/* console faders + LCDs */
.ss-faderrow { display: flex; align-items: center; gap: 8px; }
.ss-fader { flex: 1; min-width: 0; height: 44px; accent-color: #245c70; cursor: pointer; touch-action: none; }
.ss-step { flex: none; width: 46px; height: 46px; font: inherit; font-size: 24px; font-weight: 900; line-height: 1; border-radius: 10px; cursor: pointer;
  color: #e9f6f9; background: linear-gradient(#3a414a, #1e2227); border: 2px solid #0b0c0e; box-shadow: 0 2px 0 rgba(0, 0, 0, .3); touch-action: manipulation; }
.ss-step:hover:not(:disabled) { background: linear-gradient(#4a525c, #262b31); }
.ss-scale { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; color: var(--tlg-text-muted, #4b5d68); margin-top: 4px; }
.ss-lcdrow { display: flex; align-items: center; gap: 8px; }
.ss-lcd { width: 140px; height: 50px; font: inherit; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; text-align: right; padding: 0 10px; border-radius: 8px;
  border: 2px solid #0b0c0e; background: #0c1f22; color: #9dffe3; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.ss-lcd::placeholder { color: #4f7d74; }
.ss-lcd::-webkit-outer-spin-button, .ss-lcd::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ss-lcd:focus { border-color: #39e6c8; }
.ss-field--fader .ss-lcd { width: 110px; height: 44px; font-size: 22px; }
.ss-unit { font-size: 20px; font-weight: 800; }

.ss-listen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ss-play { min-height: 44px; padding: 6px 12px; font: inherit; font-size: 16px; font-weight: 800; border-radius: 22px; cursor: pointer; color: #fff; background: #245c70; border: 2px solid #163c4a; touch-action: manipulation; }
.ss-play:hover { background: #2d7189; }
.ss-listen-note { font-size: 16px; color: var(--tlg-text-muted, #4b5d68); }

.ss :focus-visible { outline: 3px solid #b16a08; outline-offset: 2px; }
.ss button:disabled, .ss input:disabled { cursor: default; }
.ss.is-locked .ss-card:not([aria-pressed="true"]) { opacity: .7; }
.ss-msg { margin: 0; min-height: 1.2em; font-size: 16px; font-weight: 700; color: var(--tlg-danger, #b42318); }
html[data-theme="dark"] .ss-msg { color: #ffb4a8; }
.ss-about { font-size: 16px; line-height: 1.4; }
.ss-about summary { cursor: pointer; font-weight: 700; }
.ss-about p { margin: 4px 0 0; }

/* the room */
.ss-view { position: relative; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.ss-scene { position: relative; width: 100%; aspect-ratio: 720 / 620; border-radius: var(--tlg-radius-lg, 14px); overflow: hidden; border: var(--tlg-border-width, 1px) solid var(--tlg-border, #a5b6c1); user-select: none; -webkit-user-select: none; }
.ss-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ss-wall { fill: url(#ss-g-wall); }
html[data-theme="dark"] .ss-wall { fill: url(#ss-g-wall-d); }
.ss-foam { fill: url(#ss-g-foam); opacity: .55; }
.ss-t { font-family: var(--tlg-font-body, system-ui, sans-serif); fill: #1d2b33; }
.ss-t-plaque { font-size: 21px; font-weight: 800; fill: #e8dcff; letter-spacing: .06em; }
.ss-t-onair { font-size: 17px; font-weight: 900; fill: #8a4a4a; letter-spacing: .1em; }
.ss-t-screen { font-size: 17px; font-weight: 700; fill: #c8f5ea; }
.ss-t-dim { fill: #8fc9bb; font-weight: 600; }
.ss-t-target { fill: #ffc53d; } .ss-t-you { fill: #39e6c8; } .ss-t-after { fill: #7dff8a; }
.ss-t-band { font-size: 18px; font-weight: 900; fill: #eafff2; letter-spacing: .06em; }
.ss-t-lcd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; font-weight: 700; fill: #9dffe3; }
.ss-t-lcd--sm { font-size: 20px; }
.ss-t-lcd.is-on { fill: #ffe27a; }
.ss-t-vu { font-size: 18px; font-weight: 900; fill: #3a2f1c; }
.ss-t-tiny { font-size: 16px; font-weight: 700; fill: #e9f6f9; }
.ss-t-node { font-size: 18px; font-weight: 900; fill: #2a1640; }
.ss-t-anti { font-size: 18px; font-weight: 900; fill: #11806c; }
.ss-grid path { stroke: #1f4a44; stroke-width: 1; }
.ss-grid path.ss-axis { stroke: #3f8a7d; stroke-width: 2; }
.ss-target { fill: none; stroke: #ffb000; stroke-width: 4; stroke-dasharray: 10 7; stroke-linecap: round; }
.ss-you { fill: none; stroke: #39e6c8; stroke-width: 3.5; stroke-linejoin: round; }
.ss-after { fill: none; stroke: #7dff8a; stroke-width: 4; stroke-dasharray: 4 6; stroke-linecap: round; }
.ss-cell { fill: #10292b; stroke: #2f6b62; stroke-width: 2; }
.ss-cell.is-unknown { stroke: #ffb000; stroke-dasharray: 6 4; }
.ss-pill rect { fill: rgba(255, 255, 255, .94); stroke: #1d2b33; stroke-width: 1.5; }
.ss-pill text { font-family: var(--tlg-font-body, system-ui, sans-serif); font-size: 17px; font-weight: 800; fill: #1d2b33; }
.ss-pill--you rect { fill: #0c2f2b; stroke: #39e6c8; } .ss-pill--you text { fill: #c8fff2; }
.ss-pill--target rect { fill: #3a2a05; stroke: #ffb000; } .ss-pill--target text { fill: #ffe7a8; }
.ss-pill--scan rect { fill: #2a1640; stroke: #ffb000; stroke-width: 2; } .ss-pill--scan text { fill: #fff; }
.ss-pill--tag rect { fill: #ffb000; stroke: #2a1640; } .ss-pill--tag text { fill: #2a1640; }
.ss-pill--name rect { fill: #24354a; stroke: #0b1119; } .ss-pill--name text { fill: #f6e7b8; }
.ss-pill--ruler rect { fill: #fff8de; stroke: #8a6a2a; }

/* motion: sweep on the scope, speakers + ON AIR while a tone plays, the string vibrating, reveal fade-ins */
.ss-sweep { animation: ss-sweep 2.4s linear infinite; }
@keyframes ss-sweep { from { transform: translateX(0); } to { transform: translateX(430px); } }
.ss.is-playing .ss-woofer { animation: ss-pump .12s ease-in-out infinite alternate; }
@keyframes ss-pump { from { transform: scale(.94); } to { transform: scale(1.05); } }
.ss.is-playing .ss-onair rect { fill: #c8221a; }
.ss.is-playing .ss-t-onair { fill: #fff; }
.ss-vibe { animation: ss-vibe .5s ease-in-out infinite alternate; }
@keyframes ss-vibe { from { transform: scaleY(1); } to { transform: scaleY(-1); } }
.ss-reveal, .ss-bands { animation: ss-in .6s ease-out both; }
.ss-needle { transition: transform .4s; }
.ss-blink { animation: ss-in 1s ease-in-out infinite alternate; }
@keyframes ss-in { from { opacity: 0; } to { opacity: 1; } }

.ss-badge { position: absolute; left: 2%; right: 2%; top: 1.2%; padding: 7px 12px; border-radius: 10px; font-size: 17px; font-weight: 700; line-height: 1.3; pointer-events: none;
  background: rgba(255, 255, 255, .97); color: #10202c; border: 3px solid #1d6b40; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); animation: ss-pop .25s ease-out; }
.ss-badge.is-bad { border-color: #b42318; }
@keyframes ss-pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.ss-example-svg { display: block; width: 100%; height: auto; max-height: 460px; border-radius: 10px; }
.ss-start-svg { display: block; width: 100%; height: 100%; }

.ss-static *, .ss-static { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .ss *, .ss-badge, .ss-start-svg *, .ss-example-svg * { animation: none !important; transition: none !important; }
}
@media (max-width: 1100px) { .ss { grid-template-columns: 300px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .ss { position: static; grid-template-columns: 1fr; }
  .ss-panel { overflow: visible; }
  .ss-view { display: block; order: -1; }
  .ss-scene { width: 100% !important; }
}
