/* Patrol Scans | Tactical Theme v2
   Opt-in cosmetic skin only. All four patterns are user-supplied CSS recipes
   with corrected W3C SVG namespaces. No timer, tour, alert, log, or layout JS.
   Existing Patrol Scans Theme remains a separate unmodified preset. */

/* The supplied material formulas, available as reusable utility classes. */
.realistic-3d-carbon-fiber{background-color:#13161a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='fiber-grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23fiber-grain)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(45deg,#111113 25%,transparent 25%),
    linear-gradient(-45deg,#111113 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#111113 75%),
    linear-gradient(-45deg,transparent 75%,#111113 75%);background-size:100px 100px,16px 16px,16px 16px,16px 16px,16px 16px;background-position:0 0,0 0,0 0,0 0,0 0;background-repeat:repeat}
.realistic-kevlar{background-color:#13161a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='grit'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23grit)' opacity='0.22'/%3E%3C/svg%3E"),
    linear-gradient(45deg,#22252a 25%,transparent 25%,transparent 75%,#22252a 75%),
    linear-gradient(45deg,#22252a 25%,#18191c 25%,#18191c 75%,#22252a 75%);background-size:100px 100px,10px 10px,10px 10px;background-position:0 0,0 0,5px 5px;background-repeat:repeat}
.realistic-steel-mesh{background-color:#13161a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='metal'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23metal)' opacity='0.15'/%3E%3C/svg%3E"),
    radial-gradient(circle,#26282e 22%,transparent 24%),
    radial-gradient(circle,#26282e 22%,transparent 24%);background-size:100px 100px,6px 6px,6px 6px;background-position:0 0,0 0,3px 3px;background-repeat:repeat}
.realistic-cyber-diagonals{background-color:#13161a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='etch'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23etch)' opacity='0.16'/%3E%3C/svg%3E"),
    repeating-linear-gradient(45deg,transparent 0px,transparent 4px,#212328 4px,#212328 8px);background-size:100px 100px,auto;background-position:0 0,0 0;background-repeat:repeat}
.realistic-smooth{background-color:#13161a;background-image:linear-gradient(145deg,#19191b,#050506);background-size:cover;background-position:center;background-repeat:repeat}

/* Texture tokens are separate from the RCM global user-color/theme settings. */
html.rcm-web-fusion.ps-theme.ps-tactical {
 --ps-tv2-gold:#ecc34f;
 --ps-tv2-dark:#09090b;
 --ps-tv2-carbon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='fiber-grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23fiber-grain)' opacity='0.18'/%3E%3C/svg%3E"),
    linear-gradient(45deg,#111113 25%,transparent 25%),
    linear-gradient(-45deg,#111113 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#111113 75%),
    linear-gradient(-45deg,transparent 75%,#111113 75%);
 --ps-tv2-carbon-size:100px 100px,16px 16px,16px 16px,16px 16px,16px 16px;
 --ps-tv2-carbon-position:0 0,0 0,0 0,0 0,0 0;
 --ps-tv2-kevlar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='grit'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23grit)' opacity='0.22'/%3E%3C/svg%3E"),
    linear-gradient(45deg,#22252a 25%,transparent 25%,transparent 75%,#22252a 75%),
    linear-gradient(45deg,#22252a 25%,#18191c 25%,#18191c 75%,#22252a 75%);
 --ps-tv2-kevlar-size:100px 100px,10px 10px,10px 10px;
 --ps-tv2-kevlar-position:0 0,0 0,5px 5px;
 --ps-tv2-mesh:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='metal'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23metal)' opacity='0.15'/%3E%3C/svg%3E"),
    radial-gradient(circle,#26282e 22%,transparent 24%),
    radial-gradient(circle,#26282e 22%,transparent 24%);
 --ps-tv2-mesh-size:100px 100px,6px 6px,6px 6px;
 --ps-tv2-mesh-position:0 0,0 0,3px 3px;
 --ps-tv2-diagonals:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='etch'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23etch)' opacity='0.16'/%3E%3C/svg%3E"),
    repeating-linear-gradient(45deg,transparent 0px,transparent 4px,#212328 4px,#212328 8px);
 --ps-tv2-diagonals-size:100px 100px,auto;
 --ps-tv2-diagonals-position:0 0,0 0;
 --ps-tv2-smooth:linear-gradient(145deg,#19191b,#050506);
 --ps-tv2-smooth-size:cover;
 --ps-tv2-smooth-position:center;
}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-body="carbon"]{--ps-tv2-body:var(--ps-tv2-carbon);--ps-tv2-body-size:var(--ps-tv2-carbon-size);--ps-tv2-body-position:var(--ps-tv2-carbon-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-body="kevlar"]{--ps-tv2-body:var(--ps-tv2-kevlar);--ps-tv2-body-size:var(--ps-tv2-kevlar-size);--ps-tv2-body-position:var(--ps-tv2-kevlar-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-body="mesh"]{--ps-tv2-body:var(--ps-tv2-mesh);--ps-tv2-body-size:var(--ps-tv2-mesh-size);--ps-tv2-body-position:var(--ps-tv2-mesh-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-body="diagonals"]{--ps-tv2-body:var(--ps-tv2-diagonals);--ps-tv2-body-size:var(--ps-tv2-diagonals-size);--ps-tv2-body-position:var(--ps-tv2-diagonals-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-body="smooth"]{--ps-tv2-body:var(--ps-tv2-smooth);--ps-tv2-body-size:var(--ps-tv2-smooth-size);--ps-tv2-body-position:var(--ps-tv2-smooth-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-panels="carbon"]{--ps-tv2-panels:var(--ps-tv2-carbon);--ps-tv2-panels-size:var(--ps-tv2-carbon-size);--ps-tv2-panels-position:var(--ps-tv2-carbon-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-panels="kevlar"]{--ps-tv2-panels:var(--ps-tv2-kevlar);--ps-tv2-panels-size:var(--ps-tv2-kevlar-size);--ps-tv2-panels-position:var(--ps-tv2-kevlar-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-panels="mesh"]{--ps-tv2-panels:var(--ps-tv2-mesh);--ps-tv2-panels-size:var(--ps-tv2-mesh-size);--ps-tv2-panels-position:var(--ps-tv2-mesh-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-panels="diagonals"]{--ps-tv2-panels:var(--ps-tv2-diagonals);--ps-tv2-panels-size:var(--ps-tv2-diagonals-size);--ps-tv2-panels-position:var(--ps-tv2-diagonals-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-panels="smooth"]{--ps-tv2-panels:var(--ps-tv2-smooth);--ps-tv2-panels-size:var(--ps-tv2-smooth-size);--ps-tv2-panels-position:var(--ps-tv2-smooth-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-clock="carbon"]{--ps-tv2-clock:var(--ps-tv2-carbon);--ps-tv2-clock-size:var(--ps-tv2-carbon-size);--ps-tv2-clock-position:var(--ps-tv2-carbon-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-clock="kevlar"]{--ps-tv2-clock:var(--ps-tv2-kevlar);--ps-tv2-clock-size:var(--ps-tv2-kevlar-size);--ps-tv2-clock-position:var(--ps-tv2-kevlar-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-clock="mesh"]{--ps-tv2-clock:var(--ps-tv2-mesh);--ps-tv2-clock-size:var(--ps-tv2-mesh-size);--ps-tv2-clock-position:var(--ps-tv2-mesh-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-clock="diagonals"]{--ps-tv2-clock:var(--ps-tv2-diagonals);--ps-tv2-clock-size:var(--ps-tv2-diagonals-size);--ps-tv2-clock-position:var(--ps-tv2-diagonals-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-clock="smooth"]{--ps-tv2-clock:var(--ps-tv2-smooth);--ps-tv2-clock-size:var(--ps-tv2-smooth-size);--ps-tv2-clock-position:var(--ps-tv2-smooth-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-controls="carbon"]{--ps-tv2-controls:var(--ps-tv2-carbon);--ps-tv2-controls-size:var(--ps-tv2-carbon-size);--ps-tv2-controls-position:var(--ps-tv2-carbon-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-controls="kevlar"]{--ps-tv2-controls:var(--ps-tv2-kevlar);--ps-tv2-controls-size:var(--ps-tv2-kevlar-size);--ps-tv2-controls-position:var(--ps-tv2-kevlar-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-controls="mesh"]{--ps-tv2-controls:var(--ps-tv2-mesh);--ps-tv2-controls-size:var(--ps-tv2-mesh-size);--ps-tv2-controls-position:var(--ps-tv2-mesh-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-controls="diagonals"]{--ps-tv2-controls:var(--ps-tv2-diagonals);--ps-tv2-controls-size:var(--ps-tv2-diagonals-size);--ps-tv2-controls-position:var(--ps-tv2-diagonals-position)}
html.rcm-web-fusion.ps-theme.ps-tactical[data-ps-tx-controls="smooth"]{--ps-tv2-controls:var(--ps-tv2-smooth);--ps-tv2-controls-size:var(--ps-tv2-smooth-size);--ps-tv2-controls-position:var(--ps-tv2-smooth-position)}

/* Carbon-fiber equipment housing and slim gold/steel edge treatments. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal {
 background-color:#080d17!important;
 background-image:linear-gradient(135deg,rgba(4,12,26,.50),rgba(3,9,21,.73)),var(--ps-tv2-body)!important;
 background-size:cover,var(--ps-tv2-body-size)!important;
 background-position:center,var(--ps-tv2-body-position)!important;
 background-blend-mode:normal,normal!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionHeader {
 background-color:#091222!important;
 background-image:linear-gradient(180deg,rgba(15,27,45,.55),rgba(4,8,16,.80)),var(--ps-tv2-body)!important;
 background-size:cover,var(--ps-tv2-body-size)!important;
 background-position:center,var(--ps-tv2-body-position)!important;
 border-bottom:1px solid #c59d37!important;
 box-shadow:inset 0 -2px 0 rgba(255,218,100,.13),0 3px 13px #0009!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame {
 border-color:#e7bc4d!important;
 background-color:#091525!important;
 background-image:linear-gradient(145deg,rgba(8,17,29,.67),rgba(0,5,15,.80)),var(--ps-tv2-body)!important;
 background-size:cover,var(--ps-tv2-body-size)!important;
 background-position:center,var(--ps-tv2-body-position)!important;
 box-shadow:inset 0 0 0 1px rgba(255,227,114,.20),0 0 0 1px #0a1424,0 8px 24px #0009,0 0 11px rgba(228,170,43,.15)!important;
}
/* User panel is kept borderless, as in the approved Lite layout. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.user-mini {
 border-color:transparent!important;
 background-color:#122039!important;
 background-image:linear-gradient(135deg,rgba(19,48,80,.70),rgba(3,14,31,.82)),var(--ps-tv2-body)!important;
 background-size:cover,var(--ps-tv2-body-size)!important;
 background-position:center,var(--ps-tv2-body-position)!important;
}
/* Kevlar countdown + next-check panels; never cover their text or indicators. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini) {
 border:2px solid #cba540!important;
 background-color:#12151c!important;
 background-image:linear-gradient(155deg,rgba(2,15,31,.48),rgba(1,9,21,.76)),var(--ps-tv2-panels)!important;
 background-size:cover,var(--ps-tv2-panels-size)!important;
 background-position:center,var(--ps-tv2-panels-position)!important;
 box-shadow:inset 0 0 0 1px rgba(255,231,136,.17),inset 0 7px 15px rgba(0,0,0,.46),0 2px 8px #0008!important;
}
/* Steel-mesh inner clock: preserve the approved photographic badge watermark. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock {
 border-color:#e5bb4b!important;
 background-color:#0c1521!important;
 background-image:linear-gradient(155deg,rgba(3,15,32,.47),rgba(2,10,23,.72)),var(--ps-tv2-clock)!important;
 background-size:cover,var(--ps-tv2-clock-size)!important;
 background-position:center,var(--ps-tv2-clock-position)!important;
 box-shadow:inset 0 0 0 1px rgba(255,216,110,.22),inset 0 0 23px #000b,0 0 14px #e3a93627!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock::before {
 opacity:.49!important;
 filter:brightness(.69) saturate(1.07)!important;
}
/* Subtle recessed accent: green Last Check remains singular and easily read. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #betaLastCheck {
 text-shadow:0 2px 5px #000b!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #betaLastCheck b {
 color:#39f18b!important;
 text-shadow:0 0 7px #063c27,0 2px 5px #000d!important;
}
/* Etched-metal button materials; the same two functional buttons remain. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #quickActionsMount .btn {
 border-width:2px!important;
 border-radius:12px!important;
 box-shadow:inset 0 2px 2px rgba(255,255,255,.22),inset 0 -7px 13px #0007,0 3px 9px #0008!important;
 background-size:cover,var(--ps-tv2-controls-size)!important;
 background-position:center,var(--ps-tv2-controls-position)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="patrolCheck"][data-ps-tour="ready"] {
 color:#1f1604!important;
 background-color:#d9a129!important;
 background-image:linear-gradient(155deg,rgba(255,233,126,.93),rgba(220,144,15,.90) 70%,rgba(136,78,5,.94)),var(--ps-tv2-controls)!important;
 border-color:#ffe079!important;
 text-shadow:none!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="patrolCheck"][data-ps-tour="active"] {
 color:#fff!important;
 background-color:#0654a2!important;
 background-image:linear-gradient(155deg,rgba(42,160,240,.90),rgba(4,65,131,.89) 70%,rgba(3,28,68,.96)),var(--ps-tv2-controls)!important;
 border-color:#63b9ff!important;
 text-shadow:0 2px 3px #000a!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #quickActionsMount .btn[data-ps-action="stopAudio"] {
 color:#fff!important;
 background-color:#9b132a!important;
 background-image:linear-gradient(155deg,rgba(241,45,67,.90),rgba(138,13,37,.89) 65%,rgba(84,5,18,.96)),var(--ps-tv2-controls)!important;
 border-color:#ff6477!important;
 text-shadow:0 2px 3px #000b!important;
}
/* Existing nav collapsed/expanded toggle continues to work unchanged. */
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionNav {
 background-color:#081221!important;
 background-image:linear-gradient(180deg,rgba(5,16,33,.76),rgba(2,9,20,.92)),var(--ps-tv2-controls)!important;
 background-size:cover,var(--ps-tv2-controls-size)!important;
 background-position:center,var(--ps-tv2-controls-position)!important;
 border-top:1px solid #b48a31!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionNav button[aria-current="page"] {
 box-shadow:inset 0 -3px 0 #f4c63e!important;
}
/* In-app settings and history retain native RCM sizing and scroll behavior. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal :is(#history,#settings,#psThemeLibrary) {
 background-color:#0b1729!important;
 background-image:linear-gradient(145deg,rgba(5,14,29,.76),rgba(1,8,20,.87)),var(--ps-tv2-body)!important;
 background-size:cover,var(--ps-tv2-body-size)!important;
 background-position:center,var(--ps-tv2-body-position)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionHeader .rcm-web-support-button {
 background-image:linear-gradient(155deg,rgba(7,16,30,.85),rgba(6,31,59,.77)),var(--ps-tv2-controls)!important;
 background-size:cover,var(--ps-tv2-controls-size)!important;
 background-position:center,var(--ps-tv2-controls-position)!important;
}
/* Theme Library previews + independent per-zone controls. */
.ps-theme-preview.tactical-v2 {
 border-color:#dcb74d;
 background-color:#101820;
 background-image:linear-gradient(135deg,rgba(4,10,20,.40),rgba(4,10,20,.70)),repeating-linear-gradient(45deg,#141619 0px,#141619 3px,#32353a 3px,#32353a 6px);
}
#psTacticalTextureControls {display:none;margin:14px 0 2px;padding:12px;border:1px solid #a88637;border-radius:10px;background:linear-gradient(145deg,#0c1624,#111d2c)}
html.ps-tactical #psTacticalTextureControls {display:block}
#psTacticalTextureControls h3 {font-size:15px;margin:0 0 5px;color:#f8da77}
#psTacticalTextureControls p {font-size:12px;line-height:1.45;margin:0 0 12px;color:#c9d7e8}
#psTacticalTextureControls .ps-texture-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}
#psTacticalTextureControls label {display:grid;gap:5px;font-size:12px;font-weight:700;color:#eaf0f8}
#psTacticalTextureControls select {min-width:0;width:100%;color:#f5f7fb;background:#102944;border:1px solid #b08b3e;border-radius:7px;padding:9px;font:inherit;cursor:pointer}
#psTacticalTextureControls .ps-tx-reset {margin-top:13px;padding:8px 11px;background:#152b48;color:#ffdd75;border:1px solid #a98537;border-radius:8px;cursor:pointer;font-weight:700}
#psTacticalTextureControls select:focus-visible,#psTacticalTextureControls .ps-tx-reset:focus-visible {outline:3px solid white;outline-offset:2px}
@media(prefers-reduced-motion:reduce){html.ps-tactical *{scroll-behavior:auto}}

/* Tactical BLACK finish | v2.1
   The four woven/perforated/etched CSS patterns remain unchanged. The housing,
   panel lighting and settings are neutral black/charcoal rather than navy blue.
   Only meaningful actions keep yellow/blue/red, and the Last Check stays green.
   This block is intentionally limited to the opt-in Tactical preset. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal {
  background-color:#030304!important;
  background-image:linear-gradient(135deg,rgba(0,0,0,.53),rgba(0,0,0,.75)),var(--ps-tv2-body)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionHeader {
  background-color:#050506!important;
  background-image:linear-gradient(180deg,rgba(28,28,30,.48),rgba(0,0,0,.86)),var(--ps-tv2-body)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame {
  background-color:#080809!important;
  background-image:linear-gradient(145deg,rgba(19,19,21,.55),rgba(0,0,0,.74)),var(--ps-tv2-body)!important;
  box-shadow:inset 0 0 0 1px rgba(255,227,114,.14),0 0 0 1px #121214,0 8px 24px #000c,0 0 10px rgba(228,170,43,.10)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.user-mini {
  background-color:#0c0c0e!important;
  background-image:linear-gradient(135deg,rgba(29,29,31,.45),rgba(2,2,3,.84)),var(--ps-tv2-body)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini) {
  background-color:#0d0d0f!important;
  background-image:linear-gradient(155deg,rgba(26,26,28,.30),rgba(0,0,0,.70)),var(--ps-tv2-panels)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock {
  background-color:#080809!important;
  background-image:linear-gradient(155deg,rgba(24,24,26,.31),rgba(0,0,0,.59)),var(--ps-tv2-clock)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionNav {
  background-color:#050506!important;
  background-image:linear-gradient(180deg,rgba(26,26,28,.53),rgba(0,0,0,.82)),var(--ps-tv2-controls)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionNav button[aria-current="page"] {
  background-image:linear-gradient(180deg,rgba(60,54,41,.46),rgba(5,5,6,.78)),var(--ps-tv2-controls)!important;
  color:#f7d869!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal :is(#history,#settings,#psThemeLibrary) {
  background-color:#0c0c0e!important;
  background-image:linear-gradient(145deg,rgba(20,20,22,.59),rgba(0,0,0,.83)),var(--ps-tv2-body)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebFusionHeader .rcm-web-support-button {
  background-color:#09090b!important;
  background-image:linear-gradient(155deg,rgba(27,27,29,.57),rgba(0,0,0,.80)),var(--ps-tv2-controls)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #psTacticalTextureControls {
  background:linear-gradient(145deg,#151516,#070708)!important;
  border-color:#a88637!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #psTacticalTextureControls select {
  background:#171719!important;
  color:#f5f5f5!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #psTacticalTextureControls .ps-tx-reset {
  background:#191919!important;
}
/* Match the preview swatch to the true black palette (not the old blue tint). */
.ps-theme-preview.tactical-v2 {
  background-color:#070708;
  background-image:linear-gradient(135deg,rgba(0,0,0,.10),rgba(0,0,0,.55)),repeating-linear-gradient(45deg,#0c0c0e 0px,#0c0c0e 3px,#303033 3px,#303033 6px);
}

/* Black + metallic gold: the user's gradient-border recipe, adapted so it does
   NOT overwrite the independently selectable carbon/Kevlar/mesh textures.
   A masked gradient rim is mounted as an aria-hidden span over existing cards.
   No buttons, timers, or badge artwork are replaced. */
.ps-gold-rim {display:none}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame,
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini),
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock {
 position:relative!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal .ps-gold-rim {
 display:block!important;
 position:absolute!important;
 inset:0!important;
 z-index:6!important;
 border-radius:inherit!important;
 padding:3px!important;
 box-sizing:border-box!important;
 background:linear-gradient(135deg,
   #ffe082 0%,#b2893c 25%,#f5d061 50%,#684a14 75%,#f5d061 100%)!important;
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0)!important;
 -webkit-mask-composite:xor!important;
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0)!important;
 mask-composite:exclude!important;
 pointer-events:none!important;
 user-select:none!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini)>.ps-gold-rim {
 padding:2.5px!important;
}
/* The subtle two-step shadows form a metallic highlight and recessed interior,
   without altering any actual border width, layout box or background-image. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame {
 box-shadow:inset 0 1px 1px rgba(255,237,168,.32),
   inset 0 -4px 10px rgba(0,0,0,.72),
   0 0 0 1px #4e3718,0 2px 6px rgba(255,224,130,.14),0 8px 24px #000c!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini) {
 box-shadow:inset 0 2px 3px rgba(255,241,184,.23),
   inset 0 -7px 12px rgba(0,0,0,.73),
   0 1px 4px rgba(255,224,130,.12)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock {
 box-shadow:inset 0 2px 3px rgba(255,241,184,.20),
   inset 0 0 18px rgba(0,0,0,.74),
   0 1px 8px rgba(255,224,130,.13)!important;
}

/* Tactical Black v2.2 — tighter chrome bezel, silver username, black entry.
   All rules are cosmetic and opt-in to the .ps-tactical skin. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal main.app {
 background-color:#070708!important;
}
/* Eliminate navy gaps from older mobile portrait background rules. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top {
 background:transparent!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #quickSlot {
 background:transparent!important;
}
/* Reflective metallic gold in ~2px total, not two separate bright gold rings.
   Border itself is thin bronze; the inset overlay provides narrow chrome
   specular reflections without disturbing card backgrounds. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame,
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini),
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock {
 border:1px solid #705025!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal .ps-gold-rim {
 padding:1.25px!important;
 background:linear-gradient(135deg,
   #ffe69a 0%,#fff7d2 10%,#b98328 23%,#f9d66c 37%,
   #624010 57%,#f7d681 74%,#865319 88%,#edc55f 100%)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame>.top>.mini:not(.user-mini)>.ps-gold-rim {
 padding:1.25px!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #clock>.ps-gold-rim {
 padding:1.25px!important;
}
/* Silver instead of gold for USER 1. The small dropdown chevron stays gold. */
html.rcm-web-fusion.ps-theme.ps-tactical body.mode-normal #alarmClockFrame #quickUser {
 color:#dce0e6!important;
 -webkit-text-fill-color:#dce0e6!important;
 text-shadow:0 1px 0 rgba(255,255,255,.25),0 3px 4px rgba(0,0,0,.85)!important;
}
/* Real carbon twill on the 4-second splash, including the SVG fiber grain. */
html.rcm-web-fusion.ps-theme.ps-tactical #psStartupSplash {
 background-color:#060607!important;
 background-image:radial-gradient(circle at 50% 45%,rgba(31,31,34,.34),rgba(0,0,0,.79) 80%),var(--ps-tv2-carbon)!important;
 background-size:cover,var(--ps-tv2-carbon-size)!important;
 background-position:center,var(--ps-tv2-carbon-position)!important;
 background-repeat:no-repeat,repeat!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #psStartupSplash button {
 background:linear-gradient(165deg,#29282a,#0a0a0d)!important;
 color:#f5eddf!important;
 border:1px solid #bf9544!important;
}
/* Replace the old coffee photograph with patrol-emblem art.
   The image is the real app's badge (not a new illustration).
   Carbon remains behind it; the dialog is black/gold throughout. */
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog {
 border:1.5px solid #d0a853!important;
 background-color:#0b0b0d!important;
 background-image:linear-gradient(145deg,rgba(13,13,15,.75),rgba(0,0,0,.89)),var(--ps-tv2-carbon)!important;
 background-size:cover,var(--ps-tv2-carbon-size)!important;
 box-shadow:0 22px 65px #000d,inset 0 0 0 1px rgba(252,227,151,.12)!important;
 color:#f5f3ed!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog::backdrop {
 background:rgba(0,0,0,.84)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero {
 background-color:#09090b!important;
 background-image:
   linear-gradient(90deg,rgba(3,3,5,.96) 0%,rgba(9,9,11,.82) 48%,rgba(1,1,2,.23) 100%),
   url("assets/badge-tools.webp"),
   var(--ps-tv2-carbon)!important;
 background-position:center,right 12px center,0 0!important;
 background-size:cover,clamp(116px,30vw,161px) auto,var(--ps-tv2-carbon-size)!important;
 background-repeat:no-repeat,no-repeat,repeat!important;
 border-bottom:1px solid #b88d37!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero-brand {
 left:11px!important;right:43px!important;top:12px!important;
 width:max-content!important;max-width:calc(100% - 62px)!important;
 white-space:normal!important;text-align:left!important;
 color:#f5d57c!important;
 background:rgba(15,15,16,.86)!important;
 border-color:#a47a2f!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero-title {
 left:15px!important;right:35%!important;bottom:16px!important;
 text-align:left!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero-title>span {
 color:#d9dce3!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero-title h2 {
 font-size:clamp(22px,6vw,29px)!important;
 color:#ffe16e!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-close {
 border-color:#d8ac57!important;
 background:rgba(10,10,12,.89)!important;
 color:white!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-body {
 background-color:#0c0c0e!important;
 background-image:linear-gradient(145deg,rgba(17,17,19,.83),rgba(1,1,2,.92)),var(--ps-tv2-carbon)!important;
 background-size:cover,var(--ps-tv2-carbon-size)!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-perks {
 border-color:#6b5125!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog :is(.rcm-welcome-lead,.rcm-welcome-perks span) {
 color:#e7e7e9!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-ask {
 color:#c6c7cb!important;
}
/* Donations remain visible and optional, without forcing a coffee photo. */
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-tip,
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-kofi {
 background:linear-gradient(165deg,#2a292a,#111113)!important;
 border-color:#b88d3e!important;
 color:#f0e8d5!important;
}
html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-enter {
 background:linear-gradient(175deg,#ffe989,#e6b72b)!important;
 border-color:#fff0a8!important;
 color:#16120b!important;
}
@media(max-width:490px){
 html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero{
  height:clamp(150px,23dvh,187px)!important;
  background-position:center,right 7px center,0 0!important;
  background-size:cover,clamp(112px,29vw,140px) auto,var(--ps-tv2-carbon-size)!important;
 }
 html.rcm-web-fusion.ps-theme.ps-tactical #rcmWebWelcomeDialog .rcm-welcome-hero-title{
  right:35%!important;bottom:11px!important;
 }
}
