.cctv-admin,.cctv-public{color:#1e293b;min-width:0}.cctv-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:24px}.cctv-admin h1,.cctv-public h1{font-size:30px;font-weight:700;line-height:36px;margin:0}.cctv-admin h2,.cctv-public h2{font-weight:650;font-size:19px;margin:0}.cctv-heading p,.cctv-public-heading p{color:#64748b;font-size:14px;margin:6px 0 0}.cctv-admin button,.cctv-public button{background:#059669;color:white;border:0;border-radius:8px;padding:10px 15px;font-size:14px;font-weight:600;cursor:pointer}.cctv-admin button:disabled{opacity:.5;cursor:wait}.cctv-admin button.secondary{background:#e2e8f0;color:#334155}.cctv-admin button.danger{background:#fff1f2;color:#be123c}.cctv-actions{display:flex;gap:8px;flex-wrap:wrap}.cctv-admin input,.cctv-admin select,.cctv-public select{display:block;width:100%;border:1px solid #cbd5e1;border-radius:7px;padding:10px 12px;margin-top:7px;background:white;font:inherit}.cctv-admin label,.cctv-public label{display:block;font-weight:600;font-size:14px;margin:18px 0}.cctv-form{padding:24px;background:white;border:1px solid #e2e8f0;border-radius:12px;max-width:960px}.cctv-form fieldset{border:0;padding:0;min-width:0}.cctv-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px}.cctv-hint,.cctv-footnote{color:#64748b;font-size:13px;margin:12px 0;line-height:1.7}.cctv-message{padding:16px;border:1px solid #a7f3d0;background:#ecfdf5;border-radius:9px;margin:16px 0;font-size:14px}.cctv-message.error{background:#fff1f2;border-color:#fecdd3;color:#9f1239}.cctv-table-wrap{overflow-x:auto;background:white;border:1px solid #e2e8f0;border-radius:12px}.cctv-admin table{width:100%;border-collapse:collapse;font-size:14px;text-align:left;min-width:780px}.cctv-admin th{background:#f8fafc;color:#64748b;font-size:12px;padding:14px 18px}.cctv-admin td{padding:18px;border-top:1px solid #e2e8f0;vertical-align:middle}.cctv-source{max-width:250px;overflow-wrap:anywhere;color:#64748b;font-size:12px;margin-bottom:6px}.cctv-badge{display:inline-block;border-radius:20px;padding:4px 10px;background:#f1f5f9;color:#64748b;font-size:12px;white-space:nowrap}.cctv-badge.active{background:#d1fae5;color:#047857}.cctv-badge.failed{background:#fff7ed;color:#c2410c}.cctv-empty{text-align:center;padding:50px 20px;background:white;border:1px dashed #cbd5e1;border-radius:12px}.cctv-empty p{color:#64748b;margin-top:8px}.cctv-public-heading{padding:24px;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;margin-bottom:20px}.cctv-view-controls{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:20px}.cctv-view-controls label{min-width:240px;margin:0}.cctv-view-controls>span{font-size:13px;color:#64748b;margin-left:auto}.cctv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.cctv-grid.focused{grid-template-columns:1fr}.cctv-player{min-width:0;background:white;border:1px solid #d1e5dc;border-radius:12px;overflow:hidden}.cctv-player-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px}.cctv-player-heading h2{font-size:17px}.cctv-live{font-size:12px;border-radius:16px;background:#f1f5f9;color:#64748b;padding:4px 9px;white-space:nowrap}.cctv-live.online{background:#d1fae5;color:#047857}.cctv-player video{display:block;width:100%;aspect-ratio:16/9;background:#0f172a}.cctv-player-actions{display:flex;gap:8px;padding:14px;flex-wrap:wrap}.cctv-player-actions button{background:#ecfdf5;color:#047857;font-size:12px;padding:8px 10px}.cctv-admin button:focus-visible,.cctv-public button:focus-visible{outline:3px solid #34d399;outline-offset:2px}@media(max-width:700px){.cctv-grid,.cctv-fields{grid-template-columns:1fr}.cctv-form{padding:16px}.cctv-view-controls>span{margin-left:0}}

.cctv-admin>.cctv-heading{background:white;padding:16px;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 2px #0f172a08;align-items:center}.cctv-admin>.cctv-heading h1{font-size:20px;line-height:28px}.cctv-admin>.cctv-heading p{font-size:12px}
.cctv-management-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:24px}.cctv-management-card{border:1px solid #e2e8f0;border-radius:12px;background:white;overflow:hidden;box-shadow:0 1px 2px #0f172a08}
.cctv-card-screen{position:relative;background:#0f172a;aspect-ratio:16/9;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;color:#94a3b8;font-size:13px;padding:36px 16px 16px}.cctv-card-screen>svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5}.cctv-card-screen a{color:#6ee7b7;font-size:12px}.cctv-card-screen .cctv-card-status{position:absolute;top:12px;left:12px;padding:4px 10px;border-radius:5px;font-size:11px;background:#334155;color:#cbd5e1}.cctv-card-screen .cctv-card-status.active{background:#047857;color:white}
.cctv-card-info{padding:16px}.cctv-card-info h3{font-weight:700;margin:0 0 8px}.cctv-card-info p{font-size:12px;color:#64748b;margin:4px 0}.cctv-card-info code{background:#f1f5f9;padding:2px 5px;border-radius:4px;color:#334155}.cctv-card-info .cctv-source{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cctv-card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #f1f5f9;margin-top:16px;padding-top:12px;flex-wrap:wrap}.cctv-card-footer button{padding:7px 10px;font-size:12px}
.cctv-dialog{padding:0;border:0;border-radius:12px;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 60px #0f172a40;margin:auto}.cctv-dialog::backdrop{background:#0f172a80;backdrop-filter:blur(4px)}.cctv-dialog .cctv-form{border:0;padding:24px;border-radius:0}.cctv-dialog .cctv-modal-heading{display:flex;align-items:center;justify-content:space-between;margin:-24px -24px 22px;padding:16px 24px;border-bottom:1px solid #e2e8f0}.cctv-dialog .cctv-modal-heading h2{font-size:16px}.cctv-dialog .cctv-close{background:transparent;color:#64748b;padding:0 6px;font-size:24px}.cctv-dialog label{text-transform:uppercase;color:#475569;font-size:11px;letter-spacing:.03em;margin:16px 0}.cctv-dialog input,.cctv-dialog select{text-transform:none;letter-spacing:normal;font-size:14px;padding:9px 12px;border-radius:8px}.cctv-dialog input:focus,.cctv-dialog select:focus{outline:2px solid #10b981;outline-offset:1px}.cctv-dialog .cctv-fields{display:block}.cctv-dialog .cctv-hint{font-size:12px}.cctv-modal-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #f1f5f9}
