/* Colorful — reference-led navy, cyan and violet instrument cards.
   The reference informs surfaces and accents, never fabricated measurements.
   Every rule is opt-in and station-only. Existing nodes, pane positions, signal
   colors and live sessions stay intact. Desktop fit reclaims spacing, not type size. */
html[data-appearance=colorful] body.station-page {
 --colorful-surface:#152246;
 --colorful-station:#17294b;
 --colorful-chat:#241e4b;
 --colorful-reading:#0a1025;
 --colorful-blue:#1f3463;
 --colorful-violet:#33265f;
 --colorful-cyan:#79ddff;
 --colorful-purple:#bba8ff;
 --colorful-green:#98ebbe;
 --colorful-gold:#ffdb86;
 --colorful-pink:#ffb4c8;
 --appearance-line:#637bab;
 --appearance-control-line:#8c9fc9;
 background:#0c1230!important;color:#f7f9ff!important;
 font:400 1rem/1.55 system-ui,sans-serif;
}

/* Opaque reading planes: decorative scenery can never show through copy. */
html[data-appearance=colorful] body.station-page :is(.panel,.decoder-content,.transport,.notice,.source-journey,.review,.sdr-meter,.notearea,.setup-companion,.setup-mesh-entry,.setup-guide) {
 background:var(--colorful-surface)!important;color:var(--appearance-ink)!important;
 backdrop-filter:none;-webkit-backdrop-filter:none;text-shadow:none;
}
html[data-appearance=colorful] body.station-page :is(.panel,.chat) {
 border:1px solid var(--appearance-line);border-radius:12px;
 box-shadow:0 6px 18px #00000035;overflow:visible;
}
html[data-appearance=colorful] body.station-page .panel::after {content:none}
html[data-appearance=colorful] body.station-page .station-column>.panel {
 background:var(--colorful-station)!important;border-top:4px solid var(--colorful-cyan)!important;
}
html[data-appearance=colorful] body.station-page .station-column>.radio-health {border-top-color:var(--colorful-green)!important}
html[data-appearance=colorful] body.station-page .workspace>.decoder-panel {border-top:4px solid var(--colorful-cyan)!important}
html[data-appearance=colorful] body.station-page .workspace>.chat {
 background:var(--colorful-chat)!important;border-top:4px solid var(--colorful-purple)!important;
}
html[data-appearance=colorful] body.station-page .decoder-commandbar {
 background:linear-gradient(100deg,var(--colorful-blue),var(--colorful-surface))!important;
 border-radius:8px 8px 0 0;padding:12px 14px;
}
html[data-appearance=colorful] body.station-page .chat>.chat-heading {
 background:linear-gradient(100deg,var(--colorful-violet),var(--colorful-chat))!important;
 border-radius:8px 8px 0 0;padding:12px 14px;flex-wrap:wrap;
}
html[data-appearance=colorful] body.station-page :is(.heading,.tools,.view-controls,header nav) {background:transparent!important}
html[data-appearance=colorful] body.station-page :is(.transcript,.chatspace,#transcript,.notearea,#notebook,textarea) {
 background:var(--colorful-reading)!important;color:var(--appearance-ink)!important;
 border-color:var(--appearance-control-line)!important;text-shadow:none;
}

/* The original transport strip is docked below Communicator only in this look.
   Header wraps naturally at larger browser text sizes, without clipped tracks. */
html[data-appearance=colorful] body.station-page>header {
 display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;
 gap:4px 10px;padding:7px 16px;background:var(--colorful-reading)!important;
 border-bottom:2px solid var(--colorful-purple)!important;
}
html[data-appearance=colorful] body.station-page>header :is(.brand-stack,nav,.view-controls,.transport) {
 min-width:0;max-width:100%;width:auto;
}
html[data-appearance=colorful] body.station-page>header>nav {flex:1 1 400px;flex-wrap:wrap;gap:3px}
html[data-appearance=colorful] body.station-page>header>.view-controls {flex:0 1 auto;flex-wrap:wrap;gap:3px}
html[data-appearance=colorful] body.station-page .colorful-transport-dock {
 flex:none;min-width:0;margin:0 12px 10px;
}
html[data-appearance=colorful] body.station-page .colorful-transport-dock>.transport {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:4px 10px;
 width:100%;max-width:100%;margin:0;padding:8px 10px;border:1px solid var(--appearance-line);border-radius:8px;
}
html[data-appearance=colorful] body.station-page .colorful-transport-dock .transport>span {
 min-width:0;white-space:normal;overflow-wrap:anywhere;
}
html[data-appearance=colorful] body.station-page .colorful-transport-dock .transport .capability-unavailable {font:inherit!important;color:inherit!important}
html[data-appearance=colorful] body.station-page>header .wordmark {font-size:.9375rem;letter-spacing:2px}
html[data-appearance=colorful] body.station-page>header :is(nav .nav-link,nav button,.view-controls button,#radiance-appearance-button) {
 font:650 .9375rem/1.4 system-ui,sans-serif!important;min-height:40px!important;
 padding:7px 9px!important;white-space:normal;text-align:center;
}
html[data-appearance=colorful] body.station-page .transport>span {
 font:500 .875rem/1.4 system-ui,sans-serif!important;min-height:28px;color:var(--appearance-muted);
}
html[data-appearance=colorful] body.station-page>header :is([aria-current=page],[aria-pressed=true]) {
 text-decoration:underline!important;text-decoration-thickness:3px!important;text-underline-offset:6px;
}

/* Distinct feature accents sit beside explicit, real connection-state words. */
html[data-appearance=colorful] body.station-page>:is(#dmr-dashboard,#mesh-bar) {
 background:var(--colorful-surface)!important;border:1px solid var(--appearance-line);
 border-left:4px solid var(--colorful-cyan)!important;border-radius:8px;
 font-size:.875rem;line-height:1.5;gap:6px 12px;padding:7px 10px;min-height:48px;
 backdrop-filter:none;
}
html[data-appearance=colorful] body.station-page>#mesh-bar {border-left-color:var(--colorful-green)!important}
html[data-appearance=colorful] body.station-page :is(#dmr-dashboard,#mesh-bar) .radio-feature-title {
 font-size:.9375rem;flex:0 0 auto;min-width:110px;
}
html[data-appearance=colorful] body.station-page :is(#dmr-dashboard,#mesh-bar) .radio-feature-status[data-idle=true] {
 position:static;width:auto;height:auto;margin:0;padding:0;overflow:visible;
 clip:auto;clip-path:none;white-space:normal;font-size:.875rem;
}

/* Readable base layout for narrow/zoomed windows and expanded instruments.
   The desktop override below fits the default stack without shrinking type. */
html[data-appearance=colorful] body.station-page .workspace {gap:12px;align-items:start}
html[data-appearance=colorful] body.station-page .station-column {max-height:none;overflow:visible;gap:12px}
html[data-appearance=colorful] body.station-page .decoder-content {height:auto;min-height:var(--console-height,560px);border-radius:inherit}
html[data-appearance=colorful] body.station-page .chat {height:auto;min-height:var(--console-height,560px)}
html[data-appearance=colorful] body.station-page :is(#station-title,#decoder-title,#communicator-title,.radio-health h2) {
 font:700 1.1875rem/1.35 system-ui,sans-serif;letter-spacing:normal;color:var(--appearance-ink)!important;
}
html[data-appearance=colorful] body.station-page :is(.instrument-section h3,.section-label) {font:650 1rem/1.4 system-ui,sans-serif;letter-spacing:normal}
html[data-appearance=colorful] body.station-page :is(.decoder-heading,.waterfall-section>.heading,.instrument-actions) {flex-wrap:wrap;gap:8px}
html[data-appearance=colorful] body.station-page .decoder-toolbar {gap:7px}
html[data-appearance=colorful] body.station-page .decoder-toolbar .compact-file {flex:1 1 220px;min-width:0;max-width:100%}
html[data-appearance=colorful] body.station-page :is(.radio-health>p,.radio-health>small,.radio-health .health,.health b,#station-source-health) {
 font-size:.9375rem;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;
}
html[data-appearance=colorful] body.station-page .radio-health .health>div {flex-wrap:wrap;gap:4px 8px}
html[data-appearance=colorful] body.station-page .radio-health .health b {max-width:100%}
html[data-appearance=colorful] body.station-page .radio-health .freq {font-size:1.625rem;overflow-wrap:anywhere}
html[data-appearance=colorful] body.station-page :is(small,label,.status,.tag,.eyebrow,.source-journey-heading,.source-journey>p,.setup-guide,.rtl-control-status,#source-status,#file-check,#recording-file,#recording-position,#cw-quality,#waterfall-selection,#waterfall-design-description,#display-current,#wfstatus,#sdr-slice,#savedcount,#notestatus,#chatstatus,#voice-status,#decoder-mode-badge,.sdr-meter-label,.rx-label) {
 font-size:.875rem!important;line-height:1.5!important;letter-spacing:normal;
}
html[data-appearance=colorful] body.station-page :is(#source-status,#file-check,#recording-file,#display-current,#wfstatus,#waterfall-selection,#voice-status) {
 max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;
}
html[data-appearance=colorful] body.station-page :is(.muted,small,.empty,.foot,.chatspace .message-placeholder,#source-status,#display-current,#waterfall-design-description) {color:var(--appearance-muted)!important}
html[data-appearance=colorful] body.station-page .decoder-panel #transcript {
 flex:1 1 128px;height:auto;min-height:128px;max-height:65dvh;margin:0 14px;padding:14px;
 resize:vertical;border-radius:8px;
}
html[data-appearance=colorful] body.station-page .decoder-panel #transcript .empty {min-height:100px;max-width:100%}
html[data-appearance=colorful] body.station-page :is(#transcript #decoder-source-prompt.station-empty-copy,#room-empty.station-empty-copy,.decode-live,.club-message p,#notebook-list p) {
 font-size:1.125rem!important;line-height:1.65!important;color:var(--appearance-ink)!important;letter-spacing:normal;
}
html[data-appearance=colorful] body.station-page .chatspace {
 flex:1 1 200px;height:auto;min-height:200px;max-height:65dvh;padding:14px;margin:0 12px 10px;border-radius:8px;
 scrollbar-color:var(--appearance-control-line) var(--colorful-reading);
}
html[data-appearance=colorful] body.station-page .chat .club-message {font-size:1rem;padding:12px 0}
html[data-appearance=colorful] body.station-page .chat #draft {min-height:72px;height:72px;padding:10px;font-size:1rem!important}
html[data-appearance=colorful] body.station-page .chat .chat-compose {padding:0 12px 12px}
html[data-appearance=colorful] body.station-page .decoder-panel .waterfall-section {padding:10px 14px 6px}
html[data-appearance=colorful] body.station-page .decoder-panel #waterfall[data-design] {
 height:clamp(110px,17dvh,170px);min-height:110px;max-height:65dvh;
 background:var(--colorful-reading)!important;border-color:var(--appearance-control-line)!important;border-radius:7px;
}
html[data-appearance=colorful] body.station-page .decoder-panel .scale {font-size:.875rem;color:var(--appearance-muted)!important;gap:6px;flex-wrap:wrap}
html[data-appearance=colorful] body.station-page #waterfall #wflabel {font-size:1rem;color:var(--appearance-ink)!important;background:var(--colorful-reading);padding:10px;text-align:center}
html[data-appearance=colorful] body.station-page .decoder-panel .notearea {
 margin:6px 14px 12px;padding:10px 12px!important;border:1px solid var(--appearance-control-line);
 border-left:4px solid var(--colorful-gold)!important;border-radius:8px;
}
html[data-appearance=colorful] body.station-page .decoder-panel #noteform {flex-wrap:wrap;gap:8px}
html[data-appearance=colorful] body.station-page .decoder-panel #note {flex:1 1 180px;width:auto;min-width:0;font-size:1rem!important;padding:9px}
html[data-appearance=colorful] body.station-page #operate-voice {height:auto;min-height:300px}
html[data-appearance=colorful] body.station-page #operate-voice .voice-text textarea {font-size:1.125rem!important;line-height:1.65;min-height:130px}

/* Generous real controls, opaque menus, and selection indicated by shape too. */
html[data-appearance=colorful] body.station-page :is(button,summary,.mesh-lab-link,input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea) {
 font-size:.9375rem!important;line-height:1.45;min-height:40px!important;
 border-radius:7px;padding:8px 10px;max-width:100%;
}
html[data-appearance=colorful] body.station-page :is(button,summary,.mesh-lab-link) {white-space:normal;overflow-wrap:anywhere}
html[data-appearance=colorful] body.station-page :is(button,.mesh-lab-link,.compact-config>summary) {
 color:var(--appearance-ink)!important;background:var(--colorful-blue)!important;
 border:1px solid var(--appearance-control-line)!important;box-shadow:none;
}
html[data-appearance=colorful] body.station-page :is(.station-setup-launcher,#mode-picker) {
 color:var(--appearance-ink)!important;background:var(--colorful-blue)!important;
 border:1px solid var(--appearance-control-line)!important;
}
html[data-appearance=colorful] body.station-page :is(input,select,textarea) {color:var(--appearance-ink)!important;background:var(--colorful-reading)!important}
html[data-appearance=colorful] body.station-page :is(input,textarea)::placeholder {color:var(--appearance-muted)!important;opacity:1}
html[data-appearance=colorful] body.station-page :is(input[type=checkbox],input[type=radio]) {width:20px;height:20px;min-width:20px;accent-color:var(--colorful-cyan)}
html[data-appearance=colorful] body.station-page input[type=range] {accent-color:var(--colorful-cyan);min-height:32px}
html[data-appearance=colorful] body.station-page input[type=file]::file-selector-button {
 font:600 .9375rem/1.4 system-ui,sans-serif;min-height:40px;padding:8px 10px;
 border:1px solid var(--appearance-control-line);border-radius:6px;background:var(--colorful-blue);color:var(--appearance-ink);margin-right:8px;
}
html[data-appearance=colorful] body.station-page :is(#cw-test,#mode-picker) {width:auto;height:auto;min-width:80px}
html[data-appearance=colorful] body.station-page :is(button.primary,#cw-test,#send,#dmr-dashboard-play,#dmr-dashboard-quiet,#start-receive) {
 background:var(--colorful-cyan)!important;color:var(--colorful-reading)!important;border-color:var(--colorful-cyan)!important;font-weight:700;
}
html[data-appearance=colorful] body.station-page button:not(:disabled):not([aria-disabled=true]):hover {
 text-decoration:underline;text-underline-offset:4px;border-color:var(--colorful-gold)!important;
}
html[data-appearance=colorful] body.station-page :is(button:disabled,[aria-disabled=true]),
html[data-appearance=colorful] body.station-page button:disabled:is(.primary,#cw-test,#send,#dmr-dashboard-play,#dmr-dashboard-quiet,#start-receive) {
 opacity:1;color:var(--appearance-muted)!important;background:var(--colorful-surface)!important;
 border-style:dashed!important;cursor:not-allowed;box-shadow:none;
}
html[data-appearance=colorful] body.station-page :is([role=tab][aria-selected=true],[role=menuitemradio][aria-checked=true],.dmr-picker-panel button[aria-pressed=true]),
html[data-appearance=colorful] body.station-page #mode-menu [role=menuitemradio][aria-checked=true] {
 color:var(--colorful-reading)!important;background:var(--colorful-cyan)!important;
 border:3px solid var(--colorful-cyan)!important;font-weight:750;text-decoration:underline;text-underline-offset:4px;
}
html[data-appearance=colorful] body.station-page :is(.config-window,.dmr-picker-panel,.chat-actions>div,#mode-menu,dialog) {
 background:var(--colorful-reading)!important;color:var(--appearance-ink)!important;
 border:2px solid var(--appearance-control-line)!important;border-radius:10px;
 box-shadow:0 12px 36px #00000080;max-width:calc(100vw - 32px);
}
html[data-appearance=colorful] body.station-page #mode-menu {width:240px}
html[data-appearance=colorful] body.station-page .config-window {max-height:70dvh;overflow:auto}
html[data-appearance=colorful] body.station-page :is(.station-setup-dialog,.wan-dialog,#radiance-appearance-dialog,#mesh-details) {font-size:1rem;max-height:calc(100dvh - 32px);overflow:auto}
html[data-appearance=colorful] body.station-page #radiance-appearance-dialog :is(h2,label,button,select) {color:var(--appearance-ink)!important}
html[data-appearance=colorful] body.station-page :is(#file-check[data-state=error],#source-status.beta-error,.beta-error) {color:var(--colorful-pink)!important}
html[data-appearance=colorful] body.station-page #file-check[data-state=ready] {color:var(--colorful-green)!important}
html[data-appearance=colorful] body.station-page :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible,
html[data-appearance=colorful] body.station-page #radiance-appearance-dialog :focus-visible {
 outline:3px solid var(--colorful-gold)!important;outline-offset:3px;
 box-shadow:0 0 0 3px var(--colorful-reading)!important;
}
html[data-appearance=colorful] body.station-page :is(#sdr-display,.chatspace,#transcript):focus-visible {outline-offset:-4px}
html[data-appearance=colorful] body.station-page a:not(.nav-link):not(.mesh-lab-link) {text-decoration:underline;text-underline-offset:3px}

/* Default laptop console: retain 14–19px type and 40px controls; recover empty
   margins, transcript slack and logging rows instead. Header/monitor changes
   feed --console-height through station-layout, including the transport move.
   This is a bounded default, not a page-scroll lock: expanded forms, RTL controls,
   text zoom and narrow/short viewports keep their natural document overflow. */
@media(min-width:1101px) and (min-height:700px) {
 html[data-appearance=colorful] body.station-page .workspace {
  grid-template-columns:210px minmax(440px,1fr) minmax(280px,320px);
  padding:6px 16px 10px;gap:10px;
 }
 html[data-appearance=colorful] body.station-page :is(.decoder-content,.chat) {
  height:calc(var(--console-height,calc(100dvh - 200px)) - 5px);min-height:0;
 }
 html[data-appearance=colorful] body.station-page .decoder-commandbar {padding:8px 12px 6px}
 html[data-appearance=colorful] body.station-page .decoder-heading {margin-bottom:4px}
 html[data-appearance=colorful] body.station-page .decoder-toolbar {gap:6px}
 html[data-appearance=colorful] body.station-page .decoder-toolbar .compact-file {flex-basis:180px}
 html[data-appearance=colorful] body.station-page .decoder-panel input[type=file] {padding:0}
 html[data-appearance=colorful] body.station-page .decoder-panel #transcript {
  flex:1 1 0;min-height:6rem;max-height:none;resize:none;margin:0 12px;padding:8px 10px;
 }
 html[data-appearance=colorful] body.station-page .decoder-panel #transcript .empty {min-height:100%}
 html[data-appearance=colorful] body.station-page .decoder-panel #source-status {margin:3px 12px}
 html[data-appearance=colorful] body.station-page .decoder-panel .waterfall-section {padding:5px 12px}
 html[data-appearance=colorful] body.station-page .waterfall-section>.heading {gap:6px}
 html[data-appearance=colorful] body.station-page .decoder-panel #waterfall[data-design] {
  height:clamp(100px,14dvh,140px);min-height:100px;margin-top:4px;
 }
 html[data-appearance=colorful] body.station-page .decoder-panel .scale {margin-top:3px}
 html[data-appearance=colorful] body.station-page .decoder-panel .notearea {
  display:grid;grid-template-columns:minmax(180px,.9fr) minmax(220px,1.3fr);gap:4px 12px;
  margin:3px 12px 8px;padding:6px 10px!important;
 }
 html[data-appearance=colorful] body.station-page .decoder-panel .notearea>.heading {margin:0;gap:8px;flex-wrap:wrap}
 html[data-appearance=colorful] body.station-page .decoder-panel .notearea>:is(.review,.status,details) {grid-column:1/-1}
 html[data-appearance=colorful] body.station-page .decoder-panel #noteform {gap:6px}
 html[data-appearance=colorful] body.station-page .decoder-panel #note {flex-basis:120px;padding:7px 9px}
 html[data-appearance=colorful] body.station-page .chat>.chat-heading {padding:8px 12px}
 html[data-appearance=colorful] body.station-page .chatspace {
  flex:1 1 0;min-height:6rem;max-height:none;margin-bottom:8px;padding:10px;
 }
 html[data-appearance=colorful] body.station-page .chat .chat-compose {padding-bottom:8px}
 html[data-appearance=colorful] body.station-page .chat #draft {height:64px;min-height:64px}
 html[data-appearance=colorful] body.station-page .station-column {gap:10px}
 html[data-appearance=colorful] body.station-page .station-column>.panel {padding:12px}
 html[data-appearance=colorful] body.station-page .radio-health :is(.freq,.health) {margin-block:10px}
 html[data-appearance=colorful] body.station-page .radio-health .health {gap:8px;padding-block:10px}
 html[data-appearance=colorful] body.station-page .decoder-panel:has(#review:not([hidden]),.notearea details[open],.rtl-controls:not([hidden])) .decoder-content {
  height:auto;min-height:var(--console-height);
 }
 html[data-appearance=colorful] body.station-page .decoder-panel:has(#review:not([hidden]),.notearea details[open],.rtl-controls:not([hidden])) #transcript {
  flex:none;height:150px;resize:vertical;
 }
}

/* No new motion. Keep existing Focus/Motion controls authoritative. */
html[data-appearance=colorful] body.station-page:not(.focus-mode) :is(.ambient,#surface-scene) {filter:brightness(.4) saturate(.65)}
@media(max-width:1100px),(max-height:650px) {
 html[data-appearance=colorful] body.station-page :is(.decoder-content,.chat) {min-height:0}
 html[data-appearance=colorful] body.station-page .decoder-panel #transcript {min-height:180px}
}
@media(max-width:900px) {
 html[data-appearance=colorful] body.station-page .workspace {padding:10px 12px;gap:14px}
 html[data-appearance=colorful] body.station-page .chatspace {min-height:220px}
}
@media(max-width:600px) {
 html[data-appearance=colorful] body.station-page>header {padding:7px 12px}
 html[data-appearance=colorful] body.station-page :is(button,summary,.mesh-lab-link,input:not([type=checkbox]):not([type=radio]):not([type=range]),select) {min-height:44px!important}
 html[data-appearance=colorful] body.station-page>header :is(nav .nav-link,nav button,.view-controls button,#radiance-appearance-button) {min-height:44px!important}
 html[data-appearance=colorful] body.station-page :is(.decoder-toolbar,.instrument-actions,.compact-config,.config-window .receive-settings) {max-width:100%;min-width:0}
 html[data-appearance=colorful] body.station-page .compact-config .config-window {position:static;width:100%;max-width:100%;margin-top:8px}
 html[data-appearance=colorful] body.station-page .compact-config[open] {flex-basis:100%;width:100%}
 html[data-appearance=colorful] body.station-page #operate-voice .voice-text {grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce) {
 html[data-appearance=colorful] body.station-page button {transition:none;transform:none!important}
}
