:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #080c13;
  --panel: #0b111a;
  --panel-2: #101722;
  --panel-3: #151e2c;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --text: #f3f4ee;
  --muted: #8d97a8;
  --muted-2: #5d6675;
  --acid: #d4ff43;
  --blue: #7c8cff;
  --violet: #6e52d9;
  --danger: #ff6d7b;
  --warning: #f4c35b;
  --success: #8eff80;
  --sidebar: 240px;
  --topbar: 72px;
  --radius: 20px;
  --shadow: 0 22px 70px rgba(0,0,0,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr); height: 100vh; overflow: hidden; background:
  radial-gradient(circle at 86% -10%, rgba(112,82,217,.12), transparent 34%),
  linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
  var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
}
.sidebar { position: relative; z-index: 30; display: flex; min-height: 0; flex-direction: column; gap: 8px; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 28%), #070b12; }
.brand-button { display: block; width: 100%; padding: 0 8px 18px; border: 0; background: transparent; cursor: pointer; }
.brand-button img { display: block; width: 180px; height: auto; }
.primary-nav { display: grid; gap: 5px; }
.nav-item { display: grid; width: 100%; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #8d97a8; cursor: pointer; text-align: left; transition: .18s ease; }
.nav-item span { color: #667184; text-align: center; }
.nav-item b { font-size: 12px; font-weight: 650; }
.nav-item:hover, .nav-item.active { border-color: var(--line); background: rgba(255,255,255,.035); color: var(--text); }
.nav-item.active span { color: var(--acid); }
.sidebar-spacer { flex: 1; }
.build-label { margin: 10px 12px 0; color: #414a58; font-size: 8px; letter-spacing: .13em; }
.mobile-scrim { display: none; }
.main-column { display: grid; min-width: 0; min-height: 0; grid-template-rows: var(--topbar) minmax(0,1fr); }
.topbar { position: relative; z-index: 20; display: grid; min-width: 0; grid-template-columns: minmax(180px,1fr) auto minmax(360px, 640px); align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(5,7,11,.86); backdrop-filter: blur(20px); }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumb { min-width: 0; }
.breadcrumb span, .breadcrumb b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb span { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.breadcrumb b { margin-top: 3px; font-size: 13px; }
.workspace-controls { display: flex; align-items: center; gap: 6px; }
.icon-button, .text-button, .quiet-button { border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; transition: .16s ease; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; color: var(--muted); }
.icon-button:hover, .text-button:hover, .quiet-button:hover { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.05); }
.text-button { height: 36px; padding: 0 12px; border-radius: 11px; color: var(--muted); font-size: 10px; }
.mobile-only { display: none; }
.player-host { min-width: 0; }
.view { min-height: 0; overflow: auto; }
.dashboard-view { padding: 28px 30px 60px; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 8px; font-weight: 850; letter-spacing: .22em; }
h1,h2,h3,p { max-width: 100%; }
h1 { margin: 0; font-size: clamp(38px,5vw,68px); letter-spacing: -.055em; line-height: .98; }
h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
h3 { margin: 0; font-size: 14px; }
.dashboard-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.time-module { min-width: 230px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(11,17,26,.74); text-align: right; box-shadow: inset 0 1px rgba(255,255,255,.025); }
.time-module strong, .time-module span, .time-module small { display: block; }
.time-module strong { color: var(--acid); font-size: 34px; letter-spacing: -.04em; }
.time-module span { margin-top: 2px; color: #cbd0d8; font-size: 11px; }
.time-module small { margin-top: 8px; color: var(--muted-2); font-size: 9px; }
.dashboard-tools { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; margin-bottom: 24px; }
.search-box { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11,17,26,.8); }
.search-box span { color: var(--acid); font-size: 20px; }
.search-box input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.search-box input::placeholder { color: #5f6876; }
kbd { padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; background: #0c121b; color: #5f6878; font-size: 9px; font-family: inherit; }
.radio-access, .playlist-access { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11,17,26,.8); cursor: pointer; }
.radio-access:hover, .playlist-access:hover { border-color: var(--line-strong); background: rgba(16,23,34,.95); }
.radio-access span:nth-child(2) { text-align: left; }
.radio-access b, .radio-access small { display: block; }
.radio-access b, .playlist-access b { font-size: 10px; letter-spacing: .05em; }
.radio-access small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.radio-dot { width: 9px; height: 9px; border-radius: 50%; background: #525b68; }
.radio-dot.live { background: var(--acid); box-shadow: 0 0 10px rgba(212,255,67,.5); }
.playlist-access span { color: var(--acid); font-size: 20px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 22px; }
.dashboard-primary { display: grid; gap: 22px; min-width: 0; }
.dashboard-rail { display: grid; gap: 14px; position: sticky; top: 0; }
.content-section, .rail-card { border: 1px solid var(--line); border-radius: 22px; background: rgba(8,12,19,.76); box-shadow: inset 0 1px rgba(255,255,255,.02); }
.content-section { padding: 20px; }
.rail-card { padding: 17px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head.small { margin-bottom: 12px; }
.quiet-button { min-height: 32px; padding: 0 10px; border-radius: 10px; color: var(--muted); font-size: 9px; }
.category-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.category-filter { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 8px; cursor: pointer; }
.category-filter.active, .category-filter:hover { border-color: rgba(212,255,67,.32); background: rgba(212,255,67,.07); color: var(--acid); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 14px; }
.app-grid.compact { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
.app-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #0b111a; transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease; }
.app-card:hover { transform: translateY(-3px); border-color: rgba(212,255,67,.22); box-shadow: 0 20px 45px rgba(0,0,0,.25); }
.app-art { position: relative; aspect-ratio: 1.6; overflow: hidden; background: #080c13; }
.app-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.app-card:hover .app-art img { transform: scale(1.025); }
.app-status { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(4,7,11,.76); color: #b8c0cd; font-size: 8px; backdrop-filter: blur(12px); }
.app-status i { width: 6px; height: 6px; border-radius: 50%; background: #697280; }
.app-status[data-status="online"] i { background: var(--success); box-shadow: 0 0 8px rgba(142,255,128,.4); }
.app-status[data-status="offline"] i { background: var(--danger); }
.app-status[data-status="checking"] i { background: var(--warning); animation: pulse 1s infinite; }
.app-status[data-status="to-connect"] i { background: #59616e; }
.favorite-button { position: absolute; top: 10px; right: 10px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(4,7,11,.72); color: #dfe4ec; cursor: pointer; backdrop-filter: blur(10px); }
.favorite-button.active { color: var(--acid); }
.app-card-body { padding: 15px; }
.app-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.app-card h3 { margin: 8px 0 6px; font-size: 17px; }
.app-description { min-height: 38px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.app-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.primary-button, .secondary-button, .file-track-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; border-radius: 12px; font-size: 10px; font-weight: 750; cursor: pointer; }
.primary-button { border: 0; background: var(--acid); color: #080b0e; }
.primary-button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.secondary-button, .file-track-button { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); }
.secondary-button:hover, .file-track-button:hover { border-color: var(--line-strong); color: var(--text); }
.app-actions .primary-button { flex: 1; }
.app-actions .secondary-button { width: 38px; padding: 0; }
.empty-state { padding: 42px 20px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.recent-list, .project-list { display: grid; gap: 8px; }
.recent-item, .project-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid transparent; border-radius: 13px; background: rgba(255,255,255,.018); cursor: pointer; }
.recent-item:hover, .project-item:hover { border-color: var(--line); background: rgba(255,255,255,.035); }
.recent-item img, .project-item img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.recent-item strong, .recent-item span, .project-item strong, .project-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item strong, .project-item strong { font-size: 10px; }
.recent-item span, .project-item span { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.recent-item b, .project-item b { color: var(--muted-2); font-size: 12px; }
.rail-empty { padding: 18px 8px; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.chat-launch-card { padding: 0; overflow: hidden; }
.chat-launch { display: grid; width: 100%; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 0; background: linear-gradient(135deg, rgba(124,140,255,.11), rgba(212,255,67,.035)); cursor: pointer; text-align: left; }
.chat-launch img { width: 58px; height: 58px; border-radius: 17px; object-fit: cover; }
.chat-launch span small, .chat-launch span strong, .chat-launch span em { display: block; }
.chat-launch small { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.chat-launch strong { margin-top: 4px; font-size: 13px; }
.chat-launch em { margin-top: 3px; color: var(--muted); font-size: 8px; font-style: normal; }
.chat-launch > b { color: var(--acid); }
.workspace-view { position: relative; overflow: hidden; background: #020407; }
.workspace-frame-wrap { position: absolute; inset: 0; }
.workspace-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #070a0f; }
.workspace-status { position: absolute; top: 14px; left: 50%; z-index: 4; max-width: min(760px,calc(100% - 30px)); padding: 10px 14px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(10,15,23,.93); color: #d7dce4; font-size: 10px; box-shadow: var(--shadow); }
.workspace-status[data-kind="error"] { border-color: rgba(255,109,123,.42); color: #ffb5be; }
.workspace-status[data-kind="success"] { border-color: rgba(142,255,128,.28); color: #c6ffc0; }
.workspace-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 28px; background: radial-gradient(circle at center, rgba(124,140,255,.08), transparent 36%), #05070b; text-align: center; }
.workspace-empty img { width: 78px; }
.workspace-empty h2 { margin-top: 20px; font-size: 26px; }
.workspace-empty p { max-width: 560px; margin: 10px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal { width: min(1060px,calc(100% - 36px)); max-width: none; max-height: 90vh; padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: #090e16; color: var(--text); box-shadow: 0 40px 120px rgba(0,0,0,.65); }
.modal::backdrop { background: rgba(1,3,7,.76); backdrop-filter: blur(10px); }
.modal-shell { display: grid; max-height: 90vh; grid-template-rows: auto auto minmax(0,1fr) auto; margin: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.manager-toolbar { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.manager-body { display: grid; min-height: 0; grid-template-columns: 310px minmax(0,1fr); }
.manager-list { min-height: 0; overflow: auto; padding: 12px; border-right: 1px solid var(--line); }
.manager-list-item { display: grid; width: 100%; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-bottom: 6px; padding: 8px; border: 1px solid transparent; border-radius: 13px; background: transparent; cursor: pointer; text-align: left; }
.manager-list-item:hover, .manager-list-item.active { border-color: var(--line); background: rgba(255,255,255,.035); }
.manager-list-item img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.manager-list-item strong, .manager-list-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manager-list-item strong { font-size: 10px; }
.manager-list-item span { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.manager-list-item b { color: var(--muted-2); }
.manager-editor { min-height: 0; overflow: auto; padding: 20px; }
.editor-empty { display: grid; min-height: 300px; place-content: center; color: var(--muted-2); text-align: center; }
.editor-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.form-grid .full { grid-column: 1/-1; }
label { display: grid; gap: 6px; color: #a4adbb; font-size: 9px; font-weight: 650; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: #070b11; color: var(--text); }
input, select { min-height: 40px; padding: 0 11px; }
textarea { min-height: 88px; resize: vertical; padding: 10px 11px; line-height: 1.45; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; min-height: auto; accent-color: var(--acid); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.danger-button { border: 1px solid rgba(255,109,123,.35); background: rgba(255,109,123,.08); color: #ff9da8; }
.form-status { min-height: 18px; margin: 0; padding: 8px 20px 14px; color: var(--muted); font-size: 9px; }
.form-status[data-kind="error"] { color: #ff9da8; }
.form-status[data-kind="success"] { color: #baffb2; }
.playlist-modal { width: min(900px,calc(100% - 36px)); }
.playlist-body { display: grid; min-height: 0; grid-template-columns: minmax(0,1fr) 300px; }
.playlist-list { min-height: 0; overflow: auto; padding: 16px; border-right: 1px solid var(--line); }
.playlist-track { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; margin-bottom: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.02); }
.playlist-track.active { border-color: rgba(212,255,67,.3); background: rgba(212,255,67,.045); }
.playlist-track img { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; background: #111824; }
.playlist-track strong, .playlist-track span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-track strong { font-size: 10px; }
.playlist-track span { margin-top: 3px; color: var(--muted); font-size: 8px; }
.track-actions { display: flex; gap: 5px; }
.track-actions button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.playlist-add { display: grid; align-content: start; gap: 12px; padding: 18px; }
.file-track-button { width: 100%; }
.chat-panel { position: fixed; inset: 0 0 0 auto; z-index: 80; display: grid; width: min(480px,100vw); grid-template-rows: 70px minmax(0,1fr) auto; transform: translateX(102%); border-left: 1px solid var(--line-strong); background: #080d15; box-shadow: -30px 0 80px rgba(0,0,0,.48); transition: transform .26s var(--ease); }
.chat-panel.open { transform: translateX(0); }
.chat-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.chat-identity img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; }
.chat-identity small, .chat-identity strong, .chat-identity em { display: block; }
.chat-identity small { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.chat-identity strong { margin-top: 3px; font-size: 12px; }
.chat-identity em { margin-top: 2px; color: var(--muted); font-size: 8px; font-style: normal; }
.chat-messages { min-height: 0; overflow: auto; padding: 18px; }
.chat-message { margin-bottom: 16px; }
.chat-message.user { display: flex; justify-content: flex-end; }
.chat-bubble { max-width: 88%; padding: 11px 13px; border-radius: 15px; background: #111925; color: #e9ecf2; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }
.chat-message.user .chat-bubble { background: rgba(124,140,255,.14); border: 1px solid rgba(124,140,255,.18); border-radius: 15px 15px 5px 15px; }
.chat-message.system .chat-bubble { border: 1px solid rgba(255,109,123,.25); background: rgba(255,109,123,.06); color: #ffb7bf; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-action { padding: 7px 9px; border: 1px solid rgba(212,255,67,.25); border-radius: 9px; background: rgba(212,255,67,.06); color: var(--acid); font-size: 8px; cursor: pointer; }
.chat-composer { display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-composer textarea { min-height: 44px; max-height: 140px; resize: none; }
.send-button { width: 42px; height: 42px; border: 0; border-radius: 13px; background: var(--acid); color: #070a0d; font-size: 20px; font-weight: 850; cursor: pointer; }
.chat-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(1,3,6,.62); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.chat-scrim.open { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; max-width: min(540px,calc(100% - 28px)); padding: 10px 13px; transform: translate(-50%,18px); border: 1px solid var(--line-strong); border-radius: 11px; background: #141c28; color: #edf0f4; font-size: 10px; opacity: 0; pointer-events: none; box-shadow: var(--shadow); transition: .22s var(--ease); }
.toast.show { transform: translate(-50%,0); opacity: 1; }
.global-player { display: grid; min-width: 0; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(11,17,26,.88); }
.player-cover { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; background: #141c28; }
.player-core { min-width: 0; }
.player-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-title strong, .player-title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-title strong { font-size: 10px; }
.player-title span { margin-top: 2px; color: var(--muted); font-size: 8px; }
.player-time { flex: 0 0 auto; color: var(--muted-2); font-size: 7px; }
.player-progress { position: relative; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #29313e; cursor: pointer; }
.player-progress span { display: block; width: 0; height: 100%; background: var(--acid); }
.player-controls { display: flex; align-items: center; gap: 4px; }
.player-controls button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.player-controls button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.player-controls .play { background: var(--acid); color: #070a0d; }
.player-volume { width: 68px; accent-color: var(--acid); }
.global-player.compact { grid-template-columns: 42px minmax(0,1fr) auto; }
.global-player.minimized { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 76px; height: 76px; grid-template-columns: 1fr; padding: 8px; border-radius: 20px; box-shadow: var(--shadow); }
.global-player.minimized .player-core, .global-player.minimized .player-controls button:not(.play) { display: none; }
.global-player.minimized .player-cover { width: 58px; height: 58px; border-radius: 15px; }
.global-player.minimized .player-controls { position: absolute; inset: 0; justify-content: center; background: rgba(3,5,8,.26); border-radius: 20px; opacity: 0; transition: opacity .18s ease; }
.global-player.minimized:hover .player-controls { opacity: 1; }
.login-page { min-height: 100vh; overflow: auto; background: radial-gradient(circle at 68% 12%, rgba(124,140,255,.14), transparent 28%), linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px), #05070b; background-size: auto,48px 48px,48px 48px,auto; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-card { width: min(440px,100%); padding: 28px; border: 1px solid var(--line-strong); border-radius: 26px; background: rgba(9,14,22,.92); box-shadow: var(--shadow); }
.login-logo { width: 220px; margin-bottom: 32px; }
.login-card h1 { font-size: 38px; }
.muted { color: var(--muted); font-size: 11px; line-height: 1.55; }
.login-form { display: grid; gap: 14px; margin-top: 24px; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 1180px) {
  :root { --sidebar: 210px; }
  .topbar { grid-template-columns: minmax(160px,1fr) auto minmax(320px,520px); }
  .dashboard-layout { grid-template-columns: minmax(0,1fr) 280px; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px,86vw); transform: translateX(-102%); box-shadow: 22px 0 70px rgba(0,0,0,.52); transition: transform .24s var(--ease); }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(1,3,6,.66); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .mobile-scrim.open { opacity: 1; pointer-events: auto; }
  .mobile-only { display: grid; }
  .topbar { grid-template-columns: minmax(150px,1fr) auto minmax(300px,480px); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-rail { position: static; grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  :root { --topbar: auto; }
  body { overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; overflow: visible; }
  .main-column { min-height: 100vh; grid-template-rows: auto minmax(0,1fr); }
  .topbar { position: sticky; top: 0; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 10px; }
  .topbar-left { min-width: 0; }
  .workspace-controls { grid-column: 1/-1; order: 3; justify-content: center; }
  .player-host { grid-column: 1/-1; order: 2; }
  .dashboard-view { padding: 20px 14px 46px; }
  .dashboard-head { align-items: stretch; flex-direction: column; }
  .time-module { min-width: 0; text-align: left; }
  .dashboard-tools { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1/-1; }
  .dashboard-layout { gap: 14px; }
  .dashboard-rail { grid-template-columns: 1fr; }
  .content-section { padding: 15px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .category-filters { justify-content: flex-start; }
  .app-grid, .app-grid.compact { grid-template-columns: 1fr; }
  .workspace-view { min-height: calc(100vh - 150px); }
  .modal { width: calc(100% - 18px); max-height: 96vh; }
  .modal-shell { max-height: 96vh; }
  .manager-body, .playlist-body { grid-template-columns: 1fr; }
  .manager-list, .playlist-list { max-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .chat-panel { width: 100vw; }
  .global-player { grid-template-columns: 42px minmax(0,1fr) auto; }
  .player-volume { display: none; }
}
@media (max-width: 480px) {
  .dashboard-tools { grid-template-columns: 1fr; }
  .search-box, .radio-access, .playlist-access { grid-column: 1; }
  .dashboard-head h1 { font-size: 45px; }
  .global-player { grid-template-columns: 38px minmax(0,1fr) auto; }
  .player-cover { width: 38px; height: 38px; }
  .player-controls button { width: 28px; height: 28px; }
  .player-controls button[data-action="prev"], .player-controls button[data-action="next"], .player-controls button[data-action="mute"] { display: none; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.radio-access-wrap { display: grid; grid-template-columns: minmax(0,1fr) 36px; gap: 6px; }
.radio-access-wrap .radio-access { min-width: 0; }
.radio-page-button { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11,17,26,.8); color: var(--muted); cursor: pointer; }
.radio-page-button:hover { border-color: var(--line-strong); color: var(--text); }
@media (max-width:760px) { .radio-access-wrap { min-width: 0; } }
