:root { --accent: #65e6ad; --muted: #8c9db4; }
body { background: #0b1018; }
.wordmark { display: inline-flex; flex-wrap: wrap; gap: 6px; text-decoration: none; font-family: "Segoe UI", Tahoma, sans-serif; font-size: 20px; font-weight: 800; color: #f3f6fb; letter-spacing: -.6px; }
.wordmark span { color: var(--accent); font-weight: 400; }
.eyebrow { display: inline-block; color: var(--accent); font: 600 11px/1.5 "Segoe UI", sans-serif; letter-spacing: 2px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.8; }
.primary { background: var(--accent); border-color: var(--accent); }
.portal-header { max-width: 1200px; margin: auto; padding: 28px 32px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid #243041; }
.engine-label { color: #8295ae; font-size: 11px; letter-spacing: 1px; }
.portal { max-width: 1040px; margin: auto; padding: 74px 32px 40px; }
.portal h1, .login-intro h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.45; letter-spacing: -1px; margin: 18px 0; }
.portal h1 span, .login-intro h1 span { color: var(--accent); }
.portal-intro, .login-intro > p { color: #9dacbf; line-height: 1.9; font-size: 16px; }
.portal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.entry-card { display: block; padding: 28px; background: #141e2b; border: 1px solid #2a3a4f; border-radius: 18px; color: #f3f6fb; text-decoration: none; }
a.entry-card:hover { border-color: var(--accent); }
.entry-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #38694f; color: var(--accent); border-radius: 12px; font-size: 26px; }
.entry-card h2 { font-size: 22px; margin: 24px 0 12px; }
.entry-card p { color: #92a4bb; font-size: 14px; line-height: 1.8; }
.entry-card strong { display: block; color: var(--accent); font-size: 14px; margin-top: 26px; }
.entry-note { display: block; margin-top: 26px; color: #a5b4c8; font-size: 12px; }
.portal-foot { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: #72869f; font-size: 12px; line-height: 1.8; }
.green-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.user-app { padding: 0 30px 26px; }
.user-app .controller { max-width: 1220px; }
.user-app .control-header { min-height: 98px; margin-bottom: 30px; border-bottom: 1px solid #243041; }
.control-header p { margin-top: 8px; font-size: 10px; letter-spacing: 1.5px; color: #7588a0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.band-badge { padding: 8px 14px; border: 1px solid #365348; background: #152b24; border-radius: 30px; color: #82e4b6; font-size: 12px; }
.quiet-button { background: transparent; min-height: 40px; padding: 9px 14px; color: #a8b9cc; border-color: #2d3b4e; font-size: 12px; }
.login-layout { display: grid; grid-template-columns: 1fr 430px; align-items: center; gap: 60px; padding: 46px 4% 70px; }
.login-intro h1 { font-size: clamp(34px, 4vw, 50px); }
.login-features { display: grid; gap: 18px; margin-top: 40px; }
.login-features > span { font-size: 12px; color: #577364; }
.login-features b { margin-left: 16px; font-weight: 400; color: #a1b2c8; font-size: 14px; }
.login-panel { padding: 32px; background: #111b28; border-color: #293b50; box-shadow: 0 30px 80px #0003; }
.login-panel h2 { font-size: 23px; margin-bottom: 10px; }
.login-panel label { margin-top: 22px; }
.login-submit { width: 100%; margin-top: 26px; }
.demo-accounts { border-top: 1px solid #2b3b4e; padding-top: 22px; margin-top: 26px; }
.demo-accounts small { color: #72869f; font-size: 11px; }
.demo-accounts > div { display: flex; gap: 8px; margin-top: 12px; }
.demo-accounts button { min-height: 36px; padding: 8px 12px; font-size: 12px; background: #192739; }
.session-bar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 6px 0 24px; }
.session-bar h1 { font-size: 28px; margin: 12px 0 4px; }
.session-bar p { margin: 0; }
.live-indicator { color: #76d9aa; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.live-indicator::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-indicator.disconnected { color: #e9b676; }
.show-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.show-actions button { font-size: 13px; }
.show-actions small { color: #8195ae; font-size: 11px; line-height: 1.6; }
.share-bar { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; padding: 22px 24px; border-radius: 14px; border: 1px solid #2b3c50; background: #121e2c; margin-bottom: 28px; }
.share-bar strong { font-size: 14px; }
.share-bar p { font-size: 12px; color: #8c9eb5; margin: 8px 0 0; line-height: 1.7; }
.share-actions { display: flex; align-items: center; gap: 10px; }
.share-actions button, .button-link { font-size: 12px; min-height: 40px; padding: 10px 14px; }
.button-link { display: inline-flex; align-items: center; border: 1px solid #3f6456; border-radius: 10px; color: #91e1b8; text-decoration: none; }
.share-bar input { grid-column: 1 / -1; font-size: 12px; min-height: 38px; color: #91a5bc; background: #0d1622; }
.share-bar details { grid-column: 1 / -1; color: #7489a4; font-size: 11px; }
.share-bar summary { cursor: pointer; }
.share-bar details button { margin-top: 12px; font-size: 12px; }
.operator-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.user-app .panel { background: #101925; border-color: #29384b; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 0; font-size: 20px; }
.section-heading .eyebrow { color: #6f849f; font-size: 9px; letter-spacing: 1.5px; }
.count { margin-left: 6px; color: #6e879f; font-size: 13px; }
.on-air { color: #73dbac; font-size: 9px; border: 1px solid #355c4b; background: #172d25; padding: 6px 9px; border-radius: 5px; }
.queue-navigation { margin-top: 0; }
.queue-navigation button { flex: 1; padding: 12px 8px; font-size: 12px; }
.queue { margin: 20px 0 0; }
.queue-item { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 6px; }
.queue-item > button { min-height: 80px; padding: 14px; background: #172232; border-color: #283c50; }
.queue-item > button.active { background: #19342c; border-color: #4f9b77; }
.queue strong { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.queue small { font-size: 11px; line-height: 1.7; }
.queue-item > button > span { font-size: 9px; flex-shrink: 0; color: #7991aa; }
.queue-tools { display: flex; flex-direction: column; gap: 4px; }
.queue .queue-tools button { min-height: 36px; flex: 1; padding: 3px; justify-content: center; background: #16202e; font-size: 14px; }
.editor-panel label { font-size: 12px; }
.editor-panel input, .editor-panel select { min-height: 54px; background: #182434; border-color: #35485f; }
.editor-panel #key, .editor-panel #tempo { font-size: 26px; font-weight: 600; }
.editor-panel #key { color: #67e8f9; }
.editor-actions { flex-direction: column; }
.editor-actions button { width: 100%; }
.editor-actions button:not(.primary) { background: transparent; color: #a9b8cb; font-size: 12px; }
.editor-hint { margin: 16px 0 0; color: #6c819b; font-size: 11px; line-height: 1.8; text-align: center; }
.access-warning { border: 1px solid #735b36; border-radius: 12px; padding: 16px; color: #edc48b; background: #2d2315; font-size: 13px; line-height: 1.8; }
.app-footer { margin-top: 30px; padding-top: 22px; border-top: 1px solid #223043; color: #71869f; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; letter-spacing: 1px; }
.app-footer span { color: #475e78; }
.notice { padding: 0 4px; }
@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr 1fr; gap: 30px; padding-inline: 0; }
  .login-panel { padding: 24px; }
  .operator-layout { grid-template-columns: 1fr; }
  .editor-panel { order: -1; }
}
@media (max-width: 600px) {
  .user-app { padding: 0 16px 24px; }
  .user-app .control-header { min-height: 88px; }
  .wordmark { font-size: 17px; gap: 4px; }
  .control-header p { font-size: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .quiet-button { padding: 6px 9px; font-size: 10px; }
  .band-badge { padding: 7px 9px; font-size: 10px; }
  .login-layout { grid-template-columns: 1fr; padding: 8px 0 20px; gap: 20px; }
  .login-intro h1 { font-size: 34px; }
  .login-intro > p { font-size: 13px; }
  .login-features { display: none; }
  .session-bar { align-items: flex-start; gap: 15px; }
  .session-bar h1 { font-size: 23px; }
  .session-bar .muted { font-size: 10px; }
  .show-actions { max-width: 175px; }
  .show-actions button { font-size: 10px; padding: 10px 12px; }
  .show-actions small { font-size: 9px; text-align: right; }
  .share-bar { padding: 18px; grid-template-columns: 1fr; gap: 16px; }
  .share-actions { justify-content: stretch; }
  .share-actions > * { flex: 1; justify-content: center; text-align: center; }
  .portal-header { padding: 22px 20px; }
  .engine-label { font-size: 8px; }
  .portal { padding: 44px 20px 32px; }
  .portal-options { grid-template-columns: 1fr; }
  .portal h1 { font-size: 40px; }
  .portal-intro { font-size: 14px; }
}
