#mediaProfile{position:fixed;inset:auto;margin:0;width:min(480px,calc(100vw - 28px));max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:auto;padding:24px;border:1px solid #ffffff24;border-radius:24px;background:linear-gradient(135deg,#203830,#0e1820 70%);color:#eff7f5;box-shadow:0 18px 65px #0008;font:14px/1.5 system-ui}
#mediaProfile::backdrop{background:#03070ab0}
#mediaProfile header{display:flex;align-items:center;justify-content:space-between;gap:16px}#mediaProfile h2{font-size:23px;margin:2px 0}#mediaProfile h3{font-size:16px;margin:16px 0 10px}#mediaProfile p{color:#b6c6c1}#mediaProfile small{color:#a3c6ba;letter-spacing:.12em;font-size:10px}
#mediaProfile button,#mediaProfile input{font:inherit;box-sizing:border-box;min-height:42px;border:1px solid #ffffff24;border-radius:12px;background:#ffffff0a;color:inherit;padding:9px 13px}#mediaProfile button{cursor:pointer}#mediaProfile button:hover{background:#ffffff17}#mediaProfile button:disabled{opacity:.4;cursor:default}#mediaProfile :focus-visible{outline:2px solid #91e3c5;outline-offset:2px}#mediaProfile button[type=submit]{background:#a5e6cb;color:#0b261b;font-weight:700}
#mediaProfile .media-workers{display:grid;grid-template-columns:1fr 1fr;gap:8px}#mediaProfile .media-workers button{text-align:left}#mediaProfile .media-pin{display:grid;gap:12px}#mediaProfile label{display:grid;gap:5px}#mediaProfile input{width:100%;background:#071014;font-size:18px}#mediaStatus{min-height:22px}#mediaProfile .media-actions{display:flex;gap:8px;flex-wrap:wrap}#mediaProfile .media-favorite{display:flex;gap:5px;margin:6px 0}#mediaProfile .media-favorite button:first-child{flex:1;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis}
#mediaRecoveryNotice{margin-top:18px;border-top:1px solid #ffffff24;padding-top:12px}#mediaRecoveryCode{display:block;padding:15px 0;font-size:17px;overflow-wrap:anywhere;user-select:all}#mediaRecoveryNotice button{margin:4px}
#radioSourceBar #mediaProfileButton{max-width:180px;font-size:12px;text-transform:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.station-favorite{border:0;border-radius:12px;background:transparent;color:#abc4b8;min-width:38px;min-height:38px;cursor:pointer;font-size:22px}.station-favorite[aria-pressed=true]{color:var(--radio-accent,#b7f1d8)}
.station-entry{position:relative;min-width:0}.station-entry .station-tile{width:100%;padding-right:48px!important}.station-entry>.station-favorite{position:absolute;right:7px;top:50%;transform:translateY(-50%)}
@media(max-width:520px){#mediaProfile{padding:17px}.media-favorite{flex-wrap:wrap}#mediaProfile .media-workers{grid-template-columns:1fr}#radioSourceBar #mediaProfileButton{max-width:95px;font-size:10px}}
#radioLookControls{padding:16px 20px;border-top:1px solid #ffffff1f;color:#dce8e3;font:13px/1.5 system-ui}#radioLookControls button,#radioLookControls select{background:#ffffff0d;border:1px solid #ffffff26;border-radius:10px;padding:9px 12px;color:inherit;cursor:pointer;font:inherit}#radioLookControls select option{background:#15231e}#radioLookNote{color:#a4bab0;min-height:38px}#radioLookPreview{min-height:95px;border:1px solid #ffffff30;border-radius:17px;display:flex;flex-direction:column;justify-content:center;padding:18px;background-size:cover}#radioLookPreview strong{font-size:22px}#radioLookPreview span{font-size:12px}#radioLookControls details{margin:12px 0}#radioLookControls summary{cursor:pointer;padding:8px 0}#radioLookControls label{display:flex;justify-content:space-between;gap:16px;align-items:center;margin:12px 0}#radioLookControls input[type=range]{max-width:48%;accent-color:#9bdabe}#radioLookControls input[type=color]{border:0;background:transparent;width:50px;height:30px}.radio-look-actions{display:flex;gap:8px;flex-wrap:wrap}#radioLookApply{background:#b7e8d1!important;color:#0c2418!important;margin-left:auto}#radioWindow :is(#curStation,#npArtist,#npTitle){color:var(--radio-personal-text,#f3f7f5)!important}
#themePanel .theme-list{max-height:260px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}#themePanel .theme-item{min-height:84px}#themePanel .theme-controls{padding-bottom:14px}#themePanel{scrollbar-width:thin;overscroll-behavior:contain}
#mediaProfile[open]{animation:media-profile-enter .16s ease-out}@keyframes media-profile-enter{from{opacity:0;translate:0 5px}to{opacity:1;translate:0 0}}@media(prefers-reduced-motion:reduce){#mediaProfile[open]{animation:none}}
/* A cached 21 KB radio thumbnail gives the profile its texture; no blur pass. */
#mediaProfile{padding:22px;border-radius:22px;border-color:#c4e6dc30;background:linear-gradient(125deg,rgba(13,34,34,.65),rgba(9,19,27,.95) 65%),url('../kalendars/data/radio-skins/deep-ocean-preview.jpg') center/cover;box-shadow:0 16px 50px #0007,inset 0 1px 0 #ffffff0d}
#mediaProfile header{align-items:flex-start;margin-bottom:14px}#mediaProfile header small{font-size:9px;letter-spacing:.15em;color:#a7ccc1}#mediaProfile h2{font-size:24px;font-weight:650;letter-spacing:-.5px;line-height:1.3;margin:5px 0 0}
#mediaProfile [data-close]{width:32px;height:32px;min-height:32px;flex:0 0 32px;display:grid;place-items:center;padding:7px;border-radius:50%;border:1px solid #ffffff1c;background:#ffffff07;color:#c2d1ce;margin:-3px -3px 0 10px;transition:background .12s,color .12s}#mediaProfile [data-close] svg{display:block;width:17px;height:17px}#mediaProfile [data-close]:hover{background:#ffffff1b;color:#fff}
#mediaDate{font-size:11px;color:#acc7be!important;margin:0 0 5px}#mediaStatus{font-size:12px;line-height:1.45;margin:0 0 16px;color:#bccbc7!important}
#mediaProfile .media-workers{gap:8px}#mediaProfile .media-workers button{display:flex;gap:10px;align-items:center;padding:11px 10px;min-height:62px;background:linear-gradient(120deg,#ffffff09,#ffffff03);border-color:#b5d9cc21;border-radius:14px;transition:background .12s,border-color .12s}#mediaProfile .media-workers button:hover{background:#d6f5e910;border-color:#aedac050}
#mediaProfile .media-worker-avatar{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border:1px solid #c5e8dc25;border-radius:50%;background:linear-gradient(140deg,#b4e0cf16,#9fcbd705);color:#bcd9ce;font-size:10px;font-weight:650}
#mediaProfile .media-worker-copy{display:flex;flex-direction:column;gap:3px;min-width:0}#mediaProfile .media-worker-copy strong{font-size:13px;font-weight:600;line-height:1.2}#mediaProfile .media-worker-copy small{font-size:10px;letter-spacing:0;color:#b3c7bf;line-height:1.2;overflow-wrap:anywhere}
#radioWindow .branding{gap:9px!important;align-items:center!important}#radioWindow .brand-text{font:650 10px/1.2 system-ui!important;letter-spacing:.15em!important;color:var(--radio-accent,#a7dacb)!important;text-shadow:none!important}
#mediaProfile .media-worker-avatar.has-emoji{font-size:23px;background:none;border-color:transparent}#mediaProfile .media-person-heading{display:flex;align-items:center;gap:10px}#radioSourceBar #mediaProfileButton{display:flex;align-items:center;gap:6px}#mediaProfileButton .media-worker-avatar{font-size:10px}#mediaProfileButton .media-worker-avatar.has-emoji{font-size:18px}
#themePanel.theme-panel{z-index:2147483000!important;overflow:hidden!important;box-sizing:border-box;padding:18px!important;background:linear-gradient(135deg,#142720,#0b151d 75%)!important;border-color:#b8dcc62b!important;font-family:system-ui!important}#themePanel.theme-panel[aria-hidden=false]{display:flex;flex-direction:column}#themePanel .theme-head{flex-shrink:0;padding-bottom:13px}#themePanel .radio-theme-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}#themePanel .theme-list{max-height:none;overflow:visible;gap:7px}#themePanel .theme-item{height:78px;min-height:78px;padding:9px;border-radius:12px}#themePanel .theme-item.is-default{background-image:var(--theme-preview)!important}#themePanel .theme-card-copy strong{font-size:12px}#themePanel .theme-card-copy small{font-size:9px}#themePanel .theme-controls{padding:14px 0;margin-top:14px}#themePanel #radioLookControls{padding:0;border-top:0}#themePanel .radio-card-shortcut{display:block;margin:0 0 12px;padding:10px 14px;width:100%;text-align:left;border:1px solid #bfe7d43a;border-radius:12px;background:#b1eacb0c;color:#ddf2e7;font:600 13px system-ui;cursor:pointer}#themePanel .accent-mode-list{grid-template-columns:repeat(3,minmax(0,1fr))}#themePanel .radio-more-colors{grid-column:1/-1;font:11px system-ui;color:#abc5b8;margin:8px 0}#themePanel .radio-more-colors summary{padding:6px;cursor:pointer}#themePanel .radio-more-colors button{display:inline-flex;min-width:82px;margin:4px;padding:9px}#themePanel .radio-look-actions{flex-shrink:0;padding-top:13px;margin-top:13px;border-top:1px solid #ffffff1a}#themePanel .radio-look-actions button{min-height:38px;padding:8px 12px;border:1px solid #ffffff26;border-radius:11px;background:#ffffff08;color:#e1eee7;font:12px system-ui;cursor:pointer}#themePanel .theme-close{width:32px;height:32px;border-radius:50%;padding:7px;min-width:32px;background:#ffffff08;color:#d2e0da}#themePanel .theme-close svg{width:17px;height:17px;display:block}
#themePanel .accent-mode-list button[data-accent-mode=card],#themePanel .accent-mode-list button[data-accent-mode=custom]{grid-template-columns:minmax(0,1fr);row-gap:3px}#themePanel .accent-mode-list button[data-accent-mode=card] b,#themePanel .accent-mode-list button[data-accent-mode=custom] b{grid-column:1;grid-row:1}#themePanel .accent-mode-list button[data-accent-mode=card] small,#themePanel .accent-mode-list button[data-accent-mode=custom] small{grid-column:1;grid-row:2}
#themePanel.theme-panel #themeClose{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;min-width:30px;padding:6px;line-height:1;border:1px solid #ffffff18;border-radius:50%;background:#ffffff05;color:#c8dad2;box-shadow:none}#themePanel.theme-panel #themeClose:hover{background:#ffffff12}#themePanel #accentModeList>button b,#themePanel #accentModeList>button small{position:static;transform:none;align-self:center;margin:0}#themePanel #accentModeList>button[data-accent-mode=card],#themePanel #accentModeList>button[data-accent-mode=custom]{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}#themePanel #accentModeList>button b{font-size:11px;line-height:1.25}#themePanel #accentModeList>button small{font-size:9px;line-height:1.25;white-space:normal}

/* Compact profile: identity, two actions, favorites and a quiet account footer. */
#mediaProfile{width:min(430px,calc(100vw - 24px));padding:20px;scrollbar-width:thin;overscroll-behavior:contain}
#mediaProfile.is-logged{width:min(380px,calc(100vw - 24px));padding:18px}
#mediaProfile .media-identity{display:flex;align-items:center;gap:12px;min-width:0}
#mediaProfile .media-identity>div{min-width:0}
#mediaProfile h2{font-size:22px;line-height:1.25;overflow-wrap:anywhere}
#mediaProfile.is-logged h2{font-size:19px;letter-spacing:-.3px}
#mediaProfile.is-logged header{margin-bottom:8px}
#mediaProfile #mediaProfileAvatar .media-worker-avatar{width:42px;height:42px;font-size:13px}
#mediaProfile #mediaProfileAvatar .has-emoji{font-size:30px}
#mediaProfile [hidden],#radioSourceBar #mediaLogoutButton[hidden]{display:none!important}
#mediaProfile.is-logged #mediaStatus{font-size:10px;min-height:15px;margin:0 0 14px;color:#95b6a8!important}
#mediaProfile .media-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#mediaProfile .media-shortcuts button{display:flex;align-items:center;gap:9px;text-align:left;padding:13px 10px;min-height:68px;border-radius:14px;background:linear-gradient(125deg,#c9ecd70e,#ffffff03);border-color:#b8dcc31f}
#mediaProfile .media-shortcuts button>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
#mediaProfile .media-shortcuts strong{font-size:12px;line-height:1.3;font-weight:600}
#mediaProfile .media-shortcuts small{font-size:10px;line-height:1.35;letter-spacing:0;color:#9db9ac}
.media-icon{display:inline-flex;width:18px;height:18px;flex:0 0 18px;align-items:center;justify-content:center;vertical-align:middle}
.media-icon svg{display:block;width:100%;height:100%}
#mediaProfile .media-shortcuts .media-icon{color:#b2dbc4;width:21px;height:21px;flex-basis:21px}
#mediaProfile .media-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 7px}
#mediaProfile .media-section-head h3{margin:0;font-size:13px;font-weight:600}
#mediaProfile .media-section-head button{min-height:32px;padding:4px 8px;font-size:10px;border-color:transparent;background:transparent;color:#a4c5b4}
#mediaProfile .media-section-head button[aria-pressed=true]{background:#c5e8cf12;color:#d4ebdd}
#mediaProfile .media-favorite-list{max-height:212px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;border:1px solid #b5d8c719;border-radius:13px;background:#03110d20}
#mediaProfile .media-favorite{display:flex;flex-wrap:nowrap;gap:2px;margin:0;padding:4px 6px;border-bottom:1px solid #ffffff09}
#mediaProfile .media-favorite:last-child{border-bottom:0}
#mediaProfile .media-favorite button{border:0;border-radius:8px;background:transparent;min-height:36px;min-width:28px;padding:5px;display:flex;align-items:center;justify-content:center;font-size:13px}
#mediaProfile .media-favorite button:hover{background:#c2e8d213}
#mediaProfile .media-favorite button:first-child{justify-content:flex-start;gap:8px;padding-left:4px;flex:1;min-width:0;text-align:left}
#mediaProfile .media-favorite button:first-child span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
#mediaProfile .media-favorite button:first-child .media-icon{color:#a0c6b1;width:15px;height:15px;flex-basis:15px}
#mediaProfile .media-favorite button:not(:first-child){flex:0 0 30px;color:#abc5b9}
#mediaProfile .media-favorite button:not(:first-child) .media-icon{width:15px;height:15px}
#mediaProfile .media-stations-link{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:11px;min-height:35px;margin-top:8px;border-color:#b9ddc51a;background:#b6d8c106}
#mediaProfile .media-stations-link .media-icon{width:14px;height:14px;flex-basis:14px}
#mediaProfile .media-empty{font-size:12px;line-height:1.6;margin:0;padding:14px;color:#a7beb2}
#mediaProfile .media-account-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:10px;border-top:1px solid #bbdec61a}
#mediaProfile .media-account-actions button{display:flex;align-items:center;gap:6px;border:0;background:transparent;min-height:34px;padding:5px 6px;font-size:11px;color:#afc5ba}
#mediaProfile .media-undo{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:8px;font-size:11px;color:#a8c2b4}
#mediaProfile .media-undo button{font-size:11px;min-height:30px;padding:4px 8px}
#radioSourceBar #mediaLogoutButton{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:28px;font:11px/1.2 system-ui;text-transform:none;padding:5px 7px;border:0;border-radius:9px;background:transparent;color:#c8d7d0;opacity:.75;white-space:nowrap}
#radioSourceBar #mediaLogoutButton:hover,#radioSourceBar #mediaLogoutButton:focus-visible{opacity:1;background:rgba(var(--radio-accent-rgb,83,201,232),.1)}
#radioSourceBar #mediaLogoutButton .media-icon{width:14px;height:14px;flex-basis:14px}
#radioSourceBar #mediaProfileButton{min-width:0;max-width:155px}
#radioSourceBar #mediaProfileButton>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:520px){#mediaProfile{padding:16px}#mediaProfile.is-logged{padding:15px}#radioSourceBar #mediaProfileButton{max-width:106px;font-size:10px}#radioSourceBar #mediaLogoutButton{font-size:10px;padding:5px}.media-shortcuts{gap:6px}}
/* Driver.js popovers inherit the radio palette, with no blur or idle animation. */
.driver-popover.media-radio-tour{min-width:0;max-width:min(290px,calc(100vw - 28px));padding:18px;border:1px solid #badcc631;border-radius:17px;background:#142820;color:#e9f5ee;box-shadow:0 12px 35px #0006;font-family:system-ui}
.driver-popover.media-radio-tour .driver-popover-title{font-size:15px;font-weight:650;line-height:1.4;padding-right:20px}
.driver-popover.media-radio-tour .driver-popover-description{font-size:12px;line-height:1.6;color:#bdd1c4}
.driver-popover.media-radio-tour .driver-popover-close-btn{top:8px;right:8px;width:26px;height:26px;box-sizing:border-box;border-radius:50%;color:#b4cfc0;font-size:20px;line-height:1;display:grid;place-items:center;padding:0 0 2px}
.driver-popover.media-radio-tour .driver-popover-close-btn:hover{background:#ffffff12;color:#fff}
.driver-popover.media-radio-tour .driver-popover-close-btn:focus{outline:none;background:none;color:#b4cfc0}
.driver-popover.media-radio-tour .driver-popover-close-btn:focus-visible{outline:2px solid #91e3c5;outline-offset:2px;color:#fff}
.driver-popover.media-radio-tour .driver-popover-progress-text{font-size:10px;color:#9eb9aa}
.driver-popover.media-radio-tour .driver-popover-footer-btn{font:11px/1.4 system-ui;border:1px solid #c7e3d12b;border-radius:8px;background:#ffffff08;color:#c9dfd1;padding:7px 10px;text-shadow:none}
.driver-popover.media-radio-tour .driver-popover-next-btn{background:#b6ddc4;color:#11271b;border-color:transparent}
.driver-popover.media-radio-tour .driver-popover-footer-btn:hover{background:#314a3a;color:#edf6ef}
.driver-popover.media-radio-tour .driver-popover-arrow{width:12px;height:12px;box-sizing:border-box;border:0;background:#142820;transform:rotate(45deg);pointer-events:none}
.driver-popover.media-radio-tour .driver-popover-arrow-side-top{top:calc(100% - 6px);border-right:1px solid #93bda080;border-bottom:1px solid #93bda080}
.driver-popover.media-radio-tour .driver-popover-arrow-side-bottom{bottom:calc(100% - 6px);border-left:1px solid #93bda080;border-top:1px solid #93bda080}
.driver-popover.media-radio-tour .driver-popover-arrow-side-left{left:calc(100% - 6px);border-right:1px solid #93bda080;border-top:1px solid #93bda080}
.driver-popover.media-radio-tour .driver-popover-arrow-side-right{right:calc(100% - 6px);border-left:1px solid #93bda080;border-bottom:1px solid #93bda080}
.driver-popover.media-radio-tour :focus-visible{outline:2px solid #b6e7c9;outline-offset:3px}

#mediaProfile.is-logged[open]{display:flex;flex-direction:column}
#mediaProfile.is-logged>header,#mediaProfile.is-logged>#mediaStatus{flex-shrink:0}
#mediaProfile.is-logged #mediaContent{display:flex;flex-direction:column;min-height:0}
#mediaProfile .media-shortcuts,#mediaProfile .media-account-actions,#mediaProfile .media-section-head,#mediaProfile .media-stations-link,#mediaProfile .media-undo{flex-shrink:0}
#mediaProfile .media-favorites{display:flex;flex-direction:column;min-height:84px}
#mediaProfile .media-favorite-list{min-height:44px;scrollbar-gutter:stable}
#mediaProfile .media-favorite-count{margin-left:7px;font-size:10px;font-weight:400;color:#8fad9d}
@media(max-height:520px){#mediaProfile.is-logged{padding:12px}#mediaProfile.is-logged header{margin-bottom:3px}#mediaProfile.is-logged #mediaStatus{margin-bottom:8px}#mediaProfile .media-shortcuts button{min-height:48px;padding:8px}#mediaProfile .media-shortcuts small{display:none}#mediaProfile .media-section-head{margin-top:10px}#mediaProfile .media-account-actions{margin-top:8px;padding-top:4px}}

/* Use the radio focus treatment for every form control, including native selects. */
#themePanel :is(button,input,select,summary):focus,
#mediaProfile :is(button,input,select,summary):focus{outline:0!important;box-shadow:none!important}
#themePanel :is(button,input,select,summary):focus-visible,
#mediaProfile :is(button,input,select,summary):focus-visible{outline:2px solid #b9ddcf!important;outline-offset:2px!important;box-shadow:none!important}
#themePanel.theme-panel .radio-card-shortcut{display:flex;align-items:center;gap:12px;flex:0 0 auto;margin:0 0 12px;width:100%;min-height:78px;padding:9px 12px;text-align:left;background:linear-gradient(120deg,#c9e4d70c,#ffffff03);border:1px solid #b8dcc52a;border-radius:14px;color:#deeee5}
#themePanel .radio-card-shortcut:hover{background:#c1ddce12;border-color:#bedfcb4a}
#themePanel .radio-card-preview{display:grid;place-items:center;flex:0 0 52px;width:52px;height:58px;background-size:cover;background-position:center;border:1px solid #ffffff28;border-radius:10px;overflow:hidden}
#themePanel .radio-card-emoji{display:grid;place-items:center;font:600 13px system-ui;text-shadow:0 1px 5px #000}
#themePanel .radio-card-emoji.has-emoji{font-size:28px}
#themePanel .radio-card-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
#themePanel .radio-card-copy strong{font-size:13px;line-height:1.3}
#themePanel .radio-card-owner{font-size:11px;line-height:1.3;color:#d0e2d7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#themePanel .radio-card-hint{font-size:10px;line-height:1.4;color:#9ab7a6}
#themePanel .radio-card-check{display:none;font-size:16px;color:#bddfca}
#themePanel .radio-card-shortcut[aria-pressed=true]{border-color:#bedfca80;background:#b9dfc514}
#themePanel .radio-card-shortcut[aria-pressed=true] .radio-card-check{display:block}
@media(max-height:520px){#themePanel.theme-panel .radio-card-shortcut{min-height:60px;padding:6px 10px;gap:8px;margin-bottom:8px}#themePanel .radio-card-preview{width:40px;height:42px;flex-basis:40px}#themePanel .radio-card-hint{font-size:9px}}

/* Keep account text independent of album and employee text colors. */
#radioWindow #radioSourceBar #mediaProfileButton {
  max-width:180px;
  gap:7px;
  padding:6px 9px;
  color:#f3f8fb;
  background:rgba(var(--radio-accent-rgb,83,201,232),.06);
  border-radius:9px;
  font:600 12px/1.2 system-ui,sans-serif;
}
#radioWindow #radioSourceBar #mediaProfileButton:hover { background:rgba(var(--radio-accent-rgb,83,201,232),.12); }
#radioWindow #radioSourceBar #mediaLogoutButton { color:#d1e1e9; opacity:1; min-height:32px; }
#radioWindow #radioSourceBroadcast { margin-left:5px; }
@media(max-width:520px) {
  #radioWindow #radioSourceBar #mediaProfileButton { max-width:114px; font-size:11px; padding:6px; }
  #radioWindow #radioSourceBar #mediaLogoutButton { font-size:10px; padding:5px 4px; gap:3px; }
  #radioWindow #radioSourceBroadcast { margin-left:0; }
}
/* Static, resolution-independent samples; no preview canvas or timers. */
#themePanel .theme-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
#themePanel #radioLookPreview{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:18px;min-height:110px;margin:14px 0}
#radioLookPreview>div:first-child{display:flex;flex-direction:column;gap:5px}
#radioLookPreview .radio-viz-sample{width:48%;max-width:260px;color:var(--radio-accent,#a8dfc8)}
#radioLookPreview svg{display:block;width:100%;height:auto}
#radioLookControls .radio-viz-choices{border:0;padding:0;margin:20px 0 12px;min-width:0}
#radioLookControls .radio-viz-choices legend{font-weight:650;margin-bottom:10px}
#radioLookControls .radio-viz-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#radioLookControls .radio-viz-grid button{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 8px;min-width:0;transition:background .15s ease,border-color .15s ease}
#radioLookControls .radio-viz-grid svg{display:block;width:100%;height:40px;color:#a4d6c4}
#radioLookControls .radio-viz-grid span{font-size:10px;line-height:1.3}
#radioLookControls .radio-viz-grid [aria-pressed=true]{background:#b0e2d11a;border-color:#b0e2d1;box-shadow:inset 0 0 0 1px #b0e2d1}
#radioLookControls .radio-viz-grid button[data-viz-choice="12"]{grid-column:1/-1;flex-direction:row;justify-content:center}
#radioLookControls .radio-viz-grid button[data-viz-choice="12"] svg{width:40px;height:24px}
#radioLookControls .radio-clean-actions{display:flex;flex-wrap:wrap;gap:8px}
#radioLookControls .radio-clean-actions button{font-size:12px}
body.radio-viz-off #radioWindow .monitor-frame{visibility:hidden!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){#radioLookControls .radio-viz-grid button{transition:none}}
#themePanel .radio-theme-filters{display:flex;gap:7px;margin-bottom:10px}
#themePanel .radio-theme-filters button{border:1px solid #b3dec226;border-radius:99px;padding:7px 12px;background:transparent;color:#b3c9c0;font:12px system-ui;cursor:pointer}
#themePanel .radio-theme-filters [aria-pressed=true]{background:#b3dec21a;color:#f0f8f5;border-color:#b3dec26b}
#themePanel .theme-item[hidden]{display:none!important}
#radioLookPreview .radio-viz-sample{color:var(--radio-preview-accent,#a8dfc8)}
html body.radio-viz-flow #radioWindow .monitor-frame{border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important}
html body.radio-viz-flow #radioWindow .monitor-frame::before,html body.radio-viz-flow #radioWindow .monitor-frame::after{display:none!important}
body.radio-viz-flow #radioWindow .monitor-frame :is(.pixel-cat,#dolphin-bg,#slowedWaveCanvas){display:none!important}
#themePanel .radio-viz-grid button[hidden],#vizPickerOverlay .vizpick-btn[hidden]{display:none!important}
.radio-viz-families{display:flex;gap:5px;padding:4px;border-radius:13px;background:#00000028;margin:0 0 10px}
#radioLookControls .radio-viz-families button,.radio-viz-families button{flex:1;border:1px solid transparent;border-radius:10px;background:transparent;color:#bbcec5;padding:10px 12px;font:600 12px system-ui;cursor:pointer}
#radioLookControls .radio-viz-families [aria-pressed=true],.radio-viz-families [aria-pressed=true]{background:#b6dfce1a;border-color:#b6dfce52;color:#f0faf5}
.radio-viz-family-note{font-size:11px;line-height:1.4;color:#9bb5a8;margin:0 0 12px}
#radioLookControls .radio-viz-families{position:sticky;top:0;z-index:5;background:#14251f}
#radioLookControls .radio-viz-grid .radio-viz-thumbnail{display:block;width:100%;height:auto;aspect-ratio:7.5/1;margin:16px 0;object-fit:contain}
#radioLookPreview .radio-viz-sample img{display:block;width:100%;height:auto}
#radioLookPreview .radio-viz-sample img[hidden]{display:none}
#radioLookControls .radio-viz-grid button[data-viz-choice="12"] canvas{display:none}

/* Optional two-column radio. Existing controls stay intact with their handlers. */
html body #radioWindow[data-radio-layout="clean"]:not(.music-source){--radio-content-inset:22px;height:200px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .radio-win-body{padding:56px var(--radio-content-inset) 10px!important;height:100%;box-sizing:border-box}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .bottom-console{display:grid!important;grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr)!important;grid-template-rows:minmax(0,1fr) 44px!important;gap:10px 32px!important;padding:0!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .tech-panel{grid-column:1;grid-row:1;align-self:start}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .monitor-frame{grid-column:2;grid-row:1 / 3;width:100%;height:128px!important;align-self:center;margin:0!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .control-panel{grid-column:1;grid-row:2;justify-content:flex-start!important;gap:10px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) #radioSourceBar{left:var(--radio-content-inset);right:auto;top:8px;height:42px;box-sizing:border-box;max-width:calc(48% - var(--radio-content-inset));}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) #radioSourceBar button{height:32px;min-height:32px;box-sizing:border-box}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) #mediaProfileButton .media-worker-avatar{line-height:1}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .meta-status{display:none!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .np-row{display:grid;grid-template-columns:60px minmax(0,1fr);min-height:60px!important;margin-top:0!important;gap:11px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .np-cover{grid-column:1;grid-row:1;width:60px!important;height:60px!important;flex-basis:60px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .np-lines{grid-column:2;grid-row:1;padding-top:22px}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .play-trigger{width:42px!important;height:42px!important;min-width:42px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .nav-cluster{gap:8px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .fader{width:84px!important;min-width:40px;flex:0 1 84px}
@media(max-width:1100px){
 html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .bottom-console{grid-template-columns:360px minmax(0,1fr)!important;column-gap:20px!important}
 html body #radioWindow[data-radio-layout="clean"]:not(.music-source) #radioSourceBar{max-width:360px}
 html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .control-panel{gap:6px!important}
 html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .fader{width:60px!important}
}
#radioLookControls .radio-layout-choices{border:0;padding:0;min-width:0;margin:12px 0}
#radioLookControls .radio-layout-choices legend{font-weight:650;margin-bottom:10px}
#themePanel #radioLookPreview{display:block;position:relative;min-height:0;height:auto;padding:0;gap:0;overflow:hidden;box-sizing:border-box;border-radius:12px;container-type:size}
#radioLookPreview .radio-viz-sample{position:absolute;max-width:none;margin:0}
#radioLookPreview .radio-viz-sample img{width:100%;height:100%;object-fit:fill}
#radioLookPreview .radio-preview-copy{position:absolute;left:2%;top:27%;max-width:28%;gap:1.5cqh}
#radioLookPreview .radio-preview-copy strong{font-size:min(18px,2.3cqw,11cqh);line-height:1.1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#radioLookPreview .radio-preview-copy span{font-size:min(10px,1.25cqw,6cqh);line-height:1.3;opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#radioLookPreview .radio-preview-toolbar{position:absolute;right:2%;top:7%;font:600 min(1.3cqw,6cqh)/1.2 system-ui;color:#e5edef;padding:1.5cqh 3cqh;border-radius:2.5cqh;background:#06101875}
#radioLookPreview .radio-preview-buttons{position:absolute;right:3%;top:53%;width:27%;font:min(1.8cqw,9cqh)/1 system-ui;white-space:nowrap;color:#e4eeea}
#radioLookPreview .radio-preview-buttons b{display:inline-grid;place-items:center;background:var(--radio-preview-accent);color:#06110a;width:min(3.7cqw,21cqh);height:min(3.7cqw,21cqh);border-radius:50%;font-size:min(1.5cqw,7.5cqh);vertical-align:middle}
#radioLookPreview[data-layout="clean"] .radio-preview-toolbar{left:2%;right:auto}
#radioLookPreview[data-layout="clean"] .radio-preview-copy{top:27%;max-width:38%}
#radioLookPreview[data-layout="clean"] .radio-preview-buttons{left:2%;right:auto;top:auto;bottom:7%;width:40%}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .control-panel{justify-self:stretch;width:100%;min-width:0}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) #playBtn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;max-height:42px!important;flex:0 0 42px!important}
#radioLookPreview .radio-viz-sample.is-modern::before{content:"";position:absolute;inset:0;background:var(--radio-preview-accent);mask-image:var(--viz-preview-mask);mask-size:100% 100%;mask-repeat:no-repeat;pointer-events:none}
#radioLookPreview .radio-viz-sample.is-modern img{opacity:0}
/* The dolphin animation fills the visualizer without surrounding bars. */
html body #radioWindow #dolphin-bg{width:100%;max-width:none;height:100%;object-fit:fill;transition:none;image-rendering:auto;mix-blend-mode:screen}
body.radio-viz-dolphin #radioWindow .monitor-frame .pixel-cat{display:none!important}
html body #radioWindow .control-panel{flex-wrap:wrap;row-gap:6px}

/* A frame is a separate choice for either visualizer collection. */
html body:not(.radio-viz-flow) #radioWindow[data-viz-frame="auto"] .monitor-frame{background:var(--radio-monitor-background,#030504)!important;border-color:var(--radio-monitor-border,#ffffff1f)!important;box-shadow:var(--radio-monitor-shadow,none)!important}
html body #radioWindow[data-viz-frame="off"] .monitor-frame{border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body #radioWindow[data-viz-frame="on"] .monitor-frame{border:1px solid rgba(var(--radio-accent-rgb,30,215,96),.25)!important;border-radius:13px!important;background:rgba(4,12,17,.32)!important;box-shadow:inset 0 1px 0 #ffffff0a!important;backdrop-filter:none!important}
html body #radioWindow[data-viz-frame="off"] .monitor-frame::before,html body #radioWindow[data-viz-frame="off"] .monitor-frame::after{display:none!important}
#radioLookPreview .radio-viz-sample.has-frame{border-radius:5px;background:#040c1152;box-shadow:inset 0 0 0 1px #9cceb440}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .control-panel{justify-self:start!important;justify-content:flex-start!important;margin:0!important;padding:0!important;width:100%!important;max-width:none!important}

/* Layout changes cannot leave a tall persisted window behind. */
html body #radioWindow[data-radio-layout="classic"]:not(.music-source){height:190px!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .tech-panel{position:relative}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .header-row{position:absolute;right:0;top:0;margin:0!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .brand-text{display:none!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) #curStation{position:absolute;left:71px;right:0;top:0;margin:0!important;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .monitor-frame{height:104px!important}
#radioLookControls .radio-display-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 8px}
#radioLookControls .radio-display-options .radio-layout-choices{margin:0}
#radioLookControls .radio-display-options .radio-viz-family-note{display:none}
#radioLookControls .radio-display-options .radio-viz-families{margin:0}
#radioLookControls .radio-display-options button{padding:8px 6px;font-size:11px}
#radioLookControls .radio-display-options legend{font-size:12px}
@media(max-width:540px){#radioLookControls .radio-display-options{grid-template-columns:1fr}}


/* Appearance control shares the quiet surfaces of the radio transport. */
html body #radioWindow #themeBtn{position:static;box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:32px!important;height:32px!important;min-width:32px!important;padding:7px!important;margin:0;border:1px solid transparent!important;border-radius:10px!important;background:rgba(225,239,236,.08)!important;box-shadow:none!important;color:#dae8e2!important;cursor:pointer;transition:background .14s,color .14s,transform .14s!important}
html body #radioWindow #themeBtn svg{display:block;flex:0 0 19px;width:19px;height:19px}
html body #radioWindow #themeBtn:hover{background:rgba(225,239,236,.16)!important;color:#f4faf7!important}
html body #radioWindow #themeBtn:active{transform:scale(.97)}
html body #radioWindow #themeBtn:focus-visible{outline:2px solid var(--radio-accent,#a7dacb)!important;outline-offset:3px;box-shadow:none!important}
html body #radioWindow[data-radio-layout="clean"]:not(.music-source) .control-panel #themeBtn{flex:0 0 38px;width:38px!important;min-width:38px!important;height:38px!important;padding:8px!important;border-radius:12px!important}
@media(prefers-reduced-motion:reduce){html body #radioWindow #themeBtn{transition:none!important}}

html body #radioWindow .brand-text[hidden]{display:none!important}

html body #radioWindow[data-radio-layout="classic"] .header-row{justify-content:flex-start}
html body #radioWindow .branding{flex-direction:row!important;justify-content:flex-start!important}
html body #radioWindow .branding #themeBtn{order:-1}

/* Direct image framing; the preview and player share the same crop geometry. */
#radioLookPreview.is-positionable{cursor:grab;touch-action:none;user-select:none}
#radioLookPreview.is-positionable>*{pointer-events:none}
#radioLookPreview.is-positionable.is-dragging{cursor:grabbing}
#radioLookPreview.is-positionable:focus-visible{outline:2px solid #b9ddcf;outline-offset:3px}
#radioLookControls .radio-image-tools{margin:-5px 0 16px}
#radioLookControls .radio-image-tools[hidden]{display:none!important}
#radioLookControls .radio-image-tools p{font-size:11px;color:#b2c5bd;margin:0 0 8px}
#radioLookControls .radio-image-tools>div{display:flex;align-items:center;gap:10px}
#radioLookControls .radio-image-tools label{margin:0;font-size:12px;white-space:nowrap}
#radioLookControls .radio-image-tools input{flex:1;min-width:45px;max-width:none;accent-color:#a7dacb}
#radioLookControls .radio-image-tools output{font-size:11px;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
#radioLookControls .radio-image-tools button{font-size:11px;padding:6px 9px}

/* Pioneer clips share the existing dolphin layer; color originals keep their palette. */
html body #radioWindow #dolphin-bg.pioneer-color{filter:none!important}
html body #radioWindow #dolphin-bg.pioneer-square{object-fit:contain}
html body #radioWindow .pioneer-meter{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;mix-blend-mode:screen;pointer-events:none;display:none}
html body #radioWindow .monitor-frame.volume-adjusting .pioneer-meter{opacity:0!important}
html body #radioWindow #vizBtn.active{border-color:rgba(var(--radio-accent-rgb,112,168,194),.6)!important;background:rgba(var(--radio-accent-rgb,112,168,194),.14)!important}

#radioLookControls [data-pioneer-gallery][hidden]{display:none!important}
#radioLookControls [data-pioneer-gallery] input{width:100%;box-sizing:border-box;margin:0 0 10px;padding:10px 12px;border:1px solid #ffffff28;border-radius:10px;background:#ffffff08;color:inherit;font:inherit}
#radioLookControls [data-pioneer-gallery] .pioneer-inline-poster{display:block;width:100%;height:54px;object-fit:contain;margin:8px 0}
#radioLookControls [data-pioneer-gallery] .radio-viz-grid span{overflow-wrap:anywhere;text-align:center}

#radioLookControls .radio-spectrum-position{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 14px}
#radioLookControls .radio-spectrum-position p{flex-basis:100%;margin:0;color:#abc5b8;font-size:12px}
#radioLookControls #radioMoveSpectrum[aria-pressed=true]{border-color:#b9ddcf;background:#b6dfce26}
#themePanel #radioLookPreview.is-spectrum-positionable{cursor:move!important;touch-action:none;outline:1px dashed #b9ddcf;outline-offset:3px}
#radioLookPreview.is-spectrum-positionable .radio-viz-sample{outline:1px dashed #b9ddcf;outline-offset:2px;pointer-events:none}

/* Pioneer has a metal faceplate; keep background choices for the other layouts. */
#themePanel[data-radio-layout="pioneer"] :is(#themeList,.radio-theme-filters,#radioImageTools,#radioUseCard,#radioLookNote,#radioBackgroundOff,[data-radio-background-only]){display:none!important}
/* Logged-out auth pill (Ielogoties | Reģistrēties) and the quiet hint below
   it, in the tour popover's look — no driver.js, no overlay. */
#radioSourceBar #mediaAuthSeg{position:relative;display:inline-flex;align-items:center;gap:2px;padding:0;margin-right:4px}
#radioSourceBar #mediaAuthSeg.is-logged{padding:0;background:none;box-shadow:none}
#radioSourceBar #mediaAuthSeg:not(.is-logged) #mediaProfileButton{border-radius:999px;padding:6px 14px;background:#f2f6f8;color:#0b1418;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.35)}
#radioSourceBar #mediaAuthSeg:not(.is-logged) #mediaProfileButton:hover{background:#fff}
#radioSourceBar #mediaRegisterButton{border-radius:999px;padding:6px 12px;color:#aebcc6;font-weight:700}
#radioSourceBar #mediaRegisterButton:hover{color:#e2f8ff}
#radioSourceBar #mediaRegisterButton[hidden]{display:none}
@media(max-width:520px){#radioSourceBar #mediaRegisterButton{display:none}}
/* Login hint: the tour popover's look, rendered without driver.js. */
/* Above the radio window (which raises itself to 65000 when focused) so the arrow is not cut off. */
.driver-popover.media-login-hint{position:fixed;z-index:70000;display:block;pointer-events:auto}
/* Look panel: the layout picker owns a full row — six layouts in one
   container, 3×2 pills like the card editor's tabs (light active pill). */
#radioLookControls .radio-display-options{grid-template-columns:1fr!important;gap:10px!important}
#radioLookControls .radio-display-options .radio-layout-choices:has([data-radio-layout-choice]) .radio-viz-families{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:16px;background:#00000038;position:static}
#radioLookControls .radio-display-options [data-radio-layout-choice]{min-height:40px;padding:8px 6px!important;border-radius:12px!important;border:0!important;font:650 12.5px/1.15 Inter,system-ui,sans-serif!important;color:#c9d6d0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#radioLookControls .radio-display-options [data-radio-layout-choice]:hover{background:#ffffff0d!important;color:#f0faf5!important}
#radioLookControls .radio-display-options [data-radio-layout-choice][aria-pressed=true]{background:#dfe6f4!important;color:#10161f!important;box-shadow:0 1px 2px #0003!important}
#radioLookControls .radio-display-options .radio-layout-choices:has([data-viz-frame-choice]) .radio-viz-families{max-width:340px}
