:root {
  --bg: #0d1210;
  --surface: #161d19;
  --surface-2: #1d2721;
  --line: rgba(255,255,255,.09);
  --text: #f3f7f4;
  --muted: #91a098;
  --accent: #b8f65d;
  --accent-dark: #17220d;
  --danger: #ff8b7b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% -10%, rgba(184,246,93,.14), transparent 38%),
    var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.shell { width: min(100%, 720px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 18px max(36px, env(safe-area-inset-bottom)); }
.hero { display: flex; align-items: center; gap: 14px; margin: 4px 2px 26px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--accent); color: #11180c; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 10px 30px rgba(184,246,93,.17); }
.eyebrow { margin: 0 0 2px; color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 25px; line-height: 1.05; letter-spacing: -.035em; }
h2 { margin-bottom: 0; font-size: 23px; letter-spacing: -.035em; }
.monitor-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: linear-gradient(135deg, rgba(184,246,93,.12), rgba(184,246,93,.025)); border: 1px solid rgba(184,246,93,.22); border-radius: 20px; }
.monitor-card strong { font-size: 16px; }
.monitor-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(184,246,93,.09); }
.switch { position: relative; flex: 0 0 48px; height: 28px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; cursor: pointer; border-radius: 20px; background: #354039; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: white; transition: .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); background: #17200f; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 30px 2px 14px; }
.counter { color: var(--muted); font-size: 13px; }
.sources { display: grid; gap: 12px; }
.source-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.source-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 18px; border-bottom: 1px solid var(--line); }
.source-title h3 { margin: 0; font-size: 17px; }
.source-title span { color: var(--muted); font-size: 12px; }
.channel-list { display: grid; grid-template-columns: 1fr 1fr; padding: 8px; gap: 7px; }
.channel { position: relative; min-height: 58px; display: flex; align-items: center; padding: 10px 36px 10px 12px; border: 1px solid transparent; border-radius: 13px; background: var(--surface-2); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; }
.channel:active { transform: scale(.98); }
.channel::after { content: ""; position: absolute; right: 12px; width: 17px; height: 17px; border: 1px solid #526057; border-radius: 50%; }
.channel.active { background: var(--accent-dark); border-color: rgba(184,246,93,.38); }
.channel.active::after { border: 5px solid var(--accent); }
.channel.busy { opacity: .55; pointer-events: none; }
.warning { margin-top: 16px; padding: 14px; border: 1px solid rgba(255,139,123,.25); background: rgba(255,139,123,.08); color: #ffc1b8; border-radius: 14px; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translate(-50%, 18px); padding: 11px 16px; border-radius: 12px; background: #edf9e0; color: #17200f; font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 12px 35px rgba(0,0,0,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading-card { padding: 20px; background: var(--surface); border-radius: 20px; }
.loading-card span { display: block; width: 100%; height: 54px; margin: 8px 0; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), #29352d, var(--surface-2)); background-size: 200% 100%; animation: pulse 1.2s infinite; }
@keyframes pulse { to { background-position: -200% 0; } }
@media (max-width: 480px) { .channel-list { grid-template-columns: 1fr; } }
