:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f7fb; font-synthesis: none; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; } button, input { font: inherit; } button { cursor: pointer; }
.app-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 70px; }.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5eaf1; }.brand { display: flex; align-items: center; gap: 11px; color: #172033; font-weight: 750; font-size: 18px; text-decoration: none; }.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #2563eb; color: #fff; font-size: 21px; }.connection { display: flex; align-items: center; gap: 7px; color: #8592a5; font-size: 12px; }.connection i { width: 8px; height: 8px; border-radius: 50%; background: #9aa7b9; }.connection.online { color: #168458; }.connection.online i { background: #20b26b; }
.join-view { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 80px; align-items: center; }.eyebrow { margin: 0 0 11px; color: #74839a; font-size: 10px; font-weight: 800; letter-spacing: .13em; }.join-copy h1, .room-head h1 { margin: 0; color: #142034; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }.join-copy > p:not(.eyebrow) { max-width: 590px; margin: 18px 0 0; color: #687890; font-size: 14px; line-height: 1.8; }.join-form { padding: 24px; border: 1px solid #dfe7f2; border-radius: 10px; background: #fff; }.join-form label { display: block; color: #526177; font-size: 12px; font-weight: 650; }.join-form input { width: 100%; height: 42px; margin-top: 7px; padding: 0 11px; border: 1px solid #d8e0ec; border-radius: 7px; outline: none; }.join-form input:focus, .chat-form input:focus { border-color: #4d86ed; box-shadow: 0 0 0 3px #eaf1ff; }.field-note { margin: 8px 0 17px; color: #8492a6; font-size: 10px; line-height: 1.5; }.primary-button, .secondary-button, .game-room-button { min-height: 40px; padding: 0 15px; border-radius: 8px; font-weight: 700; }.primary-button { border: 1px solid #2563eb; background: #2563eb; color: #fff; }.primary-button:hover { background: #1d4ed8; }.secondary-button { border: 1px solid #d8e0ec; background: #fff; color: #4c5d76; }.secondary-button:hover { border-color: #9bb8ef; color: #2563eb; }.game-room-button { border: 1px solid #168458; background: #168458; color: #fff; }.game-room-button:hover { border-color: #116c48; background: #116c48; }.join-form .primary-button { width: 100%; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; }.hint { min-height: 17px; margin: 11px 0 0; color: #c43d3d; font-size: 12px; }.hidden { display: none !important; }
.room-view { padding-top: 50px; }.room-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 27px; border-bottom: 1px solid #e5eaf1; }.room-head h1 { font-size: 34px; }.quality-label { margin: 12px 0 0; color: #6780a2; font-size: 12px; }.room-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); gap: 18px; margin-top: 20px; }.participants-panel, .chat-panel { min-height: 430px; border: 1px solid #e1e8f2; border-radius: 10px; background: #fff; }.panel-head { min-height: 61px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf1f6; }.panel-head h2 { margin: 0; font-size: 15px; }.panel-head h2 span { color: #8492a6; font-size: 12px; font-weight: 500; }.participants { padding: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; }.participant { min-height: 93px; padding: 14px 12px; border: 1px solid #e8edf4; border-radius: 8px; background: #fbfcfe; }.participant.active { border-color: #b9cdf4; background: #f3f7ff; }.participant-avatar { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #e8effc; color: #2563eb; font-weight: 750; }.participant-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }.engineer-avatar { border: 2px solid #fff; box-shadow: 0 0 0 1px #c8d7ee, 0 3px 9px rgba(31,65,113,.14); }.participant-name { display: block; margin-top: 10px; overflow: hidden; color: #33445d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.participant small { color: #8090a7; font-size: 10px; }.local-meter { margin: auto 18px 18px; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #edf1f6; color: #526177; font-size: 12px; }.local-meter span:last-child { color: #168458; font-size: 11px; }.chat-panel { display: flex; flex-direction: column; }.chat-log { flex: 1; min-height: 0; padding: 15px 18px; overflow: auto; }.chat-message { margin-bottom: 12px; }.chat-message strong { color: #526177; font-size: 11px; }.chat-message p { margin: 3px 0 0; color: #27364e; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }.chat-form { padding: 12px; display: flex; gap: 8px; border-top: 1px solid #edf1f6; }.chat-form input { min-width: 0; flex: 1; height: 38px; padding: 0 10px; border: 1px solid #d8e0ec; border-radius: 7px; outline: none; }.chat-form .primary-button { min-width: 58px; padding: 0 10px; }
.volume-controls { padding: 14px 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; border-bottom: 1px solid #edf1f6; background: #fbfcfe; }.volume-control { min-width: 0; }.volume-control-head { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }.volume-control-head label { color: #526177; font-size: 11px; font-weight: 700; }.volume-control-head output { color: #718096; font-size: 10px; font-variant-numeric: tabular-nums; }.volume-input-row { height: 34px; display: flex; align-items: center; gap: 9px; }.control-icon, .mute-icon-button { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; }.control-icon { color: #526177; font-size: 16px; }.mute-icon-button { position: relative; border: 1px solid #d8e0ec; border-radius: 7px; background: #fff; color: #3f536f; font-size: 16px; }.mute-icon-button:hover { border-color: #91ade0; color: #2563eb; }.mute-icon-button.muted { border-color: #e3a5a5; background: #fff2f2; color: #bd3636; }.mute-icon-button.muted::after { width: 21px; height: 2px; position: absolute; content: ""; border-radius: 2px; background: currentColor; transform: rotate(-45deg); }.volume-input-row input[type="range"] { width: 100%; min-width: 0; height: 20px; margin: 0; accent-color: #2563eb; cursor: pointer; }
.join-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.join-actions .primary-button { width: auto; margin-top: 0; }.join-actions .secondary-button { width: 100%; }.join-actions .game-room-button { width: 100%; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }.game-room-button.full-button { width: 100%; }.game-mode .room-head { border-bottom-color: #b9dfcf; }.game-mode .participant.active { border-color: #acd9c6; background: #f1faf6; }.room-actions { display: flex; align-items: flex-end; gap: 12px; }.engineer-tools { display: flex; align-items: center; gap: 9px; }.engineer-tools > span { color: #718096; font-size: 11px; }.segmented-control { height: 38px; padding: 3px; display: flex; gap: 2px; border: 1px solid #d8e0ec; border-radius: 8px; background: #fff; }.segmented-control button { min-width: 48px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: #617189; font-size: 11px; }.segmented-control button:hover { color: #2563eb; }.segmented-control button.active { background: #eaf1ff; color: #1d5bd2; font-weight: 700; }
.engineer-mode .participants { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }.role-badge { margin-left: 5px; color: #2563eb; font-size: 9px; font-weight: 700; }.engineer-meters { display: none; margin-top: 13px; padding-top: 11px; border-top: 1px solid #e6ebf2; }.engineer-mode .participant:not(.local) .engineer-meters { display: grid; gap: 9px; }.meter-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) 38px; align-items: center; gap: 6px; }.meter-label { color: #77869b; font-size: 9px; font-weight: 700; }.meter-track, .vu-track { height: 6px; position: relative; overflow: hidden; border-radius: 2px; background: #e5eaf1; }.meter-fill { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #24a36a 0 68%, #e3a51b 68% 88%, #d64b4b 88%); transition: width 70ms linear; }.meter-value { color: #718096; font-variant-numeric: tabular-nums; font-size: 9px; text-align: right; }.vu-track { overflow: visible; background: linear-gradient(90deg, #57b77e 0 65%, #e7b34d 65% 84%, #dc6666 84%); }.vu-needle { width: 2px; height: 12px; position: absolute; left: 0; top: -3px; border-radius: 1px; background: #172033; box-shadow: 0 0 0 1px rgba(255,255,255,.7); transition: left 100ms linear; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.45); }.modal { width: min(390px, 100%); padding: 27px; position: relative; border-radius: 10px; background: #fff; box-shadow: 0 24px 65px rgba(15,23,42,.22); }.modal h2 { margin: 0 0 20px; font-size: 22px; }.modal label { display: block; color: #526177; font-size: 12px; font-weight: 650; }.modal input { width: 100%; height: 42px; margin-top: 7px; padding: 0 11px; border: 1px solid #d8e0ec; border-radius: 7px; outline: none; }.modal input:focus { border-color: #4d86ed; box-shadow: 0 0 0 3px #eaf1ff; }.modal-close { width: 34px; height: 34px; position: absolute; right: 12px; top: 10px; border: 0; border-radius: 7px; background: transparent; color: #718096; font-size: 24px; }.modal-close:hover { background: #f0f4fa; }.full-button { width: 100%; margin-top: 20px; }.modal .hint { margin-bottom: 0; }
@media (max-width: 760px) { .app-shell { width: min(100% - 30px, 1080px); }.topbar { height: 66px; }.brand { font-size: 16px; }.join-view { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 55px 0 35px; }.join-copy h1 { font-size: 38px; }.room-view { padding-top: 32px; }.room-head { align-items: flex-start; flex-direction: column; }.room-actions { width: 100%; align-items: flex-start; flex-direction: column; }.engineer-tools { width: 100%; justify-content: space-between; }.segmented-control { flex: 1; }.segmented-control button { flex: 1; }.room-grid { grid-template-columns: 1fr; }.participants-panel, .chat-panel { min-height: 360px; } }
@media (max-width: 430px) { .join-actions { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .volume-controls { grid-template-columns: 1fr; } }

.participant { min-height: 121px; }
.participant-volume { margin-top: 8px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 7px; }
.participant-volume-label { color: #8090a7; font-size: 9px; }
.participant-volume-track { height: 6px; overflow: hidden; border-radius: 2px; background: #e5eaf1; }
.participant-volume-fill { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #24a36a 0 68%, #e3a51b 68% 88%, #d64b4b 88%); transition: width 70ms linear; }
.device-controls { min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); gap: 8px; align-items: center; }
.device-controls label { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; color: #718096; font-size: 10px; font-weight: 700; }
.device-controls select { width: 100%; min-width: 0; height: 30px; padding: 0 7px; border: 1px solid #d8e0ec; border-radius: 6px; outline: none; background: #fff; color: #3f536f; font-size: 10px; text-overflow: ellipsis; }
.device-controls select:focus { border-color: #4d86ed; box-shadow: 0 0 0 3px #eaf1ff; }
.device-hint { grid-column: 1 / -1; min-height: 12px; margin: -2px 0 0; color: #c43d3d; font-size: 9px; }
.checkbox-field { margin-top: 11px; display: flex !important; align-items: center; gap: 7px; color: #718096 !important; font-size: 11px !important; font-weight: 500 !important; cursor: pointer; }
.checkbox-field input { width: 15px; height: 15px; margin: 0; accent-color: #2563eb; }
@media (max-width: 760px) { .participants-panel .panel-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }.participants-panel .device-controls { width: 100%; flex-basis: 100%; } }

.participants-panel .panel-head { min-height: 0; padding: 13px 16px 12px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 10px; }
.participants-panel .panel-head h2 { min-width: 0; line-height: 20px; white-space: nowrap; }
.participants-panel .device-controls { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.participants-panel .device-hint:empty { display: none; }
@media (max-width: 520px) { .participants-panel .device-controls { grid-template-columns: minmax(0, 1fr); }.participants-panel .device-hint { grid-column: 1; } }

.loudness-panel { display: none; }
.engineer-mode .room-head { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(380px, 1.3fr) auto; align-items: end; }
.engineer-mode .loudness-panel { min-width: 0; display: grid; grid-template-columns: repeat(2, 108px) minmax(128px, 1fr) 44px; gap: 7px; align-items: stretch; justify-content: center; }
.loudness-display { height: 86px; padding: 8px 9px 7px; position: relative; display: grid; grid-template-rows: auto 1fr; align-items: center; overflow: hidden; border: 1px solid #111827; border-radius: 6px; background: #20242b; box-shadow: inset 0 0 0 2px #363c45, inset 0 -18px 28px rgba(0,0,0,.32); color: #f8fafc; }
.loudness-display > span { color: #c4cad3; font-size: 8px; font-weight: 800; text-align: center; }
.loudness-display strong { min-width: 0; font-size: 31px; line-height: 1; font-weight: 500; letter-spacing: 0; text-align: center; font-variant-numeric: tabular-nums; }
.loudness-display small { position: absolute; right: 8px; bottom: 6px; color: #aeb6c2; font-size: 8px; }
.loudness-sources { height: 86px; min-width: 0; margin: 0; padding: 7px 9px 8px; overflow: hidden; border: 1px solid #d8e0ec; border-radius: 6px; background: #fff; }
.loudness-sources legend { padding: 0 4px; color: #718096; font-size: 9px; font-weight: 700; }
#loudnessSourceList { max-height: 58px; display: grid; gap: 3px; overflow-y: auto; }
#loudnessSourceList label { min-width: 0; display: flex; align-items: center; gap: 5px; color: #3f536f; font-size: 9px; cursor: pointer; }
#loudnessSourceList label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#loudnessSourceList input { width: 13px; height: 13px; flex: 0 0 13px; margin: 0; accent-color: #2563eb; }
.loudness-empty { color: #94a0b1; font-size: 9px; }
.loudness-reset-button { width: 44px; height: 86px; padding: 0; display: grid; place-content: center; gap: 4px; border: 1px solid #d8e0ec; border-radius: 6px; background: #fff; color: #526177; }
.loudness-reset-button:hover { border-color: #91ade0; color: #2563eb; }
.loudness-reset-button > span { font-size: 20px; line-height: 1; }
.loudness-reset-button small { font-size: 9px; }
.engineer-mode .room-actions { justify-self: end; }
@media (max-width: 980px) { .engineer-mode .room-head { grid-template-columns: minmax(0, 1fr); align-items: start; }.engineer-mode .loudness-panel { width: min(100%, 550px); grid-template-columns: repeat(2, 108px) minmax(128px, 1fr) 44px; justify-content: start; }.engineer-mode .room-actions { justify-self: start; } }
@media (max-width: 520px) { .engineer-mode .loudness-panel { grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; }.engineer-mode .loudness-sources { height: auto; min-height: 64px; grid-column: 1 / 3; }.engineer-mode .loudness-reset-button { height: auto; min-height: 64px; grid-column: 3; } }

.audio-analyzer { display: none; }
.engineer-mode .audio-analyzer { margin-top: 18px; display: block; overflow: hidden; border: 1px solid #dce3ed; border-radius: 8px; background: #fff; }
.analyzer-head { min-height: 64px; padding: 11px 14px 11px 18px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid #e6ebf2; background: #f9fafc; }
.analyzer-head .eyebrow { margin-bottom: 3px; font-size: 8px; }
.analyzer-head h2 { margin: 0; color: #27364e; font-size: 15px; }
.analyzer-target-control { display: flex; align-items: center; gap: 7px; color: #687890; font-size: 10px; white-space: nowrap; }
.analyzer-target-control label { font-weight: 700; }
.analyzer-target-control select { min-width: 72px; height: 30px; padding: 0 22px 0 8px; border: 1px solid #d5ddea; border-radius: 6px; outline: none; background: #fff; color: #3f536f; font-size: 10px; }
.analyzer-target-control select:focus { border-color: #4d86ed; box-shadow: 0 0 0 3px #eaf1ff; }
.analyzer-legend { margin-left: auto; display: flex; align-items: center; gap: 14px; color: #687890; font-size: 9px; }
.analyzer-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.analyzer-legend i { width: 16px; height: 2px; display: inline-block; }
.spectrum-live-key { background: #e8f000; }
.spectrum-peak-key { background: #ff8a00; }
.spectrum-target-key { background: #54d6e4; border-top: 1px dashed #54d6e4; }
.analyzer-reset-button { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid #d8e0ec; border-radius: 6px; background: #fff; color: #526177; font-size: 18px; }
.analyzer-reset-button:hover { border-color: #91ade0; color: #2563eb; }
.analyzer-layout { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) 176px; gap: 12px; background: #eef1f5; }
.analyzer-charts { min-width: 0; display: grid; gap: 10px; }
.analyzer-charts figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #222938; border-radius: 5px; background: #080b16; }
.analyzer-charts figcaption { height: 30px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #273145; background: #171c27; color: #d7dde7; font-size: 10px; font-weight: 700; }
.analyzer-charts figcaption span { color: #8390a5; font-size: 8px; font-weight: 500; }
.analyzer-charts canvas { width: 100%; display: block; background: #080b16; }
.spectrum-chart canvas { aspect-ratio: 3.35 / 1; }
.spectrum-guidance { min-height: 30px; padding: 8px 10px; border-top: 1px solid #273145; background: #111722; color: #aeb9c9; font-size: 10px; line-height: 1.35; }
.spectrum-guidance.low { color: #f1c870; }
.spectrum-guidance.high { color: #f48e8e; }
.spectrum-guidance.close { color: #83d7ad; }
.analyzer-lower { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 10px; }
.stereo-chart canvas { aspect-ratio: 1.9 / 1; }
.stereo-meters { min-width: 0; padding: 10px; display: grid; grid-template-rows: auto 1fr; gap: 12px; border: 1px solid #222938; border-radius: 5px; background: #171c27; color: #d7dde7; }
.correlation-meter { display: grid; grid-template-columns: 34px minmax(0, 1fr) 30px; align-items: center; gap: 6px; font-size: 8px; }
.correlation-track { height: 7px; position: relative; overflow: hidden; border-radius: 2px; background: #343c4a; }
.correlation-track > i { width: 1px; height: 100%; position: absolute; left: 50%; background: #aeb8c8; }
.correlation-track > b { height: 100%; position: absolute; left: 50%; width: 0; background: #27b879; }
.correlation-track > b.negative { background: #dc525e; }
.correlation-meter output, .channel-meter output { color: #f2c94c; font-size: 8px; font-variant-numeric: tabular-nums; text-align: right; }
.channel-meter-group { min-height: 92px; display: flex; justify-content: center; gap: 24px; }
.channel-meter { display: grid; grid-template-rows: 14px minmax(65px, 1fr) 15px; justify-items: center; gap: 4px; color: #9ca8b9; font-size: 9px; }
.channel-meter > div { width: 18px; height: 100%; min-height: 65px; position: relative; overflow: hidden; border: 1px solid #495260; border-radius: 2px; background: repeating-linear-gradient(to top, #222937 0 6px, #171c27 6px 8px); }
.channel-meter > div i { width: 100%; height: 0; position: absolute; left: 0; bottom: 0; background: linear-gradient(to top, #27b879 0 70%, #e7b642 70% 90%, #dc525e 90%); }
.channel-meter output { width: 27px; text-align: center; }
.analyzer-sources { min-width: 0; margin: 0; padding: 10px; border: 1px solid #d2d9e3; border-radius: 5px; background: #fff; }
.analyzer-sources legend { padding: 0 5px; color: #526177; font-size: 10px; font-weight: 700; }
#analyzerSourceList { display: grid; gap: 6px; }
#analyzerSourceList label { min-width: 0; min-height: 27px; padding: 4px 6px; display: flex; align-items: center; gap: 7px; border: 1px solid #e4e9f0; border-radius: 4px; background: #f8fafc; color: #3f536f; font-size: 10px; cursor: pointer; }
#analyzerSourceList label:has(input:checked) { border-color: #a9c1ee; background: #eef4ff; color: #1f56b5; }
#analyzerSourceList label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#analyzerSourceList input { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; accent-color: #2563eb; }
.analyzer-empty { color: #94a0b1; font-size: 9px; }
@media (max-width: 760px) { .analyzer-layout { grid-template-columns: minmax(0, 1fr); }.analyzer-sources { grid-row: 1; }.analyzer-sources #analyzerSourceList { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }.analyzer-lower { grid-template-columns: minmax(0, 1fr) 150px; }.analyzer-legend { display: none; }.analyzer-target-control { margin-left: auto; } }
@media (max-width: 480px) { .analyzer-head { flex-wrap: wrap; gap: 8px 12px; }.analyzer-head > div:first-child { flex: 1 1 100%; }.analyzer-target-control { margin-left: 0; }.analyzer-reset-button { margin-left: auto; }.analyzer-lower { grid-template-columns: minmax(0, 1fr); }.stereo-meters { min-height: 120px; grid-template-columns: minmax(0, 1fr) 110px; grid-template-rows: 1fr; align-items: center; }.channel-meter-group { min-height: 90px; }.spectrum-chart canvas { aspect-ratio: 2 / 1; }.stereo-chart canvas { aspect-ratio: 1.45 / 1; } }
