@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap";:root{--bg-primary:#07080d;--bg-secondary:#0d0f17;--bg-card:#111420;--bg-card-hover:#161a2a;--bg-input:#0a0c14;--border-subtle:#ffffff0f;--border-default:#ffffff1a;--border-active:#6366f166;--text-primary:#e8eaf0;--text-secondary:#8b8fa3;--text-muted:#555972;--accent-indigo:#6366f1;--accent-indigo-soft:#6366f126;--accent-green:#22c55e;--accent-green-soft:#22c55e26;--accent-yellow:#f59e0b;--accent-yellow-soft:#f59e0b26;--accent-red:#ef4444;--accent-red-soft:#ef444426;--accent-cyan:#06b6d4;--accent-cyan-soft:#06b6d426;--accent-orange:#f97316;--font-body:"Inter", -apple-system, BlinkMacSystemFont, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", monospace;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-xl:20px;--shadow-card:0 4px 24px #0006;--shadow-glow-indigo:0 0 20px #6366f126;--shadow-glow-red:0 0 20px #ef444433;--shadow-glow-green:0 0 20px #22c55e26}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;font-family:var(--font-body);background:var(--bg-primary);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background:var(--bg-primary);background-image:radial-gradient(80% 50% at 50% -20%,#6366f114,#0000),radial-gradient(60% 40% at 80% 100%,#06b6d40d,#0000)}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:3px}.card{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:20px;transition:border-color .2s,box-shadow .2s}.card:hover{border-color:var(--border-default)}.badge{letter-spacing:.03em;text-transform:uppercase;border-radius:100px;align-items:center;gap:6px;padding:4px 12px;font-size:.75rem;font-weight:600;display:inline-flex}.badge--green{background:var(--accent-green-soft);color:var(--accent-green)}.badge--red{background:var(--accent-red-soft);color:var(--accent-red)}.badge--yellow{background:var(--accent-yellow-soft);color:var(--accent-yellow)}.badge--indigo{background:var(--accent-indigo-soft);color:var(--accent-indigo)}.btn{border-radius:var(--radius-sm);font-family:var(--font-body);cursor:pointer;white-space:nowrap;border:none;justify-content:center;align-items:center;gap:8px;padding:10px 20px;font-size:.85rem;font-weight:600;transition:all .2s;display:inline-flex}.btn:disabled{opacity:.4;cursor:not-allowed}.btn--primary{background:var(--accent-indigo);color:#fff;box-shadow:0 2px 12px #6366f14d}.btn--primary:hover:not(:disabled){background:#5558e6;transform:translateY(-1px);box-shadow:0 4px 20px #6366f166}.btn--danger{background:var(--accent-red);color:#fff;box-shadow:0 2px 12px #ef44444d}.btn--danger:hover:not(:disabled){background:#dc2626;transform:translateY(-1px)}.btn--ghost{color:var(--text-secondary);border:1px solid var(--border-subtle);background:#ffffff0d}.btn--ghost:hover:not(:disabled){color:var(--text-primary);border-color:var(--border-default);background:#ffffff14}.input-field{background:var(--bg-input);border:1px solid var(--border-subtle);border-radius:var(--radius-sm);color:var(--text-primary);font-family:var(--font-body);outline:none;width:100%;padding:10px 14px;font-size:.85rem;transition:border-color .2s,box-shadow .2s}.input-field:focus{border-color:var(--accent-indigo);box-shadow:0 0 0 3px var(--accent-indigo-soft)}.input-field::placeholder{color:var(--text-muted)}.select-field{appearance:none;background:var(--bg-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b8fa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 12px center;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);color:var(--text-primary);font-family:var(--font-body);cursor:pointer;outline:none;padding:10px 32px 10px 14px;font-size:.85rem;transition:border-color .2s}.select-field:focus{border-color:var(--accent-indigo)}.slider{appearance:none;background:#ffffff1a;border-radius:2px;outline:none;width:100%;height:4px}.slider::-webkit-slider-thumb{appearance:none;background:var(--accent-indigo);cursor:pointer;border-radius:50%;width:16px;height:16px;transition:transform .15s;box-shadow:0 0 8px #6366f166}.slider::-webkit-slider-thumb:hover{transform:scale(1.2)}.toggle{flex-shrink:0;width:44px;height:24px;display:inline-block;position:relative}.toggle input{opacity:0;width:0;height:0}.toggle-slider{cursor:pointer;background:#ffffff1a;border-radius:24px;transition:background .25s;position:absolute;inset:0}.toggle-slider:before{content:"";background:#fff;border-radius:50%;width:18px;height:18px;transition:transform .25s;position:absolute;top:3px;left:3px}.toggle input:checked+.toggle-slider{background:var(--accent-indigo)}.toggle input:checked+.toggle-slider:before{transform:translate(20px)}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}@keyframes glow{0%,to{box-shadow:0 0 8px #ef44444d}50%{box-shadow:0 0 24px #ef444499}}.animate-in{animation:.4s both fadeIn}.pulse{animation:1.5s ease-in-out infinite pulse}.app{flex-direction:column;max-width:1400px;min-height:100vh;margin:0 auto;padding:0 24px 24px;display:flex}.header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;margin-bottom:24px;padding:20px 0;display:flex}.header__brand{align-items:center;gap:14px;display:flex}.header__icon{background:linear-gradient(135deg, var(--accent-indigo-soft), #06b6d41a);border-radius:var(--radius-md);border:1px solid var(--border-subtle);justify-content:center;align-items:center;width:48px;height:48px;font-size:1.8rem;display:flex}.header__title{letter-spacing:-.02em;background:linear-gradient(135deg,#e8eaf0,#8b8fa3);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:1.35rem;font-weight:700}.header__subtitle{color:var(--text-muted);margin-top:1px;font-size:.75rem;font-weight:400}.header__status{align-items:center;gap:14px;display:flex}.header__fps{font-family:var(--font-mono);color:var(--text-muted);border-radius:var(--radius-sm);background:#ffffff08;padding:4px 10px;font-size:.8rem}.status-dot{border-radius:50%;width:8px;height:8px;display:inline-block}.status-dot--green{background:var(--accent-green);box-shadow:0 0 6px var(--accent-green)}.status-dot--red{background:var(--accent-red);box-shadow:0 0 6px var(--accent-red);animation:1.2s ease-in-out infinite pulse}.status-dot--yellow{background:var(--accent-yellow);box-shadow:0 0 6px var(--accent-yellow);animation:1.5s ease-in-out infinite pulse}.status-dot--indigo{background:var(--accent-indigo)}.main{flex:1;grid-template-columns:1fr 380px;gap:24px;display:grid}.main__left,.main__right{flex-direction:column;gap:20px;display:flex}.video-card{padding:0;overflow:hidden}.video-card--alert{border-color:#ef444466;animation:2s ease-in-out infinite glow}.video-card__header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.video-card__label{color:var(--text-secondary);align-items:center;gap:8px;font-size:.85rem;font-weight:500;display:flex}.live-dot{background:var(--accent-red);border-radius:50%;width:8px;height:8px;animation:1.2s ease-in-out infinite pulse}.video-card__feed{aspect-ratio:4/3;background:#000;justify-content:center;align-items:center;display:flex}.video-card__img{object-fit:contain;width:100%;height:100%}.video-card__placeholder{color:var(--text-muted);flex-direction:column;align-items:center;gap:12px;font-size:.85rem;display:flex}.video-card__placeholder-icon{opacity:.4;font-size:3rem}.source-card{flex-direction:column;gap:16px;display:flex}.card__title{color:var(--text-primary);font-size:.95rem;font-weight:600}.source-tabs{background:var(--bg-input);border-radius:var(--radius-sm);gap:8px;padding:4px;display:flex}.source-tab{color:var(--text-secondary);font-family:var(--font-body);cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1;padding:8px 14px;font-size:.82rem;font-weight:500;transition:all .2s}.source-tab:disabled{cursor:not-allowed;opacity:.6}.source-tab--active{background:var(--accent-indigo);color:#fff;box-shadow:0 2px 8px #6366f14d}.source-field{flex-direction:column;gap:6px;display:flex}.field-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:500}.source-actions{gap:10px;display:flex}.btn--lg{width:100%;padding:12px 20px;font-size:.9rem}.error-text{color:var(--accent-red);margin-top:4px;font-size:.82rem}.metrics-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.metric-card{flex-direction:column;gap:4px;padding:16px;display:flex;position:relative;overflow:hidden}.metric-card__label{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);font-size:.72rem;font-weight:600}.metric-card__value{letter-spacing:-.02em;font-size:1.6rem;font-weight:700}.metric-card__value.mono{font-family:var(--font-mono)}.metric-card__sub{color:var(--text-muted);font-size:.7rem}.metric-card--green .metric-card__value{color:var(--accent-green)}.metric-card--red .metric-card__value{color:var(--accent-red)}.metric-card--yellow .metric-card__value{color:var(--accent-yellow)}.metric-card--indigo .metric-card__value{color:var(--accent-indigo)}.metric-card__bar{background:#ffffff0f;border-radius:2px;height:3px;margin-top:8px;overflow:hidden}.metric-card__bar-fill{border-radius:2px;height:100%;transition:width .3s}.metric-card__bar-fill--green{background:var(--accent-green)}.metric-card__bar-fill--red{background:var(--accent-red)}.metric-card__bar-fill--yellow{background:var(--accent-yellow)}.metric-card__bar-fill--indigo{background:var(--accent-indigo)}.escalation-card{flex-direction:column;gap:16px;display:flex}.timeline{flex-direction:column;gap:8px;display:flex}.timeline__track{gap:4px;height:10px;display:flex}.timeline__segment{background:#ffffff0f;border-radius:5px;flex:1;transition:background .4s,box-shadow .4s}.timeline__segment--active.timeline__segment--green{background:var(--accent-green);box-shadow:0 0 8px #22c55e66}.timeline__segment--active.timeline__segment--yellow{background:var(--accent-yellow);box-shadow:0 0 8px #f59e0b66}.timeline__segment--active.timeline__segment--orange{background:var(--accent-orange);box-shadow:0 0 8px #f9731666}.timeline__segment--active.timeline__segment--red{background:var(--accent-red);box-shadow:0 0 8px #ef444466}.timeline__labels{justify-content:space-between;display:flex}.timeline__label{color:var(--text-muted);text-align:center;font-size:.7rem;line-height:1.3}.timeline__label small{color:var(--text-secondary);font-weight:500}.escalation-indicators{gap:10px;display:flex}.indicator-pill{color:var(--text-muted);border-radius:var(--radius-sm);border:1px solid var(--border-subtle);background:#ffffff08;align-items:center;gap:6px;padding:6px 12px;font-size:.78rem;transition:all .3s;display:flex}.indicator-pill--active{background:var(--accent-red-soft);color:var(--accent-red);border-color:#ef44444d}.indicator-dot{background:var(--text-muted);border-radius:50%;width:6px;height:6px;transition:background .3s}.indicator-dot--on{background:var(--accent-red);box-shadow:0 0 6px var(--accent-red)}.settings-card{flex-direction:column;gap:18px;display:flex}.setting-row{flex-direction:column;gap:8px;display:flex}.setting-info{justify-content:space-between;align-items:center;display:flex}.setting-label{color:var(--text-secondary);font-size:.82rem;font-weight:500}.setting-value{color:var(--accent-indigo);font-size:.82rem;font-weight:600}.setting-value.mono{font-family:var(--font-mono)}.setting-toggle-row{border-top:1px solid var(--border-subtle);justify-content:space-between;align-items:center;padding:8px 0;display:flex}@media (width<=900px){.main{grid-template-columns:1fr}.metrics-grid{grid-template-columns:1fr 1fr}}@media (width<=500px){.app{padding:0 12px 12px}.metrics-grid{grid-template-columns:1fr}.header{flex-direction:column;align-items:flex-start;gap:12px}}
