/* GLASS — a polished transparent face in front of the real dashboard.
   Reference: OIP-974922524(1).jpg. Its broad window reflections, bright cut
   edges and layered depth are material cues, not a new instrument interface.
   Pane positions, sizes, laptop viewport and live content remain unchanged.
   Reflections are static, bounded and click-through; nothing tilts or moves. */
html[data-appearance^=glass] body.station-page {
 --appearance-line:#b7cfda55;
 --appearance-control-line:#9ebac470;
 --glass-edge:#d8efff73;
 --glass-blur:16px;
 --glass-reflection-opacity:.86;
 --glass-control-surface:linear-gradient(180deg,#e4faff1f 0%,#80cee510 46%,#071c2a70 49%,#193e4f85 100%);
 --glass-control-hover:linear-gradient(180deg,#d5f6ff1f,#37738d4d 47%,#163c4d9e 50%,#2453669e);
 --glass-input-surface:#071a24eb;
 --glass-action-high:#a4f4f2;
 --glass-action-ink:#071721;
 --glass-popover:linear-gradient(145deg,#16394afc,#091e2bfc);
 --glass-selected-surface:#214e5c;
 --glass-ink:#edfcff;
 --glass-muted:#c8e3eb;
 --appearance-muted:var(--glass-muted);
 --glass-accent:#75e8ed;
 --glass-pane-surface:linear-gradient(115deg,#416a7e24 0%,#123c505c 33%,#071b2a94 65%,#214a5d47 100%);
 --glass-well-surface:linear-gradient(155deg,#071f2ec7,#041522d9);
 background:radial-gradient(ellipse at 72% 3%,#28556d45,transparent 48%),radial-gradient(ellipse at 14% 78%,#0b2a3a4d,transparent 54%),linear-gradient(104deg,transparent 25%,#6298b508 26%,#6298b508 28%,transparent 29%,transparent 69%,#7eb0c70a 70%,#7eb0c70a 74%,transparent 75%),#071721!important;
 color:var(--glass-ink)!important;
}

/* A quiet, clear masthead. Existing header tracks and touch targets are unchanged. */
html[data-appearance^=glass] body.station-page>header {
 background:linear-gradient(112deg,#e6faff12 0%,transparent 27%,#b7eaff12 69%,transparent 75%),linear-gradient(180deg,#173f529e,#081e2bbd)!important;
 border-color:#a7f4ff8c!important;
 box-shadow:inset 0 1px 0 #f0ffff59,inset 0 -1px 0 #8debf14d,0 5px 24px #00000036;
 backdrop-filter:blur(16px) saturate(125%);
 -webkit-backdrop-filter:blur(16px) saturate(125%);
}
html[data-appearance^=glass] body.station-page>header :is(.wordmark,nav button[aria-current],#radiance-appearance-button) {
 color:#d9fcff!important;
 text-shadow:none;
}
html[data-appearance^=glass] body.station-page>header :is(nav,.view-controls,.transport) {
 background:transparent!important;
}

/* Keep the two real monitor channels distinct from the recessed work panes.
   Their LEDs, connection states and signal colors are deliberately untouched. */
html[data-appearance^=glass] body.station-page>:is(#dmr-dashboard,#mesh-bar) {
 background:linear-gradient(108deg,transparent 22%,#daf7ff1c 23%,#daf7ff08 31%,transparent 32%,transparent 70%,#e5faff17 71%,transparent 79%),linear-gradient(180deg,#29556b80,#091f2ec9)!important;
 border-color:#b0f4ff9e!important;
 box-shadow:inset 0 1px 0 #e4ffff80,inset 0 -1px 0 #83dfed47,0 0 0 1px #07172199,0 5px 16px #00000042;
 backdrop-filter:blur(12px);
 -webkit-backdrop-filter:blur(12px);
}

/* Transmitted light lives behind the dashboard. The cut edge and reflections
   sit in front of it, making a real glass face rather than a tinted flat card.
   Explicit Focus selectors defeat the shared opaque-panel Focus reset. */
html[data-appearance^=glass] body.station-page .workspace>.station-column>.panel,
html[data-appearance^=glass] body.station-page .workspace>.decoder-panel,
html[data-appearance^=glass] body.station-page .workspace>.chat,
html[data-appearance^=glass] body.station-page.focus-mode .workspace>.station-column>.panel,
html[data-appearance^=glass] body.station-page.focus-mode .workspace>.decoder-panel,
html[data-appearance^=glass] body.station-page.focus-mode .workspace>.chat {
 background:var(--glass-pane-surface)!important;
 border-color:var(--glass-edge)!important;
 border-radius:12px;
 box-shadow:inset 0 1px 0 #ffffff80,inset 1px 0 0 #e7f4ff26,inset 0 -1px 0 #06141f99,inset -1px 0 0 #d8e8f018,0 1px 0 #ffffff12,0 18px 32px #00000059;
 backdrop-filter:blur(var(--glass-blur)) saturate(140%);
 -webkit-backdrop-filter:blur(var(--glass-blur)) saturate(140%);
}
/* .panel already anchors its pseudo-elements. Chat needs the same containing
   block, with no offsets, stacking context or overflow clipping added. */
html[data-appearance^=glass] body.station-page .workspace>.chat {
 position:relative;
}
/* A second polished edge reads as glass thickness. The inset stays wholly
   inside each pane: menus, focus rings and controls are never clipped. */
html[data-appearance^=glass] body.station-page .workspace>.station-column>.panel::before,
html[data-appearance^=glass] body.station-page .workspace>.decoder-panel::before,
html[data-appearance^=glass] body.station-page .workspace>.chat::before {
 content:"";
 position:absolute;
 inset:3px;
 border-radius:9px;
 box-shadow:inset 0 0 0 1px #d6eaf014,inset 0 1px 0 #ffffff14,0 1px 0 #00000040;
 pointer-events:none;
 z-index:2;
}
/* Specular light stays on the cut edge. No broad reflection crosses text,
   waterfall traces or meters. Reset the old pointer mask so Focus, Motion off
   and reduced motion retain the same quiet material. */
html[data-appearance^=glass] body.station-page .workspace>.station-column>.panel::after,
html[data-appearance^=glass] body.station-page .workspace>.decoder-panel::after,
html[data-appearance^=glass] body.station-page .workspace>.chat::after {
 content:"";
 position:absolute;
 inset:0;
 display:block;
 padding:0;
 border-radius:inherit;
 background:linear-gradient(180deg,#ffffff66 0,transparent 2px,transparent calc(100% - 1px),#d5e8f033 100%);
 mask:none;
 mask-composite:add;
 -webkit-mask:none;
 -webkit-mask-composite:source-over;
 opacity:var(--glass-reflection-opacity);
 pointer-events:none;
 z-index:2;
 transition:none;
 animation:none;
}
html[data-appearance^=glass] body.station-page .workspace :is(.decoder-content,.heading,.tools,.notearea,.chat-compose) {
 background:transparent!important;
}
html[data-appearance^=glass] body.station-page .workspace :is(.decoder-commandbar,.chat-heading) {
 background:linear-gradient(180deg,#7ad7e00d,transparent)!important;
}
html[data-appearance^=glass] body.station-page .workspace :is(#station-title,#decoder-title,.chat-heading h2) {
 color:#e5fcff!important;
 text-shadow:none;
}
html[data-appearance^=glass] body.station-page .workspace :is(.health,.waterfall-section,.notearea,.club-message) {
 border-color:#83dfe929!important;
}

/* The actual reading wells sit behind the front sheet. Their near-black
   recess is still translucent, not an opaque slab covering the glass. */
html[data-appearance^=glass] body.station-page .workspace :is(#transcript,.chatspace,#operate-voice),
html[data-appearance^=glass] body.station-page.focus-mode .workspace :is(#transcript,.chatspace,#operate-voice) {
 background:var(--glass-well-surface)!important;
 border-color:#a6edff59!important;
 border-radius:8px;
 box-shadow:inset 0 2px 12px #00000066,inset 0 -1px 0 #b0f4ff2e,0 1px 0 #c9faff17;
 color:var(--glass-ink)!important;
 scrollbar-color:#508a9b #0b2330;
}
html[data-appearance^=glass] body.station-page .workspace :is(.empty,.empty p,.message-placeholder,.chatspace>p,.health b,.rx-label,#source-status,#display-current,#waterfall-selection,#voice-status,.scale) {
 color:var(--glass-muted)!important;
}
html[data-appearance^=glass] body.station-page .workspace :is(.empty strong,.decode-live,.club-message p,.section-label) {
 color:var(--glass-ink)!important;
}
html[data-appearance^=glass] body.station-page .workspace :is(#source-status.beta-error,#file-check[data-state=error]) {
 color:#ffc49e!important;
}
html[data-appearance^=glass] body.station-page .workspace :is(.freq,#decoder-mode-badge,.station-setup-launcher,#mode-picker) {
 color:var(--glass-accent)!important;
 text-shadow:none;
}
html[data-appearance^=glass] body.station-page .workspace #decoder-mode-badge {
 background:#75e8ed0a!important;
 border-color:#75e8ed66!important;
}

/* Hardware-style readout surround only. The waterfall and meters keep their
   real rendering, selected design, status semantics and input behavior. */
html[data-appearance^=glass] body.station-page .workspace #waterfall[data-design] {
 border-color:#86e6ed66!important;
 box-shadow:inset 0 0 0 1px #00000040,0 0 12px #55d9e510;
}
html[data-appearance^=glass] body.station-page .workspace .sdr-meter {
 background:#05141de0!important;
 border-color:#83dfe938!important;
 box-shadow:inset 0 1px 5px #00000042;
}

/* Tactile glass controls. No size, spacing, typography or transform changes. */
html[data-appearance^=glass] body.station-page :is(.workspace,#dmr-dashboard,#mesh-bar,.station-setup-dialog,#mesh-details,#notebook,#online-radios,#club-admin-dialog,#club-report-dialog) :is(button,.compact-config>summary) {
 background:var(--glass-control-surface)!important;
 border-color:var(--appearance-control-line)!important;
 color:var(--glass-ink)!important;
 box-shadow:inset 0 1px 0 #e5ffff66,inset 0 -1px 0 #6ad9ed26,0 2px 5px #00000040;
 text-shadow:none;
}
html[data-appearance^=glass] body.station-page :is(.workspace,#dmr-dashboard,#mesh-bar,.station-setup-dialog,#mesh-details,#notebook,#online-radios,#club-admin-dialog,#club-report-dialog) button:not(:disabled):hover {
 background:var(--glass-control-hover)!important;
 border-color:#a4f3f3b3!important;
 box-shadow:inset 0 1px 0 #e9ffff66,0 2px 6px #00000033;
}
html[data-appearance^=glass] body.station-page :is(.workspace,#dmr-dashboard,#mesh-bar,.station-setup-dialog,#mesh-details,#notebook,#online-radios,#club-admin-dialog,#club-report-dialog) :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select) {
 background:var(--glass-input-surface)!important;
 border-color:#91d9e466!important;
 color:var(--glass-ink)!important;
 box-shadow:inset 0 1px 5px #00000040;
}
html[data-appearance^=glass] body.station-page .decoder-panel input[type=file] {
 background:transparent!important;
 color:var(--glass-muted)!important;
}
html[data-appearance^=glass] body.station-page .decoder-panel input[type=file]::file-selector-button {
 background:#183a48;
 color:var(--glass-ink);
 border-color:#91d9e466;
 box-shadow:inset 0 1px 0 #d3fdff12;
}
html[data-appearance^=glass] body.station-page :is(input[type=range],input[type=checkbox],progress) {
 accent-color:var(--glass-accent);
}
html[data-appearance^=glass] body.station-page :is(.workspace,#dmr-dashboard,.station-setup-dialog) :is(button.primary,button.compact-primary,#dmr-dashboard-play,#dmr-dashboard-quiet,[role=tab][aria-selected=true]) {
 background:linear-gradient(180deg,var(--glass-action-high),var(--glass-accent))!important;
 color:var(--glass-action-ink)!important;
 border-color:#bbfbf5!important;
 box-shadow:inset 0 1px 0 #ffffff75,0 2px 6px #00000033;
 text-shadow:none;
}
html[data-appearance^=glass] body.station-page .workspace :is(.station-column,.decoder-panel) :is(.station-setup-launcher,#mode-picker) {
 background:transparent!important;
 color:var(--glass-accent)!important;
 box-shadow:none;
}

/* Popovers stay opaque enough to read over any active signal display. Native
   dialogs retain all their existing behavior, boundaries and focus management. */
html[data-appearance^=glass] body.station-page :is(.config-window,.station-setup-dialog,.dmr-picker-panel,.chat-actions>div,#mode-menu,#mesh-details,#notebook,#online-radios,#club-admin-dialog,#club-report-dialog) {
 background:var(--glass-popover)!important;
 color:var(--glass-ink)!important;
 border-color:#8debf180!important;
 box-shadow:inset 0 1px 0 #d3fdff24,0 14px 38px #00000080;
}
html[data-appearance^=glass] body.station-page .station-setup-dialog .source-journey {
 background:#0b2532!important;
 border-color:#83dfe942!important;
}
html[data-appearance^=glass] body.station-page :is(.station-setup-dialog,.dmr-picker-panel,#mode-menu) :is([role=menuitemradio][aria-checked=true],[data-groups] button[aria-pressed=true]) {
 background:var(--glass-selected-surface)!important;
 color:var(--glass-ink)!important;
}

/* The variations change only the glass material. Every dimension and working
   area comes from the same station viewport stylesheet. */
html[data-appearance=glass-frosted] body.station-page {
 --glass-edge:#e9faffbb;
 --glass-ink:#f3fbff;
 --glass-muted:#e1edf2;
 --glass-accent:#b5e6ed;
 --glass-blur:24px;
 --glass-reflection-opacity:.42;
 --glass-pane-surface:linear-gradient(115deg,#38515db8,#263f4bc9 44%,#1b303bd9);
 --glass-well-surface:linear-gradient(155deg,#142833e8,#11232eea);
 --glass-control-surface:linear-gradient(180deg,#52738280,#273f4bc9);
 --glass-control-hover:linear-gradient(180deg,#5f849280,#34535fc9);
 --glass-input-surface:#152b36f2;
 --glass-action-high:#d4f3f5;
 --glass-action-ink:#15242c;
 --glass-popover:linear-gradient(145deg,#294450fc,#182f3bfc);
 --glass-selected-surface:#385766;
 background:radial-gradient(ellipse at 72% 3%,#48657355,transparent 48%),radial-gradient(ellipse at 14% 78%,#2444524d,transparent 54%),#15242c!important;
}
html[data-appearance=glass-smoked] body.station-page {
 --appearance-line:#d1ccbd70;
 --appearance-control-line:#ddd6c580;
 --glass-edge:#e0d9cda8;
 --glass-ink:#f7f4ed;
 --glass-muted:#d7d6cf;
 --glass-accent:#e4cfab;
 --glass-blur:16px;
 --glass-reflection-opacity:.64;
 --glass-pane-surface:linear-gradient(115deg,#605c4e33,#343a3d9c 44%,#151e24bc);
 --glass-well-surface:linear-gradient(155deg,#141d23e0,#10171ce8);
 --glass-control-surface:linear-gradient(180deg,#c7bc9b24,#34404770 48%,#171f25c9);
 --glass-control-hover:linear-gradient(180deg,#dbd0b52c,#45515c80 48%,#253039c9);
 --glass-input-surface:#151f26f0;
 --glass-action-high:#f0e2c6;
 --glass-action-ink:#15191b;
 --glass-popover:linear-gradient(145deg,#303a40fc,#19232afc);
 --glass-selected-surface:#424c50;
 background:radial-gradient(ellipse at 72% 3%,#726d5640,transparent 48%),radial-gradient(ellipse at 14% 78%,#293b464d,transparent 54%),#15191b!important;
}

/* Focus still hides animated scenery via the shared appearance rules. Static
   lighting, cut edges and reflection layers deliberately remain unchanged. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
 html[data-appearance^=glass] body.station-page {
  --glass-pane-surface:linear-gradient(115deg,#133447,#102d3e 38%,#091e2e 70%,#15374a);
 }
}
