/* Three functional radio workspaces share one DOM and one set of controls. */
html[data-theme] .app-shell .layout-picker-trigger { gap: 7px; }
html[data-theme] .app-shell .layout-picker-trigger > span:first-child { font-size: 17px; line-height: 1; }
html[data-theme] .app-shell .top-settings-button { width: 40px; justify-content: center; padding-inline: 9px; }
html[data-theme] .app-shell .top-settings-button .ui-icon { width: 17px; height: 17px; }

.layout-dialog {
  width: min(830px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  padding: 0;
  border: 1px solid #414446;
  border-radius: 18px;
  color: #f4f5f3;
  background: #1a1c1e;
  box-shadow: 0 30px 100px #0009;
}
.layout-dialog::backdrop { background: #000b; backdrop-filter: blur(6px); }
html[data-theme="light"] .layout-dialog { color: #1b1d1e; background: #fff; border-color: #cbd0ce; }
.layout-dialog-head { display: flex; gap: 20px; justify-content: space-between; padding: 27px 30px 20px; border-bottom: 1px solid #ffffff22; }
html[data-theme="light"] .layout-dialog-head { border-bottom-color: #dce0dd; }
.layout-dialog-head .micro-label { color: #aeb5b3; }
html[data-theme="light"] .layout-dialog-head .micro-label { color: #6d7471; }
.layout-dialog-head h2 { margin: 8px 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.055em; }
.layout-dialog-head p:last-child { margin: 0; color: #aeb4b4; font-size: 13px; line-height: 1.5; }
html[data-theme="light"] .layout-dialog-head p:last-child { color: #5d6461; }
.layout-dialog-head > button { flex: 0 0 38px; height: 38px; border: 1px solid #ffffff33; border-radius: 9px; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
html[data-theme="light"] .layout-dialog-head > button { border-color: #d4d8d5; }
.layout-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 22px 30px 30px; }
.layout-options > button { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border: 1px solid #414649; border-radius: 13px; color: inherit; background: #242729; text-align: left; cursor: pointer; }
html[data-theme="light"] .layout-options > button { background: #f5f6f3; border-color: #d7dbd7; }
.layout-options > button[aria-pressed="true"] { border-color: #dce5e0; box-shadow: inset 0 0 0 1px #dce5e0; }
html[data-theme="light"] .layout-options > button[aria-pressed="true"] { border-color: #202522; box-shadow: inset 0 0 0 1px #202522; }
.layout-options > button:hover { filter: brightness(1.09); }
.layout-options strong { font-size: 15px; margin-top: 5px; }
.layout-options small { min-height: 38px; color: #b8bebc; font-size: 11px; line-height: 1.5; }
html[data-theme="light"] .layout-options small { color: #606864; }
.layout-options em { margin-top: 6px; font-size: 10px; font-style: normal; color: #95c8aa; font-weight: 800; }
html[data-theme="light"] .layout-options em { color: #28764d; }
.layout-option-art { width: 100%; height: 75px; display: grid; gap: 5px; padding: 7px; background: #121516; border: 1px solid #3e4545; border-radius: 8px; }
html[data-theme="light"] .layout-option-art { background: #e7ebe7; border-color: #cdd5ce; }
.layout-option-art i { display: block; background: #596260; border-radius: 3px; }
html[data-theme="light"] .layout-option-art i { background: #9eaba2; }
.layout-option-art-shelf { grid-template-columns: 2fr 1fr; grid-template-rows: 18px 1fr; }
.layout-option-art-shelf i:first-child { grid-column: 1/-1; }
.layout-option-art-timeline { grid-template-columns: 17px 2fr 1fr; }
.layout-option-art-timeline i:nth-child(2) { grid-column: 2; }
.layout-option-art-timeline i:nth-child(3) { grid-column: 3; }
.layout-option-art-dashboard { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.layout-option-art-dashboard i:first-child { grid-row: 1/3; }
.layout-dialog :is(button):focus-visible { outline: 3px solid #78bd94; outline-offset: 2px; }

@media (max-width: 1100px) {
  html[data-theme] .app-shell .layout-picker-trigger { width: 42px; min-height: 40px; justify-content: center; padding: 6px; }
  html[data-theme] .app-shell #layout-trigger-label,
  html[data-theme] .app-shell .top-settings-button { display: none; }
  html[data-theme] .app-shell .layout-picker-trigger > span:first-child { display: inline; }
  html[data-theme] .app-shell .workspace { display: block; }
  html[data-theme] .app-shell[data-layout="timeline"] .radio-console { background: var(--simple-bg); }
  html[data-theme] .app-shell[data-layout="timeline"] .radio-hardware { border-radius: 12px; }
  html[data-theme] .app-shell[data-layout="timeline"] .quick-status { border-left: 3px solid var(--simple-muted); }
  html[data-theme] .app-shell[data-layout="dashboard"] .radio-hardware { background: #202522; color: #f5f8f5; }
  html[data-theme="light"] .app-shell[data-layout="dashboard"] .radio-hardware { color: var(--simple-text); background: var(--simple-panel); }
  html[data-theme] .app-shell[data-layout="dashboard"] .radio-hardware :is(.frequency,.channel-readout strong,.speaker-card strong,.channel-crown-panel > div strong) { color: #f5f8f5; }
  html[data-theme] .app-shell[data-layout="dashboard"] .radio-hardware :is(.radio-device-label,.radio-device-mark,.speaker-card small,.audio-health) { color: #b9c8be; }
  html[data-theme="light"] .app-shell[data-layout="dashboard"] .radio-hardware :is(.frequency,.channel-readout strong,.speaker-card strong,.channel-crown-panel > div strong) { color: var(--simple-text); }
  html[data-theme="light"] .app-shell[data-layout="dashboard"] .radio-hardware :is(.radio-device-label,.radio-device-mark,.speaker-card small,.audio-health) { color: var(--simple-muted); }
  html[data-theme] .app-shell[data-layout="dashboard"] .ptt-button { color: #17221b; background: #f1f6f0; }
  html[data-theme="light"] .app-shell[data-layout="dashboard"] .ptt-button { color: #fff; background: #222426; }
  html[data-theme] .app-shell[data-layout="dashboard"] .quick-status { border-radius: 16px; }
}

@media (max-width: 680px) {
  .layout-dialog-head { padding: 22px 20px 17px; }
  .layout-options { grid-template-columns: 1fr; padding: 16px 20px 24px; }
  .layout-options > button { display: grid; grid-template-columns: 88px minmax(0,1fr); grid-template-rows:auto auto auto; gap: 2px 12px; }
  .layout-option-art { grid-column: 1; grid-row: 1/4; height: 70px; }
  .layout-options strong { grid-column: 2; grid-row: 1; margin: 0; }
  .layout-options small { grid-column: 2; grid-row: 2; min-height: 0; }
  .layout-options em { grid-column: 2; grid-row: 3; margin: 0; }
}

/* Components shared by the three reference compositions. */
#radio-desk[hidden], #app-screen .rd-top, #desk-drawer [hidden] { display:none }
#desk-drawer {
  width:min(520px, calc(100vw - 32px)); max-height:85dvh; padding:22px; overflow:auto;
  background:var(--simple-panel); color:var(--simple-text); border:1px solid var(--simple-line); border-radius:16px;
}
#desk-drawer::backdrop {background:#1119}
#desk-drawer header, #radio-desk .rd-channels header, #radio-desk .rd-live header, #radio-desk .rd-heading {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
#desk-drawer h2 {margin:0; font-size:21px}
#desk-drawer header {margin-bottom:18px}
#desk-drawer header button, #radio-desk [data-desk-pane], #radio-desk .rd-link, #radio-desk .rd-dock > button {
  background:var(--simple-panel); color:var(--simple-text); border:1px solid var(--simple-line); border-radius:8px;
  padding:9px 14px; font:650 12px/1.35 var(--font-ui); cursor:pointer;
}
#desk-drawer :is([data-slot="account"],[data-slot="actions"],[data-slot="filters"],[data-slot="tools-quick"]) {display:grid;gap:10px}
#desk-drawer [data-slot="account"] > :not([hidden]) {display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin:0; font-size:13px}
#desk-drawer .desk-quick-actions {display:grid;grid-template-columns:1fr}
#desk-drawer .channel-list {max-height:42dvh;overflow:auto;margin:12px 0}
#desk-drawer .channel-crown-panel {display:flex;align-items:center;gap:12px;min-height:64px}
#desk-drawer .channel-filters button {min-height:36px}
#desk-drawer .quick-status-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#desk-drawer .quick-status-buttons button {width:100%; min-height:44px}
#desk-drawer .quick-status {display:block;margin-bottom:16px}
#desk-drawer .status-dock {min-height:50px}
@media(min-width:1101px) {
  #app-screen:has(#radio-desk:not([hidden])) > .workspace {display:none}
  #app-screen .rd-top {display:inline-flex;align-items:center;justify-content:center}
  #app-screen #top-settings {display:none}
  #app-screen .topbar {height:68px;min-height:68px;padding-inline:clamp(20px,3vw,42px)}
  #app-screen .top-actions {display:flex;align-items:center;gap:8px}
  #app-screen .top-actions > button {height:38px;min-height:38px;padding:0 14px;border-radius:8px}
  #app-screen .operator-id {max-width:120px}
  #radio-desk {
    --gap:clamp(14px,1.45vw,22px); --pad:clamp(20px,3vw,44px);
    min-height:0;min-width:0;overflow:auto; display:grid; align-content:start;
    gap:var(--gap); padding:20px var(--pad) 24px; background:var(--simple-bg); color:var(--simple-text);
  }
  #radio-desk *, #desk-drawer * {box-sizing:border-box}
  #radio-desk > * {min-width:0;min-height:0}
  #radio-desk .rd-card {border:1px solid var(--simple-line);background:var(--simple-panel);border-radius:16px;padding:20px;overflow:auto}
  #radio-desk .rd-alerts {grid-area:alerts;display:grid;gap:8px}
  #radio-desk .rd-alerts:not(:has(> :not([hidden]))) {display:none}
  #radio-desk h1,#radio-desk h2,#radio-desk p {margin:0}
  #radio-desk h2 {font:750 18px/1.2 var(--font-ui);letter-spacing:-.035em}
  #radio-desk :is(.rd-heading,.rd-team,.rd-hilal,.rd-live-body,.rd-quick) > small,#radio-desk .rd-heading small {
    color:var(--simple-muted);font:750 10px/1.4 var(--font-ui);letter-spacing:.12em
  }
  #radio-desk .rd-heading {grid-area:title}
  #radio-desk .rd-heading h1 {font:800 clamp(28px,3vw,39px)/1.15 var(--font-ui);letter-spacing:-.055em;margin:4px 0}
  #radio-desk .rd-heading p,#radio-desk .rd-live-body > p,#radio-desk .rd-hilal p {font-size:13px;line-height:1.55;color:var(--simple-muted)}
  #radio-desk .rd-channels {grid-area:channels}
  #radio-desk .rd-channels header {margin-bottom:10px}
  #radio-desk .rd-channels header button,#radio-desk .rd-link {background:transparent;border:0;padding:6px 0}
  #radio-desk .channel-list {display:flex;gap:10px;overflow:auto;padding:0;max-height:none;min-width:0}
  #radio-desk .channel-row {flex:1 0 146px;min-width:0;margin:0;position:relative}
  #radio-desk .channel-row .channel-card {display:flex;align-items:center;gap:8px;width:100%;min-height:65px;height:auto;padding:9px 22px 9px 14px;border:1px solid var(--simple-line);border-radius:10px;color:var(--simple-text);background:var(--simple-panel-alt)}
  #radio-desk .channel-copy {display:flex;flex-direction:column-reverse;align-items:start;gap:5px;text-align:left;min-width:0}
  #radio-desk .channel-copy strong {font:720 13px/1.2 var(--font-ui)}
  #radio-desk .channel-copy small {font:650 10px/1 var(--font-mono);letter-spacing:.02em;color:inherit;opacity:.75}
  #radio-desk .channel-icon,#radio-desk .channel-chevron {display:none}
  #radio-desk .channel-card.is-locked .channel-icon {display:grid;width:15px;height:18px;min-width:15px;background:transparent;color:inherit;border:0}
  #radio-desk .channel-card.is-active {color:var(--simple-action-text);background:var(--simple-action);box-shadow:none}
  #radio-desk .channel-card.is-active strong {color:inherit}
  #radio-desk .channel-star {right:2px;width:22px}
  #radio-desk .rd-live {grid-area:live;display:flex;flex-direction:column;padding:0;overflow:visible}
  #radio-desk .rd-live header {flex:none;padding:14px 24px;border-bottom:1px solid var(--simple-line);font-size:12px}
  #radio-desk .rd-live header i {display:inline-block;width:8px;height:8px;border-radius:50%;background:#489971;margin-right:8px}
  #radio-desk .rd-live-body {display:flex;flex-direction:column;align-items:stretch;gap:10px;flex:1;min-height:0;padding:clamp(16px,2vw,32px)}
  #radio-desk .rd-live-body h2 {font-size:clamp(26px,2.8vw,42px);line-height:1.08;overflow-wrap:anywhere}
  #radio-desk .speaker-card {width:100%;margin:8px 0 0;padding:9px 14px;min-height:52px}
  #radio-desk .rd-transmit {margin-top:auto;padding-top:12px}
  #radio-desk .ptt-cluster {display:block;position:relative;min-width:0;margin:0;padding:0;border:0;background:none}
  #radio-desk .ptt-status-line {margin:0 0 5px;min-height:14px;font-size:10px}
  #radio-desk .ptt-button {display:grid;place-items:center;width:100%;height:clamp(68px,9vh,98px);min-height:64px;margin:0;padding:8px 15px;border-radius:12px}
  #radio-desk .ptt-button .ptt-button__inner {display:flex;align-items:center;justify-content:center;flex-direction:row}
  #radio-desk .keyboard-hint {display:flex;justify-content:center;align-items:center;flex-wrap:wrap;margin:7px 0 0;gap:7px}
  #radio-desk .sos-control:not([hidden]) {display:flex;align-items:center;min-height:0;padding:0;margin:0 0 8px;border:0;background:none;gap:10px}
  #radio-desk .sos-button {min-width:44px;min-height:30px;height:30px;padding:2px 9px;width:auto}
  #radio-desk .sos-button small {display:none}
  #radio-desk .sos-control p {font-size:10px;line-height:1.25;color:var(--simple-muted)}
  #radio-desk .rd-feed {grid-area:feed;padding:0;overflow:hidden;display:flex}
  #radio-desk #member-rack {height:100%;min-height:0;width:100%;display:flex;flex-direction:column;overflow:auto;margin:0;padding:16px;gap:10px;border:none;background:transparent}
  #radio-desk #member-rack > :is(.rack-collapse,.rack-resizer) {display:none}
  #radio-desk .rack-tabs {display:flex;flex:none;margin:0}
  #radio-desk .rack-tab {flex:1;min-height:35px;margin:0;padding:5px}
  #radio-desk .rack-panel:not([hidden]) {display:flex;flex:1;min-height:0;flex-direction:column;overflow:auto}
  #radio-desk .rack-header {flex:none;margin:0 0 8px}
  #radio-desk .chat-messages {flex:1;min-height:60px;overflow:auto;max-height:none}
  #radio-desk .chat-form {margin-top:auto;flex:none}
  #radio-desk .chat-empty {min-height:70px}
  #radio-desk .rd-quick {grid-area:quick}
  #radio-desk .quick-status {display:block;background:none;border:0;margin:5px 0;padding:0}
  #radio-desk .quick-status-heading {text-align:left;display:block}
  #radio-desk .quick-status-heading strong {display:block;font-size:18px}
  #radio-desk .quick-status-heading small {display:none}
  #radio-desk .quick-status-buttons {display:grid;grid-template-columns:1fr;gap:7px;margin:14px 0 8px}
  #radio-desk .quick-status-buttons button {display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;width:100%;min-height:42px;height:auto;padding:9px 12px;margin:0;font-size:12px}
  #radio-desk .rd-team {grid-area:team}
  #radio-desk .rd-team ul {list-style:none;padding:0;margin:12px 0;max-height:150px;overflow:auto}
  #radio-desk .rd-team li {display:flex;align-items:center;gap:9px;font-size:13px;padding:7px 0;border-bottom:1px solid var(--simple-line)}
  #radio-desk .rd-team li b {display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:var(--simple-panel-alt);border:1px solid var(--simple-line)}
  #radio-desk .rd-team li small {display:block;color:var(--simple-muted);font-size:10px}
  #radio-desk .rd-hilal {grid-area:hilal}
  #radio-desk :is(.rd-team,.rd-hilal) h2 {margin:7px 0 12px}
  #radio-desk .rd-link {margin-top:8px}
  #radio-desk .rd-dock {grid-area:dock}
  #app-screen[data-layout=shelf] #radio-desk {grid-template-columns:minmax(0,1.9fr) minmax(330px,.9fr);grid-template-areas:"channels channels" "alerts alerts" "live feed";grid-template-rows:auto auto minmax(min-content,1fr);row-gap:0;align-content:stretch}
  #app-screen[data-layout=shelf] .rd-channels {background:var(--simple-panel);margin:-20px calc(-1 * var(--pad)) var(--gap);padding:15px var(--pad);border-bottom:1px solid var(--simple-line)}
  #app-screen[data-layout=shelf] #radio-desk :is(.rd-heading,.rd-team,.rd-quick,.rd-hilal,.rd-dock) {display:none}
  #app-screen[data-layout=timeline] #radio-desk {grid-template-columns:108px minmax(0,1fr) minmax(265px,23%);grid-template-areas:"channels alerts alerts" "channels feed live" "channels feed team" "channels feed quick" "channels dock quick";grid-template-rows:auto auto minmax(80px,1fr) auto auto;align-content:stretch}
  #app-screen[data-layout=timeline] #radio-desk :is(.rd-heading,.rd-hilal,.rd-transmit [data-slot=talk],.rd-live [data-slot=speaker]) {display:none}
  #app-screen[data-layout=timeline] .rd-live-body {padding:14px}
  #app-screen[data-layout=timeline] .rd-live-body h2 {font-size:22px}
  #app-screen[data-layout=timeline] .rd-channels header {display:block}
  #app-screen[data-layout=timeline] .channel-list {display:flex;flex-direction:column;gap:6px}
  #app-screen[data-layout=timeline] .channel-row {flex:none}
  #app-screen[data-layout=timeline] .channel-row .channel-card {display:block;padding:9px 8px;min-height:48px}
  #app-screen[data-layout=timeline] .channel-copy strong {max-width:100%;font-size:11px}
  #app-screen[data-layout=timeline] .rd-channels :is(.channel-star,.channel-icon) {display:none}
  #app-screen[data-layout=timeline] .rd-dock {display:grid;align-items:center;grid-template-columns:minmax(70px,1fr) auto minmax(160px,.95fr);gap:12px;padding:14px 18px;border-radius:14px;background:var(--simple-action);color:var(--simple-action-text)}
  #radio-desk .rd-dock .ptt-button {background:var(--simple-panel);color:var(--simple-text);height:65px}
  #radio-desk .rd-dock .ptt-status-line {color:inherit}
  #radio-desk .rd-dock .keyboard-hint {display:none}
  #radio-desk .rd-dock strong {font-size:19px}
  #radio-desk .rd-dock p {font-size:12px}
  #app-screen[data-layout=dashboard] #radio-desk {grid-template-columns:repeat(2,minmax(0,1fr)) minmax(300px,1fr);grid-template-areas:"title title title" "alerts alerts alerts" "live live quick" "team hilal feed";grid-template-rows:auto auto minmax(340px,auto) minmax(280px,1fr);row-gap:14px}
  #app-screen[data-layout=dashboard] #radio-desk :is(.rd-channels,.rd-dock) {display:none}
  #app-screen[data-layout=dashboard] .rd-live {background:#222926;color:#f4f7f3}
  #app-screen[data-layout=dashboard] .rd-live :is(header, .rd-live-body > small,.rd-live-body > p,.sos-control p,.ptt-status-line,.keyboard-hint) {color:#ccd5cf}
  #app-screen[data-layout=dashboard] .rd-live .ptt-button {background:#eff4ef;color:#17211c}
  #radio-desk .ptt-button.is-held,#app-screen[data-layout=dashboard] .rd-live .ptt-button.is-held {color:white;background:#186448}
  #app-screen.is-compact #radio-desk {display:flex;flex-direction:column;align-items:center}
  #app-screen.is-compact #radio-desk > :not(.rd-live,.rd-alerts),#app-screen.is-compact[data-layout=timeline] #radio-desk > .rd-dock {display:none}
  #app-screen.is-compact #radio-desk .rd-live,#app-screen.is-compact[data-layout=timeline] #radio-desk .rd-dock {display:block;width:min(100%,760px)}
}
@media(max-width:1100px) {
  #app-screen .quick-status-buttons {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #app-screen .quick-status-buttons button {width:100%;min-height:44px;margin:0}
  #app-screen .desk-quick-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #app-screen #open-hilal-center {grid-column:1/-1}
  #app-screen .mobile-nav button {flex:1;min-width:0}
}
@media(min-width:1101px) {
  #app-screen .operator-id {align-items:stretch;overflow:hidden;min-width:0;max-width:145px}
  #app-screen .operator-id > * {min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #radio-desk .rd-card,#radio-desk .rd-heading,#app-screen .layout-picker-trigger {color:var(--simple-text)}
  #radio-desk :is(.rd-live,.rd-team,.rd-hilal,.rd-heading) :is(h1,h2) {color:inherit}
  #radio-desk .rd-card .rd-live-body {flex:1 0 auto;min-height:min-content}
  #app-screen[data-layout=dashboard] #radio-desk {grid-template-rows:auto auto max-content minmax(300px,1fr)}
  #app-screen[data-layout=dashboard] #radio-desk .rd-live {color:#f4f7f3;min-height:340px}
  #app-screen[data-layout=dashboard] .rd-live .speaker-card {border-color:#46504b;background:#303933}
  #app-screen[data-layout=dashboard] .rd-live .speaker-card strong {color:#f4f7f3}
  #app-screen[data-layout=dashboard] .rd-live .speaker-card small, #app-screen[data-layout=dashboard] .rd-live .keyboard-hint button {color:#d6e1d9}
  #radio-desk .rd-dock .ptt-status-line strong {font:650 10px/1.4 var(--font-mono)}
  #app-screen[data-layout=timeline] .chat-message {position:relative;padding:12px 16px;margin:0 0 10px 16px;background:var(--simple-panel-alt);border-radius:9px;border:1px solid var(--simple-line);border-inline-start:3px solid var(--status-color,var(--simple-line))}
  #app-screen[data-layout=timeline] .chat-message::before {content:"";position:absolute;left:-16px;top:18px;width:8px;height:8px;border-radius:50%;background:var(--status-color,var(--simple-muted))}
  #app-screen[data-layout=timeline] .chat-messages:not(:empty) {border-inline-start:1px solid var(--simple-line)}
  #radio-desk :is(button,input):focus-visible,#desk-drawer :is(button,input):focus-visible {outline:2px solid currentColor;outline-offset:2px}
  #radio-desk .rd-dock .ptt-button.is-held {background:#186448;color:white}
}
@media(max-width:1100px) {
  #app-screen .radio-console .desk-summary {display:none}
  #app-screen .radio-console .console-heading {padding-bottom:0}
  #app-screen .console-heading .micro-label {display:none}
  #app-screen .lcd-screen {display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:0}
  #app-screen .lcd-head {order:0}
  #app-screen .channel-readout {order:1;display:flex;align-items:baseline;gap:8px}
  #app-screen .channel-readout strong {font:750 clamp(19px,5vw,28px)/1.2 var(--font-ui)}
  #app-screen .frequency-line {order:2;margin:0}
  #app-screen .frequency-line .frequency {font:650 18px/1.25 var(--font-mono)}
  #app-screen .speaker-card {order:3;margin:4px 0 0}
}
#mobile-flow-talk:empty {display:none}
@media(max-width:1100px) {
  #mobile-flow-talk:not(:empty) {position:sticky;bottom:68px;z-index:2;margin:8px 0;padding:8px;background:var(--simple-panel);border:1px solid var(--simple-line);border-radius:12px}
  #mobile-flow-talk .ptt-cluster {padding:0;border:0}
  #mobile-flow-talk .ptt-button {height:64px}
}
@media(min-width:1101px) {
  #app-screen[data-layout=dashboard] #radio-desk {grid-template-rows:max-content max-content max-content minmax(280px,1fr)}
  #app-screen[data-layout=dashboard] .rd-heading {min-height:max-content}
  html[data-theme=light] #radio-desk :is(.rd-team,.rd-hilal,.rd-heading,.rd-quick,.rd-channels),html[data-theme=light] #app-screen #open-layouts {color:#1b1d1e}
  html[data-theme=light] #app-screen[data-layout=shelf] .rd-live {color:#1b1d1e}
  html[data-theme=light] #radio-desk .channel-card.is-active {color:white}
  html[data-theme=light] #app-screen[data-layout=shelf] #radio-desk .ptt-button {color:white}
  html[data-theme=light] #radio-desk .rd-dock .ptt-button {color:#1b1d1e}
}
@media(min-width:1101px) {
  html[data-theme=light] #radio-desk .rd-heading h1,html[data-theme=light] #radio-desk :is(.rd-team,.rd-hilal,.rd-channels) :is(h2,li,li span),html[data-theme=light] #open-layouts span {color:#1b1d1e}
  html[data-theme=light] #app-screen[data-layout=shelf] #radio-desk .rd-live h2 {color:#1b1d1e}
  html[data-theme=light] #app-screen[data-layout=shelf] #radio-desk .ptt-button :is(b,small,svg) {color:white}
  html[data-theme=light] #radio-desk .rd-dock .ptt-button :is(b,small,svg) {color:#1b1d1e}
  html[data-theme=light] #app-screen[data-layout=dashboard] .rd-live .ptt-button :is(b,small,svg) {color:#17211c}
  html[data-theme=light] #app-screen[data-layout=dashboard] .rd-live .ptt-button.is-held :is(b,small,svg) {color:#fff}
}
#radio-desk .rd-rail {display:none}
@media(min-width:1101px) {
  #app-screen[data-layout=timeline] #radio-desk {grid-template-areas:"channels alerts rail" "channels feed rail" "channels dock rail";grid-template-rows:auto minmax(0,1fr) auto}
  #app-screen[data-layout=timeline] .rd-rail {grid-area:rail;display:flex;flex-direction:column;gap:var(--gap);overflow:auto;scrollbar-width:thin;min-height:0}
  #app-screen[data-layout=timeline] .rd-rail > div {flex:none}
  #app-screen[data-layout=timeline] .rd-rail .rd-card {overflow:visible}
  #app-screen[data-layout=timeline] .rd-live .rd-transmit:has(.sos-control[hidden]) {display:none}
  #app-screen.is-compact[data-layout=timeline] .rd-rail {display:none}
  #app-screen[data-layout=dashboard] .rd-live .rd-live-body {padding:16px 24px;gap:6px}
  #app-screen[data-layout=dashboard] .rd-live .rd-live-body > small {display:none}
  #app-screen[data-layout=dashboard] .rd-live .ptt-button {height:72px}
  #app-screen[data-layout=dashboard] .rd-live .speaker-card {margin:2px 0 0}
}
#app-screen .topbar #sos-control:not([hidden]) {display:block;flex:0 0 auto;margin:0;padding:0;border:0;background:none}
#app-screen .topbar #sos-button {min-width:0;width:auto;height:auto;min-height:38px;padding:6px 12px;border-radius:8px}
#app-screen .topbar #sos-button span {font:750 13px/1.2 var(--font-ui);letter-spacing:0}
#app-screen .topbar #sos-button small,#app-screen .topbar #sos-help {display:none}
#radio-desk .rd-feed,#radio-desk #chat-panel {overflow:hidden}
#radio-desk #chat-messages {flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
#radio-desk #chat-form {flex:0 0 auto}
#app-screen[data-layout=shelf] #radio-desk {grid-template-rows:auto auto minmax(0,1fr)}
#app-screen[data-layout=dashboard] #radio-desk {grid-template-rows:max-content max-content max-content minmax(280px,1fr)}
@media(max-width:680px) {
 #app-screen .topbar {gap:5px;padding-inline:6px}
 #app-screen .topbar .compact-brand div,#app-screen .topbar .network-state {display:none}
 #app-screen .topbar #sos-button {padding:5px 7px}
 #app-screen .mobile-nav ~ * {min-width:0}
 #app-screen .chat-messages {max-height:45dvh;overflow:auto;overflow-wrap:anywhere}
}
@media(max-width:380px) {
 #app-screen .topbar:has(#sos-control:not([hidden])) .top-actions {gap:3px;margin-inline:0}
 #app-screen .topbar:has(#sos-control:not([hidden])) .top-actions > :is(button,a) {width:34px;min-width:32px;padding-inline:4px}
 #app-screen .topbar #sos-button {padding-inline:5px}
}
