/* Patrol Scans Action Theme Proof — REAL image-backed skin.
   Materials and UI treatments from the accepted proof package.
   Never change timer logic, layout sizes, flex order, display positions or alert semantics. */
html.rcm-web-fusion.ps-theme {
  --ps-image-gold:#f4c63e;
  --ps-image-navy:#06152b;
  --ps-image-fabric:url("assets/fabric-honeycomb.webp");
  --ps-image-badge:url("assets/badge-tools.webp");
}
/* The real source wordmark — no faux HTML lettering or hand-drawn SVG. */
html.rcm-web-fusion.ps-theme #rcmWebFusionHeader .rcm-web-brand,
html.rcm-web-fusion.ps-theme .rcm-web-identity .rcm-web-brand {
  background:url("assets/patrol-scans-wordmark.png") left center / contain no-repeat!important;
  background-color:transparent!important;
  border:0!important;
}
html.rcm-web-fusion.ps-theme .rcm-web-identity .rcm-web-badge{display:none!important;}
html.rcm-web-fusion.ps-theme body.mode-normal {
  background-image:linear-gradient(140deg,rgba(2,9,21,.90),rgba(2,10,28,.87)),var(--ps-image-fabric)!important;
  background-size:cover,340px 340px!important;
  background-attachment:scroll!important;
}
/* Actual nylon/mesh materials behind functional RCM panels, no repositioning. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame {
  border-color:#edc34d!important;
  background-image:linear-gradient(128deg,rgba(2,10,24,.84),rgba(4,27,56,.71) 45%,rgba(1,8,18,.88)),var(--ps-image-fabric)!important;
  background-size:cover,380px 380px!important;
  box-shadow:inset 0 0 0 1px #7d571d,0 0 0 1px #071225,0 0 21px rgba(240,173,30,.30),0 11px 28px rgba(0,0,0,.48)!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini) {
  background-image:linear-gradient(145deg,rgba(3,23,49,.86),rgba(1,10,26,.94)),var(--ps-image-fabric)!important;
  background-size:cover,320px 320px!important;
  border-color:#eabc44!important;
  box-shadow:inset 0 0 0 1px rgba(255,214,94,.21),inset 0 7px 18px rgba(0,0,0,.36),0 0 11px rgba(226,181,65,.17)!important;
}
/* User area deliberately has no gold outline. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame>.top>.user-mini {
  background-image:linear-gradient(135deg,rgba(17,59,111,.66),rgba(2,14,34,.85)),var(--ps-image-fabric)!important;
  background-size:cover,290px 290px!important;
  border-color:transparent!important;
}
/* Approved badge behind the live clock — no numbers baked into any image. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #clock {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-color:#eec749!important;
  background-image:linear-gradient(125deg,rgba(0,12,30,.88),rgba(2,23,47,.82) 48%,rgba(0,9,22,.91)),var(--ps-image-fabric)!important;
  background-size:cover,370px 370px!important;
  box-shadow:inset 0 0 0 1px rgba(246,220,113,.19),inset 0 0 24px rgba(0,0,0,.55),0 0 13px rgba(240,191,58,.20)!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #clock::before {
  content:"";
  position:absolute;
  inset:1% 2%;
  background:var(--ps-image-badge) center / contain no-repeat!important;
  opacity:.57!important;
  filter:brightness(.75) saturate(1.12);
  pointer-events:none;
  z-index:-1;
}
/* Static, decorative cinematic lighting. It cannot intercept clicks. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #clock::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.72;
  background:
    radial-gradient(ellipse 95px 5px at 12% 38%,rgba(198,244,255,.8),transparent 86%),
    radial-gradient(circle 9px at 12% 38%,rgba(255,255,255,.95),rgba(0,143,255,.4) 60%,transparent),
    linear-gradient(90deg,transparent 3%,rgba(30,155,255,.6) 13%,transparent 38%) left 38%/100% 2px no-repeat,
    radial-gradient(ellipse 90px 5px at 88% 48%,rgba(255,129,138,.7),transparent 85%),
    radial-gradient(circle 9px at 88% 48%,rgba(255,255,255,.95),rgba(255,32,54,.55) 60%,transparent),
    linear-gradient(90deg,transparent 60%,rgba(255,29,47,.66) 89%,transparent) left 48%/100% 2px no-repeat;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #clock :is(.label,#current,#ampm,.last-check-caption,#lastCheckCurrent,#lastCheckClock) {
  position:relative;
  z-index:1;
}
/* White/silver main clock, always high contrast; keep runtime font fitting intact. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #current {
  color:var(--ps-current-time-color,#f7f8ff)!important;
  text-shadow:0 0 5px rgba(255,255,255,.37),0 3px 11px rgba(0,0,0,.93)!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #countdown {
  color:var(--ps-countdown-color,#ffdf38)!important;
  text-shadow:0 1px 7px rgba(0,0,0,.7)!important;
}
/* RCM moves the live digit element between responsive slots. Keep silver
   across both big-clock and compact placements; do not affect painted glyphs. */
html.rcm-web-fusion.ps-theme body.mode-normal #current:not(.rcm-digit-painted) {
  color:var(--ps-current-time-color,#f7f8ff)!important;
  -webkit-text-fill-color:var(--ps-current-time-color,#f7f8ff)!important;
}
/* Preserve actual warning-red alarm states; normal Next Check red is a theme default. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #next {
  color:var(--ps-next-color,#f33249)!important;
  text-shadow:0 2px 8px rgba(0,0,0,.75)!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame :is(.last-check-caption,.last-check-value) .last-check-time,
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #lastCheckSummary strong {
  color:#11df87!important;
}
/* Proof's TEXTURED BUTTON FACES on existing live buttons. Avoid pseudo masks and
   avoid invisible overlays: text and event handlers remain exactly as before. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn,
html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents .btn {
  color:#ffffff!important;
  background-color:#073c78!important;
  background-image:linear-gradient(150deg,rgba(7,114,208,.78),rgba(0,19,55,.87)),var(--ps-image-fabric)!important;
  background-size:cover,260px 260px!important;
  background-blend-mode:normal,multiply!important;
  border-color:#419bdf!important;
  box-shadow:inset 0 2px 2px rgba(255,255,255,.20),inset 0 -8px 16px rgba(0,0,0,.38),0 3px 9px rgba(0,0,0,.54)!important;
  text-shadow:0 1px 3px rgba(0,0,0,.82)!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="recordRestart"],
html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents #recordRestart {
  background-color:#d19b1c!important;
  background-image:linear-gradient(132deg,rgba(255,237,113,.96),rgba(212,144,9,.89)),var(--ps-image-fabric)!important;
  border-color:#ffe286!important;
  color:#201406!important;
  text-shadow:none!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="stopAudio"],
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="stopAlert"],
html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents :is(#stopAlert,#reset) {
  background-color:#a00e22!important;
  background-image:linear-gradient(132deg,rgba(235,24,49,.89),rgba(100,8,23,.92)),var(--ps-image-fabric)!important;
  border-color:#fa596c!important;
  color:white!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn:active,
html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents .btn:active {
  transform:translateY(2px);
  box-shadow:0 2px 4px rgba(0,0,0,.75)!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn:focus-visible,
html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents .btn:focus-visible {
  outline:3px solid white!important;outline-offset:2px!important;
}
/* Match the proof's tactile texture across tabs without hiding controls. */
html.rcm-web-fusion.ps-theme #rcmWebFusionHeader {
  background-image:linear-gradient(180deg,rgba(4,18,39,.85),rgba(2,8,21,.9)),var(--ps-image-fabric)!important;
  background-size:cover,310px 310px!important;
}
html.rcm-web-fusion.ps-theme #rcmWebFusionNav {
  background-image:linear-gradient(180deg,rgba(5,23,49,.87),rgba(1,9,23,.92)),var(--ps-image-fabric)!important;
  background-size:cover,270px 270px!important;
}
html.rcm-web-fusion.ps-theme #rcmWebFusionNav button[aria-current="page"] {
  color:#ffdf42!important;
  background-image:linear-gradient(180deg,rgba(17,59,111,.80),rgba(2,16,39,.85)),var(--ps-image-fabric)!important;
  box-shadow:inset 0 -3px 0 #f4c63e!important;
}
html.rcm-web-fusion.ps-theme body.mode-normal :is(#history,#settings,#psThemeLibrary) {
  background-image:linear-gradient(145deg,rgba(8,33,67,.86),rgba(1,12,29,.92)),var(--ps-image-fabric)!important;
  background-size:cover,320px 320px!important;
}
html.rcm-web-fusion.ps-theme #rcmWebFusionHeader .rcm-web-support-button {
  background-image:linear-gradient(155deg,rgba(0,7,20,.89),rgba(8,38,73,.84)),var(--ps-image-fabric)!important;
  border-color:#eac046!important;
  box-shadow:inset 0 0 0 1px rgba(255,223,119,.20),0 3px 10px rgba(0,0,0,.55)!important;
}
/* Do not alter widths/heights/breakpoints of established desktop/portrait layout. */
/* v1.0.3: reduce visual bulk of the actual logo asset without rebuilding it.
   Screen blend makes its black matte disappear against the dark navy header. */
html.rcm-web-fusion.ps-theme #rcmWebFusionHeader .rcm-web-identity .rcm-web-brand{
  width:min(22vw,208px)!important;
  max-width:100%!important;
  height:39px!important;
  background-size:contain!important;
  background-color:transparent!important;
  mix-blend-mode:normal;
}
@media(max-width:600px){
  html.rcm-web-fusion.ps-theme #rcmWebFusionHeader.rcm-web-header{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    justify-content:initial!important;
    column-gap:3px!important;
    padding-inline:7px!important;
  }
  html.rcm-web-fusion.ps-theme #rcmWebFusionHeader .rcm-web-identity{
    min-width:0!important;
    max-width:100%!important;
    width:100%;
    justify-self:start;
    overflow:hidden;
  }
  html.rcm-web-fusion.ps-theme #rcmWebFusionHeader .rcm-web-identity .rcm-web-brand{
    width:100%!important;
    max-width:140px!important;
    height:34px!important;
    flex:none;
    border:0!important;
    border-radius:0!important;
  }
  html.rcm-web-fusion.ps-theme #rcmWebFusionHeader #rcmWebSupportButton{
    justify-self:center!important;
    margin:0!important;
    text-align:center;
    min-width:0;
  }
  html.rcm-web-fusion.ps-theme #rcmWebFusionHeader #rcmWebLiveDate{
    justify-self:end!important;
    text-align:right;
    min-width:0;
  }
}

@media(prefers-reduced-motion:reduce){
  html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn,
  html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents .btn {transition:none!important}
}

/* v1.0.6 Tour states: yellow ready, blue active; Stop Audio remains red. */
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="patrolCheck"][data-ps-tour="ready"],html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents #recordRestart[data-ps-tour="ready"]{background-color:#e3a71d!important;background-image:linear-gradient(135deg,#fff274,#e9aa14 72%,#a86709),var(--ps-image-fabric)!important;border-color:#ffe37d!important;color:#201500!important;text-shadow:none!important}
html.rcm-web-fusion.ps-theme body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="patrolCheck"][data-ps-tour="active"],html.rcm-web-fusion.ps-theme body.mode-normal #actionsContents #recordRestart[data-ps-tour="active"]{background-color:#0753a5!important;background-image:linear-gradient(145deg,#1d91e9,#054381 72%,#051e41),var(--ps-image-fabric)!important;border-color:#54b8ff!important;color:white!important;text-shadow:0 1px 3px #00152c!important}
