:root {
  --navy-950: #07152f;
  --navy-900: #0a204d;
  --navy-800: #0b2a68;
  --blue-700: #174ea6;
  --blue-600: #1769e0;
  --blue-500: #2f80ed;
  --blue-100: #dcecff;
  --blue-50: #eff6ff;
  --ink: #15213a;
  --muted: #68758d;
  --line: #dce4f0;
  --surface: #ffffff;
  --canvas: #f4f7fb;
  --success: #087a55;
  --success-bg: #e7f8f1;
  --warning: #a05a00;
  --warning-bg: #fff4df;
  --danger: #b42335;
  --danger-bg: #fff0f2;
  --shadow-sm: 0 8px 24px rgba(12, 35, 80, .08);
  --shadow-lg: 0 24px 70px rgba(7, 21, 47, .2);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 270px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 1.25em; height: 1.25em; fill: currentColor; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.nowrap { white-space: nowrap; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); background: white; }
.login-art { position: relative; overflow: hidden; min-height: 100vh; padding: 72px; display: flex; flex-direction: column; justify-content: flex-end; color: white; background: radial-gradient(circle at 70% 15%, rgba(62, 145, 255, .65), transparent 30%), linear-gradient(135deg, #07152f 0%, #0b2a68 54%, #1769e0 100%); }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.login-orbit { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.orbit-one { width: 530px; height: 530px; right: -120px; top: -120px; }
.orbit-two { width: 300px; height: 300px; right: -10px; top: 30px; }
.hero-bell { position: absolute; top: 90px; right: 15%; width: 230px; height: 230px; display: grid; place-items: center; border-radius: 48% 52% 58% 42% / 44% 43% 57% 56%; color: white; background: linear-gradient(145deg, #76baff, #1769e0 60%, #0b2a68); box-shadow: inset 18px 16px 40px rgba(255,255,255,.25), 0 35px 80px rgba(0,0,0,.28); transform: rotate(-8deg); }
.hero-bell::before, .hero-bell::after { content: ""; position: absolute; width: 36px; height: 80px; border: 7px solid rgba(255,255,255,.75); border-top-color: transparent; border-bottom-color: transparent; border-radius: 50%; }
.hero-bell::before { left: -52px; }
.hero-bell::after { right: -52px; }
.hero-bell svg { width: 132px; height: 132px; filter: drop-shadow(0 15px 20px rgba(0,0,0,.22)); }
.login-copy { position: relative; max-width: 670px; z-index: 1; }
.eyebrow, .page-eyebrow { display: inline-block; color: var(--blue-600); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.login-copy .eyebrow { color: #a9d4ff; }
.login-copy h1 { margin: 14px 0 16px; font-size: clamp(38px, 4vw, 62px); line-height: 1.05; letter-spacing: -.04em; }
.login-copy p { max-width: 620px; margin: 0; font-size: 17px; line-height: 1.7; color: rgba(255,255,255,.78); }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.feature-pills span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); font-weight: 700; font-size: 12px; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 48px; background: linear-gradient(180deg, #fff, #f8fbff); }
.login-card { width: min(430px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-lg); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--blue-500), var(--navy-800)); box-shadow: 0 10px 24px rgba(23,105,224,.25); }
.brand-mark svg { width: 23px; height: 23px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand-login { margin-bottom: 42px; }
.login-heading h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em; }
.login-heading p { margin: 0 0 28px; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span:first-child, .field-label { font-size: 12px; font-weight: 800; color: #44516b; }
.input-wrap { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: white; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47,128,237,.12); }
.input-wrap > svg { color: #8793a8; flex: 0 0 auto; }
.input-wrap input, .input-wrap select { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.login-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: var(--muted); font-size: 11px; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button.primary { color: white; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); box-shadow: 0 8px 18px rgba(23,105,224,.2); }
.button.secondary { color: var(--navy-800); background: var(--blue-50); border-color: #cce0fb; }
.button.ghost { color: #34425d; background: white; border-color: var(--line); }
.button.danger { color: var(--danger); background: var(--danger-bg); border-color: #ffd0d6; }
.button.success { color: var(--success); background: var(--success-bg); border-color: #bfe9d8; }
.button.compact { min-height: 38px; padding: 0 12px; font-size: 12px; }
.button.small { min-height: 34px; padding: 0 10px; font-size: 11px; }
.button.large { min-height: 50px; }
.button.full { width: 100%; }
.icon-button { width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: #41506c; background: white; }
.icon-button.small { width: 30px; height: 30px; border: 0; background: transparent; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px 16px; color: white; background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 60%, #0b2a68); z-index: 50; }
.sidebar .brand { padding: 0 8px; }
.sidebar .brand strong { color: white; }
.sidebar .brand small { color: #9cb6dc; }
.sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.sidebar-close { display: none; color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.main-nav { display: grid; gap: 5px; overflow-y: auto; padding-right: 2px; }
.nav-section { margin: 16px 10px 6px; color: #7390bb; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.nav-item { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 11px; color: #b8c9e2; background: transparent; font-weight: 700; text-align: left; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(47,128,237,.38), rgba(47,128,237,.13)); box-shadow: inset 3px 0 var(--blue-500); }
.nav-badge { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 99px; background: rgba(255,255,255,.12); text-align: center; font-size: 10px; }
.sidebar-foot { margin-top: auto; padding: 16px 8px 2px; border-top: 1px solid rgba(255,255,255,.09); }
.server-mini { display: flex; align-items: center; gap: 10px; }
.server-mini strong, .server-mini small { display: block; }
.server-mini strong { font-size: 12px; }
.server-mini small { margin-top: 2px; color: #9fb4d4; font-variant-numeric: tabular-nums; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #9aa6b8; box-shadow: 0 0 0 4px rgba(154,166,184,.12); }
.status-dot.online { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.status-dot.offline { background: #fb7185; box-shadow: 0 0 0 4px rgba(251,113,133,.12); }
.status-dot.warning { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.12); }
.version-mini { display: flex; justify-content: space-between; margin-top: 14px; color: #718bad; font-size: 10px; }
.sidebar-backdrop { display: none; }
.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 26px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); z-index: 35; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-left h1 { margin: 2px 0 0; font-size: 22px; letter-spacing: -.025em; }
.menu-button { display: none; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.server-clock { min-width: 126px; display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 11px; background: #f9fbfe; }
.server-clock span { color: var(--muted); font-size: 10px; grid-column: 1; }
.server-clock strong { font-size: 16px; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1 / span 2; }
.server-clock small { color: var(--blue-600); font-size: 8px; font-weight: 900; letter-spacing: .1em; grid-column: 1; }
.user-chip { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; }
.user-chip > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--navy-800); font-size: 11px; font-weight: 900; }
.user-chip strong, .user-chip small { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: 11px; }
.user-chip small { margin-top: 2px; color: var(--muted); font-size: 9px; text-transform: capitalize; }
.page-content { padding: 26px; outline: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.page-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--muted); line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.grid { display: grid; gap: 18px; }
.grid.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.two { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.grid.equal-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 18px; }
.stat-card { position: relative; overflow: hidden; padding: 19px; }
.stat-card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -30px; top: -30px; border-radius: 50%; background: var(--blue-50); }
.stat-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.stat-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--blue-600); background: var(--blue-50); }
.stat-label { color: var(--muted); font-size: 11px; font-weight: 800; }
.stat-value { position: relative; z-index: 1; margin-top: 18px; font-size: 30px; font-weight: 900; letter-spacing: -.04em; }
.stat-meta { position: relative; z-index: 1; margin-top: 6px; color: var(--muted); font-size: 11px; }
.next-bell { position: relative; overflow: hidden; min-height: 255px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; color: white; background: linear-gradient(135deg, var(--navy-950), var(--navy-800) 58%, var(--blue-600)); }
.next-bell::before { content: ""; position: absolute; width: 250px; height: 250px; right: -80px; top: -90px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.next-bell::after { content: ""; position: absolute; width: 150px; height: 150px; right: -20px; top: -30px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.next-bell > * { position: relative; z-index: 1; }
.next-bell-label { display: flex; align-items: center; gap: 8px; color: #b9d8ff; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.next-bell-time { margin: 18px 0 2px; font-size: clamp(45px, 5vw, 68px); font-weight: 900; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.next-bell h3 { margin: 0; font-size: 19px; }
.next-bell p { margin: 6px 0 0; color: rgba(255,255,255,.7); }
.countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: rgba(255,255,255,.08); font-weight: 800; font-variant-numeric: tabular-nums; }
.quick-panel { display: grid; gap: 14px; }
.quick-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.quick-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid #e8edf5; text-align: left; vertical-align: middle; }
th { color: #67748a; background: #f8fafd; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
td { font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
.time-cell { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--navy-800); }
.cell-title { font-weight: 800; }
.cell-sub { margin-top: 3px; color: var(--muted); font-size: 10px; }
.actions { display: flex; justify-content: flex-end; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.badge.blue { color: var(--blue-700); background: var(--blue-50); }
.badge.success { color: var(--success); background: var(--success-bg); }
.badge.warning { color: var(--warning); background: var(--warning-bg); }
.badge.danger { color: var(--danger); background: var(--danger-bg); }
.badge.neutral { color: #526078; background: #edf1f7; }
.badge.dark { color: white; background: var(--navy-800); }
.toggle { position: relative; width: 42px; height: 24px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #c7d0df; transition: .2s; }
.toggle span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }
.toggle input:checked + span { background: var(--blue-600); }
.toggle input:checked + span::after { transform: translateX(18px); }

.empty-state { min-height: 220px; display: grid; place-items: center; padding: 30px; text-align: center; color: var(--muted); }
.empty-state-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 17px; color: var(--blue-600); background: var(--blue-50); }
.empty-state h3 { margin: 0 0 7px; color: var(--ink); }
.empty-state p { max-width: 420px; margin: 0 auto 16px; line-height: 1.6; }
.player-grid, .audio-grid, .group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.entity-card { padding: 18px; }
.entity-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.entity-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-600); background: var(--blue-50); }
.entity-card h3 { margin: 14px 0 4px; font-size: 15px; }
.entity-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.entity-meta { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.meta-row span:first-child { color: var(--muted); }
.meta-row strong { text-align: right; }
.entity-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 9px 10px; border: 1px dashed #b9cbe5; border-radius: 9px; background: #f8fbff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.audio-wave { height: 46px; display: flex; align-items: center; gap: 3px; margin: 15px 0 10px; overflow: hidden; }
.audio-wave i { width: 3px; border-radius: 4px; background: linear-gradient(var(--blue-500), var(--navy-800)); opacity: .62; }

.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.toolbar .field { min-width: 150px; margin: 0; }
.toolbar .field.grow { flex: 1 1 220px; }
.input, .select, .textarea, .picker-input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: white; }
.input:focus, .select:focus, .textarea:focus, .picker-input:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(47,128,237,.1); }
.textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .field { margin: 0; }
.form-grid .span-2 { grid-column: span 2; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.5; }
.range-row { display: grid; grid-template-columns: minmax(0,1fr) 48px; align-items: center; gap: 10px; }
.range-row output { text-align: right; font-weight: 900; color: var(--blue-700); }
input[type="range"] { width: 100%; accent-color: var(--blue-600); }
.check-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.check-chip { position: relative; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { min-height: 38px; display: grid; place-items: center; padding: 6px; border: 1px solid var(--line); border-radius: 9px; color: #526078; background: white; font-size: 11px; font-weight: 800; }
.check-chip input:checked + span { color: var(--blue-700); border-color: #94bff6; background: var(--blue-50); box-shadow: inset 0 0 0 1px #b8d5fa; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.inline-check input { accent-color: var(--blue-600); }

.modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal-root.active { pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(6,18,42,.58); backdrop-filter: blur(5px); }
.modal { width: min(680px, 100%); max-height: min(90vh, 850px); display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: white; box-shadow: var(--shadow-lg); animation: modalIn .18s ease-out; }
.modal.small { width: min(440px, 100%); }
.modal.large { width: min(900px, 100%); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 5px; font-size: 20px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.modal-close { flex: 0 0 auto; }

.picker-panel { width: min(380px, 100%); }
.picker-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.picker-month { display: flex; align-items: center; gap: 8px; }
.picker-month select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; background: white; font-weight: 800; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-grid .weekday { padding: 7px 0; color: var(--muted); text-align: center; font-size: 10px; font-weight: 900; }
.calendar-day { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; }
.calendar-day:hover { background: var(--blue-50); }
.calendar-day.selected { color: white; background: var(--blue-600); }
.calendar-day.today { box-shadow: inset 0 0 0 1px var(--blue-500); }
.calendar-day.blank { pointer-events: none; }
.time-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 10px 0; }
.time-column { display: grid; gap: 7px; text-align: center; }
.time-column label { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.time-column select { height: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #f8fbff, white 35%, white 65%, #f8fbff); font-size: 20px; font-weight: 900; text-align: center; scrollbar-width: thin; }

.toast-stack { position: fixed; right: 18px; top: 18px; z-index: 200; display: grid; gap: 10px; pointer-events: none; }
.toast { width: min(380px, calc(100vw - 36px)); display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: var(--shadow-lg); pointer-events: auto; animation: toastIn .2s ease-out; }
.toast.success { border-color: #bee8d7; }
.toast.error { border-color: #ffd0d6; }
.toast-icon { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--blue-600); background: var(--blue-50); }
.toast.success .toast-icon { color: var(--success); background: var(--success-bg); }
.toast.error .toast-icon { color: var(--danger); background: var(--danger-bg); }
.toast strong { display: block; margin-bottom: 3px; font-size: 12px; }
.toast span { color: var(--muted); font-size: 11px; line-height: 1.45; }
@keyframes toastIn { from { opacity: 0; transform: translateX(15px); } }

.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: #e9eef6; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-page { display: grid; gap: 18px; }
.loading-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.loading-cards .skeleton { height: 138px; }
.loading-page > .skeleton { height: 320px; }

@media (max-width: 1180px) {
  .grid.cards-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.cards-3, .player-grid, .audio-grid, .group-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid.two { grid-template-columns: 1fr; }
  .topbar-actions .server-clock { display: none; }
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { padding: 24px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: inline-grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(6,18,42,.45); }
  .sidebar-backdrop.open { display: block; }
  .topbar { padding: 10px 16px; }
  .page-content { padding: 18px 16px; }
  .user-chip > span:last-child { display: none; }
  .topbar-actions .button span.label { display: none; }
}
@media (max-width: 650px) {
  .topbar { align-items: center; }
  .topbar-left h1 { font-size: 18px; }
  .page-eyebrow { font-size: 9px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .button { width: 38px; min-width: 38px; padding: 0; }
  .user-chip { padding: 4px; }
  .grid.cards-4, .grid.cards-3, .grid.equal-two, .player-grid, .audio-grid, .group-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-head { flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .button { flex: 1; }
  .quick-controls { grid-template-columns: 1fr; }
  .quick-row { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { max-height: 94vh; border-radius: 20px 20px 0 0; }
  .loading-cards { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 28px 22px; }
}

/* Detail spacing and previews */
.dashboard-main,
.recent-card,
.player-guide {
  margin-top: 18px;
}
.logo-preview {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 10px;
  box-shadow: var(--shadow-sm);
}
.player-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.player-summary > span:last-child {
  display: grid;
  min-width: 0;
}
.player-summary strong {
  text-align: left;
  line-height: 1.25;
}
.player-summary .cell-sub {
  display: block;
  margin-top: 2px;
}
