body.cw-page { margin: 0 !important; padding-top: 132px !important; overflow-x: hidden; color: #f5f5f5; background: linear-gradient(rgba(4, 7, 9, 0.72), rgba(4, 7, 9, 0.92)), url('/images/dxcluster.webp') center / cover fixed !important; }
body.cw-page .live-tool-shell.cw-shell { display: block !important; width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; padding: 0 0 22px !important; box-sizing: border-box; }
body.cw-page .live-tool-shell.cw-shell > section { width: 100% !important; max-width: none !important; box-sizing: border-box; }
.cw-workbench { display: grid; grid-template-columns: clamp(300px, 22vw, 380px) minmax(0, 1fr) clamp(300px, 22vw, 380px); gap: 12px; width: 100%; min-width: 0; height: calc(100vh - 178px); min-height: 620px; padding: 12px; box-sizing: border-box; align-items: stretch; justify-content: stretch; overflow: hidden; }
.cw-panel, .cw-terminal-panel, .cw-log-panel { width: 100%; min-width: 0; border: 1px solid rgba(255, 208, 0, 0.22); background: linear-gradient(180deg, rgba(7, 10, 8, 0.9), rgba(0, 0, 0, 0.76)); box-shadow: 0 20px 54px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.04); backdrop-filter: blur(7px); border-radius: 12px; box-sizing: border-box; }
.cw-panel { display: flex; flex-direction: column; min-height: 0; height: 100%; overflow: auto; padding: 16px; }
.cw-panel-heading { margin-bottom: 14px; }
.cw-panel-heading span, .cw-controls span, .cw-tx-grid span, .cw-tx-message span { display: block; margin-bottom: 5px; color: rgba(255,255,255,0.72); font-size: 0.74rem; font-weight: 900; text-transform: uppercase; }
.cw-panel-heading h2, .cw-log-head h2 { margin: 0; color: #ffd000; font-size: 1.08rem; letter-spacing: 0; }
.cw-audio-monitor h3 { margin: 0 0 8px; color: #9cff00; font-size: 0.92rem; }
.cw-audio-monitor canvas { display: block; width: 100%; height: auto; margin-bottom: 8px; border: 1px solid rgba(156,255,0,0.16); border-radius: 8px; background: #050807; }
.cw-meter { position: relative; height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.12); }
.cw-meter b { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #9cff00, #ffd000); transition: width 0.18s ease; }
.cw-controls, .cw-tx-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 14px; }
.cw-panel--right .cw-tx-message { margin-top: 9px; }
.cw-panel--right .cw-debug { margin-top: auto; }
.cw-controls select, .cw-controls input, .cw-tx-grid input, .cw-tx-message textarea { width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; background: #0b1117; color: #fff; padding: 0 10px; font-weight: 800; }
.cw-controls select, .cw-controls input, .cw-tx-grid input { height: 40px; }
.cw-controls input[type="range"], .cw-tx-grid input[type="range"] { height: 28px; }
.cw-tx-message textarea { min-height: 136px; padding: 10px; resize: vertical; font: 800 0.92rem ui-monospace, SFMono-Regular, Consolas, monospace; }
.cw-range-field input, .cw-tuning-strip input { accent-color: #9cff00; padding: 0; }
.cw-input-device-field.is-hidden { display: none; }
.cw-check-field { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.72); font-weight: 800; }
.cw-auto-tune-field { min-height: 40px; padding: 0 10px; border: 1px solid rgba(156,255,0,0.18); border-radius: 10px; background: rgba(156,255,0,0.06); }
.cw-check-field input { width: 18px; height: 18px; accent-color: #9cff00; }
.cw-button-row, .cw-terminal-actions, .cw-log-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cw-controls button, .cw-tx-grid button, .cw-button-row button, .cw-terminal-actions button, .cw-log-head button, .cw-session-card button { min-height: 40px; border: 1px solid rgba(255,208,0,0.28); border-radius: 10px; background: rgba(255,255,255,0.06); color: #ffd000; font-weight: 900; cursor: pointer; }
.cw-primary, #cwStartRx, #cwOpenWebsdr, #cwSaveSession { background: #9cff00 !important; border-color: #9cff00 !important; color: #102009 !important; }
button:disabled { cursor: not-allowed; opacity: 0.48; }
.cw-terminal-panel { display: flex; flex-direction: column; grid-column: 2; justify-self: stretch; align-self: stretch; width: 100%; min-width: 0; min-height: 0; height: 100%; overflow: hidden; padding: 18px; background: radial-gradient(circle at 50% 10%, rgba(156,255,0,0.1), transparent 34%), linear-gradient(145deg, rgba(9,13,10,0.98), rgba(0,0,0,0.94)); }
.cw-terminal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 12px; }
.cw-terminal-head span { color: #9cff00; font-weight: 900; text-transform: uppercase; font-size: 0.74rem; }
.cw-terminal-head h1 { margin: 0; color: #ffd000; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: 0; }
.cw-status-stack { display: grid; gap: 6px; justify-items: end; color: rgba(255,255,255,0.7); }
.cw-status-stack b { color: #9cff00; }
.cw-terminal-meta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.cw-terminal-meta span { min-width: 0; padding: 8px 10px; border: 1px solid rgba(255,208,0,0.14); border-radius: 8px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); font-weight: 800; }
.cw-terminal-meta b { color: #ffd000; }
.cw-terminal { display: block; flex: 1 1 0; width: 100%; min-width: 0; min-height: 0; max-height: none; overflow-x: hidden; overflow-y: auto; margin: 0; padding: 18px; border: 10px solid #111915; border-radius: 18px; background: linear-gradient(180deg, rgba(10,255,82,0.05), rgba(0,0,0,0.12)), #020403; color: #9cff00; box-shadow: inset 0 0 42px rgba(0,0,0,0.92), 0 0 0 1px rgba(255,208,0,0.18); font: 900 clamp(1.05rem, 1.6vw, 1.45rem) ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cw-terminal-actions { margin-top: 12px; }
.cw-tuning-strip { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid rgba(156,255,0,0.18); border-radius: 10px; background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.68); font-weight: 900; }
.cw-tuning-strip b { color: #9cff00; text-transform: uppercase; font-size: 0.8rem; }
.cw-tuning-strip input { width: 100%; height: 34px; }
#cwTxState { min-height: 22px; color: #9cff00; font-weight: 900; }
.cw-debug { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; }
.cw-debug summary { cursor: pointer; color: #ffd000; font-weight: 900; }
.cw-debug pre { max-height: 220px; overflow: auto; color: #c7f8bd; background: rgba(0,0,0,0.35); border-radius: 8px; padding: 10px; font-size: 0.74rem; }
.cw-log-panel { margin: 0 12px 12px; padding: 16px; }
.cw-log-head { justify-content: space-between; margin-bottom: 12px; }
.cw-session-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cw-session-card { border: 1px solid rgba(156,255,0,0.18); border-radius: 10px; background: rgba(255,255,255,0.05); padding: 12px; }
.cw-session-card div { display: flex; justify-content: space-between; gap: 10px; color: #ffd000; font-weight: 900; }
.cw-session-card span { color: rgba(255,255,255,0.62); font-size: 0.78rem; }
.cw-session-card pre { max-height: 130px; overflow: auto; color: #9cff00; white-space: pre-wrap; word-break: break-word; font: 800 0.88rem ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 1180px) { .cw-workbench { grid-template-columns: 1fr; height: auto; min-height: 0; overflow: visible; } .cw-terminal-panel { grid-column: auto; min-height: 640px; } .cw-panel, .cw-terminal-panel { height: auto; } .cw-terminal { min-height: 360px; } }
@media (max-width: 620px) { body.cw-page { padding-top: 104px !important; } .cw-workbench, .cw-log-panel { padding: 8px; margin: 0; } .cw-terminal-meta { grid-template-columns: 1fr 1fr; } .cw-tuning-strip { grid-template-columns: 1fr auto; } .cw-tuning-strip input { grid-column: 1 / -1; } }
