/* Advantage Log Portal — Aurora 4.2 · full-page visual redesign.
   Presentation only. This file creates no network requests or data mutations. */
:root {--v42-cyan:#20dcfb;--v42-cyan-dim:#71cde5;--v42-line:rgba(46,179,231,.28);--v42-panel:#0b2338;--v42-panel-2:#102e48;--v42-midnight:#06172a;--v42-gradient:linear-gradient(145deg,rgba(19,64,93,.92),rgba(7,30,49,.96) 82%)}
.v42-page {position:relative;max-width:none; padding-bottom:30px;}
.v42-page .v42-hero {position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;min-height:170px;margin:0 0 25px;padding:25px clamp(20px,2.5vw,38px);background:linear-gradient(104deg,#0a304b 0%,#0b2943 46%,#071c36 100%);border:1px solid rgba(34,201,249,.46);border-radius:18px;box-shadow:inset 0 1px rgba(168,238,255,.12),0 21px 58px rgba(0,4,19,.25),0 0 30px rgba(0,169,235,.075);}
.v42-hero::before{content:"";position:absolute;pointer-events:none;z-index:-1;inset:-40% -2% -70% 40%;background:radial-gradient(ellipse at 58% 55%,rgba(10,203,251,.18),transparent 45%),repeating-linear-gradient(114deg,transparent 0 38px,rgba(54,190,244,.035) 39px 40px);mask-image:linear-gradient(90deg,transparent,#000 32%)}
.v42-hero::after{content:"";position:absolute;pointer-events:none;z-index:-1;width:62%;height:140%;right:-12%;bottom:-72%;border-radius:50%;border-top:1px solid rgba(41,215,253,.4);box-shadow:0 -7px 26px rgba(12,162,237,.12);transform:rotate(-12deg)}
.v42-hero-main{display:flex;align-items:center;gap:19px;flex:1 1 380px;min-width:0;max-width:850px}
.v42-hero-emblem{flex:0 0 65px;width:65px;height:65px;display:grid;place-items:center;border:1px solid rgba(15,219,255,.62);border-radius:18px;color:#39e4fa;background:linear-gradient(145deg,rgba(12,152,225,.23),rgba(8,72,114,.37));box-shadow:inset 0 0 22px rgba(21,215,253,.11),0 0 21px rgba(8,186,244,.14)}
.v42-svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v42-mini-svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.v42-hero-copy{min-width:0}.v42-kicker,.v42-overline{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:850;letter-spacing:.15em;text-transform:uppercase;color:#6edff7}.v42-live-dot{display:inline-block;flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#31e4cf;box-shadow:0 0 12px rgba(37,230,201,.5)}
.v42-hero h2{margin:9px 0 5px;font-size:clamp(23px,2.05vw,35px);font-weight:840;line-height:1.1;letter-spacing:-.04em;color:#f6fbff;overflow-wrap:anywhere}
.v42-hero p{margin:0;max-width:680px;color:#a9d0e3;font-size:13px;line-height:1.65}
.v42-hero-metrics{display:flex;align-items:stretch;flex-wrap:wrap;gap:11px;flex:0 1 auto}
.v42-hero-metric,.v42-hero-state{min-width:135px;max-width:245px;padding:13px 16px;border:1px solid rgba(46,174,224,.32);border-radius:12px;background:rgba(4,29,48,.58);box-shadow:inset 0 1px rgba(147,228,255,.05)}
.v42-hero-metric>span,.v42-hero-state-label{display:block;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#94bdd2;font-weight:800}
.v42-hero-metric>strong,.v42-hero-state-value{display:block;margin-top:6px;font-size:clamp(16px,1.2vw,22px);font-weight:840;line-height:1.2;letter-spacing:-.02em;color:#f2fbff;overflow-wrap:anywhere}
.v42-hero-state-value{color:#47f2ca}
.v42-system-health .v42-hero-state-value,.v42-device-profile .v42-hero-state-value{text-transform:capitalize}
.v42-section-line{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:27px 1px 16px;padding-left:13px;border-left:3px solid #15cffa;min-height:49px}
.v42-section-line h3{margin:5px 0 2px;font-size:clamp(18px,1.4vw,24px);line-height:1.12;letter-spacing:-.025em;font-weight:820;color:var(--text)}
.v42-section-line p{margin:6px 0 0;font-size:12px;color:var(--muted)}
.v42-text-link{font-size:12px;font-weight:750;text-decoration:none}
.v42-quiet-chip{display:inline-flex;align-items:center;min-height:32px;padding:7px 13px;border-radius:9px;border:1px solid var(--v42-line);background:rgba(9,69,103,.24);color:#b9def0;font-size:11px}
.v42-page .card{position:relative;min-width:0;background:var(--v42-gradient);border:1px solid rgba(44,152,205,.3);border-radius:15px;box-shadow:inset 0 1px rgba(133,227,254,.045),0 13px 35px rgba(0,4,17,.18);}
.v42-page .card-header{min-height:66px;padding:17px 21px;display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;border-bottom:1px solid rgba(38,159,213,.22);background:linear-gradient(100deg,rgba(15,74,107,.27),rgba(10,44,72,.09));}
.v42-page .card-title{position:relative;display:inline-flex;align-items:center;gap:10px;margin:0;color:#f1faff;font-size:17px;font-weight:810;letter-spacing:-.025em}
.v42-page .card-title::before{content:"";display:inline-block;width:7px;height:18px;background:linear-gradient(#31efff,#078add);box-shadow:0 0 13px rgba(16,208,247,.3);border-radius:2px;flex-shrink:0}
.v42-page .card-body{padding:22px}
.v42-page .muted{color:#a1c0d3}
.v42-page p,.v42-page label{line-height:1.55}
.v42-page input:not([type='checkbox']):not([type='radio']):not([type='hidden']),.v42-page select,.v42-page textarea{min-height:42px;background:rgba(1,21,40,.73);border:1px solid rgba(68,155,203,.43);border-radius:9px;color:#e9f7ff;box-shadow:inset 0 1px 4px rgba(0,0,0,.12)}
.v42-page input:focus,.v42-page select:focus,.v42-page textarea:focus{outline:none;border-color:#22d5fa;box-shadow:0 0 0 3px rgba(15,206,241,.12)}
.v42-page input::placeholder,.v42-page textarea::placeholder{color:#769db5}
.v42-page label{font-size:12px;font-weight:730;letter-spacing:.012em;color:#c6e7f5}
.v42-page .button,.v42-view-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;border:1px solid rgba(0,211,253,.55);border-radius:9px;background:linear-gradient(140deg,#067cbb,#095a98);color:#fff;box-shadow:0 5px 17px rgba(0,133,203,.16);font-size:12px;font-weight:760;text-decoration:none;cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s;}
.v42-page .button:hover,.v42-view-toggle:hover{color:#fff;border-color:#47eaff;box-shadow:0 6px 23px rgba(0,163,234,.2);transform:translateY(-1px)}
.v42-page .button.secondary{background:rgba(8,45,71,.56);border-color:rgba(59,152,204,.43);color:#bfe9f9;box-shadow:none}
.v42-page .table-wrapper{min-width:0;overflow-x:auto;scrollbar-color:rgba(40,161,204,.45) transparent}
.v42-page table{border-collapse:collapse;width:100%;font-size:13px;}
.v42-page thead th{font-size:10px;letter-spacing:.075em;text-transform:uppercase;color:#a6d5e9;background:rgba(15,70,105,.56);padding:14px 16px;white-space:nowrap;border-bottom:1px solid rgba(55,168,222,.29);}
.v42-page td{padding:14px 16px;font-size:13px;color:#d6e9f5;border-bottom:1px solid rgba(69,154,194,.15);}
.v42-page tbody tr:nth-child(even) td{background:rgba(6,29,47,.22)}
.v42-page tbody tr:hover td{background:rgba(5,137,196,.13)}
.v42-page tbody tr:last-child td{border-bottom:0}
.v42-page table a{font-weight:750;text-decoration:none}
.v42-page .status,.v42-page .status-pill,.v42-page .device-status,.v42-page .health-badge{font-size:11px;font-weight:820;border-radius:22px;padding:5px 11px;letter-spacing:.02em}
.v42-page .status-online,.v42-page .status-active,.v42-page .status-on,.v42-page .status-sent,.v42-page .active{background:rgba(17,202,151,.14);border:1px solid rgba(40,221,177,.38);color:#64f5c8}
.v42-page .status-stale,.v42-page .status-skipped{background:rgba(242,180,38,.13);border:1px solid rgba(243,191,77,.35);color:#ffe092}
.v42-page .status-offline,.v42-page .status-inactive,.v42-page .status-failed,.v42-page .status-off,.v42-page .disabled{background:rgba(244,75,106,.14);border:1px solid rgba(245,101,121,.36);color:#ff9fb3}
.v42-page .form-group{margin-bottom:17px}
.v42-page .form-group label{margin-bottom:7px;display:block}
.v42-page .form-card,.v42-page .password-card{max-width:1150px;margin-left:auto;margin-right:auto;overflow:hidden}
.v42-page .password-card{max-width:680px}
.v42-page .form-card .card-body,.v42-page .password-card .card-body{padding:clamp(20px,3vw,38px)}
.v42-page .form-grid{gap:22px;}
.v42-page .form-card .form-group,.v42-page .password-card .form-group{padding:0;}
.v42-page .pagination{gap:10px;flex-wrap:wrap;color:var(--muted)}
/* Devices: a new browsing experience with a real grid/list switch. */
.v42-devices .sources-grid{display:grid;grid-template-columns:repeat(3,minmax(265px,1fr));gap:20px;align-items:stretch}
.v42-devices .source-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:290px;padding:25px 23px 20px;overflow:hidden;border:1px solid rgba(42,172,225,.41);border-radius:16px;background:linear-gradient(145deg,rgba(17,57,87,.95),rgba(7,28,47,.96));box-shadow:0 14px 37px rgba(0,5,20,.20)}
.v42-devices .source-card::before{content:"";position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#06d4fd,rgba(19,214,244,.05) 80%)}
.v42-devices .source-card::after{content:"";position:absolute;pointer-events:none;top:-64px;right:-55px;width:140px;height:140px;border-radius:50%;border:1px solid rgba(22,214,248,.12);box-shadow:0 0 40px rgba(16,171,241,.055)}
.v42-devices .source-card:hover{border-color:rgba(47,217,255,.77);box-shadow:0 13px 37px rgba(0,8,26,.3),0 0 21px rgba(3,169,247,.095)}
.v42-devices .source-card .source-name{font-size:20px;line-height:1.25;letter-spacing:-.03em;overflow-wrap:anywhere}
.v42-devices .source-card .source-name a{color:#edfaff;text-decoration:none}
.v42-devices .source-card .source-ip{font-size:13px;color:#53dafe;text-shadow:none;letter-spacing:0;margin-top:9px}
.v42-devices .source-card .source-ip-icon{color:#30d9ff;filter:none}
.v42-devices .source-card-top{gap:17px;align-items:flex-start}
.v42-devices .source-card .source-metrics{gap:9px;margin-top:22px}
.v42-devices .source-card .metric{border:1px solid rgba(64,150,196,.23);padding:13px 11px;background:rgba(4,27,46,.52);border-radius:10px}
.v42-devices .source-card .metric-label{color:#a0c9dd;font-size:10px;letter-spacing:.06em}
.v42-devices .source-card .metric-value{font-size:clamp(17px,1.4vw,24px);color:#f0f9ff}
.v42-devices .source-card .source-seen{color:#9bbbd1;font-size:12px;border-color:rgba(49,147,198,.24);margin-top:19px}
.v42-devices .source-card .source-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:17px}
.v42-devices .source-card .source-actions .button{font-size:12px;padding:7px 12px;min-height:35px}
.v42-view-toggle{background:rgba(9,53,83,.57);color:#bee8f8;box-shadow:none}
.v42-devices.v42-list-mode .sources-grid{grid-template-columns:1fr;gap:11px}
.v42-devices.v42-list-mode .source-card{min-height:0;display:grid;grid-template-columns:minmax(170px,1fr) minmax(230px,1.2fr) minmax(170px,.9fr);gap:9px 25px;align-items:center}
.v42-devices.v42-list-mode .source-card-top{grid-column:1;grid-row:1/3}
.v42-devices.v42-list-mode .source-metrics{grid-column:2;grid-row:1/3;margin:0}
.v42-devices.v42-list-mode .source-seen{grid-column:3;margin:0;padding:0;border:0}
.v42-devices.v42-list-mode .source-actions{grid-column:3;margin:0;padding:0}
/* Device details: actual calculated statistics, severity and 24-hour volume. */
.v42-device-profile .profile-header{position:relative;overflow:hidden;border:1px solid rgba(23,207,252,.47);padding:28px 30px;background:linear-gradient(122deg,#0d3a58,#09283f 70%,#08253d);box-shadow:0 17px 39px rgba(0,8,22,.22)}
.v42-device-profile .profile-header::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,#29efff,transparent 70%)}
.v42-device-profile .profile-name{font-size:clamp(25px,2.1vw,38px);letter-spacing:-.04em}
.v42-device-profile .profile-ip{font-size:14px;color:#5bddf5}
.v42-device-profile .profile-meta{gap:8px;flex-wrap:wrap}
.v42-device-profile .meta-pill{display:inline-flex;align-items:center;padding:6px 11px;border-radius:22px;border:1px solid rgba(44,172,224,.29);background:rgba(8,88,127,.22);color:#b3e3f4;font-size:11px}
.v42-device-profile .profile-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}
.v42-device-profile .device-status{align-self:flex-start;background:rgba(15,185,151,.13);color:#4af3c5;border:1px solid rgba(34,219,169,.43)}
.v42-device-profile .v42-profile-breadcrumb{display:flex;gap:13px;align-items:center;margin:22px 0 0;font-size:12px;color:#8eb5ca}
.v42-device-profile .v42-profile-breadcrumb strong{color:#e9f8ff;font-weight:760}
.v42-device-profile .statistics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:20px}
.v42-device-profile .statistics-grid .stat-card{min-width:0;position:relative;overflow:hidden;min-height:131px;padding:20px 16px;background:linear-gradient(140deg,rgba(14,71,104,.67),rgba(7,34,56,.95));border-color:rgba(36,182,233,.38)}
.v42-device-profile .statistics-grid .stat-card::after{content:"";position:absolute;right:-24px;bottom:-39px;width:105px;height:105px;border-radius:50%;border:1px solid rgba(22,210,247,.14)}
.v42-device-profile .statistics-grid .stat-label{color:#abcee1;font-size:10px;letter-spacing:.07em;text-transform:uppercase}
.v42-device-profile .statistics-grid .stat-value{margin-top:15px;font-size:clamp(20px,1.55vw,31px);color:#f1fbff}
.v42-device-profile .profile-grid{gap:20px;align-items:start}
.v42-device-profile .detail-list{padding:7px 20px 18px}
.v42-device-profile .detail-row{border-color:rgba(48,149,194,.18);padding:10px 0}
.v42-device-profile .detail-label{color:#95bdd2;font-size:12px}
.v42-device-profile .detail-value{color:#eff8ff;font-size:13px}
.v42-device-profile .severity-line{margin:15px 0}
.v42-device-profile .severity-track{height:11px;background:rgba(6,62,97,.75)}
.v42-device-profile .severity-fill{background:linear-gradient(90deg,#078be0,#19e8ee);box-shadow:0 0 12px rgba(13,199,235,.24)}
.v42-device-profile .activity-bars{height:235px;min-height:235px;background:repeating-linear-gradient(to top,rgba(34,133,181,.13) 0 1px,transparent 1px 52px)}
.v42-device-profile .activity-bar{background:linear-gradient(180deg,#42f1fa,#029ed8 66%,rgba(0,96,177,.40));box-shadow:0 0 10px rgba(11,220,241,.17)}
.v42-device-profile .phone-grid{gap:12px;padding:17px}
.v42-device-profile .phone-item{border:1px solid rgba(54,145,199,.24);border-radius:11px;background:rgba(5,41,65,.45);padding:15px}
.v42-device-profile .table-card{margin-top:20px;overflow:hidden}
.v42-device-profile .severity-badge-small{background:rgba(235,77,105,.13);border:1px solid rgba(238,86,114,.35);color:#ff9baf;border-radius:18px;padding:4px 10px;font-size:11px}
/* Operational health: reliable state cues, not fabricated historical charts. */
.v42-system-health .overall-banner{padding:24px 28px;margin-bottom:21px;border:1px solid rgba(34,217,167,.46);border-radius:15px;background:linear-gradient(100deg,rgba(7,94,77,.46),rgba(5,47,61,.60));color:#bfffe7;box-shadow:inset 0 1px rgba(110,250,204,.12),0 0 20px rgba(3,171,113,.06)}
.v42-system-health .overall-critical{border-color:rgba(245,91,108,.60);background:linear-gradient(100deg,rgba(106,23,43,.53),rgba(41,29,47,.7));color:#ffc3cb}
.v42-system-health .overall-warning{border-color:rgba(239,190,65,.52);background:linear-gradient(100deg,rgba(89,66,20,.50),rgba(40,35,34,.7));color:#ffe7a2}
.v42-system-health .health-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin-bottom:23px}
.v42-system-health .summary-card{overflow:hidden;min-height:135px;padding:20px 16px;background:linear-gradient(155deg,rgba(13,71,102,.80),rgba(9,36,56,.94));border-color:rgba(52,176,220,.40)}
.v42-system-health .summary-card::after{content:"";position:absolute;width:93px;height:93px;right:-40px;bottom:-46px;border:1px solid rgba(28,210,248,.13);border-radius:50%}
.v42-system-health .summary-label{font-size:10px;letter-spacing:.09em;color:#b7d8e7;text-transform:uppercase}
.v42-system-health .summary-value{margin-top:16px;font-size:clamp(20px,1.52vw,30px);font-weight:830;color:#f1faff}
.v42-system-health .health-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}
.v42-system-health .health-card{overflow:hidden}
.v42-system-health .health-card .card-header{min-height:66px}
.v42-system-health .health-badge{display:inline-flex;align-items:center;justify-content:center}
.v42-system-health .resource-bar{height:12px;background:rgba(4,73,109,.49);border-radius:30px;overflow:hidden;margin-top:8px}
.v42-system-health .resource-fill{background:linear-gradient(90deg,#0688df,#18e5ec);box-shadow:0 0 9px rgba(14,225,240,.27);border-radius:30px}
.v42-system-health .health-card .card-body{padding:25px}
/* Retention: deliberate hierarchy and clear destructive-action messaging. */
.v42-retention .retention-grid{display:grid;grid-template-columns:minmax(350px,1fr) minmax(350px,1.1fr);gap:23px}
.v42-retention .retention-grid>.card{min-width:0;overflow:hidden}
.v42-retention .retention-card-body{padding:25px}
.v42-retention .retention-lead{line-height:1.7;font-size:14px;color:#b2d2e2;margin:0 0 23px}
.v42-retention .retention-field{margin:0 0 19px}
.v42-retention .retention-field select{width:100%;max-width:420px;margin-top:9px;font-size:16px;font-weight:760}
.v42-retention .retention-stats{gap:13px}
.v42-retention .retention-stat{min-width:0;padding:19px 17px;border:1px solid rgba(51,159,211,.26);border-radius:12px;background:linear-gradient(145deg,rgba(8,56,86,.6),rgba(6,33,54,.69))}
.v42-retention .retention-stat-label{font-size:11px;color:#a5ccdf;letter-spacing:.04em}
.v42-retention .retention-stat-value{margin-top:10px;font-size:clamp(20px,1.65vw,30px);font-weight:830;color:#f1faff;overflow-wrap:anywhere}
.v42-retention .retention-stat-value.small{font-size:15px}
.v42-retention .retention-stat-note{font-size:11px;color:#8bb5cc;line-height:1.6;margin-top:9px}
.v42-retention .retention-info{padding:16px 19px;margin-top:19px;border:1px solid rgba(60,154,198,.26);border-radius:11px;background:rgba(14,60,87,.25);line-height:1.65;color:#b4d7e8}
.v42-retention .retention-info.warning{border-color:rgba(250,187,69,.38);background:rgba(98,65,18,.21);color:#ffdc9f}
.v42-retention .retention-info.failure{border-color:rgba(247,94,110,.48);background:rgba(110,37,48,.24);color:#ffd0d7}
.v42-retention .retention-confirm{padding:17px 19px;border:1px solid rgba(255,197,84,.37);border-radius:12px;background:rgba(84,55,18,.23);margin:16px 0 17px}
.v42-retention .retention-confirm[hidden]{display:none!important}
.v42-retention .retention-confirm label{color:#ffe2b3}
.v42-retention .retention-submit{min-height:45px;font-weight:800}
.v42-retention .retention-last-updated{color:#9dbed3}
/* Admin/alerts: readable operations tables and action buttons. */
.v42-users .users-card,.v42-audit .audit-card,.v42-email-alerts .table-card,.v42-blocked-ips .blocked-card{overflow:hidden}
.v42-users .users-card table,.v42-audit table,.v42-blocked-ips table,.v42-email-alerts table{min-width:760px}
.v42-audit .audit-filters{gap:15px}
.v42-users .users-card td:first-child,.v42-blocked-ips .blocked-card td:first-child,.v42-audit .audit-card td:first-child{color:#bceeff;font-weight:770}
.v42-blocked-ips .blocked-card .blocked-status{border-radius:15px}
.v42-email-alerts .actions{gap:8px;display:flex;flex-wrap:wrap}
.v42-email-alerts .status-on,.v42-email-alerts .status-sent{color:#58ebc1}
.v42-email-alerts .status-off,.v42-email-alerts .status-failed{color:#ff9eac}
.v42-phones .phone-grid{display:grid;grid-template-columns:repeat(3,minmax(250px,1fr));gap:19px}
.v42-phones .phone-card{position:relative;min-width:0;border:1px solid rgba(53,173,216,.35);border-radius:15px;background:var(--v42-gradient);padding:21px;box-shadow:0 12px 28px rgba(0,4,17,.2)}
.v42-phones .phone-card::before{content:"";position:absolute;left:0;top:0;right:0;height:2px;background:linear-gradient(90deg,#20e3ff,transparent 75%)}
.v42-phones .phone-name{font-size:18px;color:#f1fbff;font-weight:810}
.v42-phones .phone-ip{color:#4fd8f9;font-size:13px}
.v42-phones .phone-details{border-color:rgba(50,163,202,.25)}
.v42-phones .phone-actions{gap:9px}
/* A little polish on the sign-in screen, too — existing auth form is preserved. */
.login-page{background:radial-gradient(circle at 17% 10%,rgba(15,147,211,.28),transparent 40%),radial-gradient(circle at 94% 80%,rgba(5,102,169,.21),transparent 45%),#051728}
.login-page .login-card{width:min(490px,100%);border:1px solid rgba(37,171,221,.49);border-radius:18px;box-shadow:0 24px 66px rgba(0,0,0,.4),0 0 33px rgba(2,158,223,.09);overflow:hidden}
.login-page .login-header{background:linear-gradient(125deg,#082f4e,#071b31);border-bottom:1px solid rgba(44,174,237,.33);padding:37px}
.login-page .login-header h1{font-size:33px;letter-spacing:-.04em}
.login-page .login-header p{color:#afcfe2}
/* Light mode: same hierarchy, not a dark overlay on light cards. */
html[data-theme='light'] .v42-page .v42-hero{background:linear-gradient(120deg,#e3f4ff,#c6e6f8);border-color:rgba(18,133,184,.35);box-shadow:0 12px 35px rgba(15,85,134,.08)}
html[data-theme='light'] .v42-hero h2{color:#0b2d45}
html[data-theme='light'] .v42-hero p{color:#385d73}
html[data-theme='light'] .v42-kicker,html[data-theme='light'] .v42-overline{color:#087da7}
html[data-theme='light'] .v42-hero-metric,html[data-theme='light'] .v42-hero-state{background:rgba(244,253,255,.71);border-color:rgba(32,143,183,.26)}
html[data-theme='light'] .v42-hero-metric>span,html[data-theme='light'] .v42-hero-state-label{color:#477187}
html[data-theme='light'] .v42-hero-metric>strong{color:#0b3552}
html[data-theme='light'] .v42-page .card,html[data-theme='light'] .v42-devices .source-card,html[data-theme='light'] .v42-phones .phone-card{background:linear-gradient(135deg,#fff,#f0f8fe);color:#153647;border-color:rgba(26,117,161,.24);box-shadow:0 12px 28px rgba(10,64,105,.065)}
html[data-theme='light'] .v42-page .card-header{background:linear-gradient(90deg,#e5f4fb,#f5fbff);border-color:#daedf6}
html[data-theme='light'] .v42-page .card-title,html[data-theme='light'] .v42-devices .source-card .source-name a,html[data-theme='light'] .v42-phones .phone-name{color:#173e55}
html[data-theme='light'] .v42-page .muted,html[data-theme='light'] .v42-page .detail-label{color:#52758a}
html[data-theme='light'] .v42-page label{color:#285b75}
html[data-theme='light'] .v42-page td{color:#284f67}
html[data-theme='light'] .v42-page thead th{background:#e3f2f9;color:#346784}
html[data-theme='light'] .v42-page tbody tr:nth-child(even) td{background:rgba(221,239,249,.35)}
html[data-theme='light'] .v42-page tbody tr:hover td{background:rgba(174,222,246,.22)}
html[data-theme='light'] .v42-page input:not([type='checkbox']):not([type='radio']):not([type='hidden']),html[data-theme='light'] .v42-page select,html[data-theme='light'] .v42-page textarea{background:#fff;color:#142d41;border-color:rgba(30,122,171,.36)}
html[data-theme='light'] .v42-devices .source-card .metric,html[data-theme='light'] .v42-retention .retention-stat{background:#f5fbff;border-color:#d1e6f4}
html[data-theme='light'] .v42-devices .source-card .metric-value,html[data-theme='light'] .v42-device-profile .statistics-grid .stat-value,html[data-theme='light'] .v42-system-health .summary-value,html[data-theme='light'] .v42-retention .retention-stat-value{color:#153f5a}
html[data-theme='light'] .v42-retention .retention-lead,html[data-theme='light'] .v42-retention .retention-info{color:#365e73}
html[data-theme='light'] .v42-system-health .overall-banner{background:#e1f7ef;color:#14604b}
html[data-theme='light'] .v42-system-health .overall-critical{background:#fff0f3;color:#a62c43}
html[data-theme='light'] .v42-system-health .overall-warning{background:#fff5dd;color:#936413}
html[data-theme='light'] .v42-device-profile .profile-header{background:linear-gradient(110deg,#def4ff,#eef9ff)}
html[data-theme='light'] .v42-device-profile .profile-name{color:#0a3655}
html[data-theme='light'] .v42-device-profile .profile-ip{color:#066e9d}
html[data-theme='light'] .v42-device-profile .meta-pill{background:#def3fc;color:#0a567d}
/* Responsive first: no page-wide horizontal scrolling. Tables scroll inside cards. */
@media(max-width:1600px){.v42-devices .sources-grid{grid-template-columns:repeat(2,minmax(245px,1fr))}.v42-device-profile .statistics-grid,.v42-system-health .health-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.v42-phones .phone-grid{grid-template-columns:repeat(2,minmax(245px,1fr))}}
@media(max-width:1050px){.v42-page .v42-hero{align-items:flex-start}.v42-hero-metrics{width:100%;flex:1 1 100%}.v42-hero-metric{flex:1 1 150px}.v42-retention .retention-grid,.v42-system-health .health-grid{grid-template-columns:1fr}.v42-devices.v42-list-mode .source-card{display:flex;align-items:stretch}.v42-devices.v42-list-mode .source-metrics{margin-top:16px}}
@media(max-width:720px){.v42-page .v42-hero{padding:21px 18px;gap:16px;min-height:0}.v42-hero-main{flex-basis:100%;align-items:flex-start;gap:13px}.v42-hero-emblem{width:47px;height:47px;flex-basis:47px;border-radius:13px}.v42-svg{width:25px;height:25px}.v42-hero h2{font-size:24px}.v42-hero p{font-size:12px}.v42-hero-metrics{gap:8px}.v42-hero-metric{min-width:0;flex:1 1 120px;padding:10px}.v42-hero-metric strong{font-size:17px}.v42-section-line{margin-top:23px}.v42-devices .sources-grid,.v42-phones .phone-grid{grid-template-columns:1fr}.v42-device-profile .statistics-grid,.v42-system-health .health-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.v42-device-profile .profile-header{padding:18px}.v42-page .card-header{padding:16px}.v42-page .card-body{padding:17px}.v42-retention .retention-card-body{padding:19px}.v42-page .form-grid{grid-template-columns:1fr!important}.v42-page .form-card .card-body{padding:18px}.v42-device-profile .profile-grid{grid-template-columns:1fr}}
@media(max-width:440px){.v42-device-profile .statistics-grid,.v42-system-health .health-summary{grid-template-columns:1fr 1fr}.v42-hero-state{width:100%;max-width:none}.v42-page .button{white-space:normal}.v42-devices .source-card .source-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.v42-devices .source-card .metric{padding:9px}.v42-devices .source-card .metric-value{font-size:16px}}
@media(prefers-reduced-motion:reduce){.v42-page *, .v42-page *::before,.v42-page *::after{animation:none!important;transition:none!important}}
/* Subtle top-right metric rings; override the v4.1 one-pixel neon rule. */
.v42-device-profile .statistics-grid .stat-card::after,.v42-system-health .summary-card::after{top:auto;right:-28px;bottom:-45px;width:105px;height:105px;opacity:.22;background:transparent!important;border:1px solid rgba(38,212,246,.22);border-radius:50%;box-shadow:0 0 22px rgba(10,148,219,.06);pointer-events:none}

/* Status is driven by the real collector/identity state; no false green on warning/error. */
.v42-page .v42-state--warning,.v42-page .v42-state--stale{color:#ffd37a}
.v42-page .v42-state--critical,.v42-page .v42-state--failed,.v42-page .v42-state--blocked,.v42-page .v42-state--offline,.v42-page .v42-state--disabled,.v42-page .v42-state--inactive{color:#ff8da7}
.v42-page .v42-state--unknown,.v42-page .v42-state--never-seen,.v42-page .v42-state--unavailable{color:#b1cadb}
html[data-theme='light'] .v42-page .v42-state--warning{color:#97630e}
html[data-theme='light'] .v42-page .v42-state--critical,html[data-theme='light'] .v42-page .v42-state--blocked,html[data-theme='light'] .v42-page .v42-state--failed{color:#b42f51}
/* Legacy inline three-column search forms need a mobile-specific override. */
@media(max-width:720px){
  .v42-devices .card-body>form[method="get"],
  .v42-blocked-ips .card-body>form[method="get"]{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .v42-devices .card-body>form[method="get"]>*,
  .v42-blocked-ips .card-body>form[method="get"]>*{min-width:0}
}
@media(max-width:720px){
  .v42-device-profile .profile-grid{grid-template-columns:minmax(0,1fr)!important}
  .v42-device-profile .profile-grid>*{min-width:0;max-width:100%}
}
