:root {
    --primary: #8e44ad;
    --primary-dark: #73368d;
    --background: #ecf0f1;
    --surface: #ffffff;
    --surface-muted: #f7f8f9;
    --border: #dce2e5;
    --text: #263238;
    --muted: #718087;
    --success: #1e9e67;
    --danger: #d64550;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--background); color: var(--text); }
button, input, select { font: inherit; }
a { color: inherit; }
.app-body { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 7px; background: var(--primary); color: #fff; font-size: 20px; font-weight: 900; }
.brand span:last-child { display: flex; flex-direction: column; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 42px; }
.sidebar nav a { padding: 11px 13px; border-radius: 5px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.sidebar nav a:hover { color: var(--primary); background: #f5eef8; }
.sidebar nav a.active { color: #fff; background: var(--primary); }
.sidebar-foot { margin-top: auto; padding: 18px 7px 0; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; }
.link-button { padding: 0; border: 0; background: none; color: var(--primary); cursor: pointer; }
.page { min-width: 0; padding: 40px clamp(22px, 4vw, 58px); }
.page > footer { padding-top: 34px; text-align: center; font-size: 12px; }
.credit-link { color: var(--primary); text-decoration: none; font-weight: 700; }
.credit-link:hover { text-decoration: underline; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.page-head h1, .login-copy h1 { margin: 7px 0 5px; font-size: 32px; letter-spacing: -.8px; }
.page-head p, .login-copy p, .panel-head p { margin: 0; color: var(--muted); font-size: 14px; }
.button { padding: 10px 16px; border: 1px solid transparent; border-radius: 5px; color: #fff; cursor: pointer; font-size: 13px; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button.primary { background: var(--primary); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { color: var(--text); background: #fff; border-color: #cfd7da; }
.button.secondary:hover { background: #f5f6f7; }
.button.danger-soft { color: var(--danger); background: #fff; border-color: #edc9ce; }
.button.compact { padding: 7px 10px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 13px; margin-bottom: 20px; }
.metrics article { position: relative; padding: 18px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); display: flex; flex-direction: column; gap: 7px; }
.metrics span, .metrics small { color: var(--muted); font-size: 12px; }
.metrics strong { font-size: 27px; letter-spacing: -.8px; }
.metrics strong small { margin-left: 3px; font-size: 14px; }
.metrics .metric-rate { font-size: 21px; letter-spacing: -.4px; }
.metrics .dot { position: absolute; top: 19px; right: 18px; width: 9px; height: 9px; border-radius: 50%; background: #aab3b7; }
.metrics .dot.online { background: var(--success); }
.panel { padding: 21px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.panel.narrow { max-width: 720px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; }
.search { width: 230px; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 13px; }
.channel-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-muted); }
.channel-top { display: grid; grid-template-columns: 49px 1fr auto; gap: 12px; align-items: center; }
.channel-top img { width: 49px; height: 49px; padding: 5px; border: 1px solid var(--border); border-radius: 5px; background: #fff; object-fit: contain; }
.channel-top h3 { margin: 0 0 6px; font-size: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: #9ba7ac; }
.badge.active { color: var(--success); }
.badge.active i { background: var(--success); }
.badge.degraded { color: #f59e0b; }
.badge.degraded i { background: #f59e0b; }
.icon-button { padding: 4px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 20px; }
.channel-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 17px 0; }
.channel-card dl div { min-width: 0; }
.channel-card dt { margin-bottom: 4px; color: #8b989e; font-size: 10px; text-transform: uppercase; }
.channel-card dd { margin: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.stream-link { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.stream-link code { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stream-link button { margin-left: auto; padding: 0; border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 10px; }
.ingest-box { margin: 14px 0 9px; padding: 10px; border: 1px solid #d9c5e2; border-radius: 5px; background: #f7f0fa; }
.ingest-box > small { display: block; margin-bottom: 6px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.ingest-box > div { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 0; }
.ingest-box span { color: var(--muted); font-size: 9px; }
.ingest-box code { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.ingest-box strong { min-width: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ingest-box button { padding: 0; border: 0; background: none; color: var(--primary); cursor: pointer; font-size: 9px; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.actions .button { padding: 8px 12px; }
.channel-actions { align-items: center; }
.channel-actions .stats-button { margin-right: auto; background: #f0e5f4; color: var(--primary-dark); }
.channel-summary { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; padding: 13px 17px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 12px; }
.channel-summary span { display: inline-flex; align-items: center; gap: 7px; }
.channel-summary strong { color: var(--text); font-size: 15px; }
.channel-summary .dot { width: 7px; height: 7px; border-radius: 50%; background: #aab3b7; }
.channel-summary .dot.online { background: var(--success); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 18px; }
.operational-alerts { margin-bottom: 18px; }
.operational-alerts .panel-head { margin-bottom: 13px; }
.monitor-ok { margin: 0; padding: 12px; border-radius: 5px; background: #e7f5ee; color: #18734d; font-size: 12px; }
.monitor-alert-list { display: grid; gap: 8px; }
.monitor-alert { padding: 11px 13px; border-left: 3px solid #d89a15; border-radius: 4px; background: #fffaf0; display: flex; flex-direction: column; gap: 3px; }
.monitor-alert.critical { border-color: var(--danger); background: #fbeaec; }
.monitor-alert strong { font-size: 12px; }
.monitor-alert span { color: var(--muted); font-size: 11px; }
.monitor-http { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 11px; }
.monitor-http strong { color: var(--text); }
.operation-summary .panel-head, .quick-links .panel-head { align-items: flex-start; }
.operation-numbers { display: grid; grid-template-columns: repeat(3, 1fr); margin: 7px 0 22px; border: 1px solid var(--border); border-radius: 6px; }
.operation-numbers div { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.operation-numbers div + div { border-left: 1px solid var(--border); }
.operation-numbers strong { font-size: 25px; }
.operation-numbers span { color: var(--muted); font-size: 11px; }
.operation-numbers .success-number strong { color: var(--success); }
.quick-links > a { padding: 13px 2px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; color: inherit; text-decoration: none; }
.quick-links > a strong, .quick-links > a span { display: block; }
.quick-links > a span { grid-column: 1; margin-top: 3px; color: var(--muted); font-size: 11px; }
.quick-links > a b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--primary); font-size: 18px; }
.quick-links > a:hover strong { color: var(--primary); }
.channel-stat-head { align-items: center; }
.back-link { display: inline-block; margin-bottom: 15px; color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.channel-identity > div { display: flex; align-items: center; gap: 14px; }
.channel-identity img { width: 58px; height: 58px; padding: 5px; border: 1px solid var(--border); border-radius: 7px; background: #fff; object-fit: contain; }
.channel-identity h1 { margin-block: 4px; }
.channel-identity p { max-width: 560px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat-actions { display: flex; align-items: center; gap: 8px; }
.channel-preview { margin-bottom: 18px; }
.channel-preview-video { position: relative; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; background: #000; }
.channel-preview-video video { width: 100%; height: 100%; display: block; object-fit: contain; }
.channel-preview-status { position: absolute; top: 50%; left: 50%; max-width: calc(100% - 32px); padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(10, 8, 12, .78); color: #fff; font-size: 12px; transform: translate(-50%, -50%); text-align: center; }
.health-banner { margin-bottom: 18px; padding: 14px 17px; border: 1px solid var(--border); border-radius: 7px; background: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.health-banner > i { width: 11px; height: 11px; border-radius: 50%; background: #aab3b7; }
.health-banner > div { display: flex; flex-direction: column; gap: 2px; }
.health-banner > div span { color: var(--muted); font-size: 11px; }
.health-banner.healthy { border-color: #b9dfce; background: #f4fbf7; }
.health-banner.healthy > i { background: var(--success); }
.health-banner.warning { border-color: #ebd39b; background: #fffaf0; }
.health-banner.warning > i { background: #d89a15; }
.health-banner.stopped { border-color: #e2c8cc; background: #fff8f8; }
.stats-metrics strong { font-size: 23px; }
.statistics-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.traffic-panel { min-width: 0; }
.today-total { padding: 6px 9px; border-radius: 4px; background: #f0e5f4; color: var(--primary-dark); font-size: 11px; font-weight: 800; }
.traffic-chart { height: 225px; padding-top: 12px; display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 4px; border-bottom: 1px solid var(--border); }
.chart-column { height: 100%; display: grid; grid-template-rows: 1fr 24px; gap: 6px; align-items: end; }
.chart-track { height: 100%; display: flex; align-items: end; }
.chart-track i { width: 100%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--primary); opacity: .78; }
.chart-column:hover .chart-track i { opacity: 1; }
.chart-column span { color: var(--muted); font-size: 8px; text-align: center; }
.traffic-details { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.traffic-details div { display: flex; flex-direction: column; gap: 5px; }
.traffic-details span { color: var(--muted); font-size: 10px; }
.traffic-details strong { font-size: 16px; }
.stats-side { display: grid; gap: 18px; }
.detail-panel .panel-head { margin-bottom: 10px; }
.detail-list { margin: 0; }
.detail-list div { padding: 10px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; font-size: 12px; font-weight: 750; text-align: right; }
.success-text { color: var(--success); }
.danger-text { color: var(--danger); }
.activity-panel { margin-top: 18px; }
.activity-row { padding: 11px 2px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 11px; }
.activity-row > i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.activity-row > div { display: flex; flex-direction: column; gap: 3px; }
.activity-row span { color: var(--muted); font-size: 10px; }
.stats-empty { padding: 50px 20px; color: var(--muted); text-align: center; }
.stats-empty p { max-width: 480px; margin: 7px auto 0; font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 48px 20px; color: var(--muted); text-align: center; }
.empty > span { color: var(--primary); font-size: 34px; }
.empty h3 { margin-bottom: 6px; color: var(--text); }
.empty p { margin-bottom: 20px; }
.modal { width: min(680px, calc(100% - 28px)); padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.modal::backdrop { background: #26323888; }
.modal-head, .modal-actions { display: flex; align-items: center; justify-content: space-between; }
.modal-head { margin-bottom: 21px; }
.modal-head h2 { margin: 6px 0 0; }
.modal-actions { justify-content: flex-end; gap: 10px; margin-top: 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.obs-setup { padding: 13px; border: 1px solid #d9c5e2; border-radius: 5px; background: #faf6fc; }
.failover-settings { padding: 13px; border: 1px solid #d9c5e2; border-radius: 5px; background: #faf6fc; }
.failover-settings > label + label { margin-top: 12px; }
.obs-setup > strong { color: var(--primary-dark); font-size: 13px; }
.obs-setup > p { margin: 6px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.obs-setup > label + label { margin-top: 10px; }
.span-2 { grid-column: span 2; }
label { display: flex; flex-direction: column; gap: 7px; color: #4a585e; font-size: 12px; font-weight: 650; }
label small { color: var(--muted); font-size: 10px; font-weight: 400; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd8dc; border-radius: 5px; outline: none; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.check { flex-direction: row; align-items: center; }
.check input { width: auto; }
.delete-link { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--danger); cursor: pointer; font-size: 12px; }
.toast, .alert { padding: 12px 15px; border-radius: 5px; margin-bottom: 18px; font-size: 13px; }
.toast { border: 1px solid #b9dfce; background: #e7f5ee; color: #18734d; }
.alert { border: 1px solid #ecc3c8; background: #fbeaec; color: #ad2f3a; }
.login-body { min-height: 100vh; padding: 20px; display: grid; place-items: center; background: var(--background); }
.login-card { width: min(430px, 100%); padding: 37px; border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 7px; background: #fff; }
.login-brand { margin-bottom: 36px; }
.login-copy { margin-bottom: 24px; }
.stack-form { display: flex; flex-direction: column; gap: 16px; }
.login-card .primary { padding: 13px; }
.credits { margin: 27px 0 0; text-align: center; font-size: 11px; }
.settings-form { max-width: 580px; }
.company-logo-preview { width: 220px; height: 130px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: #f7f8f9; display: flex; align-items: center; justify-content: center; }
.company-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.divider { width: 100%; height: 1px; margin: 8px 0; border: 0; background: var(--border); }
.muted { color: var(--muted); font-size: 12px; }
.player-body { min-height: 100vh; overflow: hidden; background: #09070c; color: #fff; }
.player-head { position: fixed; z-index: 30; top: 0; right: 380px; left: 0; height: 84px; border: 0; background: linear-gradient(180deg, rgba(7, 6, 9, .82), transparent); transition: right .28s ease; pointer-events: none; }
.player-head-content { width: 100%; height: 100%; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.player-head .brand, .player-head-actions { pointer-events: auto; }
.player-head .brand { color: #fff; text-shadow: 0 2px 14px #000; }
.player-head .brand-mark { border-radius: 11px; box-shadow: 0 8px 28px rgba(142, 68, 173, .38); }
.player-head-actions, .player-session { display: flex; align-items: center; gap: 14px; }
.customer-name { color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; }
.player-session .link-button { color: #fff; }
.channel-toggle { padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; background: rgba(12, 10, 15, .58); color: #fff; backdrop-filter: blur(12px); cursor: pointer; font-size: 12px; font-weight: 750; }
.channel-toggle span { margin-right: 5px; }
.channel-toggle:hover, .channel-toggle:focus-visible { border-color: rgba(255, 255, 255, .55); background: rgba(142, 68, 173, .72); outline: none; }
.player-page, .player-experience, .video-card, .video-shell { width: 100%; height: 100vh; }
.player-page { margin: 0; padding: 0; }
.player-experience { position: relative; border: 0; border-radius: 0; background: #09070c; overflow: hidden; }
.video-card { min-width: 0; background: #09070c; }
.video-shell { position: relative; overflow: hidden; display: grid; place-items: center; }
.video-shell::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .18), transparent 24%, transparent 68%, rgba(0, 0, 0, .52)); pointer-events: none; }
.radio-background-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #09070c; }
.video-shell video { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-shell video.audio-only { z-index: 2; background: transparent; }
.video-empty { position: relative; z-index: 2; padding: 24px; color: rgba(255, 255, 255, .55); text-align: center; pointer-events: none; }
.video-empty > span { width: 70px; height: 70px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(142, 68, 173, .8); color: #fff; display: inline-grid; place-items: center; padding-left: 4px; font-size: 22px; box-shadow: 0 14px 40px #0008; backdrop-filter: blur(12px); }
.video-empty h2 { margin: 18px 0 6px; color: #fff; font-size: 22px; }
.video-empty p { margin: 0; font-size: 12px; }
.video-message { position: absolute; z-index: 4; top: 94px; left: 50%; max-width: calc(100% - 32px); padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(10, 8, 12, .74); color: #fff; font-size: 12px; transform: translateX(-50%); text-align: center; backdrop-filter: blur(14px); }
.video-message button { margin-left: 9px; padding: 5px 8px; border: 0; border-radius: 4px; background: var(--primary); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.current-channel { position: fixed; z-index: 5; left: 28px; bottom: 28px; width: min(430px, calc(100% - 436px)); min-height: 76px; padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 13px; background: rgba(10, 8, 13, .68); color: #fff; display: flex; align-items: center; gap: 13px; box-shadow: 0 15px 45px rgba(0, 0, 0, .3); backdrop-filter: blur(16px); transition: width .28s ease; }
.current-channel img { width: 52px; height: 52px; padding: 4px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 9px; background: #fff; object-fit: contain; }
.current-channel div { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.current-channel small { color: rgba(255, 255, 255, .55); font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }
.current-channel strong { margin: 3px 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.current-channel div span { overflow: hidden; color: rgba(255, 255, 255, .67); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.live-badge { padding: 6px 8px; border-radius: 5px; background: rgba(227, 63, 78, .2); color: #ff7180; font-size: 9px; font-weight: 900; letter-spacing: .7px; }
.player-list { position: fixed; z-index: 20; top: 0; right: 0; width: 380px; height: 100vh; min-height: 0; border-left: 1px solid rgba(255, 255, 255, .13); background: rgba(12, 10, 15, .68); color: #fff; display: flex; flex-direction: column; box-shadow: -18px 0 55px rgba(0, 0, 0, .22); backdrop-filter: blur(22px) saturate(125%); transition: transform .28s ease; }
.player-list-head { padding: 25px 22px 18px; border-bottom: 1px solid rgba(255, 255, 255, .11); display: grid; gap: 15px; }
.player-list-head > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.player-list-head h2 { margin: 0; font-size: 21px; letter-spacing: -.4px; }
.player-list-head p { margin: 0; color: rgba(255, 255, 255, .48); font-size: 10px; }
.channel-search input { padding: 11px 13px; border-color: rgba(255, 255, 255, .14); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; }
.channel-search input::placeholder { color: rgba(255, 255, 255, .42); }
.channel-search input:focus { border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .12); }
.player-channels { min-height: 0; padding: 10px; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: rgba(255, 255, 255, .26) transparent; }
.player-channel { width: 100%; min-height: 66px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .76); display: grid; grid-template-columns: 26px 46px minmax(0, 1fr) 20px; align-items: center; gap: 10px; text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.player-channel:hover { background: rgba(255, 255, 255, .09); transform: translateX(-2px); }
.player-channel:focus-visible { border-color: rgba(255, 255, 255, .5); outline: none; }
.player-channel.active { border-color: rgba(190, 132, 216, .48); background: linear-gradient(90deg, rgba(142, 68, 173, .48), rgba(142, 68, 173, .18)); color: #fff; }
.channel-number { color: rgba(255, 255, 255, .42); font-size: 10px; text-align: center; }
.player-channel img { width: 46px; height: 46px; padding: 3px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; background: rgba(255, 255, 255, .94); object-fit: contain; }
.channel-copy { min-width: 0; display: flex; flex-direction: column; }
.channel-copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.channel-copy small { margin-top: 4px; overflow: hidden; color: rgba(255, 255, 255, .46); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.player-channel i { color: rgba(255, 255, 255, .65); font-size: 9px; font-style: normal; }
.empty-list { padding: 30px 16px; color: rgba(255, 255, 255, .56); text-align: center; font-size: 12px; }
.empty-list button { margin: 14px auto 0; padding: 8px 11px; border: 0; border-radius: 5px; background: var(--primary); color: #fff; display: block; cursor: pointer; }
.player-list .muted { color: rgba(255, 255, 255, .52); }
.channels-collapsed .player-list { transform: translateX(100%); }
.channels-collapsed .player-head { right: 0; }
.channels-collapsed .current-channel { width: min(430px, calc(100% - 56px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tv-mode .player-head, .tv-mode .player-list { display: none; }
.tv-mode .current-channel { width: min(430px, calc(100% - 56px)); }
.align-end { align-self: end; min-height: 39px; }
.notice { margin-bottom: 18px; padding: 12px 15px; border: 1px solid #dbc7e3; border-radius: 5px; background: #f5eef8; color: #624071; font-size: 13px; }
.notice a { color: var(--primary); font-weight: 700; }
.metric-word { font-size: 22px !important; }
.metric-release { overflow: hidden; font-size: 15px !important; text-overflow: ellipsis; white-space: nowrap; }
.operation-health { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.health-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 9px; }
.health-check { padding: 11px; border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: capitalize; }
.health-check i { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.health-check.ok i { background: var(--success); }
.health-check b { margin-left: auto; font-size: 9px; }
.health-check.fail b { color: var(--danger); }
.operation-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.operation-form-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.event-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.webhook-form { padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.webhook-list { margin-top: 20px; display: grid; gap: 14px; }
.webhook-list article { padding: 16px; border: 1px solid var(--border); border-radius: 6px; }
.webhook-head, .webhook-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.webhook-head div { display: flex; flex-direction: column; }
.webhook-head small { margin-top: 3px; color: var(--muted); }
.webhook-actions { margin-top: 12px; justify-content: flex-start; }
.delivery-list { margin-top: 12px; display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.delivery-list span { display: flex; gap: 8px; }
.delivery-list b { min-width: 62px; color: var(--danger); font-size: 9px; }
.delivery-list b.delivered { color: var(--success); }
@media (max-width: 900px) { .operation-health, .operation-form-grid, .operation-form-grid.compact { grid-template-columns: 1fr; } }
.modal-wide { width: min(900px, calc(100% - 28px)); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.plan-card { padding: 18px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-muted); }
.card-title { display: flex; align-items: flex-start; justify-content: space-between; }
.card-title h2 { margin: 0 0 7px; }
.plan-card > p { min-height: 36px; color: var(--muted); font-size: 12px; }
.plan-stats { display: flex; gap: 22px; padding: 13px 0; border-block: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.plan-stats span { display: flex; flex-direction: column; }
.plan-stats strong { color: var(--text); font-size: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill { padding: 5px 8px; border-radius: 4px; background: #e7ecee; color: #59686e; font-size: 10px; font-weight: 700; }
.primary-pill { background: #f0e5f4; color: var(--primary-dark); }
.warning-pill { background: #fff0d7; color: #996313; }
.access-all { margin-top: 4px; padding: 12px; border: 1px solid #dbc7e3; border-radius: 5px; background: #f8f2fa; color: var(--primary-dark); }
.selection-section { margin-top: 20px; }
.selection-section p { margin: 4px 0 10px; color: var(--muted); font-size: 11px; }
.selection-grid { max-height: 150px; padding: 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface-muted); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; overflow-y: auto; }
.selection-item { min-width: 0; padding: 7px; border-radius: 4px; background: #fff; font-weight: 600; }
.selection-item small { margin-left: auto; }
.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 17px; border-bottom: 1px solid var(--border); text-align: left; font-size: 12px; }
.data-table th { background: var(--surface-muted); color: var(--muted); font-size: 10px; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child strong, .data-table td:first-child small { display: block; }
.data-table td:first-child small { margin-top: 3px; color: var(--muted); }
.data-table td:last-child { width: 45px; text-align: right; }
.status-label { display: inline-block; padding: 5px 8px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.status-label.available { background: #e7f5ee; color: #18734d; }
.status-label.blocked { background: #fbeaec; color: #ad2f3a; }
.playlist-access { margin-top: 20px; padding: 14px; border: 1px solid #d9c5e2; border-radius: 5px; background: #faf6fc; }
.playlist-access p { margin: 6px 0 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.playlist-url { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.playlist-url input { min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.organization-select { margin-top: 14px; }
.sidebar-foot span { display: flex; flex-direction: column; }
.sidebar-foot span small { margin-top: 3px; color: rgba(255, 255, 255, .5); font-size: 9px; text-transform: uppercase; }
.audience-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.audience-time { font-size: 24px !important; }
.audience-panel { margin-top: 18px; }
.audience-panel-head { margin-bottom: 0; padding: 20px 22px 18px; }
.audience-list { border-top: 1px solid var(--border); }
.audience-list-head, .audience-list-item { display: grid; grid-template-columns: minmax(0, 1fr) 190px 155px; align-items: center; gap: 16px; }
.audience-list-head { padding: 11px 22px; background: var(--surface-muted); color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.audience-list-head span:last-child { text-align: right; }
.audience-list > ul { margin: 0; padding: 0; list-style: none; }
.audience-list-item { min-height: 105px; padding: 12px 22px; border-top: 1px solid var(--border); }
.audience-list-item:first-child { border-top: 0; }
.audience-list-empty { padding: 30px 22px; text-align: center; }
.audience-channel { min-width: 0; display: flex; align-items: center; gap: 13px; }
.audience-logo { width: 80px; height: 80px; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: grid; flex: 0 0 80px; place-items: center; overflow: hidden; }
.audience-logo img { display: block; width: 80px; height: 80px; max-width: 80px; max-height: 80px; padding: 6px; object-fit: contain; object-position: center; }
.audience-channel-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.audience-channel-copy strong, .audience-channel-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audience-channel-copy strong { font-size: 14px; }
.audience-list-status { min-width: 0; }
.audience-list-count { text-align: right; }
.audience-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.audience-status i { width: 7px; height: 7px; border-radius: 50%; background: #aab3b7; flex: 0 0 7px; }
.audience-status.online { color: var(--success); }
.audience-status.online i { background: var(--success); box-shadow: 0 0 0 3px #e7f5ee; }
.audience-count { display: inline-flex; min-width: 80px; flex-direction: column; align-items: flex-end; gap: 2px; }
.audience-count strong { color: var(--primary-dark); font-size: 22px; line-height: 1; }
.audience-count small { color: var(--muted); font-size: 9px; font-weight: 500; }
.audience-note { margin: 13px 2px 0; color: var(--muted); font-size: 10px; }

/* Central de ajuda */
.help-hero { margin: -40px clamp(-58px, -4vw, -22px) 28px; padding: 48px clamp(22px, 4vw, 58px) 38px; background: linear-gradient(135deg, #fff 0%, #faf6fc 100%); border-bottom: 1px solid var(--border); }
.help-hero h1 { margin: 8px 0 7px; font-size: 34px; letter-spacing: -.9px; }
.help-hero > div > p { margin: 0; color: var(--muted); font-size: 14px; }
.help-search { position: relative; max-width: 670px; margin-top: 25px; display: block; }
.help-search > span:first-child { position: absolute; top: 50%; left: 15px; color: var(--muted); font-size: 23px; transform: translateY(-52%); }
.help-search input { height: 52px; padding: 12px 58px 12px 45px; border-color: #cfc1d5; border-radius: 7px; box-shadow: 0 8px 28px rgba(75, 47, 87, .07); font-size: 14px; }
.help-search kbd { position: absolute; top: 50%; right: 13px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface-muted); color: var(--muted); font-size: 9px; transform: translateY(-50%); }
.help-layout { max-width: 1120px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 34px; align-items: start; }
.help-nav { position: sticky; top: 24px; padding: 8px 0; display: flex; flex-direction: column; }
.help-nav strong { margin-bottom: 9px; padding: 0 12px; color: var(--muted); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.help-nav a { padding: 9px 12px; border-left: 2px solid transparent; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.help-nav a:hover { color: var(--primary); }
.help-nav a.active { border-color: var(--primary); background: linear-gradient(90deg, #f3e9f7, transparent); color: var(--primary-dark); }
.help-content { min-width: 0; display: grid; gap: 18px; }
.help-section { scroll-margin-top: 24px; padding: 25px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.help-section-head { margin-bottom: 21px; display: flex; align-items: flex-start; gap: 13px; }
.help-section-head .help-icon { width: 34px; height: 34px; border-radius: 6px; background: #f1e7f5; color: var(--primary); display: grid; flex: 0 0 34px; place-items: center; font-size: 17px; font-weight: 800; }
.help-section-head h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.35px; }
.help-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.help-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.help-step-grid article { padding: 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-muted); }
.help-step-grid article > span { width: 25px; height: 25px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.help-step-grid h3, .help-card-grid h3, .help-steps h3 { margin: 12px 0 5px; font-size: 13px; }
.help-step-grid p, .help-card-grid p, .help-steps p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.help-callout, .help-warning { margin-top: 16px; padding: 13px 15px; border-left: 3px solid var(--primary); border-radius: 4px; background: #f8f2fa; display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 11px; }
.help-callout strong { color: var(--primary-dark); }
.help-callout p, .help-warning p { margin: 0; color: #5f5165; line-height: 1.5; }
.help-warning { border-color: #d89a15; background: #fff8e9; }
.help-warning strong { color: #956511; }
.help-warning p { color: #705f3d; }
.help-steps { margin: 0; padding: 0; list-style: none; }
.help-steps li { padding: 14px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 38px 1fr; gap: 13px; }
.help-steps li > span { padding-top: 2px; color: var(--primary); font-size: 11px; font-weight: 850; }
.help-steps h3 { margin-top: 0; }
.help-actions { margin-top: 17px; display: flex; align-items: center; gap: 13px; }
.help-actions span { color: var(--muted); font-size: 10px; }
.help-field-list { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.help-field-list details + details { border-top: 1px solid var(--border); }
.help-field-list summary { padding: 14px 16px; display: flex; justify-content: space-between; cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.help-field-list summary::-webkit-details-marker { display: none; }
.help-field-list summary i { color: var(--primary); font-style: normal; transition: transform .2s ease; }
.help-field-list details[open] summary { background: #fbf8fc; color: var(--primary-dark); }
.help-field-list details[open] summary i { transform: rotate(180deg); }
.help-field-list details > div { padding: 3px 16px 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.help-field-list details > div > p { margin: 7px 0 0; }
.help-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; }
.help-detail-grid p { display: flex; flex-direction: column; }
.help-detail-grid b { margin-bottom: 2px; color: var(--text); }
.help-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.help-card-grid article { padding: 15px; border: 1px solid var(--border); border-radius: 6px; }
.help-card-grid h3 { margin-top: 0; }
.help-card-grid.compact { grid-template-columns: repeat(3, 1fr); }
.source-help-table { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.source-help-row { padding: 12px 14px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 125px minmax(0, 1fr) 190px; gap: 15px; align-items: center; font-size: 11px; }
.source-help-row:first-child { border-top: 0; }
.source-help-row > span { color: var(--muted); line-height: 1.45; }
.source-help-row code { padding: 5px 7px; overflow: hidden; border-radius: 4px; background: var(--surface-muted); color: #5f456b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.source-help-heading { background: var(--surface-muted); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.help-empty { padding: 70px 20px; text-align: center; }
.help-empty > span { color: var(--primary); font-size: 34px; }
.help-empty h2 { margin: 10px 0 5px; }
.help-empty p { margin: 0; color: var(--muted); font-size: 12px; }

/* Estrutura da central de ajuda */
.help-hero { padding-block: 54px 46px; background: linear-gradient(125deg, #452152 0%, #74358d 62%, #9a55b7 100%); color: #fff; text-align: center; }
.help-hero h1 { max-width: 720px; margin: 8px auto; color: #fff; }
.help-hero > div > p { color: rgba(255,255,255,.72); }
.help-kicker { color: #e3c2ef; font-size: 10px; font-weight: 850; letter-spacing: 1.8px; }
.help-search { margin-inline: auto; text-align: left; }
.help-search input { border: 0; box-shadow: 0 12px 35px rgba(30,12,38,.28); }
.help-center { max-width: 1120px; margin: 0 auto; }
.help-title-row { margin-bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.help-title-row h2 { margin: 5px 0 0; font-size: 21px; }
.help-title-row > span { color: var(--muted); font-size: 10px; }
.help-title-row button { padding: 0; border: 0; background: none; color: var(--primary); cursor: pointer; font-weight: 700; }
.help-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.help-categories > a { min-height: 132px; padding: 19px; border: 1px solid var(--border); border-radius: 9px; background: #fff; display: grid; grid-template-columns: 45px minmax(0,1fr) auto; gap: 13px; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.help-categories > a:hover { border-color: #cdb1d8; box-shadow: 0 12px 30px rgba(65,39,74,.09); transform: translateY(-3px); }
.help-categories h3 { margin: 2px 0 6px; font-size: 14px; }
.help-categories p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.help-categories small { margin-top: 12px; color: var(--primary); display: block; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.help-categories > a > b { color: #a7b0b4; font-size: 17px; }
.category-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; flex: 0 0 42px; place-items: center; font-size: 18px; font-weight: 800; }
.category-icon.purple { background: #f1e5f6; color: #82409d; }.category-icon.blue { background: #e5effa; color: #3975ae; }.category-icon.green { background: #e4f4ec; color: #25875e; }.category-icon.orange { background: #fff0db; color: #b06a16; }.category-icon.pink { background: #f9e6ef; color: #b74f7a; }.category-icon.gray { background: #e9edef; color: #68777d; }
.help-popular { margin-top: 34px; padding: 22px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.popular-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.popular-links a { padding: 13px 2px; border-top: 1px solid var(--border); color: var(--text); display: flex; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 650; text-decoration: none; }
.popular-links a:hover { color: var(--primary); }.popular-links a span { color: var(--primary); }
.help-guides { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; align-items: start; }
.help-guide-nav { position: sticky; top: 22px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; display: grid; gap: 3px; }
.help-guide-nav a { padding: 10px; border-radius: 5px; color: var(--muted); display: flex; gap: 9px; font-size: 12px; text-decoration: none; }
.help-guide-nav a:hover, .help-guide-nav a.active { background: #f3e9f7; color: var(--primary-dark); font-weight: 750; }
.help-articles { min-width: 0; display: grid; gap: 22px; }
.help-category { scroll-margin-top: 20px; }
.category-heading { padding: 4px 2px 16px; display: flex; gap: 13px; align-items: center; }
.category-heading h2 { margin: 4px 0 2px; font-size: 22px; }.category-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.help-article { scroll-margin-top: 20px; margin-bottom: 11px; padding: 23px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.help-article > h3 { margin: 0 0 16px; font-size: 16px; }.help-article > p { margin: -7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.article-tag { margin-bottom: 7px; color: var(--primary); display: block; font-size: 9px; font-weight: 850; letter-spacing: 1px; }
.clean-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clean-steps li { padding: 14px; border-radius: 6px; background: var(--surface-muted); display: grid; grid-template-columns: 27px 1fr; gap: 10px; }
.clean-steps li > b { width: 25px; height: 25px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 10px; }
.clean-steps strong { font-size: 12px; }.clean-steps p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.clean-steps em { color: var(--primary-dark); font-style: normal; font-weight: 750; }
.article-action { margin-top: 15px; display: flex; align-items: center; gap: 13px; }.article-action span { color: var(--muted); font-size: 10px; }
.field-cards { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.field-cards > div { padding: 13px 15px; border-bottom: 1px solid var(--border); }.field-cards > div:nth-child(odd) { border-right: 1px solid var(--border); }.field-cards > div:nth-last-child(-n+2) { border-bottom: 0; }
.field-cards strong { font-size: 11px; }.field-cards p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.source-list { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }.source-list > div { min-height: 58px; padding: 10px 13px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 110px 1fr 165px; align-items: center; gap: 12px; }.source-list > div:first-child { border-top: 0; }.source-list span { font-size: 11px; font-weight: 750; }.source-list p { margin: 0; color: var(--muted); font-size: 10px; }.source-list code { padding: 5px 7px; border-radius: 4px; background: var(--surface-muted); color: var(--primary-dark); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-strip, .warning-strip { margin-top: 13px; padding: 12px 14px; border-radius: 5px; background: #f3ebf6; color: #664472; display: flex; gap: 10px; font-size: 10px; line-height: 1.5; }.warning-strip { background: #fff5e4; color: #725821; }.info-strip b, .warning-strip b { flex: 0 0 auto; }
.operation-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }.operation-grid > div { padding: 14px; border: 1px solid var(--border); border-radius: 6px; }.operation-grid > div > span { color: var(--primary); display: block; font-size: 17px; }.operation-grid strong { margin: 8px 0 4px; display: block; font-size: 11px; }.operation-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.article-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.article-list .help-article { margin: 0; min-height: 125px; }
.faq-list { border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }.faq-list details + details { border-top: 1px solid var(--border); }.faq-list summary { padding: 16px 18px; display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 12px; font-weight: 750; }.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary span { color: var(--primary); }.faq-list details[open] summary span { transform: rotate(45deg); }.faq-list p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.help-results { min-height: 430px; }.help-result-list { border: 1px solid var(--border); border-radius: 8px; background: #fff; overflow: hidden; }.help-result-list a { padding: 15px 18px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; color: inherit; text-decoration: none; }.help-result-list a:first-child { border:0; }.help-result-list span { font-size: 12px; font-weight: 750; }.help-result-list small { grid-column: 1; margin-top: 3px; color: var(--muted); }.help-result-list b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--primary); }

@media (max-width: 900px) {
    .app-body { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; padding: 14px 20px; flex-direction: row; align-items: center; }
    .sidebar nav { margin: 0 0 0 auto; flex-direction: row; }
    .sidebar-foot { display: none; }
    .metrics { grid-template-columns: 1fr 1fr; }
    .audience-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .overview-grid, .statistics-layout { grid-template-columns: 1fr; }
    .page { padding: 28px 20px; }
    .player-head { right: 340px; }
    .player-list { width: 340px; }
    .current-channel { width: min(390px, calc(100% - 396px)); }
    .help-layout { grid-template-columns: 1fr; }
    .help-nav { position: static; padding: 0 0 3px; flex-direction: row; overflow-x: auto; }
    .help-nav strong { display: none; }
    .help-nav a { border-bottom: 2px solid transparent; border-left: 0; white-space: nowrap; }
    .help-nav a.active { border-color: var(--primary); background: transparent; }
    .help-categories { grid-template-columns: 1fr 1fr; }
    .help-guides { grid-template-columns: 1fr; }
    .help-guide-nav { position: static; grid-template-columns: repeat(7, max-content); overflow-x: auto; }
    .article-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .sidebar nav { overflow-x: auto; }
    .sidebar nav a { white-space: nowrap; }
    .sidebar nav a.player-nav { display: none; }
    .page { padding-inline: 14px; }
    .page-head, .panel-head { align-items: flex-start; flex-direction: column; }
    .metrics, .audience-metrics, .channel-grid, .form-grid, .selection-grid { grid-template-columns: 1fr; }
    .channel-summary, .stat-actions { align-items: stretch; flex-direction: column; }
    .health-banner { grid-template-columns: auto 1fr; }
    .health-banner > .badge { grid-column: 2; }
    .traffic-chart { gap: 2px; }
    .traffic-details, .operation-numbers { grid-template-columns: 1fr; }
    .operation-numbers div + div { border-top: 1px solid var(--border); border-left: 0; }
    .span-2 { grid-column: auto; }
    .playlist-url { grid-template-columns: 1fr 1fr; }
    .playlist-url input { grid-column: 1 / -1; }
    .search { width: 100%; }
    .audience-list-head { display: none; }
    .audience-list-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding-inline: 14px; }
    .audience-list-status { grid-column: 1; padding-left: 93px; }
    .audience-list-count { grid-column: 2; grid-row: 1 / span 2; }
    .login-card { padding: 26px; }
    .player-head { right: 0; height: 72px; }
    .player-head-content { padding-inline: 14px; }
    .player-head .brand-mark { width: 34px; height: 34px; font-size: 17px; }
    .player-head .brand strong, .customer-name { display: none; }
    .player-head-actions { gap: 8px; }
    .channel-toggle { padding: 8px 10px; }
    .video-empty > span { width: 52px; height: 52px; font-size: 17px; }
    .video-empty h2 { margin-top: 12px; font-size: 17px; }
    .video-empty p { font-size: 11px; }
    .current-channel, .channels-collapsed .current-channel { right: 14px; bottom: 14px; left: 14px; width: auto; min-height: 70px; padding: 9px 11px; }
    .current-channel img { width: 46px; height: 46px; }
    .live-badge { display: none; }
    .player-list { top: 72px; width: min(88vw, 350px); height: calc(100vh - 72px); border-top: 1px solid rgba(255, 255, 255, .12); }
    .player-list-head { padding: 18px 16px 14px; }
    .video-message { top: 82px; }
    .help-hero { margin: -28px -14px 20px; padding: 32px 14px 25px; }
    .help-hero h1 { font-size: 28px; }
    .help-section { padding: 18px; }
    .help-step-grid, .help-card-grid, .help-card-grid.compact, .help-detail-grid { grid-template-columns: 1fr; }
    .source-help-row { grid-template-columns: 1fr; gap: 5px; }
    .source-help-heading { display: none; }
    .help-actions { align-items: flex-start; flex-direction: column; }
    .help-categories, .popular-links, .clean-steps, .field-cards, .operation-grid { grid-template-columns: 1fr; }
    .help-categories > a { min-height: 110px; }
    .help-guides { margin-top: 28px; padding-top: 22px; }
    .help-guide-nav a span { white-space: nowrap; }
    .field-cards > div, .field-cards > div:nth-child(odd), .field-cards > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--border); }
    .field-cards > div:last-child { border-bottom: 0; }
    .source-list > div { grid-template-columns: 1fr; gap: 4px; }
    .article-action { align-items: flex-start; flex-direction: column; }
}
