/* Patrol Scans Theme - visually portable skin. No timing, layout, or logging logic. */
html.ps-theme{--ps-gold:#f4c43d;--ps-deep:#000917;--ps-navy:#07182d;--ps-blue:#0756aa;--ps-silver:#f4f6fa;--ps-green:#0bd184;--ps-red:#e91c36;--ps-fabric:url("texture.svg");}
html.ps-theme body.mode-normal{color:#eff4fb!important;background:linear-gradient(165deg,#06162c 0%,#010914 75%),var(--ps-fabric)!important;}
html.ps-theme body.mode-normal .alarm-clock-frame,html.ps-theme body.mode-normal #alarmClockFrame{background-image:linear-gradient(115deg,rgba(2,15,35,.58),rgba(0,5,12,.73)),var(--ps-fabric)!important;background-color:#06162b!important;border-color:var(--ps-gold)!important;box-shadow:inset 0 2px 0 rgba(255,245,177,.15),0 0 0 1px #6f4c09,0 2px 22px rgba(0,0,0,.5)!important;}
html.ps-theme body.mode-normal .mini:not(.user-mini),html.ps-theme body.mode-normal .panel,html.ps-theme body.mode-normal :is(#history,#settings){background:linear-gradient(145deg,rgba(3,20,44,.72),rgba(0,6,19,.85)),var(--ps-fabric)!important;border-color:#ceab43!important;color:#f1f5ff!important;box-shadow:inset 0 1px 0 rgba(255,241,161,.1)!important;}
html.ps-theme body.mode-normal .clock{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,rgba(0,16,34,.88),rgba(0,12,28,.93)),var(--ps-fabric)!important;border-color:#e0ba48!important;}
html.ps-theme body.mode-normal .clock::before{content:"";position:absolute;inset:2% 8%;background:url("badge.svg") center/contain no-repeat;opacity:.22;z-index:-1;pointer-events:none;}
html.ps-theme body.mode-normal #current,html.ps-theme body.mode-normal .clock-main{color:var(--ps-silver)!important;text-shadow:0 1px 10px rgba(184,207,245,.3)!important;position:relative;z-index:1}
html.ps-theme body.mode-normal #countdown{color:#ffe548!important;text-shadow:0 0 10px rgba(255,195,25,.18)!important}
html.ps-theme body.mode-normal #lastCheckSummary{color:var(--ps-green)!important}
html.ps-theme body.mode-normal :is(.mini,.panel,.alarm-clock-frame,#history,#settings) :is(.label,summary){color:#e9f0f9}
html.ps-theme body.mode-normal .btn{border:1px solid rgba(226,194,101,.65);box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 3px 7px rgba(0,0,0,.33);background-image:linear-gradient(150deg,rgba(255,255,255,.17),transparent 50%,rgba(0,0,0,.32)),var(--ps-fabric);background-color:#10386c;color:#fff}
html.ps-theme body.mode-normal #recordRestart,html.ps-theme body.mode-normal .btn.primary{background-color:#e1ab27!important;color:#101116!important;border-color:#f8d359!important}
html.ps-theme body.mode-normal #stopAlert,html.ps-theme body.mode-normal #reset{background-color:#8f1324!important;border-color:#ff6372!important}
html.ps-theme body.mode-normal #restart{background-color:#222e3c!important;border-color:#8493a6!important}
html.ps-theme body.mode-normal :is(.btn,button):focus-visible{outline:3px solid #fff!important;outline-offset:2px}
html.ps-theme :is(#rcmWebFusionHeader,.rcm-web-header){background:linear-gradient(100deg,rgba(2,10,26,.93),rgba(6,29,59,.92)),var(--ps-fabric)!important;border-bottom:1px solid #b88621!important;}
html.ps-theme .rcm-web-identity{min-width:0;max-width:min(43vw,330px);align-items:center;overflow:hidden}
html.ps-theme .rcm-web-identity .rcm-web-badge{display:none!important}
html.ps-theme .rcm-web-identity .rcm-web-brand{display:block!important;width:min(40vw,330px);height:48px;background:url("header.svg") left center / contain no-repeat!important;}
html.ps-theme .rcm-web-identity .rcm-web-brand > *{visibility:hidden}
html.ps-theme .rcm-web-support-button{border-color:var(--ps-gold)!important;color:#ffe464!important;background:linear-gradient(#071328,#0b1d34)!important}
html.ps-theme #rcmWebFusionNav{border-top:1px solid var(--ps-gold)!important;background:linear-gradient(#081b36,#010817),var(--ps-fabric)!important;}
html.ps-theme #rcmWebFusionNav button{color:#eff2f7!important;border-color:#1c426d!important;background:transparent!important}
html.ps-theme #rcmWebFusionNav button[aria-current="page"]{color:#ffe84d!important;border-bottom:3px solid var(--ps-gold)!important;background:linear-gradient(#174579,#07214b)!important}
html.ps-theme #history table{background:#06182d;color:#eaf3fb}
html.ps-theme #history :is(thead,th){background:#112746;color:#ffe162}
html.ps-theme #history tr:nth-child(2n){background:#0b2747}
html.ps-theme #settings :is(input,select,textarea),html.ps-theme #history :is(input,select){background:#06172d!important;border:1px solid #947a42!important;color:#eef6ff!important}
html.ps-theme .r23-settings-category>summary,html.ps-theme .settings-group>summary{background:linear-gradient(105deg,#18365c,#06192d)!important;color:#f8d463!important;border-bottom:1px solid rgba(244,196,61,.35)!important}
html.ps-theme #rcmWebStopwatchPage{background:var(--ps-navy)}
/* State-critical styling intentionally untouched: mode-warning/mode-expired/alarm overlays must override normal visual skin. */
@media(max-width:520px){html.ps-theme .rcm-web-identity .rcm-web-brand{height:38px;width:min(43vw,235px)}html.ps-theme .rcm-web-identity{max-width:43vw}}
@media(prefers-reduced-motion:reduce){html.ps-theme body,html.ps-theme body *{background-attachment:scroll!important}}
