/* Shared YouTune branding and preferences. The original styles remain the retro theme. */
.youtune-brand{display:inline-flex!important;align-items:center;text-decoration:none;flex-shrink:0;color:inherit;font-size:26px;font-weight:400!important;letter-spacing:.02em!important}
.youtune-brand::before{display:none!important}.wordmark{display:inline-flex;align-items:center;font-weight:400!important;white-space:nowrap}.logo-e{width:25px;height:28px;margin-left:2px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round}.logo-e circle{fill:var(--paper,#f7f9fc)}

html[data-theme=hightech]{--ink:#17212f;--paper:#f7f9fc;--acid:#e7f0ff;--accent:#0866d9;--line:#d7dee8;--muted:#526174;--red:#bc3142;color:var(--ink);background:var(--paper);font-family:Arial,Helvetica,sans-serif}
html[data-theme=hightech] body{background:var(--paper);color:var(--ink)}
html[data-theme=hightech] header{border-bottom:1px solid var(--line);padding-top:12px;padding-bottom:12px;gap:24px;flex-wrap:wrap;box-shadow:none}
html[data-theme=hightech] .hero{background:transparent;box-shadow:none}
html[data-theme=hightech] h1{font-weight:400;letter-spacing:-.045em;line-height:1.12}
html[data-theme=hightech] h2,html[data-theme=hightech] h3{font-weight:500;letter-spacing:-.02em}
html[data-theme=hightech] .eyebrow{font:400 11px/1.5 Arial,sans-serif;letter-spacing:.13em;color:var(--muted)}
html[data-theme=hightech] button,html[data-theme=hightech] a.button{min-height:44px;border-radius:8px;border:1px solid var(--accent);background:var(--accent);color:#fff;font-weight:400;box-shadow:none}
html[data-theme=hightech] button:hover,html[data-theme=hightech] a.button:hover{background:#0755b5;color:#fff}
html[data-theme=hightech] button.secondary{background:transparent;border-color:var(--muted);color:var(--ink)}
html[data-theme=hightech] button.secondary:hover{background:#e7f0ff;border-color:var(--accent);color:var(--accent)}
html[data-theme=hightech] input:not([type=range]){border:1px solid var(--muted);border-radius:8px;background:#fff;color:var(--ink)}
html[data-theme=hightech] :is(button,a,input,select):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
html[data-theme=hightech] .workspace{border:1px solid var(--line);background:#fff;border-radius:12px;box-shadow:none;overflow:hidden}
html[data-theme=hightech] .panel{background:#fff;border-color:var(--line)}
html[data-theme=hightech] .panel-heading>div>span{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:50%;font-weight:400}
html[data-theme=hightech] .empty{border:1px dashed var(--muted);border-radius:10px;background:#f7f9fc}
html[data-theme=hightech] .empty b{font-weight:500}
html[data-theme=hightech] .modal-card,html[data-theme=hightech] .card{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 18px 60px #17212f18}
html[data-theme=hightech] .upload-drop{border:1px dashed var(--muted);border-radius:10px;background:var(--paper)}
html[data-theme=hightech] .draft-item.playing{background:#e7f0ff;border-left:2px solid var(--accent)}
html[data-theme=hightech] .preview-bar{background:#17212f;border-radius:12px 12px 0 0;box-shadow:0 -8px 28px #17212f12}
html[data-theme=hightech] .preview-bar button{background:transparent;border-color:#8b9bb2;color:#fff}
html[data-theme=hightech] .notice{border-color:var(--line);border-radius:10px;box-shadow:0 8px 28px #17212f15}
html[data-theme=hightech] .tag{border-radius:4px;background:var(--paper);border:1px solid var(--line);color:var(--muted)}
/* Signal glyph replaces the record while retaining the same state hooks. Purely decorative. */
html[data-theme=hightech] :is(.vinyl,.record){width:150px;height:150px;border-radius:50%;background:transparent;border:1px solid #c3d3e9;box-shadow:none;animation:none;position:relative;display:grid;place-items:center}
html[data-theme=hightech] :is(.vinyl,.record)::before{content:"";position:absolute;inset:18px;border-radius:50%;border:1px solid #c3d3e9}
html[data-theme=hightech] :is(.vinyl,.record)::after{content:"";position:absolute;inset:42px;border-radius:50%;border:1px solid var(--accent);width:auto;height:auto;transform:none;background:transparent}
html[data-theme=hightech] .vinyl>div{width:8px;height:8px;background:var(--accent);border:0;border-radius:50%}
html[data-theme=hightech] .vinyl>div::after{display:none}
html[data-theme=hightech] .record-ring{border:0;background:transparent;box-shadow:none}
html[data-theme=hightech] .record-label{background:transparent;border:0;color:var(--accent);font-weight:400}
html[data-theme=hightech] .visual{background:#edf3fb;color:var(--ink);border-color:var(--line)}
html[data-theme=hightech] .player-card{border:1px solid var(--line);border-radius:16px;box-shadow:none;background:#fff}
html[data-theme=hightech] .play-button{border-radius:50%;background:var(--accent);border:1px solid var(--accent);color:#fff;box-shadow:none}
html[data-theme=hightech] .player-copy h1 em{font-style:normal}
html[data-theme=hightech] .visual-caption,html[data-theme=hightech] .visual-footer{color:var(--muted)}
html[data-theme=hightech] .bars i{background:var(--accent)}
html[data-theme=hightech] input[type=range],html[data-theme=hightech] progress{accent-color:var(--accent)}
html[data-theme=hightech] .site-header{align-items:center}
@media(max-width:760px){header,.site-header{flex-wrap:wrap!important;gap:12px!important}header nav{flex-wrap:wrap}.youtune-brand{font-size:23px}.logo-e{width:22px;height:26px}.player-card{min-width:0}.header-label{font-size:10px}}
@media(max-width:420px){.hero button{max-width:100%;white-space:normal}.preview-bar{left:8px;right:8px}.panel{min-width:0;padding:20px!important}.modal{padding:12px}.modal-card{padding:16px}.playlist-heading button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The cabinet and listener originally used fixed-height headers. Preferences must wrap. */
header,.site-header{height:auto!important;min-height:76px}
html[data-theme=hightech] .workspace{margin:0 4vw 40px}
html[data-theme=hightech] .round{width:44px!important;height:44px}
html[data-theme=hightech] .preview-bar>button{width:44px;height:44px}
html[data-theme=hightech] .visual .record{width:210px;height:210px;transform:translate(-50%,-50%);aspect-ratio:1}
html[data-theme=hightech] body.is-playing .record{animation:none}
.legacy-preferences{position:fixed;top:18px;right:18px}
@media(max-width:950px){html[data-theme=hightech] .workspace{grid-template-columns:1fr}.preview-bar{grid-template-columns:44px 44px 44px minmax(0,1fr) 44px;grid-template-areas:"previous toggle next title close" "volume volume volume volume volume" "timeline timeline timeline timeline timeline"}.preview-bar>.preview-volume{justify-self:end;width:150px}}
/* Translatable spans inherit their semantic element's typography. */
.panel-heading h2 span,.panel-heading button span{font:inherit;color:inherit;letter-spacing:inherit}
html[data-theme=hightech] .empty{padding:20px;line-height:1.5}
html[data-theme=hightech] .panel-heading>div>span{width:24px;height:24px;display:grid;place-items:center;font:400 11px Arial,sans-serif}
html[data-theme=hightech] .environment{border:0;font:400 12px Arial,sans-serif;color:var(--muted);letter-spacing:0}
html[data-theme=hightech] .footnote>span[data-i18n]{color:var(--muted)}
/* Icon-only preferences with a small, keyboard-accessible language popover. */
.preferences,header .preferences{position:relative;display:flex;align-items:center;gap:4px;flex-wrap:nowrap;width:auto;flex-shrink:0}
.preferences .preference-button{display:grid;place-items:center;width:40px;min-width:40px;height:44px;min-height:44px;margin:0;padding:8px;background:transparent;border:0;border-radius:8px;color:var(--ink);box-shadow:none;cursor:pointer}
.preferences .preference-button:hover,.preferences .preference-button[aria-expanded=true]{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.preferences svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.language-popup{position:absolute;z-index:100;top:calc(100% + 10px);right:0;display:grid;width:220px;padding:6px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #17212f18}
.language-popup[hidden]{display:none!important}
.language-popup .language-option{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;gap:10px;align-items:center;min-height:44px;margin:0;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:400 14px/1.2 Arial,sans-serif;text-align:left;cursor:pointer}
.language-popup .language-option:hover,.language-popup .language-option:focus-visible{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.language-popup .language-option[aria-pressed=true]{background:color-mix(in srgb,var(--ink) 6%,transparent)}
.language-code{font:400 11px Arial,sans-serif;color:var(--muted)}
.language-check{visibility:hidden;width:16px!important;height:16px!important}
.language-option[aria-pressed=true] .language-check{visibility:visible}
@media(max-width:760px){header .preferences{margin-left:auto}.language-popup{right:0;max-width:calc(100vw - 32px)}}
/* Account actions live in a popover, reached through the user identity. */
header .header-actions{display:flex;align-items:center;gap:12px;margin-left:auto;min-width:0}
header .account-menu{position:relative;display:block;min-width:0}
.account-menu .account-trigger{display:flex;align-items:center;gap:8px;max-width:280px;min-height:44px;margin:0;padding:8px;background:transparent;border:0;border-radius:8px;color:var(--muted);font:400 14px Arial,sans-serif;box-shadow:none}
.account-menu .account-trigger:hover,.account-menu .account-trigger[aria-expanded=true]{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
#account-email{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-menu svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.account-trigger .account-icon{display:none}.account-trigger .account-chevron{width:16px;height:16px}
header .account-popup{position:absolute;z-index:100;top:calc(100% + 10px);right:0;display:block;width:260px;max-width:calc(100vw - 32px);padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:0 12px 36px #17212f18}
.account-popup[hidden]{display:none!important}
.account-menu-email{margin:0 0 6px;padding:12px 10px;border-bottom:1px solid var(--line);color:var(--muted);font:400 12px/1.5 Arial,sans-serif;overflow-wrap:anywhere}
.account-popup .account-sign-out{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;margin:0;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:400 14px Arial,sans-serif;text-align:left;box-shadow:none}
.account-popup .account-sign-out:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
@media(max-width:760px){header .header-actions{gap:4px}.account-trigger #account-email,.account-trigger .account-chevron{display:none}.account-trigger .account-icon{display:block}.account-menu .account-trigger{width:40px;min-width:40px;padding:8px;justify-content:center}}
@media(max-width:760px){header .header-actions{position:relative}header .account-menu{position:static}}
/* Waves are the primary navigation, with a bounded scrolling rail. */
.wave-toolbar{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:24px 4vw}
.wave-toolbar>.eyebrow{flex:0 0 auto;max-width:155px;margin:0;line-height:1.6}
.wave-strip{display:flex;flex:1;min-width:0;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;position:relative;padding:3px 0 9px}
.wave-chip{display:flex;flex-shrink:0;align-items:center;border:1px solid var(--line);border-radius:10px;background:var(--paper);max-width:260px}
.wave-chip.active{border-color:var(--muted);background:color-mix(in srgb,var(--ink) 5%,var(--paper))}
.wave-chip .wave-chip-select{display:block;width:auto;min-width:120px;max-width:205px;min-height:56px;padding:10px 12px;text-align:left;border:0;background:transparent;color:var(--ink);border-radius:10px;font:400 14px Arial,sans-serif;box-shadow:none}
.wave-chip .wave-chip-select:hover{background:color-mix(in srgb,var(--ink) 5%,transparent);color:var(--ink)}
.wave-chip-name{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.wave-chip-meta{display:flex;gap:6px;align-items:center;margin-top:7px;font:400 10px Arial,sans-serif;color:var(--muted);white-space:nowrap}
.wave-state-dot{width:6px;height:6px;border:1px solid var(--muted);border-radius:50%;background:transparent;flex-shrink:0}
.wave-state-dot.live{background:#21824b;border-color:#21824b}
.wave-listeners{display:inline-flex;align-items:center;gap:4px;margin-left:5px;color:var(--ink)}
.wave-listeners[hidden]{display:none!important}.wave-listeners svg{width:13px;height:13px}
.wave-pinned{display:inline-flex}.wave-pinned svg{width:12px;height:12px}
.icon-button svg,.wave-chip svg,.wave-actions-popup svg,.playlist-heading-select svg{fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.wave-toolbar .icon-button,.playlist-option .icon-button,.playlist-option-main .icon-button{display:grid;place-items:center;flex-shrink:0;width:44px;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:8px;background:transparent;color:var(--muted);box-shadow:none;cursor:pointer}
.icon-button svg{width:18px;height:18px}
.wave-toolbar .icon-button:hover,.playlist-option .icon-button:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.wave-toolbar .wave-chip-settings{width:36px;min-width:36px;padding:8px}
.wave-scroll{font-size:24px!important}.wave-scroll[hidden]{display:none!important}.wave-toolbar .wave-add{border:1px solid var(--line);font-size:24px;font-weight:300}
.wave-actions-popup{position:fixed;z-index:100;width:220px;padding:6px;background:var(--paper);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 36px #17212f18}
.wave-actions-popup[hidden]{display:none!important}
.wave-actions-popup button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px;border:0;border-radius:7px;background:transparent;color:var(--ink);text-align:left;font:400 14px Arial,sans-serif;box-shadow:none}
.wave-actions-popup button:hover{background:color-mix(in srgb,var(--ink) 6%,transparent);color:var(--ink)}
.wave-actions-popup svg{width:18px;height:18px;flex-shrink:0}
.wave-edit-label{display:grid;gap:10px;font:400 13px Arial,sans-serif}.wave-edit-label input{width:100%;min-width:0}.wave-save{margin-top:20px;align-self:flex-start}
#wave-options{overflow:visible;flex:none}
/* The playlist name itself opens the picker. Duration keeps its own compact column. */
.panel-heading.playlist-heading{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:10px;align-items:center;flex-wrap:nowrap}
.playlist-heading .panel-number{font:400 11px Arial,sans-serif;color:var(--muted)}
.playlist-heading .playlist-heading-select{display:flex;align-items:center;gap:8px;width:100%;min-width:0;min-height:44px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--ink);text-align:left;font:500 20px Arial,sans-serif;box-shadow:none}
.playlist-heading .playlist-heading-select:hover{background:transparent;color:var(--muted)}
#playlist-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit;color:inherit}
.playlist-heading-select svg{width:16px;height:16px;flex-shrink:0}
.playlist-heading #duration{font:400 11px Arial,sans-serif}
.playlist-modal-card .playlist-option{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:16px 0;border-bottom:1px solid var(--line)}
.playlist-option.selected .playlist-card-title{color:var(--ink);font-weight:500}
.playlist-option .playlist-option-main{display:block;min-width:0;margin:0}
.playlist-option .playlist-select{display:block;width:100%;max-width:100%;padding:5px 0;border:0;border-radius:0;background:transparent!important;color:var(--ink);text-align:left;min-height:44px;box-shadow:none}
.playlist-card-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.playlist-track-count{display:block;margin-top:7px;font:400 12px Arial,sans-serif;color:var(--muted)}
.playlist-option .playlist-option-actions{display:flex;align-items:flex-start;gap:2px}
.playlist-option .playlist-air-actions{grid-column:1/-1;margin-top:4px;gap:8px}
.playlist-option .playlist-air-actions button{width:auto;min-height:36px;padding:7px 11px;font-size:12px}
.playlist-option .playlist-name-input{width:100%;margin-bottom:8px}
.playlist-option .on-air-label{display:block;margin-top:8px;font:400 11px Arial,sans-serif}
@media(max-width:760px){.wave-toolbar{gap:8px;padding-top:18px;padding-bottom:18px}.wave-toolbar>.eyebrow{max-width:95px;font-size:9px}.wave-scroll{display:none!important}.wave-chip .wave-chip-select{max-width:170px;min-width:110px}.wave-toolbar .wave-add{width:36px;min-width:36px}.panel-heading.playlist-heading .playlist-heading-select{order:initial;width:100%;font-size:18px}.playlist-option .playlist-option-actions button{flex:none}.playlist-option .playlist-air-actions button{flex:none;max-width:100%}}
.workspace>.panel>.panel-heading{min-height:66px}
html[data-theme=hightech] .playlist-heading .panel-number{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%}
.wave-name-text,.wave-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wave-status{max-width:155px}.wave-listeners{flex-shrink:0}
.playlist-option.selected .playlist-card-title::after{content:"✓";float:right;margin-left:12px;font-size:13px;color:var(--muted)}
.wave-chip{position:relative;cursor:grab}
.wave-chip:active{cursor:grabbing}
.wave-chip-select{padding-right:12px}
.wave-hover-actions{display:flex;position:absolute;right:6px;top:5px;background:var(--paper);border-radius:6px;opacity:0;pointer-events:none;transition:opacity .15s}
.wave-chip:hover .wave-hover-actions,.wave-chip:focus-within .wave-hover-actions{opacity:1;pointer-events:auto}
.wave-hover-actions .icon-button{width:30px;min-height:30px;padding:6px;background:transparent;color:var(--ink);border:0;box-shadow:none}
.wave-hover-actions .icon-button:hover{background:color-mix(in srgb,var(--ink) 7%,transparent)}
.wave-hover-actions svg{width:17px;height:17px}
.wave-chip.dragging,.catalog-item.dragging{opacity:.45}
.wave-chip.drag-over{border-color:var(--blue);box-shadow:inset 3px 0 var(--blue)}
.catalog-item[draggable]{cursor:grab}
@media(hover:none){.wave-hover-actions{position:static;opacity:1;pointer-events:auto;background:transparent}.wave-hover-actions .icon-button{width:32px;min-height:44px}}
.wave-hover-actions{position:static;flex-shrink:0;align-self:center;margin-right:4px;background:transparent}
.wave-chip-select{min-width:0;flex:1}
