/* U_NETLINE Camera Portal — Classic Light 2026.11
   Global design system: quiet surfaces, crisp blue accent, legible typography. */
:root {color-scheme:light;}
html[data-theme="daylight"] { color-scheme:light; }
html[data-theme="daylight"] body {
  background: #f5f7fb !important;
  color: var(--text);
  font-family: var(--font-stack, Inter, system-ui, sans-serif);
  font-size: 14px;
  letter-spacing: -.005em;
}
html[data-theme="daylight"] .ambient-backdrop {display:none !important;}
html[data-theme="daylight"] .topbar {
  height: 68px;
  padding-inline: clamp(16px, 3vw, 38px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e3e9f0;
  box-shadow: 0 2px 13px rgba(26,49,82,.035);
  backdrop-filter: none;
}
html[data-theme="daylight"] .brand {font-weight:760;gap:12px;min-width:225px;}
html[data-theme="daylight"] .brand-mark {width:37px;height:37px;border-radius:10px;box-shadow:none;}
html[data-theme="daylight"] .brand-copy {line-height:1.22;gap:2px;}
html[data-theme="daylight"] .brand-copy strong {font-size:15px;color:#142b48;letter-spacing:-.02em;}
html[data-theme="daylight"] .brand-copy small {font-size:10px;color:#74869d;}
html[data-theme="daylight"] .topbar nav {gap:4px;align-items:center;}
html[data-theme="daylight"] .topbar nav a {
  align-self:center;border:0;border-radius:9px;padding:11px 15px;
  color:#5b6d84;font-size:13px;font-weight:650;background:transparent;
  transition:color .18s ease,background .18s ease;
}
html[data-theme="daylight"] .topbar nav a:hover {color:#2457a5;background:#f1f5fa;}
html[data-theme="daylight"] .topbar nav a.active {
  color:#1951a2;background:#e9f1ff;border:0;
  box-shadow:inset 0 0 0 1px #d7e6ff;
}
html[data-theme="daylight"] .user-chip, html[data-theme="daylight"] .floor-chip {
  background:#f8fafd;color:#48617e;border:1px solid #e2eaf3;
  font-weight:600;padding:8px 12px;
}
html[data-theme="daylight"] .container {max-width:1320px;padding-top:25px;}
html[data-theme="daylight"] .dashboard-shell {padding:23px clamp(13px,2.25vw,35px) 46px;}
html[data-theme="daylight"] .panel, html[data-theme="daylight"] .camera-card,
html[data-theme="daylight"] .login-card, html[data-theme="daylight"] .portal-stats article,
html[data-theme="daylight"] .user-chip, html[data-theme="daylight"] .floor-chip,
html[data-theme="daylight"] .table-wrap, html[data-theme="daylight"] table,
html[data-theme="daylight"] .admin-sidebar, html[data-theme="daylight"] .admin-pagebar {
  background:#fff; border-color:#e3eaf3;
  backdrop-filter:none; -webkit-backdrop-filter:none;
}
html[data-theme="daylight"] .panel, html[data-theme="daylight"] .camera-card,
html[data-theme="daylight"] .portal-stats article, html[data-theme="daylight"] .admin-sidebar {
  box-shadow:0 4px 22px rgba(29,52,84,.045),0 1px 2px rgba(29,52,84,.025);
}
html[data-theme="daylight"] .panel,html[data-theme="daylight"] .camera-card {border-radius:14px;}
html[data-theme="daylight"] .panel:hover,html[data-theme="daylight"] .camera-card:hover {
  border-color:#cddaea;box-shadow:0 8px 30px rgba(29,52,84,.07);transform:none;
}
html[data-theme="daylight"] .btn {
  border:1px solid #dce5f0;border-radius:9px;background:#fff;
  color:#254263;font-size:12px;font-weight:700;box-shadow:none;min-height:35px;
}
html[data-theme="daylight"] .btn:hover {border-color:#b4cde8;background:#f6faff;transform:none;}
html[data-theme="daylight"] .btn.primary,
html[data-theme="daylight"] .global-quality-btn.active {
  background:#2764b5;color:#fff;border-color:#2764b5;box-shadow:0 3px 8px rgba(39,100,181,.13);
}
html[data-theme="daylight"] .btn.primary:hover {background:#1b569e;}
html[data-theme="daylight"] .btn.danger {color:#a32642;background:#fff4f5;border-color:#f1cbd2;}
html[data-theme="daylight"] input,html[data-theme="daylight"] select,
html[data-theme="daylight"] textarea {background:#fff;color:#18334e;border:1px solid #d8e2ed;border-radius:9px;}
html[data-theme="daylight"] input:focus,html[data-theme="daylight"] select:focus,
html[data-theme="daylight"] textarea:focus {outline:0;box-shadow:0 0 0 3px rgba(39,100,181,.12);border-color:#7ba7dc;}
html[data-theme="daylight"] label {color:#485b72;font-weight:600;}
html[data-theme="daylight"] .portal-hero {
  min-height:153px;margin:0 0 20px;border:1px solid #dfe9f5;border-radius:16px;
  background-image:linear-gradient(105deg,#fff 0%,#f7fbff 58%,#e8f1fc 100%);
  box-shadow:0 4px 20px rgba(35,71,110,.045);
}
html[data-theme="daylight"] .portal-hero-shade {background:none;}
html[data-theme="daylight"] .portal-hero-content {padding:23px 28px 45px;}
html[data-theme="daylight"] .portal-hero-content h1 {
  color:#193652;font-size:clamp(23px,2.8vw,33px);font-weight:760;letter-spacing:-.035em;margin:7px 0 5px;
}
html[data-theme="daylight"] .portal-hero-content p {color:#667b92;font-size:13px;}
html[data-theme="daylight"] .portal-hero .eyebrow {color:#3873bb;font-size:10px;letter-spacing:.11em;}
html[data-theme="daylight"] .hero-status {bottom:16px;left:29px;color:#738398;font-size:11px;gap:19px;}
html[data-theme="daylight"] .hero-status b {font-size:13px;color:#26486b;}
html[data-theme="daylight"] .hero-scan,.portal-hero .live-pulse {display:none;}
html[data-theme="daylight"] .notice-banner {
  background:#f1f7ff;border:1px solid #d8e7fa;color:#496d98;padding:12px 16px;
  border-radius:11px;margin-bottom:18px;align-items:center;
}
html[data-theme="daylight"] .notice-banner strong {color:#234e82;font-weight:730;}
html[data-theme="daylight"] .notice-banner p {color:#607c9f;}
html[data-theme="daylight"] .notice-banner .live-pulse {background:#6c93c2;box-shadow:none;animation:none;}
html[data-theme="daylight"] .viewer-toolbar {margin-bottom:16px;gap:16px;}
html[data-theme="daylight"] .viewer-toolbar h1 {font-weight:760;font-size:23px;color:#1d3652;letter-spacing:-.025em;}
html[data-theme="daylight"] .viewer-toolbar p {color:#73849a;font-size:12px;}
html[data-theme="daylight"] .layout-btn {
  background:#fff;border:1px solid #dde6ef;color:#607690;min-width:34px;
  font-size:11px;font-weight:700;
}
html[data-theme="daylight"] .layout-btn.active {background:#e8f1ff;border-color:#b9d3f3;color:#245d9f;}
html[data-theme="daylight"] .adaptive-stream-panel {
  padding:14px 18px;margin-bottom:18px;border:1px solid #dfebf5;background:#fff;
  box-shadow:0 3px 16px rgba(30,54,86,.035);
}
html[data-theme="daylight"] .adaptive-copy strong {font-size:14px;color:#233f5b;}
html[data-theme="daylight"] .adaptive-copy span {font-size:11px;color:#788ba0;}
html[data-theme="daylight"] .global-quality-switch {border-color:#e0e8f2;background:#f1f5fa;border-radius:9px;}
html[data-theme="daylight"] .global-quality-btn {color:#55728f;}
html[data-theme="daylight"] #traffic-saving-status {color:#2d7a6c;}
html[data-theme="daylight"] .portal-stats {gap:12px;margin-bottom:19px;}
html[data-theme="daylight"] .portal-stats article {padding:13px 16px;border-radius:12px;gap:10px;}
html[data-theme="daylight"] .portal-stats span {font-size:22px;color:#245b96;font-weight:780;}
html[data-theme="daylight"] .portal-stats small {color:#78879a;font-size:12px;}
html[data-theme="daylight"] .camera-grid {gap:13px;}
html[data-theme="daylight"] .camera-grid[data-density="compact"] {gap:10px;}
html[data-theme="daylight"] .camera-card::before {display:none;}
html[data-theme="daylight"] .camera-card[data-quality="hd"] {border-color:#dce7f5;}
html[data-theme="daylight"] .camera-card>header {
  background:#fff;border-bottom:1px solid #e8eef5;min-height:47px;padding:10px 13px;
}
html[data-theme="daylight"] .camera-title {font-size:13px;font-weight:720;color:#233b57;}
html[data-theme="daylight"] .camera-scope {color:#52739a;background:#f0f5fa;border-radius:6px;}
html[data-theme="daylight"] .stream-metrics,.camera-meta {color:#8493a7;font-size:10px;}
html[data-theme="daylight"] .camera-card>footer {background:#fff;color:#7b8b9d;border-color:#e9edf3;}
html[data-theme="daylight"] .video-wrap {background:#111d2b;}
html[data-theme="daylight"] .camera-card.is-offline .video-wrap {background:#edf2f7;}
html[data-theme="daylight"] .camera-card.is-offline video-stream {opacity:0;pointer-events:none;}
html[data-theme="daylight"] .camera-card.is-offline .camera-overlay {display:none;}
html[data-theme="daylight"] .camera-card.is-offline .quality-switch {opacity:.1;pointer-events:none;}
html[data-theme="daylight"] .status-dot.offline {background:#db7485;box-shadow:0 0 0 3px #fff0f2;}
html[data-theme="daylight"] .status-dot.online {background:#259b74;box-shadow:0 0 0 3px #e2f6ed;}
html[data-theme="daylight"] .icon-btn {color:#6b819b;background:transparent;border-radius:6px;padding:3px 6px;}
html[data-theme="daylight"] .icon-btn:hover {color:#195a9b;background:#eaf2ff;}
html[data-theme="daylight"] .compact-toggle.active {background:#eaf2ff;border-color:#d1e4f8;color:#245c9f;}
html[data-theme="daylight"] .badge {background:#edf3f9;color:#59718a;}
html[data-theme="daylight"] .badge.ok,html[data-theme="daylight"] .badge.online {background:#e0f6ed;color:#197755;}
html[data-theme="daylight"] .badge.offline,html[data-theme="daylight"] .badge.error {background:#ffedf0;color:#a72f47;}
html[data-theme="daylight"] .alert.info {background:#eff6ff;border-color:#d7e9ff;color:#315d8d;}
html[data-theme="daylight"] .notice-box {background:#fff9e9;color:#755a20;border-color:#efdfae;}
html[data-theme="daylight"] .alert.error {background:#fff2f3;color:#9e3046;border-color:#efd5da;}
html[data-theme="daylight"] .alert.success {background:#eaf8f0;color:#1c795a;border-color:#c7ecd9;}
html[data-theme="daylight"] .admin-sidebar {padding:15px;box-shadow:0 2px 20px rgba(30,55,85,.045);}
html[data-theme="daylight"] .admin-nav a {color:#60738d;border-radius:9px;}
html[data-theme="daylight"] .admin-nav a:hover {background:#f5f8fc;color:#244c78;transform:none;}
html[data-theme="daylight"] .admin-nav a.active {
  background:#eaf2fc;color:#195a9e;border-color:#cee1f5;
  box-shadow:inset 3px 0 0 #337ac3;
}
html[data-theme="daylight"] .admin-nav a i {background:#f0f5fa;color:#3376b7;}
html[data-theme="daylight"] .admin-pagebar {background:#fff;border-color:#e3eaf3;box-shadow:0 3px 14px rgba(20,45,85,.035);}
html[data-theme="daylight"] .admin-stats strong {color:#255d9e;}
html[data-theme="daylight"] .admin-quick-grid a {background:#fff;border-color:#e2e9f0;}
html[data-theme="daylight"] .admin-quick-grid a:hover {background:#f5f9fe;transform:none;}
html[data-theme="daylight"] .floor-admin-card .floor-number {background:#e9f2fd;color:#285d98;}
html[data-theme="daylight"] .service-status-list a {background:#fff;}
html[data-theme="daylight"] .form-submit-bar {background:#fff;border-top:1px solid #e3e9f1;}
html[data-theme="daylight"] .toast {background:#fff;box-shadow:0 12px 30px rgba(35,55,80,.12);}
html[data-theme="daylight"] .auth-layout {
  border:1px solid #e0e8f0;background:#fff;border-radius:22px;
  box-shadow:0 24px 70px rgba(22,46,80,.09);
}
html[data-theme="daylight"] .auth-visual {background:linear-gradient(145deg,#17416f 0%,#2d6398 62%,#578ebc 100%);}
html[data-theme="daylight"] .auth-visual-overlay {background:linear-gradient(145deg,rgba(13,45,77,.08),rgba(4,38,70,.25));}
html[data-theme="daylight"] .auth-visual-content {color:#fff;}
html[data-theme="daylight"] .auth-visual-content p {color:rgba(255,255,255,.85);}
html[data-theme="daylight"] .auth-visual-content h2 {line-height:1.02;font-size:clamp(31px,4vw,53px);}
html[data-theme="daylight"] .security-points span {background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.28);}
html[data-theme="daylight"] .radar-ring {display:none;}
html[data-theme="daylight"] .auth-layout .login-card {background:#fff;padding:clamp(22px,4vw,47px);}
html[data-theme="daylight"] .login-card h1 {color:#1c3858;}
html[data-theme="daylight"] .login-card>p {color:#64798f;}
html[data-theme="daylight"] .auth-back {color:#246bb3;}
html[data-theme="daylight"] .site-footer {border-color:#dfe6ee;color:#7a8b9c;padding-top:22px;}
html[data-theme="daylight"] .site-footer .footer-brand {color:#325271;}

/* Offline tiles are intentionally high contrast even in the light UI. */
.camera-offline-message, .tv-offline-message {
  position:absolute;inset:0;z-index:5;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:7px;padding:clamp(12px,3vw,28px);text-align:center;
  background:linear-gradient(145deg,#f5f8fc 0%,#e9eff6 100%);
  color:#324c68;line-height:1.4;
}
.camera-offline-message[hidden], .tv-offline-message[hidden] {display:none!important;}
.camera-offline-message .camera-offline-icon, .tv-offline-message .camera-offline-icon {
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  font-size:18px;background:#e1ebf5;color:#718aa4;margin-bottom:2px;
}
.camera-offline-message strong,.tv-offline-message strong {font-size:clamp(13px,1.7vw,18px);font-weight:760;color:#253f5c;}
.camera-offline-message span:not(.camera-offline-icon),.tv-offline-message span:not(.camera-offline-icon) {font-size:clamp(11px,1.1vw,13px);color:#657b91;}
.camera-offline-message small,.tv-offline-message small {font-size:clamp(10px,1vw,12px);color:#768ba0;max-width:320px;}
.tv-offline-message {border-radius:14px;}
.video-wrap .camera-offline-message {pointer-events:none;}
/* Keep the offline panel readable even in the existing compact camera grid. */
.camera-grid[data-density="compact"] .camera-offline-message {gap:4px;padding:7px;}
.camera-grid[data-density="compact"] .camera-offline-message .camera-offline-icon {width:26px;height:26px;font-size:12px;}
.camera-grid[data-density="compact"] .camera-offline-message strong {font-size:clamp(10px,1.2vw,13px);}
.camera-grid[data-density="compact"] .camera-offline-message span:not(.camera-offline-icon) {font-size:clamp(9px,.95vw,11px);}
.camera-grid[data-density="compact"] .camera-offline-message small {font-size:clamp(8px,.83vw,10px);}

@media(max-width:900px) {
  html[data-theme="daylight"] .topbar {height:60px;padding-inline:12px;}
  html[data-theme="daylight"] .admin-sidebar {box-shadow:14px 0 42px rgba(30,50,75,.14);}
  html[data-theme="daylight"] .brand {min-width:0;}
}
@media(max-width:700px) {
  html[data-theme="daylight"] .dashboard-shell {padding:12px 10px 28px;}
  html[data-theme="daylight"] .portal-hero {min-height:125px;}
  html[data-theme="daylight"] .portal-hero-content {padding:18px 17px 40px;}
  html[data-theme="daylight"] .portal-hero-content h1 {font-size:23px;}
  html[data-theme="daylight"] .viewer-toolbar h1 {font-size:19px;}
  html[data-theme="daylight"] .camera-card>header {padding:9px 10px;}
  html[data-theme="daylight"] .camera-title {font-size:12px;}
  html[data-theme="daylight"] .auth-visual {min-height:210px;}
  html[data-theme="daylight"] .auth-visual-content {left:22px;right:22px;bottom:25px;}
  html[data-theme="daylight"] .auth-visual-content h2 {font-size:31px;}
  html[data-theme="daylight"] .auth-layout {border-radius:15px;}
}
@media(max-width:440px) {
  html[data-theme="daylight"] .brand-copy small {display:none;}
  html[data-theme="daylight"] .portal-hero {display:none;}
  html[data-theme="daylight"] .camera-grid .camera-offline-message {gap:4px;padding:7px;}
  html[data-theme="daylight"] .camera-grid .camera-offline-message .camera-offline-icon {width:24px;height:24px;margin:0;}
  html[data-theme="daylight"] .camera-grid .camera-offline-message strong {font-size:12px;}
  html[data-theme="daylight"] .camera-grid .camera-offline-message span:not(.camera-offline-icon) {font-size:10px;}
  html[data-theme="daylight"] .camera-grid .camera-offline-message small {font-size:9px;}
}
@media(prefers-reduced-motion:reduce) {
  html[data-theme="daylight"] *,html[data-theme="daylight"] *::before,html[data-theme="daylight"] *::after {animation:none!important;transition:none!important;}
}

/* On-demand video / snapshot cards v0.12 */
.camera-card video-stream[hidden], .camera-card .camera-stop-btn[hidden] {display:none!important;}
.camera-card .video-wrap {position:relative;isolation:isolate;}
.camera-preview-layer {position:absolute;inset:0;z-index:3;overflow:hidden;display:grid;place-items:center;background:#e9eff6;}
.camera-card.is-playing .camera-preview-layer {display:none!important;}
.camera-preview-image {width:100%;height:100%;position:absolute;inset:0;object-fit:cover;display:block;opacity:0;transition:opacity .3s ease;}
.camera-preview-layer.has-image .camera-preview-image {opacity:1;}
.camera-preview-layer::before {content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,16,32,.52),transparent 50%);z-index:1;pointer-events:none;}
.camera-preview-placeholder {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#75869d;font-size:12px;background:linear-gradient(130deg,#eaf0f6,#e0e9f3);}
.camera-preview-layer.has-image .camera-preview-placeholder {display:none;}
.camera-play-btn {position:relative;z-index:4;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 20px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(255,255,255,.95);color:#214c79;font-size:13px;font-weight:750;box-shadow:0 8px 26px rgba(0,0,0,.16);cursor:pointer;transition:background .17s ease,transform .17s ease;}
.camera-play-btn:hover {background:white;transform:scale(1.04);}
.camera-play-btn span {font-size:14px;color:#2471b5;}
.camera-preview-caption {position:absolute;bottom:12px;left:12px;z-index:3;color:white;text-shadow:0 1px 5px rgba(0,0,0,.8);font-size:11px;font-weight:650;}
.camera-card .camera-offline-message:not([hidden]) {z-index:8;}
.camera-card:not(.is-playing) .quality-switch {z-index:4;opacity:.95;}
.camera-card:not(.is-playing) .camera-overlay {display:none;}
.camera-card.is-playing .video-wrap {background:#101a29;}
html[data-theme="daylight"] .camera-card.is-offline .camera-preview-layer {background:#e9eff6;}
html[data-theme="daylight"] .camera-card.is-offline .camera-play-btn {pointer-events:none;opacity:.3;}
html[data-theme="daylight"] .camera-grid[data-density="compact"] .camera-play-btn {padding:7px 13px;gap:6px;font-size:10px;}
html[data-theme="daylight"] .camera-grid[data-density="compact"] .camera-preview-caption {bottom:7px;left:8px;font-size:9px;}
@media(max-width:480px) { .camera-play-btn {padding:9px 15px;font-size:12px;} .camera-preview-caption {font-size:10px;} }

/* Visits and residents reports, classic light admin */
.report-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:16px 0;}
.report-controls label{flex:1 1 200px;min-width:150px;font-weight:650;font-size:12px;}
.report-controls label:first-child:has(select){flex:0 1 175px;}
.report-controls input,.report-controls select{min-height:39px;}
.report-controls .btn{min-height:39px;white-space:nowrap;}
.report-summary{margin-top:16px;margin-bottom:15px;grid-template-columns:repeat(4,minmax(0,1fr));}
.report-summary article{min-width:0;}
.report-summary article strong{font-size:28px;}
.report-info{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 17px;}
.report-breakdowns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:14px 0;}
.report-panel{min-width:0;margin-bottom:14px;overflow:hidden;}
.report-panel h3{font-size:15px;color:var(--text);margin:0 0 13px;}
.report-stat{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px;}
.report-stat:last-child{border-bottom:0;}
.report-stat span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);}
.report-stat b{color:var(--text);font-variant-numeric:tabular-nums;}
.report-daily{display:flex;flex-wrap:wrap;gap:10px;}
.report-day{min-width:68px;background:var(--panel-2);padding:10px;border-radius:9px;text-align:center;display:grid;gap:4px;}
.report-day b{font-size:19px;color:var(--primary);}
.report-day small{color:var(--muted);font-size:11px;}
.report-table-scroll{overflow-x:auto;max-height:70vh;max-width:100%;border-radius:8px;}
.report-table-scroll table{width:100%;min-width:860px;border-collapse:separate;border-spacing:0;background:transparent;}
.report-table-scroll th{position:sticky;top:0;background:var(--panel-2);z-index:2;font-size:11px;text-align:left;color:var(--muted);white-space:nowrap;padding:11px;border-bottom:1px solid var(--line);}
.report-table-scroll td{font-size:12px;vertical-align:top;padding:11px;border-bottom:1px solid var(--line);color:var(--text);}
.report-table-scroll td small{display:block;color:var(--muted);margin-top:4px;}
.report-table-scroll td code{font-size:11px;overflow-wrap:anywhere;}
.report-table-scroll .nowrap{white-space:nowrap;}
.report-table-scroll tr:hover td{background:var(--panel-2);}
@media(max-width:900px){.report-breakdowns{grid-template-columns:1fr;}.report-summary{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.report-controls{display:grid;grid-template-columns:1fr;}.report-controls .btn{width:100%;}.report-summary article strong{font-size:22px;}}
