/* Physical rack furniture surrounds flat, usable displays and native controls. */
body[data-tool] { background: radial-gradient(ellipse at 50% 0, #393b35 0, #1c2020 44%, #101314 85%); }
.tool-shell { --accent:#E8532A; max-width: 1480px; margin: 0 auto; padding: 0 26px 36px; color: #e8ece3; }
.tool-shell [hidden] { display: none !important; }
.tool-shell *, .tool-shell *::before, .tool-shell *::after { box-sizing: border-box; }
.tool-shell .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-variant-numeric: tabular-nums; }
.tool-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 0 8px; }
.tool-topbar nav { display: flex; align-items: center; gap: 24px; }
.tool-topbar a { color: #e5e9df; font-size: 12px; text-decoration: none; }
.tool-topbar nav a:hover { color: #c6eea4; }
.tool-topbar .brand { font-size: 26px; font-weight: 750; letter-spacing: -1.2px; }
.brand-sub { font-size: 9px; font-weight: 600; color: #acb4aa; letter-spacing: 2px; margin-left: 12px; }
.tool-rack { position: relative; padding: 0 29px 24px; border: 1px solid #090a09; border-left: 10px solid #37332d; border-right: 10px solid #37332d; border-radius: 7px; background: linear-gradient(90deg, #1a1e1f, #242929 3%, #1b2020 97%, #101414); box-shadow: 0 18px 50px #0006, inset 1px 0 #756a5340, inset -1px 0 #756a5340, 0 1px 0 #5c6155; }
.tool-rack::before, .tool-rack::after { content: ''; position: absolute; top: 14px; bottom: 14px; width: 12px; border: 1px solid #070909; border-radius: 2px; background: radial-gradient(ellipse at center, #060808 0 28%, #3d4443 31% 40%, transparent 45%) 0 0 / 10px 27px repeat-y, linear-gradient(90deg, #3b4142, #202526); box-shadow: inset 1px 0 #60686844; pointer-events: none; }
.tool-rack::before { left: 5px; }
.tool-rack::after { right: 5px; }
.tool-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 27px 6px 24px; }
.rack-engraving { font-size: 8px; font-weight: 750; letter-spacing: 1.65px; line-height: 1.5; color: #aeb8ae; text-transform: uppercase; }
.tool-heading h1 { margin: 7px 0 8px; font-size: clamp(27px, 3vw, 38px); font-weight: 600; letter-spacing: -1.1px; }
.tool-heading p { margin: 0; color: #b2bcb1; font-size: 12px; line-height: 1.6; max-width: 540px; }
.tool-connection { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: end; max-width: 370px; }
.connection-copy { display: flex; align-items: center; min-width: 148px; min-height: 39px; padding: 10px 12px; border: 2px solid #151a17; border-radius: 4px; box-shadow: 0 1px #50584d, inset 0 2px 5px #0009; background: #0e1510; color: #b6c8ae; font-family: ui-monospace, monospace; font-size: 11px; }
.tool-state-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #3a463c; box-shadow: inset 0 1px 2px #000a; margin-right: 8px; }
.tool-state-dot.connected { background: #8fe9a3; box-shadow: 0 0 9px #6fdb8a99, 0 0 2px #caffd9; }
.tool-state-dot.disconnected, .tool-state-dot.standalone { background: #445047; box-shadow: inset 0 1px 2px #000a; }
.tool-state-dot.connecting { background: #d7bf73; box-shadow: 0 0 5px #ddc77866; }
.tool-shell label.field { display: flex; flex-direction: column; gap: 7px; font-size: 10px; font-weight: 650; color: #c1c9bb; }
.tool-shell input, .tool-shell select { min-height: 38px; border: 1px solid #0c100c; border-radius: 3px; background: #101811; color: #d6eac7; font: inherit; padding: 8px 10px; box-shadow: inset 0 2px 5px #0008, 0 1px #e3ead322; }
.tool-shell select { padding-right: 24px; }
.tool-shell input[type=range] { width: 100%; min-width: 0; padding: 0; border: 0; min-height: 30px; background: transparent; accent-color: #607c4c; box-shadow: none; cursor: pointer; }
.tool-shell input[type=number] { width: 84px; color: #d6edbc; font-family: ui-monospace, monospace; font-size: 17px; }
.tool-shell button { font: inherit; }
.tool-shell button:focus-visible, .tool-shell a:focus-visible, .tool-shell input:focus-visible, .tool-shell select:focus-visible { outline: 2px solid #d6ffa7; outline-offset: 3px; box-shadow: 0 0 0 4px #142010; }
.tool-shell button:disabled { opacity: .48; cursor: not-allowed; }
.tool-shell .button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #101612; border-top-color: #626a60; border-radius: 4px; background: linear-gradient(#3c443c, #252d26); box-shadow: inset 0 1px #e7efdf15, 0 2px 2px #0005; color: #ecf0e5; font-size: 11px; font-weight: 650; padding: 8px 13px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tool-shell .button:hover:not(:disabled) { background: linear-gradient(#4b5546, #30392c); border-color: #93a082; }
.tool-shell .button:active:not(:disabled) { box-shadow: inset 0 2px 5px #0005; }
.tool-shell .button.primary { background: linear-gradient(#c3e99c, #90b96c); border-color: #bdd29c #718c55 #56713e; color: #1c2914; box-shadow: inset 0 1px #efffd7, 0 2px 3px #0006; }
.tool-shell .button.primary:hover:not(:disabled) { background: linear-gradient(#d2f4ad, #abd481); }
.tool-shell .button[aria-pressed=true] { background: linear-gradient(#405a2e, #263c1c); color: #d4ffa7; border-color: #7eaa57; box-shadow: inset 0 1px 5px #0006, 0 0 8px #9bc6751a; }
.tool-shell .panel { position: relative; min-width: 0; padding: 0; border: 1px solid #0c0f0d; border-radius: 4px; background: repeating-linear-gradient(0deg, #f6ffed06 0 1px, #00000004 1px 2px), linear-gradient(115deg, #b2b7aa, #d2d1c1 35%, #a7b0a2); box-shadow: 0 3px 7px #0007, inset 0 1px #edf4df66, inset 0 -1px #323a3377; }
.tool-shell .panel::before, .tool-shell .panel::after { content: ''; position: absolute; top: 13px; z-index: 1; width: 8px; height: 8px; border: 1px solid #171c18; border-radius: 50%; background: linear-gradient(45deg, transparent 42%, #1e2520 43% 55%, transparent 56%), radial-gradient(circle at 30% 25%, #aeb3a3, #555d51 55%, #1e251f); box-shadow: 0 1px #eef2df4d; pointer-events: none; }
.tool-shell .panel::before { left: 9px; }
.tool-shell .panel::after { right: 9px; }
.tool-shell .transport-panel { background: repeating-linear-gradient(0deg, #dce6d506 0 1px, #00000009 1px 2px), linear-gradient(110deg, #363e3d, #2c3432 40%, #303932); }
.tool-projectbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: 18px 26px; }
.tool-projectbar .project-name { flex: 1; min-width: 180px; }
.project-name input { font-family: ui-monospace, monospace; font-weight: 400; font-size: 12px; }
.tool-transport { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 17px 26px; border-top: 1px solid #111a14; box-shadow: inset 0 1px #89957c22; }
.transport-buttons { display: flex; gap: 7px; align-items: center; }
.clock-display { min-width: 143px; padding: 8px 13px; border: 3px solid #171e18; border-radius: 5px; background: #0e170d; box-shadow: 0 1px #747e6666, inset 0 3px 8px #000a; }
.tool-position { display: block; min-width: 105px; font-size: 21px; letter-spacing: 1px; line-height: 1.2; color: #d0eab6; text-shadow: 0 0 8px #a6cf7040; }
.transport-label { display: block; font-size: 7px; color: #9cb186; margin-bottom: 5px; letter-spacing: 1px; text-transform: uppercase; }
.transport-check { display: flex; align-items: center; gap: 7px; color: #d2d8ca; font-size: 11px; }
.transport-check input { width: 15px; height: 15px; min-height: auto; accent-color: #a4c986; box-shadow: none; }
.tool-shell .telemetry-panel { display: grid; grid-template-columns: 103px minmax(0, 1fr); align-items: center; gap: 20px; margin: 12px 0; padding: 13px 26px; }
.telemetry-engraving { color: #374033; font-weight: 750; font-size: 11px; line-height: 1.3; letter-spacing: 2px; text-shadow: 0 1px #edf0de66; }
.telemetry-engraving small { display: block; font-size: 6px; letter-spacing: 1.2px; margin-top: 8px; line-height: 1.6; }
.screen-housing { position: relative; min-width: 0; padding: 9px; border: 1px solid #0b100c; border-radius: 10px; background: linear-gradient(140deg, #454d43, #182019 45%, #333c31); box-shadow: inset 2px 2px 2px #ced9bd28, inset -2px -2px 2px #0009, 0 2px 2px #0004, 0 1px #edf4d980; }
.screen-housing::after { content: ''; position: absolute; inset: 9px; border-radius: 3px; background: linear-gradient(125deg, #eeffd509, transparent 30%); pointer-events: none; }
.telemetry-housing { padding: 6px; }
.tool-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid #060d08; border-radius: 4px; background: #10170f; box-shadow: inset 0 3px 8px #0008; overflow: hidden; }
.tool-stat { min-width: 0; padding: 12px 15px; border-right: 1px solid #35432b; }
.tool-stat:last-child { border: 0; }
.tool-stat dt { color: #a5b496; font-size: 8px; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .7px; }
.tool-stat dd { margin: 0; font-size: 15px; line-height: 1.5; color: #d5edbd; overflow-wrap: anywhere; }
.tool-notice { margin: 14px 0; color: #b7c7a6; min-height: 35px; font-family: ui-monospace, monospace; font-size: 10px; line-height: 1.6; padding: 9px 14px; border: 1px solid #10170f; border-radius: 3px; background: #131b13; box-shadow: inset 0 2px 5px #0008, 0 1px #4b58433d; }
.tool-notice.error { color: #f1cc91; border-left: 3px solid #cc9856; }
.tool-body { display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 14px; align-items: start; }
.tool-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 27px; border-bottom: 1px solid #0a0e0b; border-radius: 3px 3px 0 0; background: linear-gradient(115deg, #353d3c, #222a27); box-shadow: inset 0 1px #cbd9c226; }
.tool-panel-head h2, .tool-sidebar h2 { margin: 5px 0 5px; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.tool-panel-head p { margin: 0; font-size: 10px; color: #b0bda8; line-height: 1.5; }
.hardware-label { color: #b9c4b1; font-size: 7px; font-weight: 700; letter-spacing: 1.4px; text-align: right; white-space: nowrap; border: 1px solid #647057; padding: 5px 7px; border-radius: 2px; }
.piano-options { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 17px 23px; }
.piano-options .field { flex: 1; min-width: 110px; }
.tool-shell .piano-options .field, .tool-shell .sound-module .field { color: #37432e; }
.piano-options .note-velocity { min-width: 130px; }
.piano-monitor { margin: 0 17px 6px; }
.screen-header, .screen-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding: 8px 10px; background: #111b12; color: #b0c79b; font-family: ui-monospace, monospace; font-size: 8px; line-height: 1.5; letter-spacing: .5px; }
.screen-header { border: 1px solid #0b1309; border-bottom-color: #3e4e30; border-radius: 3px 3px 0 0; }
.screen-header p { margin: 0; font-size: 9px; }
.screen-footer { min-height: 27px; border-top: 1px solid #35482a; border-radius: 0 0 3px 3px; font-size: 7px; letter-spacing: 1px; color: #93a67d; }
.piano-scroll { overflow: auto; max-height: 650px; background: #10170f; scrollbar-color: #657854 #11180f; scrollbar-width: thin; }
.piano-grid { min-width: 854px; outline-offset: -3px; }
.piano-row, .piano-ruler { display: grid; grid-template-columns: 68px repeat(32, minmax(24px, 1fr)); }
.piano-ruler { position: sticky; top: 0; z-index: 3; background: #202c1b; height: 28px; }
.piano-ruler span { font-family: ui-monospace, monospace; font-size: 9px; line-height: 28px; color: #93a28b; text-align: center; border-right: 1px solid #33412d; }
.piano-ruler span:first-child { position: sticky; left: 0; z-index: 4; background: #263320; }
.piano-ruler span.beat-start { color: #d6e2cf; border-left: 1px solid #6a775c; }
.tool-shell .piano-key { display: block; position: sticky; left: 0; z-index: 2; border: 0; border-right: 1px solid #526147; border-bottom: 1px solid #394337; border-radius: 0; background: #bdc8ae; color: #1b271b; min-height: 25px; height: 25px; text-align: right; padding: 2px 9px; cursor: pointer; font-family: ui-monospace, monospace; font-size: 9px; }
.tool-shell .piano-key.black-key { background: #303a2c; color: #bac8b0; }
.tool-shell .piano-key:active { background: #b7e68c; color: #17210c; }
.tool-shell .note-cell { display: block; position: relative; min-width: 0; min-height: 25px; height: 25px; padding: 0; border: 0; border-right: 1px solid #293327; border-bottom: 1px solid #293327; background: #171f18; cursor: pointer; border-radius: 0; }
.tool-shell .piano-row.black-row .note-cell { background: #141a15; }
.tool-shell .note-cell.beat-start { border-left: 1px solid #48553b; }
.tool-shell .note-cell:hover { background: #34472c !important; }
.note-cell.note-on::after { content: ''; position: absolute; inset: 4px 2px 4px 1px; background: #b7e68c; border-radius: 2px; border-left: 3px solid #e2ffb6; pointer-events: none; }
.note-cell.sustain::before { content: ''; position: absolute; inset: 5px 0; background: #476331; pointer-events: none; }
.tool-shell .note-cell.playhead { box-shadow: inset 2px 0 #f1fadd; }
.tool-shell .note-cell:focus-visible { z-index: 3; outline-offset: -2px; }
.piano-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 23px 17px; align-items: center; color: #35432d; font-size: 10px; line-height: 1.6; }
.tool-sidebar { display: grid; gap: 14px; }
.tool-shell .tool-sidebar section { padding: 20px 24px; color: #293527; }
.tool-sidebar .rack-engraving { color: #57624b; font-size: 7px; }
.tool-sidebar p { color: #3d4b34; font-size: 11px; line-height: 1.75; margin: 10px 0; }
.tool-sidebar .field { margin-top: 18px; }
.tool-sidebar .button { margin-top: 12px; width: 100%; }
.tool-shell .tool-sidebar section:not(.sound-module) { background: repeating-linear-gradient(0deg, #dbe9d006 0 1px, #00000009 1px 2px), linear-gradient(120deg, #39443e, #25322a); color: #e4e9dc; }
.tool-sidebar section:not(.sound-module) p { color: #b6c4ac; }
.control-readout { float: right; color: #253b1d; background: #a0af90; padding: 1px 5px; border-radius: 2px; box-shadow: inset 0 1px 3px #29401b30; font-size: 9px; font-weight: 400; }
.mixer-layout-toggle { display: flex; gap: 5px; }
.tool-shell .mixer-workspace { background: #1b231d; }
.mixer-channels { display: grid; grid-template-columns: repeat(3, minmax(145px, 1fr)); gap: 6px; min-height: 440px; padding: 13px; overflow-x: auto; background: #151c17; box-shadow: inset 0 2px 6px #0009; }
.channel-strip { position: relative; min-width: 0; padding: 19px 19px 16px; border: 1px solid #060c07; border-radius: 3px; color: #283724; background: repeating-linear-gradient(0deg, #e9f2dd07 0 1px, #00000006 1px 2px), linear-gradient(105deg, #adb6a4, #c3cbb8 30%, #a3af98); box-shadow: inset 0 1px #f6ffea99, inset 1px 0 #e3edd077, inset -1px 0 #69785c, 0 2px 4px #0006; }
.channel-strip::before, .channel-strip::after { content: ''; position: absolute; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(125deg, transparent 42%, #36432f 43% 55%, transparent 56%), radial-gradient(circle at 30% 25%, #d1dcc6, #6d7b5b 60%, #23311e); box-shadow: 0 1px #ebf4de99; pointer-events: none; }
.channel-strip::before { top: 8px; }
.channel-strip::after { bottom: 8px; }
.channel-strip.master-strip { background: repeating-linear-gradient(0deg, #fff4d506 0 1px, #00000006 1px 2px), linear-gradient(105deg, #b8b9a0, #d3cfb4 32%, #aaa98d); border-left: 3px solid #b9ca86; }
.channel-kicker { color: #3e4f34; font-size: 7px; font-weight: 700; letter-spacing: 1.5px; }
.channel-strip h3 { font-size: 22px; font-weight: 650; letter-spacing: -.5px; margin: 8px 0 5px; }
.channel-strip .channel-description { font-size: 10px; color: #425136; line-height: 1.5; min-height: 30px; margin: 0 0 12px; }
.gain-display { padding: 8px 9px; background: #182415; border: 3px solid #435238; border-top-color: #2a3723; border-radius: 5px; box-shadow: inset 0 3px 5px #0008, 0 1px #e4efcc99; }
.display-label { display: block; font-size: 7px; color: #9caf88; text-transform: uppercase; letter-spacing: 1.2px; }
.channel-gain-value { display: block; font-size: 19px; color: #d5eaba; margin-top: 5px; white-space: nowrap; }
.tool-shell .channel-strip .field { color: #3b4b2f; margin: 14px 0; font-size: 9px; }
.fader-area { display: flex; justify-content: center; align-items: center; gap: 21px; height: 224px; margin: 13px 0; }
.tool-shell input.channel-gain { appearance: none; -webkit-appearance: none; writing-mode: vertical-lr; direction: rtl; width: 32px; height: 190px; min-height: 190px; cursor: ns-resize; margin: 0; padding: 0; border-radius: 3px; background: linear-gradient(90deg, transparent 42%, #192314 43% 57%, transparent 58%); }
.channel-gain::-webkit-slider-runnable-track { width: 6px; height: 100%; border: 1px solid #667057; border-radius: 3px; background: #17200f; box-shadow: inset 1px 1px 2px #000c, 1px 0 #e9f1d277; }
.channel-gain::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 30px; height: 16px; border: 1px solid #39432f; border-radius: 3px; background: linear-gradient(#d7dccb 0 35%, #929c83 37% 45%, #242f1b 46% 53%, #a8b095 54% 62%, #e0e5d3 63%); box-shadow: 1px 3px 4px #0007; }
.channel-gain::-moz-range-track { width: 6px; height: 100%; border: 1px solid #667057; border-radius: 3px; background: #17200f; box-shadow: inset 1px 1px 2px #000c, 1px 0 #e9f1d277; }
.channel-gain::-moz-range-thumb { width: 30px; height: 16px; border: 1px solid #39432f; border-radius: 3px; background: linear-gradient(#d7dccb 0 35%, #929c83 37% 45%, #242f1b 46% 53%, #a8b095 54% 62%, #e0e5d3 63%); box-shadow: 1px 3px 4px #0007; }
.meter-display { display: flex; align-items: center; gap: 8px; padding: 8px; border: 3px solid #46533a; border-top-color: #303b27; border-radius: 5px; background: #11190e; box-shadow: inset 0 2px 5px #000b, 0 1px #e7efd6aa; }
.channel-meter { position: relative; width: 10px; height: 190px; background: repeating-linear-gradient(to top, #172411 0 4px, #10190e 4px 5px); border: 1px solid #344b24; overflow: hidden; }
.channel-meter-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; max-height: 100%; background: repeating-linear-gradient(to top, #b7e68c 0 3px, #587e3d 3px 5px); }
.channel-meter-fill.clipping { background: #ffc17e; }
.meter-ticks { display: flex; flex-direction: column; justify-content: space-between; height: 190px; color: #9cae89; font-size: 8px; }
.channel-buttons { display: flex; gap: 6px; margin-top: 17px; }
.channel-buttons .button { flex: 1; min-height: 33px; padding: 6px; font-size: 10px; }
.channel-meter-readout { margin-top: 14px; padding: 7px 8px; border: 1px solid #495a3a; border-radius: 3px; background: #1a2715; box-shadow: inset 0 1px 3px #0007, 0 1px #eaf3d488; }
.meter-state { font-size: 8px; color: #b5cba0; min-height: 25px; line-height: 1.4; }
.waveform-area { display: none; min-width: 0; padding: 7px; }
.waveform-area .screen-header { min-height: 24px; padding: 5px 8px; font-size: 7px; }
.waveform { position: relative; height: 100px; background: #10180e; border: 1px solid #0c140a; border-top: 0; overflow: hidden; }
.waveform canvas { display: block; width: 100%; height: 98px; }
.waveform-playhead { position: absolute; top: 0; bottom: 0; width: 1px; background: #f1fadd; pointer-events: none; display: none; }
.waveform-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 0 0 3px 3px; background: #111b10; color: #acbf98; font-size: 8px; line-height: 1.4; }
.waveform-caption .mono { flex-shrink: 0; }
.waveform-message { position: absolute; top: 35px; left: 12px; right: 12px; color: #b1c79b; font-size: 10px; line-height: 1.5; }
.horizontal .mixer-channels { display: grid; grid-template-columns: 1fr; gap: 9px; min-height: auto; overflow: visible; }
.horizontal .channel-strip { display: grid; grid-template-columns: 116px minmax(130px, 1fr) 144px; gap: 12px 17px; align-items: center; padding: 19px 20px; }
.horizontal .channel-heading { grid-column: 1; grid-row: 1 / 3; }
.horizontal .channel-heading h3 { font-size: 22px; }
.horizontal .channel-description { min-height: 0; margin-bottom: 10px; }
.horizontal .channel-gain-value { font-size: 16px; }
.horizontal .waveform-area { display: block; grid-column: 2; grid-row: 1 / 3; }
.horizontal .fader-area { grid-column: 3; grid-row: 1; height: auto; display: flex; margin: 0; gap: 11px; align-items: center; }
.tool-shell .horizontal .channel-gain { writing-mode: horizontal-tb; direction: ltr; height: 30px; min-height: 30px; width: 100%; min-width: 0; cursor: ew-resize; background: linear-gradient(0deg, transparent 40%, #192314 41% 59%, transparent 60%); }
.horizontal .channel-gain::-webkit-slider-runnable-track { width: 100%; height: 6px; }
.horizontal .channel-gain::-webkit-slider-thumb { width: 16px; height: 28px; margin-top: -12px; background: linear-gradient(90deg, #d7dccb 0 35%, #929c83 37% 45%, #242f1b 46% 53%, #a8b095 54% 62%, #e0e5d3 63%); }
.horizontal .channel-gain::-moz-range-track { width: 100%; height: 6px; }
.horizontal .channel-gain::-moz-range-thumb { width: 16px; height: 28px; background: linear-gradient(90deg, #d7dccb 0 35%, #929c83 37% 45%, #242f1b 46% 53%, #a8b095 54% 62%, #e0e5d3 63%); }
.horizontal .meter-display { flex-shrink: 0; padding: 5px; border-width: 2px; }
.horizontal .channel-meter { height: 52px; width: 7px; }
.horizontal .meter-ticks { display: none; }
.tool-shell .horizontal .channel-pan { grid-column: 3; grid-row: 2; margin: 0; }
.horizontal .channel-buttons { grid-column: 1; grid-row: 3; margin: 0; }
.horizontal .channel-meter-readout { grid-column: 2; grid-row: 3; margin: 0; }
.horizontal .channel-master-note { grid-column: 3; grid-row: 2; margin: 0; }
.channel-master-note { font-size: 10px; color: #425035; line-height: 1.6; margin: 19px 0; }
.mixer-footer { padding: 15px 24px; color: #b7c4aa; font-size: 10px; border-top: 1px solid #3a4931; line-height: 1.7; }
.tool-footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 8px 0; color: #a6b19c; font-size: 10px; line-height: 1.7; }
.tool-footer a { color: #c8dfa6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1200px) {
  .tool-body { grid-template-columns: minmax(0, 1fr); }
  .tool-sidebar { grid-template-columns: 1fr 1fr; }
  .tool-sidebar .sound-module { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .sound-module > .rack-engraving, .sound-module > h2, .sound-module > p { grid-column: 1 / -1; }
  .sound-module > .button { align-self: end; }
}
@media (max-width: 760px) {
  .tool-shell { padding: 0 12px 24px; }
  .tool-rack { padding: 0 18px 18px; border-left-width: 5px; border-right-width: 5px; }
  .tool-rack::before, .tool-rack::after { width: 8px; background-size: 6px 27px, auto; }
  .tool-rack::before { left: 3px; }
  .tool-rack::after { right: 3px; }
  .brand-sub { display: none; }
  .tool-topbar { min-height: 65px; padding: 0 4px; }
  .tool-topbar nav { gap: 14px; }
  .tool-topbar a { font-size: 10px; }
  .tool-heading { align-items: start; flex-direction: column; padding: 22px 4px 20px; gap: 17px; }
  .tool-connection { justify-content: start; max-width: none; }
  .tool-projectbar { gap: 10px; padding: 17px 22px; }
  .tool-projectbar .project-name { flex-basis: 100%; min-width: 0; }
  .tool-transport { gap: 13px; padding: 17px 22px; }
  .tool-shell .telemetry-panel { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 14px 22px; }
  .telemetry-engraving { display: flex; justify-content: space-between; align-items: center; font-size: 8px; letter-spacing: 1.5px; }
  .telemetry-engraving br { display: none; }
  .telemetry-engraving small { margin: 0; font-size: 6px; }
  .tool-stat { padding: 11px 10px; }
  .tool-stat dt { font-size: 7px; }
  .tool-stat dd { font-size: 12px; }
  .tool-sidebar { grid-template-columns: 1fr; }
  .tool-sidebar .sound-module { display: block; }
  .tool-footer { flex-direction: column; gap: 4px; padding-left: 2px; }
  .tool-panel-head { padding: 18px 23px; }
  .piano-options { padding: 16px 20px; }
  .piano-monitor { margin-left: 10px; margin-right: 10px; padding: 7px; }
  .screen-header { flex-wrap: wrap; gap: 4px 12px; }
  .piano-monitor .screen-header p { font-size: 8px; }
  .piano-monitor .screen-footer { font-size: 6px; letter-spacing: .4px; }
  .piano-footer { padding: 12px 20px 17px; }
  .mixer-channels { grid-template-columns: repeat(3, minmax(140px, 1fr)); padding: 10px; }
  .channel-strip { padding: 18px 14px 15px; }
  .horizontal .channel-strip { grid-template-columns: 94px minmax(100px, 1fr); gap: 12px; padding: 17px 15px; }
  .horizontal .channel-heading { grid-column: 1; grid-row: 1; }
  .horizontal .waveform-area { grid-column: 2; grid-row: 1; }
  .horizontal .fader-area { grid-column: 2; grid-row: 2; }
  .tool-shell .horizontal .channel-pan { grid-column: 2; grid-row: 3; }
  .horizontal .channel-buttons { grid-column: 1; grid-row: 2 / 4; flex-direction: column; }
  .horizontal .channel-meter-readout { grid-column: 2; grid-row: 4; }
  .horizontal .channel-master-note { grid-column: 1; grid-row: 2; }
}
@media (max-width: 500px) {
  .tool-shell { padding-left: 7px; padding-right: 7px; }
  .tool-topbar { gap: 10px; }
  .tool-topbar .brand { font-size: 24px; }
  .tool-topbar nav { gap: 10px; }
  .tool-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-stat:nth-child(-n+2) { border-bottom: 1px solid #35432b; }
  .tool-stat:nth-child(2) { border-right: 0; }
  .tool-panel-head { flex-direction: column; align-items: start; gap: 12px; }
  .hardware-label { align-self: start; }
  .tool-shell .button { padding-left: 10px; padding-right: 10px; font-size: 10px; }
  .transport-buttons { gap: 5px; }
  .tool-connection { gap: 8px; }
  .connection-copy { min-width: 0; font-size: 10px; }
  .piano-options .field { min-width: 100%; }
  .tool-panel-head h2 { font-size: 16px; }
  .piano-monitor .screen-footer { flex-direction: column; align-items: start; gap: 3px; }
  .horizontal .channel-strip { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 14px; }
  .horizontal .channel-heading { grid-column: 1; grid-row: 1; }
  .horizontal .channel-heading .channel-description { min-height: 0; }
  .horizontal .gain-display { max-width: 160px; }
  .horizontal .waveform-area { grid-column: 1; grid-row: 2; }
  .horizontal .fader-area { grid-column: 1; grid-row: 3; gap: 18px; }
  .tool-shell .horizontal .channel-pan, .horizontal .channel-master-note { grid-column: 1; grid-row: 4; }
  .horizontal .channel-buttons { grid-column: 1; grid-row: 5; flex-direction: row; }
  .horizontal .channel-meter-readout { grid-column: 1; grid-row: 6; }
  .horizontal .channel-meter { height: 40px; }
  .mixer-footer { padding-left: 19px; padding-right: 19px; }
}
@media (prefers-reduced-motion: reduce) { .tool-shell *, .tool-shell *::before, .tool-shell *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media (prefers-reduced-transparency: reduce) { .screen-housing::after { display: none; } }

/* Piano history belongs to the existing hardware editor footer. */
.piano-edit-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: end; }
.piano-save-state { margin: 0; padding: 0 23px 12px; color: #283724; font-size: 12px; overflow-wrap: anywhere; }
