/* Bridge is a physical studio overview. Telemetry and previews stay inside displays. */
.bridge-page {
  --bg: #0e1116;
  --surface: #171b22;
  --surface-2: #202630;
  --surface-3: #2a303a;
  --border: #526173;
  --text: #e6e8ec;
  --muted: #a8b2bc;
  --accent: #84e8e1;
  --amber: #ffcb83;
  --green: #7bc96f;
  background-color: var(--bg);
  background-image: linear-gradient(#8cdcd709 1px, transparent 1px),
    linear-gradient(90deg, #8cdcd709 1px, transparent 1px),
    radial-gradient(ellipse at top, #353e3e, #121719 70%);
  background-size: 24px 24px, 24px 24px, 100% 100%;
  min-height: 100vh;
}
.bridge-page .app-shell { max-width: 1680px; }
.bridge-page .topbar {
  min-height: 76px;
  background: linear-gradient(#303638, #1a1f21);
  border-bottom: 2px solid #080b0d;
  box-shadow: 0 1px 0 #4b5152;
  gap: 28px;
}
.bridge-page .brand-mark { background: linear-gradient(#a6f3e9, #66b4b2); box-shadow: inset 0 1px #fff9, 0 2px 3px #0008; }
.bridge-page .topbar nav .nav-active { background: linear-gradient(#3d4b3e, #263128); box-shadow: inset 0 1px #70816c; border: 1px solid #718362; }
.bridge-page button, .bridge-page .button {
  background: linear-gradient(#42494c, #23292c);
  border-color: #171b1d;
  box-shadow: inset 0 1px 0 #7a858755, 0 1px 2px #0008;
  text-shadow: 0 1px #0008;
  border-radius: 4px;
}
.bridge-page button:hover, .bridge-page .button:hover { background: linear-gradient(#515c60, #30383c); border-color: #7f9296; }
.bridge-page button.primary {
  color: #17210f;
  background: linear-gradient(#ffe0a0, #e8b265);
  border-color: #86633d;
  box-shadow: inset 0 1px #f5ffd4, 0 1px 3px #0008;
  text-shadow: 0 1px #efffc455;
}
.bridge-page button[aria-pressed="true"] { color: #ceffad; background: linear-gradient(#46583a, #283321); box-shadow: inset 0 1px #b5db8655, 0 0 8px #b7f06b15; border-color: #869d65; }
.bridge-page button.primary[aria-pressed="true"] { color: #10230c; background: linear-gradient(#d7f5a5, #b6e381); }
.bridge-page button:disabled { opacity: .48; }
.bridge-page main { padding: 24px 30px 20px; }
.session-label { margin-left: auto; color: #b5c0bd; font-size: 10px; letter-spacing: 1px; }
.session-label span { margin-left: 12px; color: var(--accent); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 4px 0 24px; }
.lab-link { margin-bottom: 8px; color: var(--amber); font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.lab-link:hover, .workspace-footer a:hover { text-decoration: underline; }
.page-heading p.muted { margin-top: 8px; font-size: 13px; }
.heading-dot { color: var(--accent); }
.owner-state { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 2px solid #3b4446; border-radius: 6px; background: linear-gradient(#080e0b, #111b16); box-shadow: inset 0 2px 8px #000b, 0 1px #727a7455; font-size: 12px; }
.owner-state strong, .owner-state .muted { display: block; }
.owner-state .muted { margin-top: 3px; font-size: 11px; }
.rack-unit { position: relative; border: 1px solid #06090b; border-radius: 7px; box-shadow: inset 0 1px 1px #ffffff40, inset 0 -2px 2px #0007, 0 5px 9px #0008; }
.bridge-master {
  padding: 20px 26px 18px;
  color: #1c2321;
  background: repeating-linear-gradient(0deg, #fff0 0 2px, #ffffff08 2px 3px), linear-gradient(110deg, #8e938b, #c0c3b7 34%, #a5a99e 72%, #858d84);
  border: 3px solid #434a45;
  outline: 1px solid #090c09;
  margin-bottom: 20px;
}
.bridge-master::before, .bridge-master::after, .bridge-patchbay::before, .bridge-patchbay::after { content: ''; position: absolute; top: 12px; bottom: 12px; width: 10px; background: radial-gradient(circle at 50% 5px, #262b29 0 2px, #b4bcb0 2px 3px, #414a43 3px 4px, transparent 5px), radial-gradient(circle at 50% calc(100% - 5px), #262b29 0 2px, #b4bcb0 2px 3px, #414a43 3px 4px, transparent 5px); pointer-events: none; }
.bridge-master::before, .bridge-patchbay::before { left: 8px; }
.bridge-master::after, .bridge-patchbay::after { right: 8px; }
.master-nameplate { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid #48534866; box-shadow: 0 1px #eff4df66; }
.master-nameplate > div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.master-nameplate h2 { font-size: 23px; letter-spacing: 6px; font-weight: 800; text-shadow: 0 1px #f7fbe177; }
.equipment-model { display: inline-block; font-size: 10px; letter-spacing: 1px; padding: 3px 6px; border: 1px solid currentColor; border-radius: 2px; font-weight: 700; }
.equipment-subtitle { font-size: 9px; letter-spacing: 1.6px; font-weight: 700; }
.rack-label { font-size: 9px; letter-spacing: 1px; }
.project-bar.panel { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 18px 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-identity { display: grid; grid-template-columns: auto minmax(100px, 240px); column-gap: 12px; align-items: center; min-width: 0; }
.bridge-master .eyebrow, .bridge-master .field > span { color: #303d32; }
.project-identity .eyebrow { grid-row: 1; }
.project-identity input#project-name { width: 100%; min-width: 0; padding: 8px 10px; font-size: 14px; background: #111c17; color: #d6e4ca; border: 2px solid #566455; box-shadow: inset 0 1px 5px #000c, 0 1px #e3e8d188; }
.project-identity #save-status { grid-column: 2; color: #364337; font-size: 10px; padding-top: 3px; }
.project-bar .toolbar { gap: 6px; }
.project-bar .toolbar button { font-size: 11px; min-height: 34px; padding: 7px 11px; }
.transport.panel { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 0 0; margin: 0; background: transparent; border: 0; border-radius: 0; }
.transport-buttons { display: flex; gap: 6px; }
.transport-buttons button { height: 48px; min-width: 42px; }
.transport-buttons .play { min-width: 92px; }
.position { display: flex; flex-direction: column; min-width: 145px; padding: 9px 12px; border: 3px solid #414c42; border-radius: 5px; background: linear-gradient(#0a130e, #14251b); box-shadow: inset 0 1px 7px #000d, 0 1px #e7e9d888; }
.position output { color: #c4fbb5; font-size: 23px; line-height: 1.3; letter-spacing: 1px; text-shadow: 0 0 5px #b7ff9a55; }
.bridge-master .position .eyebrow { color: #a8b9a8; font-size: 8px; }
.position .small { color: #9eae9b; font-size: 9px; }
.tempo input { width: 84px; font-size: 19px; font-weight: 700; }
.bridge-master input[type="number"], .bridge-master select { background: #111b15; color: #c5edb4; border: 2px solid #505e4c; box-shadow: inset 0 2px 4px #0009, 0 1px #e9ead877; }
.signature select { width: 78px; }
.transport-toggles { display: flex; gap: 6px; }
.transport-toggles button { font-size: 11px; }
.master { flex: 1; min-width: 110px; max-width: 190px; }
.master > span { display: flex; justify-content: space-between; gap: 8px; }
.panic { color: #ffd0c1; font-size: 10px; min-height: 34px; margin-left: auto; }
/* Rack bay, sockets and real connection paths. JavaScript supplies cable geometry. */
.studio-cabinet { position: relative; isolation: isolate; padding: 22px 30px 20px; border: 2px solid #090b0c; border-radius: 9px; background: repeating-linear-gradient(90deg, #121719 0 6px, #151b1d 6px 7px); box-shadow: inset 0 0 22px #000d, 0 10px 25px #0005; }
.studio-cabinet::before, .studio-cabinet::after { content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; width: 18px; pointer-events: none; background: repeating-linear-gradient(0deg, #ffffff09 0 1px, transparent 1px 9px), linear-gradient(90deg, #241a14, #61503c 35%, #382b20 75%, #17120e); border: 1px solid #241b13; }
.studio-cabinet::before { left: 0; border-radius: 6px 0 0 6px; box-shadow: 4px 0 6px #000a; }
.studio-cabinet::after { right: 0; border-radius: 0 6px 6px 0; box-shadow: -4px 0 6px #000a; }
#bridge-cables { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#bridge-cables path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bridge-patchbay { z-index: 2; padding: 18px 20px 14px; background: repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 3px), linear-gradient(#454d4f, #2b3235); }
.patchbay-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.patchbay-title h2 { font-size: 17px; margin-top: 7px; }
.patchbay-title p { margin-top: 4px; color: #c0cac9; font-size: 11px; }
.patchbay-title .equipment-model { color: #b1bdb9; font-size: 9px; }
.patchbay-title .count-badge { background: #07120b; border: 3px solid #1b2221; color: #a5eab3; box-shadow: inset 0 2px 6px #000d, 0 1px #65726b; padding: 9px 13px; font-size: 11px; text-shadow: 0 0 6px #7eea8c55; }
.patch-port-bank { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: 12px 0 0; border-top: 1px solid #68716c66; }
.patch-port { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.port-caption { color: #aab6b2; font-size: 9px; }
.port-name { font-size: 9px; color: #ced5d1; text-align: center; line-height: 1.25; }
.socket { display: inline-block; position: relative; width: 19px; height: 19px; border: 3px solid #8c9590; border-radius: 50%; background: radial-gradient(circle, #060a09 0 45%, #2e3933 50% 63%, #111a16 70%); box-shadow: 0 1px 0 #ecede775, 0 -1px 0 #090c0b, inset 0 0 0 1px #17201a, 0 2px 3px #0009; flex: 0 0 19px; }
.socket.connected, .module-row[data-power="on"]:not(.powered-off) .device-port { border-color: #a8bd9d; box-shadow: 0 0 0 2px #8dff9b22, 0 0 8px #8df29d70, inset 0 0 0 1px #233625, 0 2px 3px #0009; }
.device-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px 24px; padding: 58px 0 26px; }
.rack-device { position: relative; min-width: 0; border: 2px solid #090d0f; border-radius: 6px; background: repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 4px), linear-gradient(110deg, #333a3e, #232a2e 55%, #343d42); box-shadow: inset 0 1px #78828566, inset 0 -2px #12191c, 0 5px 8px #000b; transition: box-shadow .18s ease; }
.rack-device::before, .rack-device::after { content: ''; position: absolute; top: 8px; bottom: 8px; width: 6px; pointer-events: none; background: radial-gradient(circle at 50% 3px, #121819 0 1px, #9ba5a1 1px 2px, #404c49 2px 3px, transparent 4px), radial-gradient(circle at 50% calc(100% - 3px), #121819 0 1px, #9ba5a1 1px 2px, #404c49 2px 3px, transparent 4px); }
.rack-device::before { left: 5px; }
.rack-device::after { right: 5px; }
.device-inlet { position: absolute; left: 50%; top: -35px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.device-inlet > .mono { font-size: 7px; color: #aab7ae; background: #111a17; padding: 1px 3px; }
.module-open { display: block; padding: 15px 15px 10px; border-radius: 4px; min-width: 0; color: #dce2dd; }
.module-open:hover { color: #f8fff4; background: linear-gradient(#ffffff07, transparent); }
.module-open:focus-visible { outline-offset: 3px; }
.device-nameplate { display: flex; align-items: center; gap: 9px; min-width: 0; padding-bottom: 13px; }
.module-symbol { font-size: 11px; color: #b6c1ba; border: 1px solid #67736c; padding: 2px 5px; border-radius: 2px; }
.module-info { flex: 1; min-width: 0; }
.module-info h3 { font-size: 15px; line-height: 1.3; font-weight: 700; letter-spacing: -.2px; }
.module-info p { font-size: 7px; margin-top: 3px; letter-spacing: 1.1px; color: #acb9b0; }
.device-power { color: #87928b; font-size: 18px; line-height: 1; }
.device-screen { position: relative; overflow: hidden; border: 4px solid #101719; border-radius: 8px; background: linear-gradient(#070c0d, #0e1616); box-shadow: inset 0 0 10px #000d, 0 1px #75807c66, 0 -1px #020404; padding: 9px 10px 10px; color: #96aaa4; }
.device-screen::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(135deg, #d8ffe608 0%, transparent 40%), repeating-linear-gradient(0deg, transparent 0 3px, #0002 3px 4px); border-radius: 4px; }
.screen-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 7px; letter-spacing: .6px; color: #84958e; }
.screen-off { padding: 1px 3px; border: 1px solid #53635b; line-height: 1.2; }
.screen-on { display: none; color: #c9ffc1; }
.device-screen dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 10px 0 0; border-top: 1px solid #40534955; padding-top: 9px; }
.device-screen dl > div { min-width: 0; }
.device-screen dt { font-size: 7px; letter-spacing: .4px; color: #96a69e; white-space: nowrap; }
.device-screen dd { margin: 3px 0 0; font: 12px var(--mono); color: #aebdb6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-controls { display: flex; align-items: center; gap: 9px; padding-top: 12px; }
.hardware-knob { display: inline-block; position: relative; width: 29px; height: 29px; border-radius: 50%; border: 2px solid #121819; background: radial-gradient(circle at 40% 30%, #626d6d 0%, #3c4747 35%, #111b1c 82%); box-shadow: inset 0 1px #c3ccc177, 0 2px 3px #000a; }
.hardware-knob::after { content: ''; position: absolute; top: 2px; left: 12px; width: 2px; height: 8px; background: #dce2d5; border-radius: 1px; transform: rotate(24deg); transform-origin: 50% 10px; }
.small-knob { width: 23px; height: 23px; }
.small-knob::after { left: 9px; height: 6px; }
.device-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-left: auto; font-size: 8px; letter-spacing: .8px; color: #b5c1b9; font-weight: 700; }
.device-action b { font-size: 15px; font-weight: 400; }
.module-health { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 3px 7px; align-items: center; padding: 10px 15px 12px; border-top: 1px solid #11191b; background: #111a1a55; font-size: 10px; border-radius: 0 0 4px 4px; }
.module-health .status-dot { width: 7px; height: 7px; flex-basis: 7px; background: #67756c; box-shadow: none; }
.health-label { color: #bcc9bf; }
.peer-detail { grid-column: 2; color: #acb9b0; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.rack-device[data-power="on"]:not(.powered-off) { border-color: #6a9366; box-shadow: inset 0 1px #c5e6a777, 0 0 0 1px #b6e79833, 0 0 18px #86ef9b17, 0 5px 8px #000a; }
.rack-device[data-power="on"]:not(.powered-off) .device-screen { background: linear-gradient(#0c1c15, #142c20); box-shadow: inset 0 0 8px #000b, 0 0 7px #95f39c26, 0 1px #9eba8b77; }
.rack-device[data-power="on"]:not(.powered-off) .device-screen dd { color: #cbffbe; text-shadow: 0 0 5px #b8ffac44; }
.rack-device[data-power="on"]:not(.powered-off) .screen-off { display: none; }
.rack-device[data-power="on"]:not(.powered-off) .screen-on { display: inline; }
.rack-device[data-power="on"]:not(.powered-off) .device-power { color: #bcf6a4; text-shadow: 0 0 7px #a3ff8099; }
.rack-device[data-power="on"]:not(.powered-off) .module-health .status-dot { background: #adf99c; box-shadow: 0 0 7px #a3ff8077; }
.rack-device[data-power="on"]:not(.powered-off) .health-label { color: #c3f2ae; }
.rack-device.stale .module-health .status-dot { background: #d7b16e; }
.rack-device.powered-off .status-dot { background: #657269; box-shadow: none; }
.rack-legend { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 10px; color: #bcc7bf; padding-top: 5px; }
.rack-legend > span { display: flex; align-items: center; gap: 7px; }
.rack-legend > span:last-child { margin-left: auto; color: #a9b7ad; }
.rack-help { position: relative; z-index: 2; margin-top: 8px; font-size: 10px; color: #a9b8ae; }
.peer-list:empty { display: none; }
.peer-list { position: relative; z-index: 2; margin-top: 14px; border-top: 1px solid #3d4b42; padding-top: 8px; }
.peer-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; color: #b8c9bb; font-size: 10px; }
.peer-item > div { min-width: 0; overflow-wrap: anywhere; }
.peer-item button { min-height: 32px; font-size: 10px; padding: 6px 10px; }
/* Quiet device schematics live on the glass, never on the rack face. */
.device-illustration { height: 64px; margin: 12px 0 3px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #acd7b0; visibility: hidden; }
.device-screen::before { content: 'NO BRIDGE LINK'; position: absolute; top: 54px; left: 10px; right: 10px; color: #91a098; text-align: center; font: 8px var(--mono); letter-spacing: 1.5px; }
.standalone-device .device-screen::before { content: none; }
.standalone-device .device-illustration { visibility: visible; opacity: .8; }
.screen-commands { border-top: 1px solid #405349; margin-top: 10px; padding-top: 9px; font-size: 10px; color: #9fcac5; }
.rack-device[data-power="on"]:not(.powered-off) .device-screen::before { display: none; }
.rack-device[data-power="on"]:not(.powered-off) .device-illustration { visibility: visible; opacity: .72; }
.illustration-keys { flex-direction: column; gap: 8px; }
.mini-keys { display: flex; height: 39px; width: 100%; max-width: 190px; border: 1px solid #aec9ad66; padding: 2px; gap: 2px; }
.mini-keys i { position: relative; flex: 1; background: #8aac8d; border-radius: 0 0 2px 2px; }
.mini-keys i:nth-child(7n + 1)::after, .mini-keys i:nth-child(7n + 2)::after, .mini-keys i:nth-child(7n + 4)::after, .mini-keys i:nth-child(7n + 5)::after, .mini-keys i:nth-child(7n + 6)::after { content: ''; position: absolute; top: 0; right: -4px; width: 6px; height: 60%; background: #10241a; z-index: 1; }
.mini-steps { display: flex; gap: 3px; width: 100%; max-width: 190px; }
.mini-steps i { flex: 1; height: 7px; border: 1px solid #78977c; border-radius: 1px; }
.mini-console { display: flex; justify-content: space-evenly; gap: 10px; width: 100%; height: 59px; padding: 6px 10px; border: 1px solid #79957e; }
.mini-console > i { position: relative; width: 9px; height: 100%; border-left: 1px solid #6c8a6e; border-right: 1px solid #6c8a6e; background: #15291d; }
.mini-console > i > b { position: absolute; top: var(--fader-position); left: -4px; width: 15px; height: 7px; border: 1px solid #b3c9ac; background: #59765b; }
.mini-effects { width: 57%; display: flex; flex-direction: column; gap: 5px; }
.mini-effects > span { display: flex; justify-content: space-evenly; align-items: center; gap: 5px; height: 23px; border: 1px solid #809c80; padding: 4px; }
.mini-effects i { width: 34%; height: 9px; border: 1px solid #aac0a5; background: #34513a; }
.mini-effects b { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #a4bca1; }
.mini-crt { flex: 1; border: 3px solid #6e896f; padding: 4px; border-radius: 5px; height: 52px; max-width: 66px; }
.mini-crt i { display: grid; place-items: center; height: 100%; border: 1px solid #a0b79a; border-radius: 4px; font: 7px var(--mono); }
.illustration-synth { flex-direction: column; gap: 8px; }
.mini-synth-screen { height: 32px; width: 100%; border: 1px solid #849c80; background: repeating-linear-gradient(90deg, transparent 0 19px, #8db08d30 19px 20px), repeating-linear-gradient(0deg, transparent 0 9px, #8db08d30 9px 10px); }
.mini-knobs { display: flex; justify-content: space-between; width: 90%; }
.mini-knobs i { width: 12px; height: 12px; border: 1px solid #8ea78a; border-radius: 50%; }
.mini-timeline { display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 57px; border: 1px solid #809b7d; padding: 5px 7px; background: repeating-linear-gradient(90deg, transparent 0 23px, #82a08333 23px 24px); }
.mini-timeline i { display: block; width: 55%; height: 7px; border: 1px solid #8eac85; background: #40684388; }
.mini-timeline i:nth-child(2) { margin-left: 30%; width: 50%; }
.mini-timeline i:nth-child(3) { width: 82%; }
.mini-timeline i:nth-child(4) { margin-left: 53%; width: 30%; }
.mini-wave { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; height: 48px; }
.mini-wave i { flex: 1; height: var(--wave-height); border: 1px solid #b0c8a5; background: #62835d; }
.mini-tape { position: relative; width: 100%; max-width: 180px; height: 57px; border: 1px solid #7e9b79; display: flex; justify-content: space-between; align-items: center; padding: 5px 12px; }
.mini-tape > i { width: 40px; height: 40px; border: 2px solid #8eac85; border-radius: 50%; background: radial-gradient(circle, #aec5a5 0 2px, transparent 3px 8px, #8eac85 9px 10px, transparent 11px); }
.mini-tape > b { width: 20px; height: 2px; background: #90a88a; }
.mini-export { position: relative; width: 100%; height: 57px; border: 1px solid #8ca884; display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 8px; }
.mini-export span { font: 9px var(--mono); letter-spacing: 1px; }
.mini-export i { height: 22px; width: 16px; border: 1px solid #9db393; }
.mini-export b { position: absolute; bottom: 6px; left: 10px; right: 10px; height: 5px; border: 1px solid #809b79; }

/* Lower rack: the existing project, diagnostics, and advanced controls. */
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; margin-top: 22px; }
.main-column, .monitor-column { min-width: 0; }
.main-column { display: flex; flex-direction: column; gap: 20px; }
.monitor-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.utility-rack .panel, .advanced.panel { background: repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 3px), linear-gradient(110deg, #3b4245, #252c2f 65%, #343d40); border: 2px solid #101517; border-radius: 6px; box-shadow: inset 0 1px #86908c55, 0 4px 8px #0007; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
.section-heading h2 { font-size: 14px; color: #edf0e9; }
.section-heading p { margin-top: 5px; font-size: 10px; line-height: 1.6; }
.section-heading .tag { padding: 5px 7px; font-size: 8px; background: #111c15; border: 2px solid #18211c; box-shadow: inset 0 1px 3px #000b, 0 1px #647268; color: #aecf9e; }
.checkpoint-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.checkpoint-grid > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; background: linear-gradient(#0c1411, #14221a); padding: 13px 12px; border: 3px solid #11191a; border-radius: 4px; box-shadow: inset 0 2px 6px #000c, 0 1px #6b786e; }
.checkpoint-grid .eyebrow { font-size: 8px; letter-spacing: .9px; color: #a8b99f; }
.checkpoint-grid strong { color: #cad9bd; font: 12px var(--mono); overflow-wrap: anywhere; }
.checkpoint-grid .small { font-size: 10px; color: #aab7a5; overflow-wrap: anywhere; }
.recovery .toolbar { padding: 0 18px; gap: 8px; }
.recovery .toolbar button { font-size: 10px; padding: 8px 10px; }
.recovery-note { margin: 14px 18px 18px; font-size: 10px; line-height: 1.7; color: #bec8c2; }
.monitor-screen, .midi-screen { position: relative; margin: 0 14px 16px; padding: 14px 12px 12px; border: 4px solid #12191a; border-radius: 7px; background: linear-gradient(120deg, #14231a, #0b1710); box-shadow: inset 0 2px 9px #000c, 0 1px #6d8070; color: #b6dbab; overflow: hidden; }
.monitor-screen::after, .midi-screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, #daffcf08, transparent 55%), repeating-linear-gradient(0deg, transparent 0 3px, #0001 3px 4px); border-radius: 3px; }
.output-display { padding: 0 0 10px; }
.output-display > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.output-display .eyebrow { font-size: 8px; letter-spacing: 1px; color: #a2b99b; }
.output-display strong { font-size: 17px; color: #c7efb6; font-weight: 500; white-space: nowrap; }
.output-display strong small { font-size: 8px; color: #a5ba9e; }
#peak-meter { height: 9px; display: block; border: 1px solid #354b30; border-radius: 2px; }
.stats-list { padding: 0; margin: 0; }
.stats-list > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; font-size: 10px; border-bottom: 1px solid #354936; }
.stats-list > div:last-child { border: 0; padding-bottom: 0; }
.stats-list dt { color: #acc2a3; }
.stats-list dd { margin: 0; font: 10px var(--mono); text-align: right; color: #d0e8c4; overflow-wrap: anywhere; }
.midi-monitor .section-heading { padding-bottom: 12px; }
.midi-screen { padding: 11px 10px 4px; margin-bottom: 8px; }
.midi-screen > p { color: #a8bea0; font-size: 8px; line-height: 1.5; }
.midi-log { list-style: none; padding: 8px 0; margin: 0; height: 200px; overflow: auto; font-size: 8px; color: #c7edb6; }
.midi-log li { display: flex; justify-content: space-between; gap: 6px; padding: 4px 0; white-space: nowrap; border-bottom: 1px solid #31492d66; }
.midi-log li span:first-child { color: #9eb895; }
.midi-log .empty-log { color: #a0b696; padding-top: 45px; white-space: normal; text-align: center; display: block; border: 0; }
.midi-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 18px 12px; font-size: 10px; color: #bac7bc; }
#midi-total { background: #101c14; color: #b9d5aa; border: 2px solid #152018; padding: 4px 7px; border-radius: 3px; box-shadow: inset 0 1px 3px #000b, 0 1px #5a705d; font-size: 9px; }
.bridge-page .text-button { font-size: 10px; min-height: 30px; padding: 5px 8px; }
.advanced { margin-top: 20px; }
.advanced > summary { padding: 18px 20px; font-size: 13px; }
.advanced > summary span { margin-left: 12px; font-size: 11px; font-weight: 400; }
.advanced-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 8px 20px 24px; }
.advanced-grid > section { min-width: 0; }
.advanced-grid h2 { font-size: 12px; margin-bottom: 14px; letter-spacing: .3px; }
.advanced-grid .field { margin-top: 12px; }
.advanced-grid p { margin-top: 12px; font-size: 10px; line-height: 1.6; }
.advanced-grid .field > span, .advanced-grid .check-field { font-size: 11px; color: #c7d1c7; }
.advanced-grid input[type='number'], .advanced-grid select { background: #111c15; border: 2px solid #161e19; color: #c0dcb0; box-shadow: inset 0 1px 4px #0008, 0 1px #536356; }
.shared-mix { margin: 0 20px 20px; border-top: 1px solid #69776b77; padding-top: 18px; }
.shared-mix h2 { font-size: 12px; margin-bottom: 12px; }
.bridge-track { display: flex; align-items: center; gap: 14px; padding: 10px 0; min-width: 0; }
.bridge-track strong { width: 70px; font-size: 12px; }
.bridge-track label { flex: 1; max-width: 240px; font-size: 11px; color: #c3cfc1; min-width: 0; }
.bridge-track button { font-size: 11px; min-height: 30px; }
.bridge-page .notice { margin-top: 20px; background: #111c16; border: 2px solid #374b3d; border-left: 3px solid #acd78f; border-radius: 4px; color: #bfd3b7; font-size: 11px; box-shadow: inset 0 1px 5px #0009; }
.bridge-page .notice.error { border-left-color: var(--danger); }
.workspace-footer { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12px; color: #acb8ae; padding-top: 18px; }
.workspace-footer a { display: inline-flex; align-items: center; min-height: 36px; color: var(--accent); }
@media (min-width: 1450px) {
  .bridge-page main { padding: 28px 38px 24px; }
  .transport.panel { gap: 23px; }
  .transport .master { max-width: 220px; }
  .device-nameplate { padding-bottom: 16px; }
  .device-illustration { height: 72px; }
  .device-screen::before { top: 60px; }
}
@media (max-width: 1200px) {
  .session-label { display: none; }
  .project-bar.panel { align-items: flex-start; }
  .project-bar .toolbar { justify-content: flex-end; }
  .project-identity { flex: 0 1 380px; }
  .project-bar .toolbar { flex: 1; }
  .transport.panel { gap: 14px; }
  .dashboard { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .monitor-column { grid-template-columns: minmax(0, 1fr); }
  .midi-log { height: 150px; }
}
@media (max-width: 1100px) {
  .device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px 28px; }
  .device-nameplate { padding-bottom: 15px; }
  .module-info h3 { font-size: 17px; }
  .module-info p { font-size: 8px; }
  .module-open { padding: 18px 20px 14px; }
  .device-screen { padding: 11px 14px 13px; }
  .device-screen dt, .screen-header { font-size: 8px; }
  .device-screen dd { font-size: 14px; }
  .device-action { font-size: 9px; }
  .module-health { padding: 12px 20px 14px; font-size: 11px; }
  .peer-detail { font-size: 10px; }
  .advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .bridge-page main { padding: 22px 16px 20px; }
  .bridge-page .topbar { gap: 22px; }
  .topbar nav a { font-size: 12px; }
  .page-heading { gap: 18px; }
  .owner-state { max-width: 310px; }
  .owner-state button { font-size: 11px; padding: 7px; }
  .master-nameplate .rack-label { display: none; }
  .project-bar.panel { flex-direction: column; align-items: stretch; gap: 12px; }
  .project-identity { flex: auto; grid-template-columns: auto minmax(0, 1fr); }
  .project-bar .toolbar { justify-content: flex-start; }
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .monitor-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .midi-log { height: 190px; }
  .studio-cabinet { padding-left: 25px; padding-right: 25px; }
  .studio-cabinet::before, .studio-cabinet::after { width: 14px; }
  .bridge-patchbay { padding: 17px 16px 14px; }
  .patch-port-bank { gap: 7px; }
  .patchbay-title p { max-width: 260px; }
  .patchbay-title .count-badge { font-size: 10px; padding: 8px 10px; }
  .module-open { padding-left: 14px; padding-right: 14px; }
  .module-health { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 650px) {
  .bridge-page .topbar { padding: 14px 16px; gap: 14px; flex-wrap: wrap; }
  .bridge-page .topbar nav { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; gap: 7px; }
  .bridge-page .topbar nav a { padding: 7px 9px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .owner-state { max-width: none; width: 100%; padding: 11px 13px; }
  .owner-state button { margin-left: auto; }
  .owner-state .muted { font-size: 10px; }
  .bridge-master { padding: 16px 22px; }
  .master-nameplate > div { column-gap: 10px; row-gap: 8px; }
  .master-nameplate h2 { font-size: 20px; letter-spacing: 4px; }
  .master-nameplate .equipment-subtitle { flex-basis: 100%; font-size: 8px; letter-spacing: 1.2px; }
  .patch-port-bank { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 8px; }
  .patchbay-title { align-items: flex-start; gap: 10px; }
  .patchbay-title h2 { font-size: 15px; }
  .patchbay-title p { font-size: 10px; }
  .patchbay-title .count-badge { padding: 6px; font-size: 9px; margin-top: 2px; }
  .device-grid { gap: 50px 18px; }
  .module-open { padding: 15px 11px 11px; }
  .device-nameplate { gap: 6px; }
  .module-symbol { font-size: 9px; padding: 2px 3px; }
  .module-info h3 { font-size: 14px; }
  .module-info p { font-size: 7px; letter-spacing: .6px; }
  .device-screen { padding: 8px; }
  .screen-header { font-size: 7px; }
  .device-screen dt { font-size: 7px; }
  .device-screen dd { font-size: 12px; }
  .device-action { font-size: 7px; gap: 4px; letter-spacing: .4px; }
  .small-knob { display: none; }
  .rack-legend { gap: 10px 16px; }
  .rack-legend > span:last-child { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .bridge-page main { padding: 20px 12px 16px; }
  .studio-cabinet { padding: 16px 17px; }
  .studio-cabinet::before, .studio-cabinet::after { width: 9px; }
  .bridge-patchbay { padding: 14px 14px 12px; }
  .bridge-patchbay::before, .bridge-patchbay::after { width: 7px; }
  .bridge-patchbay::before { left: 3px; }
  .bridge-patchbay::after { right: 3px; }
  .device-grid { grid-template-columns: minmax(0, 1fr); padding-top: 54px; padding-bottom: 22px; }
  .module-open { padding: 18px 19px 14px; }
  .module-info h3 { font-size: 18px; }
  .module-info p { font-size: 8px; letter-spacing: 1px; }
  .module-symbol { font-size: 11px; padding: 3px 5px; }
  .device-nameplate { gap: 10px; }
  .device-power { font-size: 20px; }
  .device-screen { padding: 10px 13px 12px; }
  .device-screen dt, .screen-header { font-size: 8px; }
  .device-screen dd { font-size: 14px; }
  .device-action { font-size: 9px; letter-spacing: .8px; }
  .small-knob { display: inline-block; }
  .module-health { padding: 12px 19px 14px; }
  .transport.panel { gap: 14px; }
  .position { flex: 1 1 145px; }
  .transport-buttons { flex: 1 1 auto; }
  .transport-buttons button { flex: 1; }
  .transport .master { max-width: none; flex: 1 1 100px; }
  .transport .panic { width: 100%; margin: 0; }
  .transport-toggles { flex: 1; justify-content: flex-start; }
  .monitor-column { grid-template-columns: minmax(0, 1fr); }
  .midi-log { height: 160px; font-size: 10px; }
  .midi-screen > p { font-size: 10px; }
  .stats-list > div, .stats-list dd { font-size: 11px; }
  .section-heading { padding: 16px; flex-wrap: wrap; }
  .checkpoint-grid { padding: 0 16px 16px; gap: 10px; }
  .checkpoint-grid > div { padding: 12px 9px; }
  .checkpoint-grid strong { font-size: 11px; }
  .recovery .toolbar { padding: 0 16px; }
  .recovery-note { margin-left: 16px; margin-right: 16px; }
  .advanced-grid { grid-template-columns: minmax(0, 1fr); padding: 8px 16px 20px; gap: 24px; }
  .advanced > summary { padding: 16px; }
  .advanced > summary span { display: block; margin: 7px 0 0 14px; }
  .bridge-track { flex-wrap: wrap; }
  .bridge-track strong { width: 100%; }
  .bridge-track label { flex-basis: 35%; max-width: none; }
  .workspace-footer { flex-direction: column; gap: 5px; }
}
@media (max-width: 380px) {
  .bridge-page .topbar nav { gap: 4px; }
  .bridge-page .topbar nav a { padding: 7px 6px; font-size: 11px; }
  .bridge-master { padding-left: 20px; padding-right: 20px; }
  .project-identity { grid-template-columns: minmax(0, 1fr); }
  .project-identity .eyebrow { margin-bottom: 6px; }
  .project-identity #save-status { grid-column: 1; }
  .patchbay-title { flex-direction: column; }
  .patchbay-title .count-badge { align-self: flex-end; }
  .patch-port-bank { margin-top: 12px; }
  .port-name { font-size: 8px; }
  .module-open { padding-left: 13px; padding-right: 13px; }
  .device-screen { padding-left: 9px; padding-right: 9px; }
  .module-info h3 { font-size: 16px; }
  .device-action { font-size: 8px; }
  .module-health { padding-left: 13px; padding-right: 13px; }
  .checkpoint-grid { grid-template-columns: minmax(0, 1fr); }
  .owner-state { gap: 9px; }
  .owner-state strong { font-size: 11px; }
}
