@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172536;background:#f4f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button{font:inherit;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:74px;padding:0 clamp(16px,4vw,40px);display:flex;align-items:center;gap:14px;background:#fff;border-bottom:1px solid #e7edf4}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e8f3ff;color:#1769aa}.brand-copy h1{margin:0;font-size:16px;font-weight:700;letter-spacing:-.2px}.brand-copy p{margin:2px 0 0;color:#7c8999;font-size:12px}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.connection-pill{display:inline-flex;align-items:center;gap:8px;border-radius:30px;padding:8px 14px;font-size:12px;font-weight:600}.connection-pill.online{color:#147a51;background:#e8f8ef}.content{width:min(1320px,94%);margin:24px auto 40px}.alert-banner{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-radius:10px;font-size:13px;font-weight:500;margin-bottom:20px}.alert-banner.success{background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.alert-banner.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.alert-banner.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}.banner-close{background:transparent;border:0;font-size:14px;cursor:pointer;color:inherit}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:24px;align-items:start}.video-card{background:#fff;border:1px solid #e5ebf2;border-radius:14px;overflow:hidden;box-shadow:0 4px 20px #1a38540d}.video-toolbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #edf1f5}.camera-title{display:flex;align-items:center;gap:10px;font-size:13px}.camera-slug{color:#8b97a7;font-size:11px}.uptime-tag{background:#eef2f6;color:#475569;font-size:11px;padding:2px 7px;border-radius:4px;font-weight:500}.toolbar-controls{display:flex;align-items:center;gap:6px}.live-dot{width:8px;height:8px;border-radius:50%;background:#a9b3bf;transition:all .3s ease}.live-dot.active{background:#21b573;box-shadow:0 0 0 4px #21b5732e}.live-dot.buffering{background:#f59e0b;box-shadow:0 0 0 4px #f59e0b33}.icon-button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #e5ebf2;border-radius:8px;background:#fff;color:#64748b;transition:all .15s ease}.icon-button:hover{background:#f1f5f9;color:#1e293b}.video-stage{position:relative;display:grid;place-items:center;min-height:340px;aspect-ratio:16 / 9;background:#09101d}.video-stage:fullscreen{width:100vw;height:100vh;aspect-ratio:auto}.video-stage video{display:block;width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;object-fit:contain}.video-placeholder{z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 20px;color:#fff}.placeholder-icon{display:grid;place-items:center;width:64px;height:64px;margin-bottom:16px;border-radius:18px;color:#93c5fd;background:#ffffff14;border:1px solid rgba(255,255,255,.15)}.placeholder-icon .spin{animation:spin 1s linear infinite}.video-placeholder h3{margin:0;font-size:16px;font-weight:600}.video-placeholder p{margin:8px 0 0;color:#94a3b8;font-size:13px;line-height:1.6;max-width:400px}.video-footer{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-top:1px solid #edf1f5;background:#fafbfc;gap:12px;flex-wrap:wrap}.stream-url-display{display:flex;align-items:center;gap:8px;font-size:12px;overflow:hidden}.stream-url-display code{background:#edf2f7;padding:3px 8px;border-radius:4px;font-family:monospace;font-size:11px;color:#2b6cb0;max-width:380px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.copy-btn{background:transparent;border:0;cursor:pointer;color:#718096;display:grid;place-items:center;padding:4px;border-radius:4px}.copy-btn:hover{background:#e2e8f0;color:#2d3748}.link-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:6px;background:#edf2f7;color:#4a5568;font-size:11px;font-weight:600;text-decoration:none;transition:all .15s ease}.link-pill:hover{background:#e2e8f0;color:#1a202c}.cameras-panel{background:#fff;border:1px solid #e5ebf2;border-radius:14px;padding:20px;box-shadow:0 4px 20px #1a38540d}.panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #edf1f5}.panel-header h3{margin:0;font-size:15px;font-weight:700}.subheading{margin:4px 0 0;color:#748194;font-size:12px}.camera-list{display:flex;flex-direction:column;gap:12px;max-height:520px;overflow-y:auto}.camera-item{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;transition:all .2s ease}.camera-item:hover{border-color:#cbd5e1;background:#f8fafc}.camera-item.selected{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626;background:#f0f7ff}.cam-item-main{flex:1;min-width:0}.cam-item-header{display:flex;align-items:center;gap:8px}.cam-name{margin:0;font-size:14px;font-weight:600}.cam-badge{font-size:10px;text-transform:uppercase;background:#edf2f7;color:#4a5568;padding:2px 6px;border-radius:4px;font-weight:600}.cam-meta{margin:4px 0 6px;font-size:11px;color:#718096}.cam-meta code{font-family:monospace;color:#4a5568}.status-pill{display:inline-block;font-size:10px;font-weight:700;text-transform:uppercase;padding:3px 8px;border-radius:12px}.status-pill.online{background:#dcfce7;color:#15803d}.status-pill.connecting{background:#fef3c7;color:#b45309}.status-pill.error{background:#fee2e2;color:#b91c1c}.status-pill.offline{background:#f1f5f9;color:#64748b}.cam-item-actions{display:flex;align-items:center;gap:6px;margin-left:12px}.btn-action{width:32px;height:32px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;transition:all .15s ease}.btn-action:hover:not(:disabled){background:#f1f5f9;color:#0f172a}.btn-action.start{color:#16a34a}.btn-action.start:hover{background:#dcfce7;border-color:#86efac}.btn-action.stop{color:#dc2626}.btn-action.stop:hover{background:#fee2e2;border-color:#fca5a5}.btn-action.delete{color:#94a3b8}.btn-action.delete:hover{background:#fef2f2;color:#ef4444;border-color:#fecaca}.btn{border:0;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;font-size:13px;font-weight:600;transition:.15s ease}.btn-sm{padding:6px 12px;font-size:12px}.btn-primary{background:#1769aa;color:#fff;box-shadow:0 4px 12px #1769aa40}.btn-primary:hover:not(:disabled){background:#10598f}.btn-secondary{color:#4b5c70;background:#fff;border:1px solid #dfe6ee}.btn-secondary:hover:not(:disabled){background:#f8fafc}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172aa6;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;z-index:100;padding:20px}.modal-card{background:#fff;border-radius:14px;width:100%;max-width:520px;padding:24px;box-shadow:0 20px 40px #0003;animation:modalIn .2s ease-out}.modal-card.modal-wide{max-width:720px}@keyframes modalIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid #edf1f5}.modal-header h3{margin:0;font-size:17px;font-weight:700}.modal-close{background:transparent;border:0;font-size:16px;cursor:pointer;color:#94a3b8}.modal-close:hover{color:#0f172a}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:12px;font-weight:600;color:#334155;margin-bottom:6px}.form-group input,.form-group select{width:100%;padding:10px 14px;border:1px solid #cbd5e1;border-radius:8px;font-size:13px;background:#f8fafc;color:#0f172a}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px #3b82f626}.help-text{display:block;font-size:11px;color:#64748b;margin-top:4px}.form-error{padding:10px 14px;background:#fee2e2;color:#b91c1c;border-radius:8px;font-size:12px;margin-bottom:16px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:14px;border-top:1px solid #edf1f5}.integration-content{max-height:480px;overflow-y:auto;padding-right:6px}.intro-text{font-size:13px;color:#475569;margin-bottom:16px}.integration-method{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px;margin-bottom:16px}.integration-method h4{margin:0 0 6px;font-size:13px;font-weight:700;color:#1e293b}.integration-method p{margin:0 0 10px;font-size:12px;color:#64748b}.integration-method pre{background:#0f172a;color:#38bdf8;padding:12px;border-radius:8px;font-size:11px;overflow-x:auto;margin-bottom:10px}.panel-empty{text-align:center;padding:40px 20px;color:#94a3b8}.panel-empty h4{margin:12px 0 4px;color:#334155;font-size:15px}.panel-empty p{font-size:12px;margin-bottom:16px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin{animation:spin 1s linear infinite}@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.video-stage{min-height:260px}}@media(max-width:600px){.topbar{height:auto;padding:12px 16px;flex-wrap:wrap}.topbar-actions{width:100%;margin-top:8px;justify-content:space-between}.video-footer{flex-direction:column;align-items:flex-start}}
