/* FOSHEPTIC visual tokens */

:root {
  /* 100% Pure Pitch Black */
  --bg-black: #000000;
  --bg-surface: #050507;
  --bg-card: rgba(8, 8, 11, 0.82);
  --bg-card-hover: rgba(14, 14, 19, 0.95);
  --bg-inner: #020203;

  /* Crisp White Elements (High Contrast & Sharp Details) */
  --white-pure: #ffffff;
  --white-soft: #f8fafc;
  --white-slate: #e2e8f0;
  --border-white-subtle: rgba(255, 255, 255, 0.14);
  --border-white-bright: rgba(255, 255, 255, 0.45);
  --border-white-glow: rgba(255, 255, 255, 0.7);

  /* Metallic reflective accents; legacy variable names remain for compatibility. */
  --red-accent: #d3d9e2;
  --red-hover: #edf1f7;
  --red-glow: rgba(205, 215, 230, 0.5);
  --red-glow-strong: rgba(205, 215, 230, 0.72);
  --primary-color: var(--red-accent);
  --accent-color: #ffffff;
  --glow-color: var(--red-glow);
  --btn-gradient: linear-gradient(135deg, #647080 0%, #d3d9e2 50%, #303844 100%);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --space-card: clamp(1.25rem, 2vw, 2rem);
}

* {
  box-sizing: border-box;
}

html, body {
  background-color: var(--bg-black, var(--bg-pitch, #000000)) !important;
  color: var(--white-pure);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  selection-background-color: var(--primary-color);
}

::selection {
  background: var(--primary-color);
  color: #ffffff;
}

/* Custom Ultra-Dark Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black, #000000);
}
::-webkit-scrollbar-thumb {
  background: #222226;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Typography */
.font-mono-cyber {
  font-family: var(--font-mono);
}
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

/* ----------------------------------------------------
   GLASS CARDS WITH WHITE SPECULAR & RED MOUSE SPOTLIGHT
---------------------------------------------------- */
.glass-card, .tilt-card {
  background: rgba(8, 8, 11, 0.96);
  border: 1px solid var(--border-white-subtle);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.22), /* Crisp Top White Specular Line */
    0 20px 50px -10px rgba(0, 0, 0, 0.95);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

/* Red Spotlight following inside cards */
.glass-card::before, .tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(205, 215, 230, 0.18) 0%,
    rgba(255, 255, 255, 0.08) 25%,
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.glass-card:hover::before, .tilt-card:hover::before {
  opacity: 1;
}

.glass-card:hover, .tilt-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 2px 0 rgba(255, 255, 255, 0.35),
              0 20px 50px -10px rgba(0, 0, 0, 0.95),
              0 0 18px var(--glow-color);
}

.glass-card > *, .tilt-card > * {
  position: relative;
  z-index: 3;
}

/* ----------------------------------------------------
   HIGH-CONTRAST WHITE BUTTONS & SHIMMER
---------------------------------------------------- */
.btn-shimmer-white {
  position: relative;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.6);
  border: 1px solid #ffffff;
}

.btn-shimmer-white::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 50%,
    transparent 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: left 0.55s ease, opacity 0.25s ease;
}

.btn-shimmer-white:hover::after {
  left: 140%;
}

.btn-shimmer-white:hover {
  background: #f4f4f5;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.45), 0 8px 24px var(--glow-color);
}

.btn-shimmer-white:active {
  transform: translateY(0);
}

/* Crisp White-Bordered Dark Glass Button */
.btn-white-glass {
  background: rgba(14, 14, 18, 0.92);
  border: 1px solid var(--border-white-subtle);
  color: #ffffff;
  font-weight: 600;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn-white-glass:hover {
  background: rgba(24, 24, 32, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 
    inset 0 1px 2px 0 rgba(255, 255, 255, 0.3),
    0 0 20px var(--glow-color);
}

.btn-white-glass:active {
  transform: translateY(0);
}

/* ----------------------------------------------------
   SMOOTH ROUNDED GLOWING CARD (ROUNDED AURA, NO SHARP STICKS)
---------------------------------------------------- */
.border-beam-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: none;
  border: 1.5px solid var(--primary-color);
  border-radius: 22px;
  box-shadow: 0 0 18px var(--glow-color),
              inset 0 1px 2px 0 rgba(255, 255, 255, 0.3);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  overflow: visible !important;
}

/* ----------------------------------------------------
   BOOK-PAGE FLIP TRANSITION FOR PRIVACY & POLICIES
---------------------------------------------------- */
.book-flip-container {
  position: relative;
  width: 100%;
  overflow-x: clip;
}

.book-page-view {
  width: 100%;
  backface-visibility: visible;
}

/* Preserve the existing view-switch class hooks without 3D transforms. */
.page-flip-turn-out {
  opacity: 0;
  pointer-events: none;
}

.page-flip-turn-in {
  animation: view-fade-in 420ms ease-out both;
}

.page-flip-back-out {
  opacity: 0;
  pointer-events: none;
}

.page-flip-back-in {
  animation: view-fade-in 420ms ease-out both;
}

@keyframes view-fade-in {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.book-spine-effect {
  position: relative;
  box-shadow: inset 18px 0 35px -15px rgba(0, 0, 0, 0.9), inset 1px 0 0 0 rgba(255, 255, 255, 0.15);
}

/* ----------------------------------------------------
   LASER SCANNER ANIMATION
---------------------------------------------------- */
@keyframes laser-sweep {
  0% {
    top: 0%;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.laser-scanner-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--glow-color) 15%, var(--primary-color) 50%, var(--glow-color) 85%, transparent 100%);
  box-shadow: 0 0 16px var(--primary-color), 0 0 5px #ffffff;
  pointer-events: none;
  animation: laser-sweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  z-index: 15;
}

/* ----------------------------------------------------
   AUDIO EQUALIZER MINI VISUALIZER
---------------------------------------------------- */
.eq-bar {
  width: 2.5px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 12px; animation-delay: 0.25s; }
.eq-bar:nth-child(3) { height: 16px; animation-delay: 0.05s; }
.eq-bar:nth-child(4) { height: 8px; animation-delay: 0.3s; }

@keyframes eq-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.3); }
}

/* ----------------------------------------------------
   SCROLL REVEAL & HOVER GLOWS
---------------------------------------------------- */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
}

/* Interactive Click Sparks */
.click-spark {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--primary-color);
  box-shadow: 0 0 14px var(--primary-color), 0 0 4px #ffffff;
  pointer-events: none;
  animation: spark-fade 0.45s ease-out forwards;
  z-index: 999999;
}

@keyframes spark-fade {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* Badges with White and Red Details */
.badge-clean {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.badge-detected {
  background: rgba(205, 215, 230, 0.14);
  border: 1px solid rgba(205, 215, 230, 0.55);
  color: #edf1f7;
  box-shadow: 0 0 16px rgba(205, 215, 230, 0.28);
}

.badge-suspicious {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 320px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-white-subtle);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), 0 20px 45px rgba(0, 0, 0, 0.95), 0 0 25px rgba(205, 215, 230, 0.24);
  color: #fff;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Verified compatibility: keyboard focus, modal bounds and reduced motion. */
:focus-visible{outline:2px solid var(--primary-color);outline-offset:4px}
[role=dialog]{overflow-y:auto;max-height:100dvh}
#pin-modal-content,#client-scanner-modal>div,#checkout-modal>div,#wallet-modal>div,#key-login-screen>div{max-height:calc(100dvh - 2rem);overflow-y:auto;overscroll-behavior:contain}
dialog::backdrop{background:rgba(0,0,0,.8);backdrop-filter:blur(8px)}
/* Native confirmation dialogs stay centered in the viewport at every scroll position. */
dialog[data-dashboard-action], dialog[data-dashboard-action][data-pointer-glow]:hover {
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  width: min(28rem, calc(100vw - 2rem)) !important;
  max-height: calc(100dvh - 2rem) !important;
  overflow: auto;
  overscroll-behavior: contain;
  transform: none !important;
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
main .grid>div,main input{min-width:0}
@media(max-width:640px){main p,main h1{overflow-wrap:anywhere}}
@media(max-width:640px){header>div{gap:.5rem}header a .text-xl{font-size:1rem}header .gap-3{gap:.375rem}header button{flex-shrink:0}header a>div>p,header a>div>div>span:nth-child(2),#btn-sound-toggle{display:none}header a{flex-shrink:0}#radar-canvas{opacity:.25}}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
}

/* Consistent interaction states and compact mobile feedback. */
body.overflow-x-hidden { overflow-x: clip; }
button:not(:disabled), a[href] { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .58; }
input, button, a { font-family: inherit; }
.toast-item { max-width: min(420px, calc(100vw - 32px)); }
@media (max-width: 640px) {
  #toast-container { right: 16px; bottom: 16px; left: 16px; }
  .toast-item { min-width: 0; width: 100%; }
  .book-page-view { padding-inline: 1rem; }
}

/* Header alignment: balanced side columns keep navigation crisp across wide languages. */
.site-header-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-header-layout > :first-child { justify-self: start; min-width: 0; flex-shrink: 0; }
.site-header-nav { display: none; flex-wrap: nowrap; min-width: 0; }
.site-header-nav a,
.site-header-nav button {
  white-space: nowrap;
  flex-shrink: 0;
}
.site-header-actions { justify-self: end; }
.site-header-actions > button,
.site-header-actions > a {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .site-header-layout {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 0.75rem;
  }

  .site-header-nav {
    display: flex;
    justify-self: center;
    align-items: center;
    gap: 0.25rem;
  }

  .site-header-actions {
    flex-wrap: nowrap;
    gap: 0.55rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .site-header-nav {
    font-size: 0.6875rem;
    gap: 0.15rem;
  }

  .site-header-nav a,
  .site-header-nav button {
    padding-inline: 0.6rem;
    padding-block: 0.45rem;
  }

  .site-header-actions {
    gap: 0.4rem;
  }
}

/* Equal-height pricing cards with one shared, restrained interaction state. */
.pricing-plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1.5px solid var(--border-white-subtle);
  background: rgba(8, 8, 11, 0.96);
  box-shadow: none;
  transform: none;
  animation: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pricing-plan > h3 { min-height: 2.5rem; }
.pricing-plan > p:last-of-type { min-height: 4.75rem; }
.plan-summary { margin: 1.25rem 0 1rem; color: var(--white-slate); font-size: .875rem; line-height: 1.7; }
@media (min-width: 1024px) { .pricing-plan > .plan-summary { min-height: 6rem; } }
.plan-features { display: grid; gap: .625rem; margin: 0 0 1.75rem; padding: 0; list-style: none; color: var(--white-slate); font-size: .8125rem; line-height: 1.6; }
.plan-features li { display: flex; align-items: baseline; gap: .625rem; }
.plan-features li::before { content: '✓'; color: #edf1f7; flex-shrink: 0; }

.pricing-plan .plan-select-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: auto;
  border: 1px solid var(--border-white-subtle);
  border-radius: 0.75rem;
  background: rgba(14, 14, 18, 0.85);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.pricing-plan .plan-select-button > * { color: inherit; }

.pricing-plan:focus-within {
  border-color: var(--border-hover, rgba(205,215,230,.58));
  box-shadow: 0 0 18px var(--glow-color);
}

.pricing-plan:focus-within .plan-select-button {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

@media (hover: hover) and (pointer: fine) {
  .pricing-plan:hover {
    border-color: var(--border-hover, rgba(205,215,230,.58));
    box-shadow: 0 0 18px var(--glow-color);
  }

  .pricing-plan:hover .plan-select-button {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-plan,
  .pricing-plan .plan-select-button { transition: none; }
}

/* Single-key login overlay keeps the landing page visible behind it. */
.key-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(3px);
}
.key-login-overlay:not(.hidden) { display: flex; }
.key-login-card {
  position: relative;
  width: min(100%, 28rem);
  padding: clamp(1.5rem, 5vw, 2rem);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 1.25rem;
  background: rgba(8,8,11,.96);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.2), 0 24px 80px rgba(0,0,0,.65);
}
.key-login-close {
  position: absolute;
  top: .85rem;
  right: .9rem;
  width: 2rem;
  height: 2rem;
  border-radius: .6rem;
  color: white;
  background: rgba(255,255,255,.08);
}
.key-login-card input { min-height: 3rem; }
/* Long-form policy page: quiet type scale, clear hierarchy, no book-spine effect. */
.policy-shell { max-width: 72rem; margin-inline: auto; }
.policy-header { padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.policy-updated { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.5rem; color: #a3a3a3; font-size: .75rem; }
.policy-title { max-width: 54rem; margin-top: 2rem; }
.policy-eyebrow { color: #e2e8f0; font-family: var(--font-mono); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.policy-title h1 { margin-top: .6rem; color: white; font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; }
.policy-title > p:last-child { max-width: 48rem; margin-top: 1rem; color: #c7c7cd; font-size: .98rem; line-height: 1.8; }
.policy-layout { display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); margin-top: 2.5rem; align-items: start; }
.policy-toc-desktop { position: sticky; top: 6rem; padding: 1.1rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(8,8,11,.72); }
.policy-toc-desktop > p { margin: 0 0 .7rem; color: white; font-size: .82rem; font-weight: 800; }
.policy-toc-desktop nav, .policy-toc-mobile nav { display: grid; gap: .15rem; }
.policy-toc-desktop a, .policy-toc-mobile a { padding: .5rem .55rem; border-radius: .5rem; color: #b8b8bf; font-size: .75rem; line-height: 1.45; text-decoration: none; transition: color .18s ease, background-color .18s ease; }
.policy-toc-desktop a:hover, .policy-toc-mobile a:hover { color: white; background: rgba(255,255,255,.08); }
.policy-toc-mobile { display: none; margin-top: 1.5rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.13); border-radius: .9rem; background: rgba(8,8,11,.72); }
.policy-toc-mobile summary { color: white; font-size: .85rem; font-weight: 800; cursor: pointer; }
.policy-toc-mobile nav { margin-top: .75rem; }
.policy-content { min-width: 0; color: #c7c7cd; }
.policy-content section { scroll-margin-top: 6rem; padding: 0 0 1.7rem; margin: 0 0 1.7rem; border-bottom: 1px solid rgba(255,255,255,.11); }
.policy-content h2 { margin: 0 0 .85rem; color: white; font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 850; line-height: 1.35; }
.policy-content p { margin: .7rem 0 0; color: #c7c7cd; font-size: .9rem; line-height: 1.85; }
.policy-reference a { color: #cbd5e1; text-decoration: underline; text-underline-offset: 3px; }
.policy-return { padding-top: .4rem; }
@media (max-width: 850px) {
  .policy-layout { display: block; margin-top: 0; }
  .policy-toc-desktop { display: none; }
  .policy-toc-mobile { display: block; }
  .policy-content { margin-top: 2rem; }
}

/* Premium seat stepper follows the active theme tokens. */
.premium-seat-picker { display: grid; grid-template-columns: 1fr; gap: .65rem; margin: .25rem 0 1.25rem; padding: .85rem; border: 1px solid rgba(255,255,255,.13); border-radius: .9rem; background: rgba(0,0,0,.55); }
.premium-seat-heading { display: flex; justify-content: space-between; gap: .75rem; color: #9ca3af; font-family: var(--font-mono); font-size: .61rem; font-weight: 800; letter-spacing: .08em; }
.premium-seat-controls { display: grid; grid-template-columns: 2.2rem 1fr 2.2rem; align-items: center; gap: .6rem; }
.premium-seat-controls button { width: 2.2rem; height: 2.2rem; border: 1px solid rgba(255,255,255,.18); border-radius: .55rem; color: white; background: rgba(255,255,255,.07); font-size: 1.1rem; font-weight: 800; }
.premium-seat-controls button:hover:not(:disabled) { border-color: rgba(205,215,230,.58); background: rgba(205,215,230,.13); }
.premium-seat-controls button:disabled { opacity: .38; }
.premium-seat-controls strong { color: white; text-align: center; font-family: var(--font-mono); font-size: .95rem; }
.premium-seat-summary { margin: 0; color: #a3a3a3; font-size: .72rem; line-height: 1.6; }
.premium-seat-summary strong { color: #cbd5e1; font-family: var(--font-mono); }

/* Optional Snow palette. The default root tokens now render the metallic theme. */
:root[data-theme="snow"] {
  --bg-pitch: #060c16;
  --bg-surface: #0b1322;
  --bg-card: rgba(14,25,45,.86);
  --border-subtle: rgba(56,189,248,.15);
  --border-hover: rgba(56,189,248,.55);
  --primary-color: #38bdf8;
  --accent-color: #e0f2fe;
  --glow-color: rgba(56,189,248,.3);
  --btn-gradient: linear-gradient(135deg,#0284c7 0%,#38bdf8 50%,#0369a1 100%);
  --bg-black: var(--bg-pitch);
  --bg-card-hover: rgba(19,35,60,.96);
  --bg-inner: #08101e;
  --border-white-subtle: var(--border-subtle);
  --border-white-bright: var(--border-hover);
  --border-white-glow: rgba(125,211,252,.72);
  --red-accent: var(--primary-color);
  --red-hover: #7dd3fc;
  --red-glow: var(--glow-color);
  --red-glow-strong: rgba(56,189,248,.48);
}

html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

html, body { background-color: var(--bg-black, var(--bg-pitch, #000)) !important; }
html[data-theme="snow"], html[data-theme="snow"] body { background-color: var(--bg-pitch) !important; }
html[data-theme="snow"] body { color: var(--accent-color); transition: background-color .18s ease, color .18s ease; }
html[data-theme="snow"] body::selection, html[data-theme="snow"] body[class*="selection:bg"]::selection { color: #06111e; background: #7dd3fc; }

/* Snow canvas is inert in Metallic and when motion is reduced. */
#snowCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; display: none; transform: translate3d(0,0,0); will-change: opacity; transition: opacity .25s ease; }
html[data-theme="snow"] #snowCanvas { display: block; opacity: 1; }
@media (prefers-reduced-motion: reduce) { #snowCanvas { display: none !important; } }

/* Recolor reusable page surfaces and common Tailwind utility surfaces. */
html[data-theme="snow"] .bg-black,
html[data-theme="snow"] [class~="bg-black"] { background-color: var(--bg-pitch) !important; }
html[data-theme="snow"] [class*="bg-black/"] { background-color: rgba(11,19,34,.9) !important; }
html[data-theme="snow"] header.sticky { background-color: rgba(11,19,34,.94) !important; border-color: var(--border-subtle) !important; }
html[data-theme="snow"] .glass-card,
html[data-theme="snow"] .tilt-card,
html[data-theme="snow"] .pricing-plan,
html[data-theme="snow"] .key-login-card { background: var(--bg-card) !important; border-color: var(--border-subtle); box-shadow: 0 18px 48px rgba(0,0,0,.32); }
html[data-theme="snow"] .glass-card:hover,
html[data-theme="snow"] .tilt-card:hover,
html[data-theme="snow"] .pricing-plan:hover { background: var(--bg-card-hover) !important; border-color: var(--border-hover) !important; box-shadow: 0 0 24px var(--glow-color); }
html[data-theme="snow"] .border-beam-card { border-color: var(--border-hover); box-shadow: 0 0 18px var(--glow-color), inset 0 1px 2px rgba(224,242,254,.16); }
html[data-theme="snow"] [class*="bg-white/"] { background-color: rgba(56,189,248,.07) !important; }
html[data-theme="snow"] [class*="border-white/"] { border-color: var(--border-subtle) !important; }
html[data-theme="snow"] [class*="border-red-"]:not(.badge-detected):not([role="alert"]):not([aria-invalid="true"]) { border-color: var(--border-hover) !important; }
html[data-theme="snow"] [class*="text-red-"]:not(.badge-detected):not([role="alert"]):not([aria-invalid="true"]) { color: #7dd3fc !important; }
html[data-theme="snow"] [class*="bg-red-"]:not(.badge-detected):not([role="alert"]):not([aria-invalid="true"]) { background-color: rgba(56,189,248,.14) !important; }
html[data-theme="snow"] [class*="from-red-"] { --tw-gradient-from: #0284c7 var(--tw-gradient-from-position) !important; --tw-gradient-to: rgba(2,132,199,0) var(--tw-gradient-to-position) !important; }
html[data-theme="snow"] [class*="via-rose-"] { --tw-gradient-stops: var(--tw-gradient-from), #38bdf8 var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
html[data-theme="snow"] .text-transparent.bg-clip-text { background-image: linear-gradient(90deg,#0284c7 0%,#38bdf8 52%,#e0f2fe 100%) !important; }
html[data-theme="snow"] .glass-card::before,
html[data-theme="snow"] .tilt-card::before { background: radial-gradient(480px circle at var(--mouse-x,50%) var(--mouse-y,50%),rgba(56,189,248,.18) 0%,rgba(224,242,254,.06) 25%,transparent 65%); }
html[data-theme="snow"] .glass-card:hover,
html[data-theme="snow"] .tilt-card:hover { box-shadow: inset 0 1px 2px rgba(224,242,254,.14), 0 20px 50px -10px rgba(0,0,0,.75), 0 0 18px var(--glow-color); }
html[data-theme="snow"] .btn-shimmer-white,
html[data-theme="snow"] button[class*="from-red-"],
html[data-theme="snow"] a[class*="from-red-"] { color: #04111e !important; background: var(--btn-gradient) !important; border-color: rgba(125,211,252,.7) !important; box-shadow: 0 0 20px var(--glow-color); }
html[data-theme="snow"] .btn-shimmer-white:hover,
html[data-theme="snow"] button[class*="from-red-"]:hover,
html[data-theme="snow"] a[class*="from-red-"]:hover { filter: brightness(1.08); box-shadow: 0 0 28px var(--glow-color); }
html[data-theme="snow"] .btn-shimmer-white,
html[data-theme="snow"] button[class*="from-red-"],
html[data-theme="snow"] a[class*="from-red-"],
html[data-theme="snow"] .btn-white-glass:hover,
html[data-theme="snow"] .theme-toggle:hover,
html[data-theme="snow"] .pricing-plan:focus-within .plan-select-button,
html[data-theme="snow"] .pricing-plan:hover .plan-select-button { background-image: linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.2)), var(--btn-gradient) !important; }
html[data-theme="snow"] .btn-white-glass,
html[data-theme="snow"] .theme-toggle { color: var(--accent-color) !important; background: rgba(14,25,45,.8); border-color: var(--border-subtle); }
html[data-theme="snow"] .btn-white-glass:hover,
html[data-theme="snow"] .theme-toggle:hover { color: #06111e !important; background: var(--btn-gradient); border-color: var(--border-hover); }
html[data-theme="snow"] .pricing-plan:focus-within { border-color: var(--border-hover); box-shadow: 0 0 18px var(--glow-color); }
html[data-theme="snow"] .pricing-plan:focus-within .plan-select-button,
html[data-theme="snow"] .pricing-plan:hover .plan-select-button { color: #04111e; background: var(--btn-gradient); border-color: rgba(125,211,252,.7); }
html[data-theme="snow"] .plan-features li::before { color: var(--primary-color); }
html[data-theme="snow"] input:not([type="hidden"]),
html[data-theme="snow"] textarea,
html[data-theme="snow"] select { color: var(--accent-color); background-color: rgba(8,16,30,.95); border-color: var(--border-subtle); }
html[data-theme="snow"] :focus-visible { outline-color: var(--primary-color); }
html[data-theme="snow"] ::selection { color: #06111e; background: #7dd3fc; }
html[data-theme="snow"] ::-webkit-scrollbar-track { background: var(--bg-pitch); }
html[data-theme="snow"] ::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }
html[data-theme="snow"] .policy-eyebrow,
html[data-theme="snow"] .policy-reference a { color: #7dd3fc; border-color: var(--border-hover); }
html[data-theme="snow"] .key-login-overlay { background: rgba(6,9,18,.46); }
html[data-theme="snow"] .toast-item { background: rgba(14,25,45,.94); border-color: var(--border-subtle); box-shadow: inset 0 1px 1px rgba(224,242,254,.14), 0 20px 45px rgba(0,0,0,.8), 0 0 24px var(--glow-color); }
html[data-theme="snow"] .laser-scanner-line { background: linear-gradient(90deg,transparent 0%,rgba(56,189,248,.38) 15%,#38bdf8 50%,rgba(56,189,248,.38) 85%,transparent 100%); box-shadow: 0 0 16px #38bdf8, 0 0 5px #e0f2fe; }
html[data-theme="snow"] .click-spark { background: #38bdf8; box-shadow: 0 0 14px #38bdf8, 0 0 4px #e0f2fe; }
html[data-theme="snow"] .premium-seat-controls button:hover:not(:disabled) { border-color: var(--border-hover); background: rgba(56,189,248,.18); }
html[data-theme="snow"] .policy-toc-desktop,
html[data-theme="snow"] .policy-toc-mobile { background: rgba(11,19,34,.88); border-color: var(--border-subtle); }
html[data-theme="snow"] .premium-seat-picker { background: rgba(11,19,34,.86); border-color: var(--border-subtle); }
html[data-theme="snow"] #download-error,
html[data-theme="snow"] .toast-item .text-red-500 { color: #f87171 !important; }

.theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; padding: .5rem .7rem; border: 1px solid var(--border-white-subtle); border-radius: .75rem; color: white; background: rgba(255,255,255,.06); font-size: .72rem; font-weight: 800; white-space: nowrap; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.theme-toggle [data-theme-icon] { display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: 0 0 auto; font-size: 1rem; line-height: 1; }
@media (max-width: 640px) { .theme-toggle { width: 2.5rem; padding-inline: .55rem; } .theme-toggle [data-theme-label] { display: none; } }


/* Metallic theme defaults and cursor-directed edge light */
:root { --edge-glow-rgb: 210, 220, 235; }
html[data-theme="metallic"] { --red-accent: #d3d9e2; --red-hover: #f1f5f9; --red-glow: rgba(190, 205, 225, .28); --red-glow-strong: rgba(220, 230, 245, .55); --primary-color: #d3d9e2; --glow-color: var(--red-glow); --btn-gradient: linear-gradient(135deg,#596273 0%,#d8dee8 48%,#7d8797 100%); --edge-glow-rgb: 210, 220, 235; }
html[data-theme="metallic"] [class*="text-red-"] { color: #dce2eb !important; }
html[data-theme="metallic"] [class*="bg-red-"], html[data-theme="metallic"] [class*="bg-rose-"] { background-color: rgba(190,200,215,.14) !important; }
html[data-theme="metallic"] [class*="border-red-"], html[data-theme="metallic"] [class*="border-rose-"] { border-color: rgba(205,215,230,.46) !important; }
html[data-theme="metallic"] [class*="from-red-"], html[data-theme="metallic"] [class*="from-rose-"] { --tw-gradient-from: #778293 var(--tw-gradient-from-position) !important; --tw-gradient-to: rgba(119,130,147,0) var(--tw-gradient-to-position) !important; }
html[data-theme="metallic"] [class*="via-rose-"] { --tw-gradient-stops: var(--tw-gradient-from), #e2e8f0 var(--tw-gradient-via-position), var(--tw-gradient-to) !important; }
html[data-theme="metallic"] [class*="to-red-"], html[data-theme="metallic"] [class*="to-rose-"] { --tw-gradient-to: #596273 var(--tw-gradient-to-position) !important; }

[data-pointer-glow] { --glow-x: 50%; --glow-y: 50%; --mouse-x: var(--glow-x); --mouse-y: var(--glow-y); --glow-active: 0; isolation: isolate; }
[data-glow-position="static"] { position: relative; }
[data-pointer-glow]:not(.btn-shimmer-white)::after, [data-pointer-glow].btn-shimmer-white::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: var(--glow-active); background: radial-gradient(150px circle at var(--glow-x) var(--glow-y), rgba(var(--edge-glow-rgb),.95), rgba(var(--edge-glow-rgb),.16) 42%, transparent 76%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .12s ease; z-index: 8; }
/* Native controls cannot draw pseudo-elements, so reveal the edge glow between two background layers. */
input[data-pointer-glow], select[data-pointer-glow], textarea[data-pointer-glow] { border-color: transparent !important; --glow-surface: rgba(8,8,11,.96); background-image: linear-gradient(var(--glow-surface),var(--glow-surface)), radial-gradient(150px circle at var(--glow-x) var(--glow-y),rgba(var(--edge-glow-rgb),var(--glow-active)),rgba(var(--edge-glow-rgb),calc(var(--glow-active) * .16)) 42%,transparent 76%), linear-gradient(var(--border-subtle,var(--border-white-subtle)),var(--border-subtle,var(--border-white-subtle))); background-origin: padding-box,border-box,border-box; background-clip: padding-box,border-box,border-box; }
html[data-theme="snow"] input[data-pointer-glow], html[data-theme="snow"] select[data-pointer-glow], html[data-theme="snow"] textarea[data-pointer-glow] { --glow-surface: rgba(8,16,30,.95); }
html[data-theme="snow"] { --edge-glow-rgb: 56, 189, 248; }
@media (hover: none), (prefers-reduced-motion: reduce) { [data-pointer-glow]:not(.btn-shimmer-white)::after, [data-pointer-glow].btn-shimmer-white::before { opacity: 0 !important; } [data-pointer-glow]:focus-visible { outline: 2px solid rgba(var(--edge-glow-rgb),.78); outline-offset: 2px; } }

html[data-theme="snow"] [class*="shadow-[0_0_10px_rgba(205,215,230,0.24)"],
html[data-theme="snow"] [class*="shadow-[0_0_30px_rgba(205,215,230,0.28)"],
html[data-theme="snow"] [class*="shadow-[0_0_90px_rgba(205,215,230,0.24)"] { --tw-shadow: 0 0 20px rgba(56,189,248,.3) !important; box-shadow: var(--tw-shadow) !important; }



/* Keep labels readable on reflective metal and reserve the bright edge for the cursor. */
html[data-theme="metallic"] button[class*="from-red-"], html[data-theme="metallic"] a[class*="from-red-"] { color: #080b10 !important; background: linear-gradient(135deg,#9da7b6 0%,#e9edf4 50%,#9aa4b3 100%) !important; }



/* Machined chrome edges: a fine bright bevel, dark groove, and separate cursor glint. */
.glass-card, .tilt-card, .pricing-plan, .key-login-card,
.btn-white-glass, .btn-shimmer-white, .theme-toggle, .plan-select-button,
input:not([type="hidden"]), select, textarea {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44), inset 0 0 0 1px rgba(5,7,10,.92), 0 0 0 1px rgba(115,128,145,.72), 0 1px 2px rgba(0,0,0,.9);
}
.glass-card, .tilt-card, .pricing-plan, .key-login-card,
.btn-white-glass, .btn-shimmer-white, .theme-toggle, .plan-select-button,
input:not([type="hidden"]), select, textarea { border-color: rgba(132,145,162,.52); }
.glass-card:hover, .tilt-card:hover, .pricing-plan:hover,
.btn-white-glass:hover, .theme-toggle:hover, .plan-select-button:hover { border-color: rgba(220,228,239,.78); }

/* Preserve the local moving glint above the quiet, constant bevel. */
html[data-theme="snow"] .glass-card, html[data-theme="snow"] .tilt-card,
html[data-theme="snow"] .pricing-plan,
html[data-theme="snow"] .key-login-card, html[data-theme="snow"] .btn-white-glass,
html[data-theme="snow"] .btn-shimmer-white, html[data-theme="snow"] .theme-toggle, html[data-theme="snow"] .plan-select-button,
html[data-theme="snow"] input:not([type="hidden"]),
html[data-theme="snow"] select, html[data-theme="snow"] textarea {
  box-shadow: inset 0 1px 0 rgba(224,242,254,.48), inset 0 0 0 1px rgba(3,10,20,.95), 0 0 0 1px rgba(42,128,173,.72), 0 1px 2px rgba(0,0,0,.9);
  border-color: rgba(90,174,212,.52);
}
html[data-theme="snow"] .glass-card[data-pointer-glow]:hover,
html[data-theme="snow"] .tilt-card[data-pointer-glow]:hover,
html[data-theme="snow"] .pricing-plan[data-pointer-glow]:hover { box-shadow: inset 0 1px 0 rgba(224,242,254,.48), inset 0 0 0 1px rgba(3,10,20,.95), 0 0 0 1px rgba(42,128,173,.72), 0 1px 2px rgba(0,0,0,.9), 0 16px 40px rgba(0,0,0,.38) !important; }

/* Persistent, pre-blurred ambient watermark revealed smoothly after decode to prevent progressive load jitter. */
#brand-ambient { position: fixed; inset: 0; z-index: 14; pointer-events: none; background: url("brand-ambient.png?v=5") center 48% / min(96vw, 1500px) auto no-repeat; opacity: 0; transform: translate3d(0,0,0); backface-visibility: hidden; will-change: opacity; contain: strict; isolation: isolate; transition: opacity .22s ease; }
html[data-ambient-ready="1"] #brand-ambient { opacity: .055; }
html[data-theme="snow"][data-ambient-ready="1"] #brand-ambient { opacity: .045; }
#ambient-pointer-light { position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 35; pointer-events: none; border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(236,242,250,.13) 0%, rgba(200,215,236,.08) 24%, rgba(180,200,225,.035) 45%, transparent 72%); will-change: transform, opacity; }
html[data-theme="snow"] #ambient-pointer-light { background: radial-gradient(circle, rgba(224,242,254,.16) 0%, rgba(125,211,252,.09) 26%, rgba(56,189,248,.035) 48%, transparent 72%); }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { #ambient-pointer-light { display: none !important; } }

@media (prefers-reduced-motion: reduce) { #brand-ambient { display: none; } }

/* Hover restoration patch for the FOSHEPTIC website.
   Append after the existing styles.css rules. Keeps the static chrome bevel and
   the dedicated ::before shimmer edge intact while restoring responsive states. */

/* The old tail rules forced card borders back to their quiet state and replaced
   hover shadows with a flat shadow. Reassert a clear, brief lift plus the bevel. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .glass-card, .tilt-card, .pricing-plan, .key-login-card,
  .btn-white-glass, .btn-shimmer-white, .theme-toggle, .plan-select-button {
    transition: transform .22s cubic-bezier(.2,.75,.25,1), border-color .16s ease,
      box-shadow .2s ease, background-color .2s ease, color .16s ease;
  }

  .glass-card[data-pointer-glow]:hover, .tilt-card[data-pointer-glow]:hover, .pricing-plan[data-pointer-glow]:hover,
  .key-login-card[data-pointer-glow]:hover {
    transform: translateY(-5px);
    border-color: rgba(238,244,252,.92) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.46),
      inset 0 0 0 1px rgba(5,7,10,.92), 0 0 0 1px rgba(215,225,239,.88),
      0 2px 4px rgba(0,0,0,.82), 0 18px 42px rgba(0,0,0,.48),
      0 0 28px var(--glow-color) !important;
  }

  .btn-white-glass:hover, .btn-shimmer-white:hover, .theme-toggle:hover,
  .plan-select-button:hover {
    transform: translateY(-2px);
    border-color: rgba(238,244,252,.95) !important;
  }

  /* Native inputs cannot use the pseudo-element rim; raise their existing
     layered radial border while hovered or keyboard-focused. */
  input[data-pointer-glow]:hover, select[data-pointer-glow]:hover,
  textarea[data-pointer-glow]:hover { --glow-active: .82; }
}

/* Higher contrast local rim. The shimmer button keeps its own ::before edge
   layer; its moving shine remains on ::after. */
[data-pointer-glow]:not(input):not(select):not(textarea):not(.btn-shimmer-white)::after,
[data-pointer-glow].btn-shimmer-white::before {
  padding: 1.5px;
  background: radial-gradient(175px circle at var(--glow-x) var(--glow-y),
    rgba(var(--edge-glow-rgb),1) 0%, rgba(var(--edge-glow-rgb),.72) 18%,
    rgba(var(--edge-glow-rgb),.22) 48%, transparent 78%);
}

/* The CTA responds to the whole pricing card, including pointer movement over
   its text, and remains keyboard-accessible through :focus-within. */
.pricing-plan:focus-within {
  border-color: rgba(238,244,252,.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46),
    inset 0 0 0 1px rgba(5,7,10,.92), 0 0 0 1px rgba(215,225,239,.88),
    0 2px 4px rgba(0,0,0,.82), 0 0 26px var(--glow-color) !important;
}
.pricing-plan:focus-within .plan-select-button,
.pricing-plan[data-pointer-glow]:hover .plan-select-button {
  border-color: #fff !important;
  background: #fff !important;
  background-image: none !important;
  color: #080b10 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95),
    0 0 18px rgba(255,255,255,.28), 0 5px 16px rgba(0,0,0,.44);
}

/* Snow uses the same interaction and bevel, colored in its icy blue palette. */
html[data-theme="snow"] .glass-card[data-pointer-glow]:hover,
html[data-theme="snow"] .tilt-card[data-pointer-glow]:hover,
html[data-theme="snow"] .pricing-plan[data-pointer-glow]:hover,
html[data-theme="snow"] .key-login-card[data-pointer-glow]:hover,
html[data-theme="snow"] .pricing-plan:focus-within {
  background: var(--bg-card-hover) !important;
  border-color: rgba(186,230,253,.96) !important;
  box-shadow: inset 0 1px 0 rgba(224,242,254,.5),
    inset 0 0 0 1px rgba(3,10,20,.95), 0 0 0 1px rgba(125,211,252,.9),
    0 2px 4px rgba(0,0,0,.82), 0 18px 42px rgba(0,0,0,.48),
    0 0 30px rgba(56,189,248,.48) !important;
}
html[data-theme="snow"] .btn-white-glass:hover,
html[data-theme="snow"] .btn-shimmer-white:hover,
html[data-theme="snow"] .theme-toggle:hover,
html[data-theme="snow"] .plan-select-button:hover {
  border-color: rgba(186,230,253,.96) !important;
}
html[data-theme="snow"] .pricing-plan:focus-within .plan-select-button,
html[data-theme="snow"] .pricing-plan[data-pointer-glow]:hover .plan-select-button {
  color: #04111e !important;
  background: #fff !important;
  background-image: none !important;
  border-color: rgba(186,230,253,.98) !important;
  box-shadow: inset 0 1px 0 rgba(224,242,254,.98),
    0 0 20px rgba(56,189,248,.52), 0 5px 16px rgba(0,0,0,.44);
}
html[data-theme="snow"] input[data-pointer-glow]:hover,
html[data-theme="snow"] select[data-pointer-glow]:hover,
html[data-theme="snow"] textarea[data-pointer-glow]:hover { --glow-active: .9; }

/* Preserve the constant machined edge in both states, and keep focus visible
   even on browsers that do not support pointer-directed glows. */
html[data-theme="snow"] [data-pointer-glow]:not(input):not(select):not(textarea):not(.btn-shimmer-white)::after,
html[data-theme="snow"] [data-pointer-glow].btn-shimmer-white::before {
  background: radial-gradient(175px circle at var(--glow-x) var(--glow-y),
    rgba(125,211,252,1) 0%, rgba(56,189,248,.78) 18%,
    rgba(56,189,248,.24) 48%, transparent 78%);
}
[data-pointer-glow]:focus-visible {
  outline: 2px solid rgba(var(--edge-glow-rgb),.9);
  outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
  .glass-card, .tilt-card, .pricing-plan, .key-login-card,
  .btn-white-glass, .btn-shimmer-white, .theme-toggle, .plan-select-button { transition: border-color .16s ease, box-shadow .16s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .glass-card[data-pointer-glow]:hover, .tilt-card[data-pointer-glow]:hover, .pricing-plan[data-pointer-glow]:hover,
  .key-login-card[data-pointer-glow]:hover, .btn-white-glass:hover,
  .btn-shimmer-white:hover, .theme-toggle:hover, .plan-select-button:hover { transform: none; }
}

#site-intro { display: none; }

/* Wait for the generated transparent logo to decode before starting the reveal.
   The six-second pending fallback keeps a failed image or script from trapping
   the visitor behind the intro. The logo itself supplies the reflection texture. */
html[data-intro="pending"] #site-intro,
html[data-intro="playing"] #site-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  pointer-events: auto;
}

html[data-intro="pending"] #site-intro {
  animation: intro-pending-fallback-v4 6s linear both;
}

html[data-intro="playing"] #site-intro {
  animation: intro-reveal-v4 3s cubic-bezier(.22, .61, .36, 1) both;
  will-change: opacity;
  contain: layout paint;
}



#site-intro .intro-brand {
  position: relative;
  width: min(92vw, 1250px, 220vh);
  max-height: none;
  aspect-ratio: 2.6;
  overflow: hidden;
  opacity: 0;
  transform: scale3d(.99, .99, 1);
  mix-blend-mode: normal;
  animation: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

html[data-intro="playing"] #site-intro .intro-brand {
  animation: intro-mark-v4 3s cubic-bezier(.22, .61, .36, 1) both;
}

#site-intro .intro-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  transform: none;
  mix-blend-mode: normal;
  filter: brightness(.86) contrast(1.12);
  animation: none;
}



#site-intro .intro-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask: url("brand-intro.png?v=4") center / contain no-repeat;
  mask: url("brand-intro.png?v=4") center / contain no-repeat;
}

/* The logo mask is static; only the narrow highlight moves. This avoids
   repainting a large, animated two-layer mask on every animation frame. */
#site-intro .intro-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(235,243,255,.08) 42%, rgba(245,249,255,.62) 46%, #fff 49%, #fff 52%, rgba(245,249,255,.62) 55%, rgba(235,243,255,.08) 59%, transparent 67%);
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

html[data-intro="playing"] #site-intro .intro-shine::before {
  animation: intro-specular-v4 2.7s cubic-bezier(.36,.08,.62,.96) .3s both;
}

@keyframes intro-reveal-v4 {
  0%, 83.33% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes intro-pending-fallback-v4 {
  0%, 83.33% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes intro-mark-v4 {
  0% { opacity: 0; transform: scale3d(.99, .99, 1); }
  9%, 83.33% { opacity: 1; transform: scale3d(1, 1, 1); }
  100% { opacity: 0; transform: scale3d(1.008, 1.008, 1); }
}

@keyframes intro-specular-v4 {
  0% { transform: translate3d(-100%, 0, 0); opacity: .9; }
  81.5% { transform: translate3d(100%, 0, 0); opacity: .9; }
  100% { transform: translate3d(100%, 0, 0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-intro="pending"] #site-intro, html[data-intro="playing"] #site-intro { display: none !important; animation: none; }
  #site-intro .intro-brand, #site-intro .intro-logo, #site-intro .intro-shine::before { animation: none !important; }
}

/* Compact customer list and management panel */
.customer-list{display:grid;gap:.65rem;list-style:none;margin:0;padding:0}.customer-row-open{display:flex;align-items:center;gap:1rem;width:100%;padding:1rem 1.15rem;text-align:left;border:1px solid rgba(255,255,255,.12);border-radius:1rem;background:rgba(255,255,255,.035);transition:background .2s,border-color .2s}.customer-row-open:hover,.customer-row-open:focus-visible{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.32)}.customer-avatar{display:grid;place-items:center;flex:none;width:2.7rem;height:2.7rem;border-radius:.85rem;background:rgba(255,255,255,.1);font-weight:800}.customer-row-main{display:grid;gap:.25rem;min-width:0;flex:1}.customer-row-main strong{font-size:.9rem}.customer-row-main small{font-size:.72rem;color:#a3a3a3;overflow-wrap:anywhere}.customer-row-meta{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem}.customer-badge{padding:.3rem .55rem;border:1px solid rgba(255,255,255,.18);border-radius:999px;font-size:.67rem;white-space:nowrap}.customer-badge-active{color:var(--accent-color,#e5e7eb)}.customer-badge-expired{color:#aeb6c2}.customer-badge-paused{color:#aeb6c2}.customer-row-chevron{font-size:1.4rem;color:#a3a3a3}.customer-empty{padding:1.2rem;color:#a3a3a3}.customer-detail{display:grid;gap:.35rem;min-width:0;padding:.8rem;border:1px solid rgba(255,255,255,.12);border-radius:.75rem}.customer-detail span{font-size:.67rem;color:#a3a3a3}.customer-detail strong,.customer-detail code{font-size:.78rem;overflow-wrap:anywhere}.customer-controls{display:grid;gap:1rem;margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.12)}.customer-controls.hidden{display:none}.customer-controls form{padding:1rem;border:1px solid rgba(255,255,255,.12);border-radius:.85rem}.customer-dialog::backdrop{background:rgba(0,0,0,.8)}@media(max-width:600px){.customer-row-open{gap:.7rem;flex-wrap:wrap}.customer-row-main{flex-basis:calc(100% - 4rem)}.customer-row-meta{margin-left:3.4rem;justify-content:flex-start}.customer-row-chevron{margin-left:auto}}

.header-account{display:flex;align-items:center;gap:.5rem;font-size:.75rem;font-weight:700;min-width:0;flex-shrink:1}.header-account.hidden{display:none}.header-account #header-username{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:11rem}.header-avatar{width:2rem;height:2rem;border-radius:50%;flex:0 0 auto}

.site-header-actions{justify-self:end;min-width:0}
.header-key-bar-wrap{width:100%}
.header-key-bar-wrap:has(#header-key-form.hidden){display:none}
.header-key-bar-wrap:has(#header-key-form:not(.hidden)){border-top:1px solid rgba(255,255,255,.12);background:rgba(7,8,12,.9)}
html[data-theme="snow"] .header-key-bar-wrap:has(#header-key-form:not(.hidden)){border-top-color:var(--border-subtle);background:rgba(8,16,30,.92)}
.header-key-form{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.65rem 1rem;width:100%;padding-block:.65rem}
.header-key-form.hidden{display:none}
.header-key-prompt{font-size:.78rem;font-weight:600;color:#e2e8f0;line-height:1.4}
.header-key-controls{display:flex;align-items:center;gap:.5rem;flex:1 1 18rem;max-width:28rem;min-width:0}
.header-key-form input{flex:1 1 auto;width:100%;min-width:10rem;min-height:2.35rem;padding:.45rem .75rem;border:1px solid rgba(255,255,255,.22);border-radius:.65rem;background:#09090b;color:white;font-size:.78rem;font-family:var(--font-mono)}
.header-key-form button{flex:0 0 auto;min-height:2.35rem;padding:.45rem 1rem;border:1px solid rgba(255,255,255,.28);border-radius:.65rem;background:rgba(255,255,255,.1);color:white;font-size:.75rem;font-weight:700;white-space:nowrap;transition:background-color .18s ease,border-color .18s ease}
.header-key-form button:hover:not(:disabled){background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.55)}
.header-key-error,.header-key-form [role="status"]{flex:1 0 100%;font-size:.75rem;line-height:1.45;color:#fca5a5 !important;overflow-wrap:anywhere}
.header-key-form [role="status"]:empty{display:none}
.key-login-card [role="alert"]{overflow-wrap:anywhere}
@media(max-width:900px){.site-header-actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.site-header-layout{height:auto;min-height:5rem;padding-block:.5rem}}
@media(max-width:480px){.site-header-actions{gap:.45rem}.header-account{max-width:10.5rem}.header-account #header-username{max-width:5.5rem}.header-key-controls{flex:1 1 100%;max-width:none}.header-key-form input{min-width:0}}

.customer-dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;width:min(44rem,calc(100vw - 2rem))!important;max-height:min(90vh,52rem)!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;transform:none!important;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}
.customer-dialog::-webkit-scrollbar{width:6px}
.customer-dialog::-webkit-scrollbar-track{background:transparent}
.customer-dialog::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:999px}
.customer-dialog::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.45)}
.dash-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;width:min(1440px,100%);margin:auto;padding:32px 24px;flex:1;position:relative;z-index:10}
.dash-nav{display:flex;flex-direction:column;gap:6px;align-self:start;position:sticky;top:110px}.dash-nav-label{font-size:10px;letter-spacing:.14em;color:#9299a5;margin:0 12px 14px}.dash-nav button{border:1px solid transparent;border-radius:12px;text-align:left;padding:13px 14px;color:#aeb5bf;font-size:14px;font-weight:700}.dash-nav button:hover,.dash-nav button.is-active{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.13);color:inherit}.dash-main{min-width:0;display:flex;flex-direction:column;gap:24px;outline:none}.dash-main [data-dash-section][hidden],.dash-nav [hidden]{display:none!important}.dash-report{padding:clamp(20px,4vw,40px)}.dash-back{color:#b8c0ca;font-size:13px;margin-bottom:28px}.dash-report-head p{font-size:12px;color:#a5adb9}.dash-report-head h1{font-size:clamp(24px,3vw,36px);font-weight:800;line-height:1.2;margin:8px 0}.dash-report-head span,.dash-note{font-size:13px;color:#a5adb9}.dash-report-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0}.dash-report-stats div{padding:18px;border:1px solid rgba(255,255,255,.15);border-radius:14px}.dash-report-stats span,.dash-report-stats strong{display:block}.dash-report-stats span{font-size:12px;color:#a5adb9}.dash-report-stats strong{font-size:20px;margin-top:6px}.dash-report h2{font-size:16px;font-weight:800;margin:32px 0 14px}.dash-finding{padding:16px;border:1px solid var(--border-hover,rgba(210,220,235,.3));border-radius:12px;margin:10px 0}.dash-finding p{margin-top:8px;font-size:14px}.dash-coverage li{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:13px}.dash-coverage span{color:#a5adb9;text-align:right}.dash-technical{margin-top:32px;padding-top:18px;border-top:1px solid rgba(255,255,255,.15);font-size:12px}.dash-technical summary{cursor:pointer}.dash-technical p{overflow-wrap:anywhere;margin:14px 0}.dash-technical a{text-decoration:underline}.dash-layout button:focus-visible,.dash-layout a:focus-visible,.dash-layout summary:focus-visible{outline:2px solid var(--primary-color,#d3d9e2);outline-offset:3px}
@media(max-width:760px){.dash-layout{display:block;padding:18px 16px}.dash-nav{position:static;flex-direction:row;overflow-x:auto;margin-bottom:20px}.dash-nav-label{display:none}.dash-nav button{white-space:nowrap;padding:10px}.dash-main{gap:16px}.dash-report-stats{grid-template-columns:1fr 1fr}}
.dash-layout [hidden]{display:none!important}
.dash-evidence{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1)}.dash-evidence summary,.dash-finding summary{cursor:pointer}.dash-evidence dl,.dash-finding dl{margin:10px 0;overflow-wrap:anywhere}.dash-evidence dl div,.dash-finding dl div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:4px 0}.dash-evidence dt,.dash-finding dt,.dash-coverage p{color:#a5adb9}.dash-coverage p{margin-top:5px;font-weight:400}

.dash-disclosure>summary{cursor:pointer;font-weight:700;font-size:14px}.dash-disclosure-body{padding-top:22px}

/* FOSHEPTIC console: unified Metallic & Snow visual system, navigation and report workspace. */
.console-ui{--console-bg:var(--bg-black,#000000);--console-surface:rgba(10,11,15,.92);--console-surface-elevated:rgba(16,18,24,.96);--console-line:rgba(255,255,255,.14);--console-line-strong:rgba(211,217,226,.36);--console-muted:#949da9;--console-ink:#f8fafc;--console-accent:#d3d9e2;--console-specular:inset 0 1px 0 rgba(255,255,255,.16);background:var(--console-bg)!important;color:var(--console-ink)}
html[data-theme="snow"] .console-ui{--console-bg:#060c16;--console-surface:rgba(11,19,34,.92);--console-surface-elevated:rgba(15,27,48,.96);--console-line:rgba(56,189,248,.18);--console-line-strong:rgba(125,211,252,.42);--console-muted:#8da9c4;--console-ink:#e0f2fe;--console-accent:#7dd3fc;--console-specular:inset 0 1px 0 rgba(224,242,254,.18);background:var(--console-bg)!important}
.console-ui #brand-ambient{z-index:0}html[data-ambient-ready="1"] .console-ui #brand-ambient{opacity:.022}.console-ui #ambient-pointer-light{opacity:.025}.console-ui .console-topbar{margin-left:250px;height:74px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--console-line);background:var(--console-bg);position:sticky;top:0;z-index:45}.console-breadcrumb{display:flex;gap:13px;align-items:center;min-width:0;white-space:nowrap;font:11px var(--font-mono);color:var(--console-muted)}.console-breadcrumb strong{font-weight:500;color:var(--console-ink);overflow:hidden;text-overflow:ellipsis}.console-topbar-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}.console-role{font:9px var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--console-accent);border:1px solid var(--console-line);border-radius:6px;padding:5px 8px;white-space:nowrap}.console-workspace-name{font-size:11px;color:var(--console-muted);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.console-icon-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--console-line);border-radius:9px;color:var(--console-muted);flex-shrink:0}.console-icon-button svg{width:15px;height:15px}.console-ui .theme-toggle{min-height:34px;padding:7px 11px;font-size:11px;white-space:nowrap}
.console-ui .dash-layout{display:block;width:auto;max-width:none;margin:0 0 0 250px;padding:30px 38px 50px;z-index:5}.console-ui .dash-main{width:100%;max-width:1500px;margin:0 auto;gap:24px}.console-ui .dash-nav{position:fixed;inset:0 auto 0 0;width:250px;padding:20px 16px;display:flex;flex-direction:column;gap:6px;z-index:55;background:var(--console-bg);border-right:1px solid var(--console-line);overflow-y:auto}.console-ui .console-brand{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:145px;margin-bottom:27px;border:1px solid var(--console-line);border-radius:15px;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,rgba(var(--edge-glow-rgb),.08),transparent 75%);box-shadow:var(--console-specular)}.console-brand img{width:96%;height:90px;object-fit:contain}.console-brand>span{font:8px var(--font-mono);letter-spacing:.2em;color:var(--console-muted);padding:4px 0 15px}.console-ui .dash-nav-label{font:9px var(--font-mono);letter-spacing:.14em;color:#697280;margin:0 12px 8px}.console-ui .dash-nav button{display:flex;gap:12px;align-items:center;font-size:13px;font-weight:500;border-radius:8px;padding:12px 13px;color:#a0a7b3}.console-ui .dash-nav button svg{width:16px;height:16px;flex:none}.console-ui .dash-nav button:hover,.console-ui .dash-nav button.is-active{background:rgba(var(--edge-glow-rgb),.07)!important;border-color:rgba(var(--edge-glow-rgb),.19)!important;color:var(--console-accent)}.console-nav-secondary{margin-top:30px!important}.console-sidebar-bottom{margin-top:auto;padding-top:40px}.console-sidebar-bottom>a{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--console-muted);padding:12px}.console-sidebar-bottom>a svg{width:14px;height:14px}.console-sidebar-profile{display:flex;align-items:center;gap:10px;border:1px solid var(--console-line);border-radius:12px;padding:12px;margin-top:10px;min-width:0;background:var(--console-surface);box-shadow:var(--console-specular)}.console-sidebar-profile>div:nth-child(2){min-width:0;flex:1}.console-sidebar-profile strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.console-sidebar-profile>div>span:not(#profile-avatar-badge){display:block;font-size:10px;color:var(--console-muted);margin-top:4px}.console-avatar{width:34px;height:34px;flex:none;position:relative;border-radius:10px;overflow:hidden;background:rgba(var(--edge-glow-rgb),.09);display:grid;place-items:center;border:1px solid var(--console-line)}.console-avatar img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.console-avatar span{font-size:10px;font-weight:700}.console-online-dot{height:5px;width:5px;border-radius:50%;background:#58c6a2}
.console-hero{min-height:124px;height:auto;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--console-line);border-radius:18px;background:radial-gradient(ellipse at 85% 40%,rgba(var(--edge-glow-rgb),.10),transparent 65%),linear-gradient(125deg,rgba(14,15,20,.96),rgba(4,5,7,.98));box-shadow:var(--console-specular);display:flex;align-items:center;padding:24px 28px}.console-hero>div{position:relative;z-index:2;max-width:44rem}.console-hero p{font:9px var(--font-mono);letter-spacing:.18em;color:var(--console-accent);margin:0 0 10px}.console-hero h1{font-family:var(--font-display);font-size:26px;line-height:1.2;font-weight:700;letter-spacing:-.03em;margin-bottom:8px}.console-hero span{font-size:12px;color:var(--console-muted);line-height:1.6}#dashboard-app[data-section="report"] .console-hero,#dashboard-app[data-section="account"] .console-hero,#dashboard-app[data-section="licenses"] .console-hero{display:none}
.console-ui .dash-main>.glass-card,.console-ui .dash-main>section.glass-card{background:var(--console-surface)!important;border:1px solid var(--console-line)!important;border-radius:16px;box-shadow:var(--console-specular)!important}.console-ui .glass-card[data-pointer-glow]:hover,.console-ui .tilt-card[data-pointer-glow]:hover{transform:none!important;box-shadow:var(--console-specular)!important;border-color:var(--console-line-strong)!important}.console-ui .dash-main>section[data-dash-section="overview"]:first-of-type{background:transparent!important;border:0!important;padding:0 2px!important;box-shadow:none!important}.console-ui .dash-main>section[data-dash-section="overview"] h1{font-size:16px}.console-ui .dash-main>section[data-dash-section="overview"] .glass-card{background:var(--console-surface)!important;border:1px solid var(--console-line)!important;box-shadow:var(--console-specular)!important}.console-ui .dash-main>section[data-dash-section="overview"] .glass-card:after{display:none}.console-ui .dash-main>section[data-dash-section="overview"] [id^="metric-"]{color:var(--console-ink)!important}
.console-scan-deck{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px}.console-scan-deck:has(#customer-pin-section.hidden){grid-template-columns:1fr 1fr}.console-panel{padding:23px;border:1px solid var(--console-line);border-radius:17px;background:var(--console-surface);box-shadow:var(--console-specular);min-width:0}.console-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.console-card-heading p{font:8px var(--font-mono);letter-spacing:.18em;color:var(--console-muted);margin-bottom:8px}.console-card-heading h2{font-size:16px;font-weight:700;letter-spacing:-.03em}.console-card-heading>svg{width:35px;height:35px;padding:9px;border-radius:10px;border:1px solid var(--console-line);color:var(--console-accent);background:rgba(var(--edge-glow-rgb),.04)}.console-license-block{padding:14px;border:1px solid var(--console-line);border-radius:11px;margin-top:11px}.console-license-block>span,.console-snapshot-grid span{display:block;font:8px var(--font-mono);letter-spacing:.12em;color:var(--console-muted);margin-bottom:8px}.console-license-block strong{font-size:12px;font-weight:600}.console-card-note{font-size:11px;color:var(--console-muted);line-height:1.8;margin-top:14px}.console-snapshot-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.console-snapshot-grid>div{border:1px solid var(--console-line);border-radius:11px;padding:15px}.console-snapshot-grid strong{display:block;font-size:27px;line-height:1.2;font-weight:700;margin-top:13px}.console-generate-button{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;padding:13px;border:1px solid rgba(var(--edge-glow-rgb),.28);border-radius:10px;color:var(--console-accent);background:rgba(var(--edge-glow-rgb),.08);font-size:12px;font-weight:600;margin-top:20px}.console-generate-button svg{width:15px;height:15px}.console-generated{margin-top:16px;border-top:1px solid var(--console-line);padding-top:14px}.console-generated>strong{font:12px var(--font-mono);overflow-wrap:anywhere;line-height:1.8}.console-generated>p{font-size:10px;color:var(--console-muted);margin-top:5px}.console-generated>div{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.console-generated button{font-size:10px;text-decoration:underline}.console-generated-link{overflow-wrap:anywhere}
.console-ui #sessions-tbody tr{border-bottom:1px solid var(--console-line);font-size:12px}.console-ui #sessions-tbody td{padding:18px 20px;vertical-align:middle}.console-ui thead th{font:9px var(--font-mono);letter-spacing:.1em;color:var(--console-muted)!important;padding:16px 20px}.console-ui .dash-main table{border-collapse:collapse}.console-ui .dash-main table thead tr{background:rgba(var(--edge-glow-rgb),.025)!important}.console-state{display:inline-flex;align-items:center;padding:5px 9px;border-radius:6px;border:1px solid var(--console-line);font-size:10px;color:var(--console-muted);white-space:nowrap}.console-state[data-state="COMPLETED"]{color:#6bccab;background:rgba(70,177,140,.06);border-color:rgba(70,177,140,.2)}.console-state[data-state="SCANNING"],.console-state[data-state="UPLOADING"],.console-state[data-state="SCANNER_CLAIMED"]{color:var(--console-accent);background:rgba(var(--edge-glow-rgb),.07)}.console-table-action{font-size:10px!important;padding:7px 11px;border-radius:7px;border:1px solid var(--console-line);text-decoration:none!important}.console-ui [data-history-filter][aria-pressed="true"]{border-color:rgba(var(--edge-glow-rgb),.46)!important;color:var(--console-ink)!important;background:rgba(var(--edge-glow-rgb),.14)!important;box-shadow:var(--console-specular)!important}
.console-ui .dash-report{padding:0;background:transparent;border:0;min-width:0}.report-breadcrumb{display:flex;gap:12px;font:10px var(--font-mono);color:var(--console-muted);margin:4px 0 22px}.report-breadcrumb strong{color:var(--console-ink);font-weight:500}.report-summary-bar{display:flex;align-items:center;gap:0;padding:25px;border:1px solid var(--console-line);border-radius:17px;background:var(--console-surface);box-shadow:var(--console-specular);min-height:115px;flex-wrap:wrap}.report-verdict-cell{padding-right:28px}.report-eyebrow{display:block;font:8px var(--font-mono);letter-spacing:.15em;color:var(--console-muted);margin-bottom:11px}.report-verdict{display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:700;padding:9px 12px;border:1px solid var(--console-line);border-radius:10px;color:var(--console-accent);margin:0;line-height:1.4}.report-verdict>span{font-size:8px}.report-verdict[data-tone="review"]{color:#f0be82;border-color:rgba(237,174,94,.3);background:rgba(237,174,94,.07)}.report-verdict[data-tone="notice"]{color:#d4bd83;border-color:rgba(212,189,131,.25);background:rgba(212,189,131,.05)}.report-context-cell{padding:0 25px;border-left:1px solid var(--console-line);max-width:240px}.report-context-cell>strong{display:block;font-size:11px;font-weight:500;overflow-wrap:anywhere}.report-mono{font-family:var(--font-mono)}.console-ui .report-back{margin:0 0 0 auto;font-size:10px;border:1px solid var(--console-line);padding:8px 12px;border-radius:8px;white-space:nowrap}.report-summary-note{font-size:11px;color:var(--console-muted);line-height:1.8;margin:15px 2px}.report-context-strip{display:flex;align-items:center;flex-wrap:wrap;gap:22px;font-size:10px;color:var(--console-muted);padding:0 2px 22px}.report-context-strip strong{font-weight:500;color:var(--console-ink);margin-right:3px}
.report-workspace{display:grid;grid-template-columns:215px minmax(0,1fr);border:1px solid var(--console-line);border-radius:18px;overflow:hidden;background:var(--console-surface);box-shadow:var(--console-specular);min-height:570px}.report-modules{border-right:1px solid var(--console-line);padding:20px 9px;background:rgba(0,0,0,.12)}.report-modules-heading{padding:0 10px 19px}.report-modules-heading .report-eyebrow{margin-bottom:6px}.report-modules-heading>span:last-child{font-size:9px;color:var(--console-muted);font-family:var(--font-mono)}.report-modules nav{display:flex;flex-direction:column;gap:4px}.report-module{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 11px;border-radius:8px;color:var(--console-muted);font-size:11px;border:1px solid transparent;min-height:39px}.report-module>span:first-child{flex:1}.report-module[aria-pressed="true"]{color:var(--console-accent);border-color:rgba(var(--edge-glow-rgb),.21);background:rgba(var(--edge-glow-rgb),.07)}.report-module:hover{color:var(--console-ink)}.report-module-count{font:9px var(--font-mono);color:var(--console-muted);margin-left:auto}.report-content{min-width:0;display:flex;flex-direction:column}.report-toolbar{display:flex;align-items:center;gap:12px;padding:21px 20px;border-bottom:1px solid var(--console-line);flex-wrap:wrap;min-height:85px}.report-toolbar>div:first-child{margin-right:auto;min-width:120px}.console-ui .report-toolbar h2{font-size:13px;margin:0 0 5px;font-weight:700}.report-toolbar #report-result-count{font:9px var(--font-mono);color:var(--console-muted)}.report-search{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid var(--console-line)!important;border-radius:9px;color:var(--console-muted);max-width:240px;min-width:140px;flex:1;height:34px;background:rgba(255,255,255,.02);box-sizing:border-box}.report-search input,#report-evidence-search{appearance:none!important;-webkit-appearance:none!important;-moz-appearance:none!important;width:100%!important;min-width:0!important;height:100%!important;padding:0 4px!important;background:transparent!important;border:none!important;box-shadow:none!important;outline:none!important;font-size:11px!important;color:#fff!important;box-sizing:border-box!important}.report-search input::-webkit-search-decoration,.report-search input::-webkit-search-cancel-button,.report-search input::-webkit-search-results-button,.report-search input::-webkit-search-results-decoration{display:none!important;-webkit-appearance:none!important}.report-search:focus-within{border-color:var(--console-accent)!important;outline:1px solid var(--console-accent);outline-offset:2px}.report-copy{font:9px var(--font-mono);height:34px;padding:0 11px;border:1px solid var(--console-line);border-radius:9px;color:var(--console-muted)}.report-copy:disabled{opacity:.4;cursor:not-allowed}.report-record-list{padding:12px 16px 22px;max-height:650px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--border-hover) transparent;flex:1}.console-ui .report-record{border:1px solid var(--console-line);border-radius:10px;margin:0 0 8px;padding:0;background:rgba(0,0,0,.12)}.report-record summary{display:flex;align-items:center;gap:11px;padding:13px 14px;min-height:57px;list-style:none;cursor:pointer}.report-record summary::-webkit-details-marker{display:none}.report-record-icon{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--console-line);border-radius:8px;color:var(--console-accent);font-size:12px;flex:none;background:rgba(var(--edge-glow-rgb),.035)}.report-record-body{min-width:0;flex:1}.report-record-body>strong{display:block;font:10px var(--font-mono);line-height:1.7;overflow-wrap:anywhere;font-weight:500}.report-record-body>span{display:block;color:var(--console-muted);font-size:10px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.report-record-meta{color:var(--console-muted);font:8px var(--font-mono);max-width:140px;text-align:right;flex:none}.report-record-chevron{color:var(--console-muted);font-size:12px;margin-left:4px}.report-record[open] .report-record-chevron{transform:rotate(180deg)}.report-record[data-tone="review"] .report-record-icon{color:#ecc087;border-color:rgba(236,192,135,.22)}.report-record[data-tone="notice"] .report-record-icon{color:#d4bd83}.report-record-details{padding:0 17px 16px 54px;color:#c5ccd5;font-size:11px;line-height:1.8}.report-record-details .report-detail-grid div,.report-detail-grid>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;padding:6px 0}.report-detail-grid dt{color:var(--console-muted)}.report-detail-grid dd{overflow-wrap:anywhere;font-family:var(--font-mono);font-size:10px}.report-record-details dl{margin:0!important}.report-record-details dl>div{grid-template-columns:130px minmax(0,1fr)!important}.report-linked-evidence{padding-top:14px;border-top:1px solid var(--console-line);margin-top:14px}.report-muted{color:var(--console-muted)}.report-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:230px;text-align:center;padding:30px;color:var(--console-muted);font-size:12px;line-height:1.8}.report-empty strong{display:block;font-size:13px;color:var(--console-ink);font-weight:500;margin-bottom:6px}.report-footnote{font-size:10px;line-height:1.8;color:var(--console-muted);margin:17px 2px}.console-ui .report-export{border:1px solid var(--console-line);padding:15px 18px;margin-top:0;border-radius:12px;background:var(--console-surface);box-shadow:var(--console-specular)}.report-export summary{font-size:11px;color:var(--console-muted)}.report-export .report-detail-grid{margin:15px 0}.report-export a{font-size:11px;color:var(--console-accent)}
html[data-theme="snow"] .console-hero{background:radial-gradient(ellipse at 85% 40%,rgba(56,189,248,.14),transparent 65%),linear-gradient(125deg,rgba(13,25,44,.96),rgba(6,12,22,.98));box-shadow:inset 0 1px 0 rgba(224,242,254,.18)}
@media(min-width:1700px){.console-ui .dash-layout{padding-left:55px;padding-right:55px}.console-ui .console-topbar{padding-left:55px;padding-right:55px}.report-workspace{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:1200px){.console-ui .dash-nav{width:215px}.console-ui .console-topbar{margin-left:215px;padding:0 24px}.console-ui .dash-layout{margin-left:215px;padding:24px}.console-scan-deck{grid-template-columns:1fr 1fr}.console-pin-card{grid-column:1/-1}.report-workspace{grid-template-columns:185px minmax(0,1fr)}.report-context-cell{padding:0 16px;max-width:190px}.report-summary-bar{row-gap:20px}.report-verdict-cell{padding-right:16px}}
@media(max-width:860px){.console-ui .console-topbar{margin:0;padding:0 20px;height:62px}.console-workspace-name{display:none}.console-ui .dash-layout{margin:0;padding:0 18px 30px}.console-ui .dash-nav{position:static;width:auto;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;padding:16px 0;margin:0 0 20px;border-right:0;border-bottom:1px solid var(--console-line);overflow:visible}.console-ui .console-brand{min-height:0;margin:0 10px 0 0;padding:0;width:105px;height:45px;border:0;flex:none;background:transparent;box-shadow:none}.console-brand img{width:100%;height:45px}.console-brand>span,.console-sidebar-bottom,.console-ui .dash-nav-label{display:none}.console-ui .dash-nav button{font-size:11px;padding:10px 11px;white-space:nowrap}.console-ui .dash-nav button svg{width:14px;height:14px}.console-hero{min-height:108px;height:auto;padding:20px 22px}.console-hero h1{font-size:22px}.console-hero span{font-size:11px}.console-ui .dash-main{gap:20px}.report-summary-bar{padding:20px}.report-back{margin-left:0!important}.report-context-cell{border:0;padding:0 16px 0 0}.report-workspace{display:block;min-height:450px}.report-modules{padding:12px;border:0;border-bottom:1px solid var(--console-line)}.report-modules-heading{display:none}.report-modules nav{flex-direction:row;overflow-x:auto;gap:5px;padding-bottom:2px;scrollbar-width:thin}.report-module{width:auto;white-space:nowrap;min-height:35px;font-size:10px;padding:8px 10px}.report-module-count{margin-left:8px}.report-toolbar{padding:16px}.report-record-list{padding:10px;max-height:600px}.report-record-meta{max-width:90px;font-size:8px}.report-context-strip{gap:10px 18px}.console-ui .dash-main>section[data-dash-section="overview"] .glass-card{padding:18px!important}}
@media(max-width:540px){.console-breadcrumb{gap:8px;font-size:9px}.console-topbar-actions{gap:7px}.console-role{display:none}.console-ui .console-topbar{padding:0 15px}.console-ui .dash-layout{padding:0 12px 24px}.console-ui .dash-nav{gap:3px}.console-ui .dash-nav button{gap:7px;font-size:10px;padding:9px}.console-ui .console-brand{width:80px;margin-right:0}.console-scan-deck,.console-scan-deck:has(#customer-pin-section.hidden){grid-template-columns:1fr}.console-pin-card{grid-column:auto}.console-hero{min-height:96px;height:auto;padding:18px 20px}.console-hero h1{font-size:20px}.console-hero span{display:block;line-height:1.7}.console-panel{padding:20px}.console-card-heading{margin-bottom:17px}.console-ui #sessions-tbody td{padding:15px 13px}.console-ui thead th{padding:14px 13px}.report-summary-bar{gap:18px;padding:18px}.report-verdict-cell{width:100%;padding:0}.report-context-cell{max-width:calc(50% - 10px);padding:0}.report-eyebrow{margin-bottom:7px}.report-context-cell>strong{font-size:10px}.console-ui .report-back{margin-left:auto!important}.report-toolbar{gap:10px}.report-toolbar>div:first-child{width:100%}.report-search{max-width:none}.report-copy{font-size:8px;padding:0 8px}.report-record summary{padding:12px 10px;gap:9px}.report-record-icon{width:24px;height:24px}.report-record-body>strong{font-size:9px}.report-record-body>span{font-size:9px}.report-record-meta{display:none}.report-record-details{padding:0 13px 14px}.report-record-details dl>div,.report-detail-grid>div{grid-template-columns:1fr!important;gap:2px!important}.report-breadcrumb{font-size:9px}.report-context-strip{font-size:9px}}
.console-ui .report-module .report-module-icon{flex:0 0 16px;display:inline-grid;place-items:center;font-size:13px}.console-ui .report-module>span:nth-child(2){flex:1;min-width:0}.report-empty>span{font-size:22px;opacity:.5;margin-bottom:12px}.report-empty h3{font-size:13px;color:var(--console-ink);margin:0 0 6px;font-weight:500}.report-empty p{max-width:330px;font-size:11px}
.console-ui .dash-nav{height:100dvh;align-self:stretch}@media(max-width:860px){.console-ui .dash-nav{height:auto;align-self:auto}}
.console-ui .console-scan-deck:has(#customer-pin-section.hidden){display:none}.console-ui #dashboard-app:has(#customer-pin-section.hidden) .console-hero{height:auto;min-height:104px}.console-ui #dashboard-app:has(#customer-pin-section.hidden) .console-hero h1{font-size:22px}.console-ui #dashboard-app:has(#customer-pin-section.hidden) .console-hero p{margin-bottom:8px}.console-registry-filters{display:flex;gap:12px;align-items:end;padding:16px 20px;border-bottom:1px solid var(--console-line)}.console-registry-filters label{display:block;font-size:10px;color:var(--console-muted)}.console-registry-filters label:first-child{flex:1}.console-registry-filters input,.console-registry-filters select{display:block;width:100%;font-size:11px;padding:10px 12px;margin-top:7px;border:1px solid var(--console-line);border-radius:8px;background:var(--console-bg)}.console-registry-footer{padding:15px 20px;display:flex;align-items:center;justify-content:space-between;font-size:10px;gap:12px;color:var(--console-muted)}.console-registry-footer>div{display:flex;align-items:center;gap:14px}.console-registry-footer button:disabled{opacity:.35}.console-ui .registry-sub{display:block;font:9px var(--font-mono);color:var(--console-muted);margin-top:5px;max-width:180px;overflow:hidden;text-overflow:ellipsis}.console-ui .registry-code{font:10px var(--font-mono);white-space:nowrap}.console-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.console-account-details{font-size:11px;color:var(--console-muted);line-height:1.8}.console-account-details>span{padding:8px 0;border-bottom:1px solid var(--console-line)}.console-account-details>span:first-child{display:none}.console-redeem-form{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.console-redeem-form input{min-width:150px;flex:1;border:1px solid var(--console-line);border-radius:9px;padding:12px;background:var(--console-bg);font:11px var(--font-mono)}.console-redeem-form button{padding:12px 17px;border:1px solid var(--console-line);border-radius:9px;background:rgba(var(--edge-glow-rgb),.08);font-size:11px;color:var(--console-accent)}.console-redeem-result{font-size:11px;line-height:1.8;margin-top:15px;color:var(--console-accent)}@media(max-width:760px){.console-account-grid{grid-template-columns:1fr}.console-registry-filters{flex-wrap:wrap;padding:14px}.console-registry-filters label:first-child{flex-basis:100%}.console-registry-footer{flex-wrap:wrap}.console-ui #dashboard-app:has(#customer-pin-section.hidden) .console-hero{display:none}}
.console-registry-detail{display:block;font:9px var(--font-mono);color:var(--console-muted);margin-top:5px;line-height:1.6;overflow-wrap:anywhere;max-width:190px}

/* Harmonized dashboard metric cards, filters, icons & guide steps (Metallic + Snow) */
.console-accent-icon {
  color: var(--console-accent, #d3d9e2);
}
.console-accent-label {
  color: var(--console-accent, #d3d9e2);
}
.console-status-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--primary-color, #d3d9e2);
  box-shadow: 0 0 10px rgba(var(--edge-glow-rgb), 0.55);
  flex: none;
}
.console-operator-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.32);
  background: rgba(var(--edge-glow-rgb), 0.08);
  color: var(--console-accent);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: 0.08em;
  box-shadow: var(--console-specular);
}
.console-field-input:focus {
  border-color: var(--console-line-strong) !important;
  box-shadow: 0 0 0 1px rgba(var(--edge-glow-rgb), 0.25);
}
.console-metric-card {
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.console-metric-card--highlight {
  border-color: rgba(var(--edge-glow-rgb), 0.28) !important;
}
.console-metric-label {
  color: var(--console-accent);
}
.console-metric-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--console-accent);
  box-shadow: 0 0 8px rgba(var(--edge-glow-rgb), 0.65);
}
.console-metric-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--console-line);
  background: rgba(var(--edge-glow-rgb), 0.06);
  color: var(--console-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: var(--console-specular);
}
.console-metric-icon--accent {
  border-color: rgba(var(--edge-glow-rgb), 0.34);
  background: rgba(var(--edge-glow-rgb), 0.12);
  color: var(--console-ink);
}
.console-filter-btn {
  padding: 0.42rem 0.8rem;
  border-radius: 0.55rem;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--console-muted);
  font: 600 0.75rem/1.2 var(--font-mono);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.console-filter-btn:hover {
  border-color: var(--console-line-strong);
  background: rgba(var(--edge-glow-rgb), 0.1);
  color: var(--console-ink);
}
.console-guide-step {
  border-left: 2px solid rgba(var(--edge-glow-rgb), 0.48);
  padding: 0.25rem 0 0.25rem 1rem;
}
.console-danger-btn {
  border: 1px solid rgba(201, 118, 126, 0.34);
  background: rgba(201, 118, 126, 0.1);
  color: #e6c6c9;
  font-family: var(--font-mono);
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.console-danger-btn:hover {
  border-color: rgba(219, 134, 142, 0.58);
  background: rgba(201, 118, 126, 0.18);
  color: #f8e2e4;
}
html[data-theme="snow"] .console-filter-btn {
  background: rgba(14, 25, 45, 0.72);
  border-color: var(--console-line);
}
html[data-theme="snow"] .console-filter-btn[aria-pressed="true"] {
  border-color: rgba(125, 211, 252, 0.62) !important;
  background: rgba(56, 189, 248, 0.16) !important;
  color: #e0f2fe !important;
}

/* ========================================================
   REPORT VIEWER UPGRADES & FORENSIC WORKBENCHES
======================================================== */
.report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.18);
}
.report-ext-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.report-ext-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--console-muted);
  font: 10px var(--font-mono);
  font-weight: 600;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.report-ext-pill:hover {
  color: var(--console-ink);
  border-color: rgba(var(--edge-glow-rgb), 0.35);
}
.report-ext-pill[aria-pressed="true"],
.report-ext-pill.is-active {
  color: var(--console-accent);
  border-color: rgba(var(--edge-glow-rgb), 0.55);
  background: rgba(var(--edge-glow-rgb), 0.13);
}
.report-ext-pill span {
  opacity: 0.78;
  font-size: 9px;
}
.report-quick-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.report-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--console-muted);
  font: 10px var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
}
.report-toggle-btn:hover {
  color: var(--console-ink);
  border-color: rgba(var(--edge-glow-rgb), 0.38);
}
.report-toggle-btn[aria-pressed="true"],
.report-toggle-btn.is-active {
  color: var(--console-accent);
  border-color: rgba(var(--edge-glow-rgb), 0.52);
  background: rgba(var(--edge-glow-rgb), 0.12);
}

.ext-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  margin-right: 7px;
  border-radius: 5px;
  border: 1px solid rgba(203, 213, 225, 0.28);
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font: 9px var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.ext-badge[data-ext=".exe"],
.ext-badge[data-ext=".dll"],
.ext-badge[data-ext=".asi"],
.ext-badge[data-ext=".scr"] {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.45);
}
.ext-badge[data-ext=".bat"],
.ext-badge[data-ext=".ps1"],
.ext-badge[data-ext=".cmd"],
.ext-badge[data-ext=".vbs"],
.ext-badge[data-ext=".lua"] {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.42);
}
.ext-badge[data-ext=".pf"] {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.42);
}
.ext-badge[data-ext=".zip"],
.ext-badge[data-ext=".rar"],
.ext-badge[data-ext=".7z"],
.ext-badge[data-ext=".iso"] {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.42);
}
.ext-badge[data-ext=".lnk"] {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.42);
}

.report-inline-path-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 7px;
  margin-top: 6px;
  min-width: 0;
}
.report-inline-path {
  display: inline-block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.36);
  color: #e2e8f0;
  font: 10px var(--font-mono);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-all;
}
.report-copy-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.28);
  background: rgba(var(--edge-glow-rgb), 0.08);
  color: var(--console-ink);
  font: 9px var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.report-copy-chip:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.6);
  background: rgba(var(--edge-glow-rgb), 0.16);
}
.report-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.report-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--console-muted);
  font: 9px var(--font-mono);
}
.report-meta-chip[data-sig="unsigned"],
.report-meta-chip[data-sig="untrusted-offline"],
.report-meta-chip[data-sig="digest-mismatch"] {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
}
.report-meta-chip[data-sig="trusted-offline"] {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.1);
}
.report-dd-with-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.report-dd-with-copy > span {
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* Workbench Controls, Tables & Guide Cards */
.workbench-input,
.workbench-select {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(6, 7, 10, 0.92);
  color: var(--console-ink);
  font-size: 12px;
  font-family: var(--font-mono);
}
.workbench-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.34);
  background: linear-gradient(135deg, rgba(var(--edge-glow-rgb), 0.14), rgba(var(--edge-glow-rgb), 0.06));
  color: var(--console-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--console-specular);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.workbench-action-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.workbench-action-btn:hover:not(:disabled) {
  border-color: rgba(var(--edge-glow-rgb), 0.68);
  background: linear-gradient(135deg, rgba(var(--edge-glow-rgb), 0.22), rgba(var(--edge-glow-rgb), 0.11));
}
.workbench-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px dashed rgba(var(--edge-glow-rgb), 0.36);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.workbench-dropzone:hover,
.workbench-dropzone.is-dragover {
  border-color: rgba(var(--edge-glow-rgb), 0.8);
  background: rgba(var(--edge-glow-rgb), 0.08);
}
.workbench-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--console-muted);
  font: 10px var(--font-mono);
  white-space: nowrap;
}
.workbench-subpanel {
  border: 1px solid var(--console-line);
  border-radius: 14px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.24);
  min-width: 0;
}
.workbench-table-wrap {
  border: 1px solid var(--console-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
}
.workbench-table thead th {
  font: 9px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--console-muted) !important;
  padding: 12px 14px;
  border-bottom: 1px solid var(--console-line);
  white-space: nowrap;
}
.workbench-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--console-line);
  font-size: 11px;
  vertical-align: middle;
}
.workbench-table tbody tr:last-child td {
  border-bottom: 0;
}
.workbench-empty {
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed var(--console-line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--console-muted);
  font-size: 12px;
  text-align: center;
}
.workbench-sev {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font: 9px var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--console-line);
}
.workbench-sev[data-sev="critical"] {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.24);
  border-color: rgba(248, 113, 113, 0.65);
}
.workbench-sev[data-sev="high"] {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.42);
}
.workbench-sev[data-sev="medium"] {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.42);
}
.workbench-sev[data-sev="low"] {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.36);
}
.workbench-sev[data-sev="notice"] {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
}
.founder-ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.3);
  background: rgba(255, 255, 255, 0.05);
  font: 11px var(--font-mono);
  color: #f1f5f9;
}
.founder-ip-chip-remove {
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.founder-ip-chip-remove:hover {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(248, 113, 113, 0.72);
}
.report-header-actions {
  margin: 0 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.console-ui .report-header-actions .report-back {
  margin: 0;
}
.report-audit-trigger,
.audit-primary-btn {
  border-color: rgba(var(--edge-glow-rgb), 0.46);
  background: linear-gradient(135deg, rgba(var(--edge-glow-rgb), 0.2), rgba(var(--edge-glow-rgb), 0.08));
  color: var(--console-ink);
  box-shadow: var(--console-specular);
}
.report-audit-trigger:hover:not(:disabled),
.audit-primary-btn:hover:not(:disabled) {
  border-color: rgba(var(--edge-glow-rgb), 0.78);
  background: linear-gradient(135deg, rgba(var(--edge-glow-rgb), 0.28), rgba(var(--edge-glow-rgb), 0.14));
}
.console-audit-action {
  color: var(--console-accent) !important;
  border-color: rgba(var(--edge-glow-rgb), 0.36) !important;
  background: rgba(var(--edge-glow-rgb), 0.1) !important;
}
.console-audit-action:hover {
  color: var(--console-ink) !important;
  border-color: rgba(var(--edge-glow-rgb), 0.68) !important;
  background: rgba(var(--edge-glow-rgb), 0.18) !important;
}
.report-usn-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.report-usn-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font: 9px var(--font-mono);
  font-weight: 700;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}
.report-usn-badge[data-tone="danger"] {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
}
.report-usn-badge[data-tone="warn"] {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.42);
}
.report-usn-badge[data-tone="info"] {
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
}
.report-ps-command-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(0, 0, 0, 0.55);
}
.report-ps-command {
  flex: 1 1 14rem;
  min-width: 0;
  color: #fef3c7;
  font: 11px var(--font-mono);
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.audit-result-shell,
.inline-audit-banner {
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  padding: 16px;
}
.inline-audit-banner {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
}
.inline-audit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}
.inline-audit-summary::-webkit-details-marker {
  display: none;
}
.inline-audit-banner[open] .inline-audit-chevron {
  transform: rotate(180deg);
}
.inline-audit-body {
  padding: 16px;
  border-top: 1px solid var(--console-line);
}
.audit-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.audit-verdict-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 10px;
  font: 12px var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid var(--console-line);
}
.audit-verdict-badge[data-verdict="clean"],
.audit-score-pill[data-verdict="clean"] {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.42);
}
.audit-verdict-badge[data-verdict="low"],
.audit-score-pill[data-verdict="low"] {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
}
.audit-verdict-badge[data-verdict="medium"],
.audit-score-pill[data-verdict="medium"] {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
}
.audit-verdict-badge[data-verdict="high"],
.audit-score-pill[data-verdict="high"] {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.5);
}
.audit-verdict-badge[data-verdict="critical"],
.audit-score-pill[data-verdict="critical"] {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.25);
  border-color: rgba(248, 113, 113, 0.7);
}
.audit-score-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font: 10px var(--font-mono);
  font-weight: 700;
  border: 1px solid var(--console-line);
}
.audit-score-track {
  width: 100%;
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.audit-score-fill {
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.audit-score-fill[data-verdict="clean"] { background: #10b981; }
.audit-score-fill[data-verdict="low"] { background: #38bdf8; }
.audit-score-fill[data-verdict="medium"] { background: #f59e0b; }
.audit-score-fill[data-verdict="high"] { background: #f97316; }
.audit-score-fill[data-verdict="critical"] { background: #ef4444; }
.audit-finding-card {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.35);
}
.audit-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.audit-tier-card {
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.38);
  min-width: 0;
}
.audit-tier-card[data-tier="1"] {
  border-color: rgba(239, 68, 68, 0.38);
  background: rgba(239, 68, 68, 0.08);
}
.audit-tier-card[data-tier="2"] {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.08);
}
.audit-tier-card[data-tier="3"] {
  border-color: rgba(var(--edge-glow-rgb), 0.28);
  background: rgba(var(--edge-glow-rgb), 0.05);
}
.audit-tier-card-label {
  display: block;
  font: 10px var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--console-ink);
}
.audit-tier-card-count {
  display: block;
  font: 22px var(--font-mono);
  font-weight: 800;
  color: var(--console-ink);
  margin-top: 4px;
}
.audit-tier-card-sub {
  display: block;
  font-size: 11px;
  color: var(--console-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.audit-tier-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.audit-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--console-muted);
  font: 11px var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.audit-tier-pill:hover {
  color: var(--console-ink);
  border-color: rgba(var(--edge-glow-rgb), 0.42);
}
.audit-tier-pill[aria-pressed="true"] {
  color: var(--console-ink);
  border-color: rgba(var(--edge-glow-rgb), 0.65);
  background: rgba(var(--edge-glow-rgb), 0.16);
}
.audit-tier-pill span {
  opacity: 0.85;
  font-size: 10px;
}
.audit-tier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.audit-tier-layout[data-single="true"] {
  grid-template-columns: minmax(0, 1fr);
}
.audit-tier-section[data-tier-section="tier3"] {
  grid-column: 1 / -1;
}
.audit-action-hint {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  color: #e0f2fe;
  font-size: 11px;
  line-height: 1.5;
}
.audit-action-hint strong {
  color: #7dd3fc;
}
.audit-legit-note {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.5;
  color: #a7f3d0;
}
.audit-legit-note strong {
  color: #6ee7b7;
}
.third-party-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.third-party-card {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.34);
  min-width: 0;
}
#intel-report-json-dropzone.is-dragover {
  border-color: rgba(var(--edge-glow-rgb), 0.85) !important;
  background: rgba(var(--edge-glow-rgb), 0.16) !important;
}
html[data-theme="snow"] .audit-result-shell,
html[data-theme="snow"] .inline-audit-banner {
  background: rgba(8, 16, 30, 0.82);
  border-color: var(--console-line);
}
html[data-theme="snow"] .audit-finding-card,
html[data-theme="snow"] .third-party-card {
  background: rgba(11, 19, 34, 0.78);
  border-color: var(--console-line);
}
html[data-theme="snow"] .audit-tier-card[data-tier="3"] {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.34);
}
html[data-theme="snow"] .audit-tier-pill[aria-pressed="true"] {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(56, 189, 248, 0.18);
}
html[data-theme="snow"] .audit-action-hint {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(14, 34, 60, 0.78);
  color: #e0f2fe;
}
@media (max-width: 1100px) {
  .audit-tier-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .audit-tier-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.guide-record-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.28);
}
.cmd-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.28);
  background: rgba(var(--edge-glow-rgb), 0.08);
  color: var(--console-ink);
  font: 10px var(--font-mono);
  cursor: pointer;
}
.cmd-btn:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.65);
  background: rgba(var(--edge-glow-rgb), 0.16);
}
.checklist-select {
  min-width: 135px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--console-line);
  background: rgba(6, 7, 10, 0.92);
  color: var(--console-ink);
  font: 10px var(--font-mono);
  font-weight: 700;
}
.checklist-select[data-status="clean"] {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}
.checklist-select[data-status="suspect"] {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
}
@media (max-width: 860px) {
  .report-header-actions {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .report-filter-bar {
    padding: 10px 12px;
  }
  .report-record-details {
    padding: 0 13px 14px;
  }
}

/* ========================================================
   WALLET, BALANCE CHECKOUT & TOP-UP UI (METALLIC + SNOW)
======================================================== */
#customer-wallet-panel {
  grid-column: 1 / -1;
}
.wallet-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(211, 217, 226, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: #edf1f7;
  font: 700 0.75rem/1.2 var(--font-mono);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.wallet-header-btn:hover {
  border-color: rgba(211, 217, 226, 0.56);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 0 16px rgba(211, 217, 226, 0.16);
}
.wallet-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #edf1f7;
  font-size: 0.875rem;
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.wallet-mobile-link svg {
  width: 15px;
  height: 15px;
  color: var(--primary-color, #d3d9e2);
  flex: none;
}
.wallet-mobile-link:hover {
  border-color: rgba(211, 217, 226, 0.36);
  background: rgba(255, 255, 255, 0.09);
}
.wallet-identity-banner {
  border: 1px solid rgba(211, 217, 226, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(10, 11, 15, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.wallet-identity-name {
  color: #edf1f7;
}
.wallet-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 46rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(14, 16, 22, 0.94), rgba(5, 6, 9, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 14px 36px rgba(0, 0, 0, 0.65);
}
.wallet-status-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.wallet-status-label {
  font: 700 10px var(--font-mono);
  letter-spacing: 0.14em;
  color: #949da9;
}
.wallet-status-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}
.wallet-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(211, 217, 226, 0.36);
  background: linear-gradient(135deg, rgba(211, 217, 226, 0.16), rgba(148, 163, 184, 0.06));
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.wallet-bar-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.wallet-bar-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(237, 241, 247, 0.68);
  background: linear-gradient(135deg, rgba(211, 217, 226, 0.25), rgba(148, 163, 184, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 22px rgba(0, 0, 0, 0.45);
}
.wallet-modal-card {
  max-width: 44rem;
}
.wallet-card {
  padding: 1.05rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 13, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.wallet-hero-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-color: rgba(211, 217, 226, 0.28);
  background: linear-gradient(135deg, rgba(20, 22, 30, 0.95), rgba(6, 7, 10, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.wallet-balance-amount {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(211, 217, 226, 0.16);
  margin-top: 0.2rem;
}
.wallet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.3);
  background: rgba(var(--edge-glow-rgb), 0.08);
  color: #e2e8f0;
  font: 700 10px var(--font-mono);
  white-space: nowrap;
}
.wallet-balance-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(211, 217, 226, 0.34);
  background: rgba(211, 217, 226, 0.1);
  color: #f1f5f9;
  font: 800 10px var(--font-mono);
}
.wallet-preset-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}
.wallet-preset-btn {
  padding: 0.55rem 0.4rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.wallet-preset-btn:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.55);
  background: rgba(var(--edge-glow-rgb), 0.12);
  color: #ffffff;
}
.wallet-preset-btn.is-active {
  border-color: rgba(237, 241, 247, 0.65);
  background: linear-gradient(135deg, rgba(211, 217, 226, 0.22), rgba(148, 163, 184, 0.1));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.wallet-notice-box {
  padding: 0.7rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1.55;
}
.wallet-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.wallet-compare-card {
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.wallet-compare-label {
  display: block;
  font: 10px var(--font-mono);
  color: #949da9;
  margin-bottom: 0.25rem;
}
.wallet-compare-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: #f8fafc;
}
.wallet-compare-value.is-positive {
  color: #edf1f7;
}
.wallet-compare-value.is-negative {
  color: #e4b5ba;
}
.wallet-warn-box {
  padding: 0.85rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(217, 176, 110, 0.34);
  background: rgba(217, 176, 110, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.wallet-warn-danger {
  border-color: rgba(201, 118, 126, 0.38);
  background: linear-gradient(135deg, rgba(201, 118, 126, 0.11), rgba(10, 11, 15, 0.92));
}
.wallet-warn-text {
  color: #edd2d5;
}
.wallet-success-box {
  padding: 0.95rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(211, 217, 226, 0.34);
  background: linear-gradient(135deg, rgba(211, 217, 226, 0.1), rgba(8, 9, 13, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.wallet-key-code {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  word-break: break-all;
}
.wallet-license-row {
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
}
.wallet-license-key-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
}
.wallet-license-key-row code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e2e8f0;
  word-break: break-all;
}
.wallet-mini-btn {
  padding: 0.32rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.wallet-mini-btn:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
}
.wallet-mini-btn-primary {
  border-color: rgba(211, 217, 226, 0.38);
  background: rgba(211, 217, 226, 0.14);
  color: #f8fafc;
}
.wallet-mini-btn-primary:hover {
  border-color: rgba(237, 241, 247, 0.68);
  background: rgba(211, 217, 226, 0.24);
}
.wallet-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.34);
}
.wallet-tx-credit {
  color: #edf1f7;
}
.wallet-tx-debit {
  color: #e4b5ba;
}
.wallet-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 10px var(--font-mono);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.wallet-badge-pending {
  color: #ecd5a7;
  border-color: rgba(217, 176, 110, 0.38);
  background: rgba(217, 176, 110, 0.11);
}
.wallet-badge-approved {
  color: #d7e7e0;
  border-color: rgba(134, 179, 160, 0.36);
  background: rgba(134, 179, 160, 0.11);
}
.wallet-badge-rejected {
  color: #e6c6c9;
  border-color: rgba(201, 118, 126, 0.36);
  background: rgba(201, 118, 126, 0.11);
}
.wallet-approve-btn {
  padding: 0.42rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(134, 179, 160, 0.38);
  background: rgba(134, 179, 160, 0.11);
  color: #d7e7e0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.wallet-approve-btn:hover:not(:disabled) {
  border-color: rgba(158, 204, 185, 0.65);
  background: rgba(134, 179, 160, 0.2);
  color: #eef7f3;
}
.wallet-reject-btn {
  padding: 0.42rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(201, 118, 126, 0.36);
  background: rgba(201, 118, 126, 0.1);
  color: #e6c6c9;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.wallet-reject-btn:hover:not(:disabled) {
  border-color: rgba(224, 138, 146, 0.62);
  background: rgba(201, 118, 126, 0.19);
  color: #f8e2e4;
}

html[data-theme="snow"] .wallet-header-btn {
  border-color: rgba(125, 211, 252, 0.38);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(11, 19, 34, 0.88));
  color: #e0f2fe;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.2);
}
html[data-theme="snow"] .wallet-header-btn:hover {
  border-color: rgba(125, 211, 252, 0.72);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(14, 28, 52, 0.94));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.28), 0 0 18px rgba(56, 189, 248, 0.22);
}
html[data-theme="snow"] .wallet-mobile-link {
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(14, 25, 45, 0.82);
  color: #e0f2fe;
}
html[data-theme="snow"] .wallet-identity-banner {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.9), rgba(8, 16, 30, 0.94));
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.18);
}
html[data-theme="snow"] .wallet-identity-name,
html[data-theme="snow"] .wallet-status-value,
html[data-theme="snow"] .wallet-balance-amount,
html[data-theme="snow"] .wallet-compare-value.is-positive,
html[data-theme="snow"] .wallet-tx-credit {
  color: #7dd3fc;
}
html[data-theme="snow"] .wallet-status-bar,
html[data-theme="snow"] .wallet-card,
html[data-theme="snow"] .wallet-compare-card,
html[data-theme="snow"] .wallet-license-row,
html[data-theme="snow"] .wallet-tx-row {
  background: rgba(11, 19, 34, 0.92);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16);
}
html[data-theme="snow"] .wallet-hero-card {
  background: linear-gradient(135deg, rgba(14, 30, 54, 0.95), rgba(6, 12, 22, 0.98));
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.2);
}
html[data-theme="snow"] .wallet-bar-btn,
html[data-theme="snow"] .wallet-mini-btn-primary,
html[data-theme="snow"] .wallet-balance-pill,
html[data-theme="snow"] .wallet-preset-btn.is-active {
  border-color: rgba(125, 211, 252, 0.48);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.12));
  color: #e0f2fe;
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.22);
}
html[data-theme="snow"] .wallet-bar-btn:hover,
html[data-theme="snow"] .wallet-mini-btn-primary:hover {
  border-color: rgba(186, 230, 253, 0.78);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(2, 132, 199, 0.18));
}
html[data-theme="snow"] .wallet-success-box {
  border-color: rgba(125, 211, 252, 0.42);
  background: linear-gradient(135deg, rgba(14, 34, 62, 0.92), rgba(6, 14, 28, 0.95));
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.18);
}
html[data-theme="snow"] .wallet-chip {
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.12);
  color: #e0f2fe;
}
html[data-theme="snow"] .wallet-preset-btn {
  background: rgba(14, 25, 45, 0.85);
  border-color: var(--border-subtle);
  color: #e0f2fe;
}
html[data-theme="snow"] .wallet-preset-btn:hover {
  border-color: var(--border-hover);
  background: rgba(56, 189, 248, 0.18);
}
html[data-theme="snow"] .wallet-notice-box {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--border-subtle);
  color: #bae6fd;
}

@media (max-width: 640px) {
  .wallet-preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wallet-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   REPORT TRIAGE, DEDUPLICATION & GUIDE UI (METALLIC + SNOW)
======================================================== */
.triage-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.triage-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid var(--console-line);
  background: var(--console-surface);
  box-shadow: var(--console-specular);
  min-width: 0;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.triage-kpi-card[data-tier="1"],
.triage-kpi-card[data-tone="critical"] {
  border-color: rgba(214, 118, 126, 0.38);
  background: linear-gradient(145deg, rgba(214, 118, 126, 0.09), var(--console-surface));
}
.triage-kpi-card[data-tier="2"],
.triage-kpi-card[data-tone="warn"] {
  border-color: rgba(217, 176, 110, 0.36);
  background: linear-gradient(145deg, rgba(217, 176, 110, 0.08), var(--console-surface));
}
.triage-kpi-card[data-tier="3"],
.triage-kpi-card[data-tone="neutral"] {
  border-color: rgba(var(--edge-glow-rgb), 0.24);
}
.triage-kpi-card[data-tone="clean"] {
  border-color: rgba(134, 179, 160, 0.34);
}
.triage-kpi-card .triage-kpi-label {
  display: block;
  font: 700 10px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--console-muted);
}
.triage-kpi-card .triage-kpi-count {
  display: block;
  font: 800 22px/1.15 var(--font-mono);
  color: var(--console-ink);
}
.triage-kpi-card .triage-kpi-sub {
  display: block;
  font-size: 11px;
  line-height: 1.45;
  color: var(--console-muted);
}
.triage-kpi-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.report-cluster-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(var(--edge-glow-rgb), 0.34);
  background: rgba(var(--edge-glow-rgb), 0.1);
  color: var(--console-accent);
  font: 700 9px/1.3 var(--font-mono);
  letter-spacing: 0.03em;
  white-space: nowrap;
  vertical-align: middle;
}
.report-group-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 6px 6px;
  padding-top: 10px;
  border-top: 1px solid var(--console-line);
  font: 700 8px/1.2 var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--console-muted);
}
.report-group-divider:first-child {
  margin-top: 2px;
  padding-top: 0;
  border-top: 0;
}
.intel-method-box {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--console-line);
  border-left: 2px solid var(--console-accent);
  background: rgba(var(--edge-glow-rgb), 0.05);
  color: var(--console-ink);
  font-size: 11px;
  line-height: 1.55;
}
.intel-method-box strong {
  color: var(--console-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.intel-method-box code {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--console-line);
}
.guide-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--console-ink);
  font: 800 9px/1.3 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.guide-priority-badge[data-priority="P1"],
.guide-priority-badge[data-priority="p1"] {
  color: #fecaca;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(220, 38, 38, 0.2);
}
.guide-priority-badge[data-priority="P2"],
.guide-priority-badge[data-priority="p2"] {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.46);
  background: rgba(245, 158, 11, 0.14);
}
.guide-priority-badge[data-priority="P3"],
.guide-priority-badge[data-priority="p3"] {
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}
.guide-priority-badge[data-priority="P4"],
.guide-priority-badge[data-priority="p4"] {
  color: var(--console-muted);
  border-color: var(--console-line);
  background: rgba(255, 255, 255, 0.04);
}
.audit-collapsible {
  border: 1px solid var(--console-line);
  border-radius: 14px;
  background: var(--console-surface);
  box-shadow: var(--console-specular);
  overflow: hidden;
  margin-bottom: 16px;
}
.audit-collapsible > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--console-ink);
  background: rgba(var(--edge-glow-rgb), 0.035);
  transition: background-color 0.16s ease;
}
.audit-collapsible > summary:hover {
  background: rgba(var(--edge-glow-rgb), 0.07);
}
.audit-collapsible > summary::-webkit-details-marker {
  display: none;
}
.audit-collapsible[open] > summary {
  border-bottom: 1px solid var(--console-line);
}
.audit-collapsible[open] .audit-collapsible-chevron,
.audit-collapsible[open] .inline-audit-chevron {
  transform: rotate(180deg);
}
.audit-collapsible-body {
  padding: 14px 16px;
}

html[data-theme="snow"] .triage-kpi-card,
html[data-theme="snow"] .audit-collapsible {
  background: rgba(11, 19, 34, 0.92);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.18);
}
html[data-theme="snow"] .report-cluster-badge {
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(56, 189, 248, 0.14);
  color: #bae6fd;
}
html[data-theme="snow"] .intel-method-box {
  border-color: rgba(56, 189, 248, 0.24);
  border-left-color: #7dd3fc;
  background: rgba(14, 34, 60, 0.62);
  color: #e0f2fe;
}
@media (max-width: 860px) {
  .triage-summary-strip {
    grid-template-columns: 1fr;
  }
  .report-group-divider {
    display: none;
  }
}

.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  min-height: 2.25rem;
  padding: .38rem .58rem;
  border: 1px solid var(--border-white-subtle);
  border-radius: .7rem;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  font: 800 .68rem/1 var(--font-mono);
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.lang-toggle:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .36);
}
.lang-toggle-globe {
  font-size: .82rem;
  line-height: 1;
}
.lang-toggle-caret {
  font-size: .62rem;
  opacity: .72;
  transition: transform .16s ease;
}
.lang-toggle[aria-expanded="true"] .lang-toggle-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + .45rem);
  right: 0;
  z-index: 180;
  min-width: 10.5rem;
  max-height: 20rem;
  overflow-y: auto;
  padding: .35rem;
  border-radius: .85rem;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(8, 10, 15, .97);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .78);
  display: grid;
  gap: .18rem;
}
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
.lang-menu.hidden {
  display: none !important;
}
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .42rem .58rem;
  border-radius: .55rem;
  border: 1px solid transparent;
  background: transparent;
  color: #e2e8f0;
  font-size: .72rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.lang-option:hover,
.lang-option[aria-selected="true"] {
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .24);
  color: #fff;
}
.lang-option-code {
  font: 800 .62rem/1 var(--font-mono);
  color: #94a3b8;
  letter-spacing: .06em;
}
.lang-option[aria-selected="true"] .lang-option-code {
  color: #fff;
}
.lang-mobile-chip {
  padding: .3rem .52rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
  color: #cbd5e1;
  font: 700 .68rem/1.1 var(--font-mono);
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.lang-mobile-chip[aria-pressed="true"] {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
html[data-theme="snow"] .lang-toggle {
  color: var(--accent-color);
  background: rgba(14, 25, 45, .8);
  border-color: var(--border-subtle);
}
html[data-theme="snow"] .lang-toggle:hover {
  color: #06111e;
  background: var(--btn-gradient);
  border-color: var(--border-hover);
}
html[data-theme="snow"] .lang-menu {
  background: rgba(7, 15, 28, .96);
  border-color: var(--border-hover);
  box-shadow: 0 18px 42px rgba(3, 12, 26, .85);
}
html[data-theme="snow"] .lang-option:hover,
html[data-theme="snow"] .lang-option[aria-selected="true"],
html[data-theme="snow"] .lang-mobile-chip[aria-pressed="true"] {
  background: rgba(56, 189, 248, .18);
  border-color: rgba(125, 211, 252, .5);
  color: #e0f2fe;
}
@media (max-width: 640px) {
  .lang-toggle {
    min-height: 2.25rem;
    padding: .35rem .45rem;
    font-size: .64rem;
  }
}

/* ========================================================
   MULTI-LANGUAGE RTL SUPPORT (ARABIC / RIGHT-TO-LEFT)
======================================================== */
[dir="rtl"] .console-ui .dash-nav {
  inset: 0 0 0 auto;
  border-right: 0;
  border-left: 1px solid var(--console-line);
}
[dir="rtl"] .console-ui .dash-nav button,
[dir="rtl"] .console-ui .console-hero,
[dir="rtl"] .console-ui .console-panel,
[dir="rtl"] .console-ui .triage-kpi-card,
[dir="rtl"] .console-ui .audit-finding-card,
[dir="rtl"] .console-ui .report-module,
[dir="rtl"] .console-ui .report-record-body,
[dir="rtl"] .console-ui .report-context-cell,
[dir="rtl"] .console-ui .customer-row-open,
[dir="rtl"] .lang-option,
[dir="rtl"] .wallet-mobile-link {
  text-align: right;
}
[dir="rtl"] .console-ui .console-topbar {
  margin-left: 0;
  margin-right: 250px;
}
[dir="rtl"] .console-ui .dash-layout {
  margin-left: 0;
  margin-right: 250px;
}
[dir="rtl"] .console-ui .report-modules {
  border-right: 0;
  border-left: 1px solid var(--console-line);
}
[dir="rtl"] .console-ui .report-module-count {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .console-ui .report-verdict-cell {
  padding-right: 0;
  padding-left: 28px;
}
[dir="rtl"] .console-ui .report-context-cell {
  border-left: 0;
  border-right: 1px solid var(--console-line);
}
[dir="rtl"] .console-ui .report-toolbar > div:first-child {
  margin-right: 0;
  margin-left: auto;
}
[dir="rtl"] .console-ui .report-header-actions,
[dir="rtl"] .console-ui .report-back {
  margin: 0 auto 0 0;
}
[dir="rtl"] .console-ui .report-header-actions .report-back {
  margin: 0;
}
[dir="rtl"] .console-ui .report-record-details {
  padding: 0 54px 16px 17px;
  text-align: right;
}
[dir="rtl"] .console-ui .report-record-meta {
  text-align: left;
}
[dir="rtl"] .console-ui .report-record-chevron {
  margin-left: 0;
  margin-right: 4px;
}
[dir="rtl"] .console-ui .report-context-strip strong {
  margin-right: 0;
  margin-left: 3px;
}
[dir="rtl"] .ext-badge {
  margin-right: 0;
  margin-left: 7px;
}
[dir="rtl"] .console-ui .dash-main table,
[dir="rtl"] .console-ui .workbench-table {
  text-align: right;
}
[dir="rtl"] .console-ui .dash-main table th.text-right,
[dir="rtl"] .console-ui .dash-main table td.text-right,
[dir="rtl"] .console-ui .workbench-table th.text-right,
[dir="rtl"] .console-ui .workbench-table td.text-right {
  text-align: left;
}
[dir="rtl"] .console-guide-step {
  border-left: 0;
  border-right: 2px solid rgba(var(--edge-glow-rgb), 0.48);
  padding: 0.25rem 1rem 0.25rem 0;
}
[dir="rtl"] .intel-method-box {
  border-left: 1px solid var(--console-line);
  border-right: 2px solid var(--console-accent);
  text-align: right;
}
[dir="rtl"] html[data-theme="snow"] .intel-method-box,
html[data-theme="snow"][dir="rtl"] .intel-method-box {
  border-left-color: rgba(56, 189, 248, 0.24);
  border-right-color: #7dd3fc;
}
[dir="rtl"] .wallet-key-code,
[dir="rtl"] .wallet-license-key-row code,
[dir="rtl"] .report-inline-path-code,
[dir="rtl"] .report-ps-command {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
@media (max-width: 1200px) {
  [dir="rtl"] .console-ui .console-topbar {
    margin-left: 0;
    margin-right: 215px;
  }
  [dir="rtl"] .console-ui .dash-layout {
    margin-left: 0;
    margin-right: 215px;
  }
  [dir="rtl"] .console-ui .report-verdict-cell {
    padding-right: 0;
    padding-left: 16px;
  }
}
@media (max-width: 860px) {
  [dir="rtl"] .console-ui .console-topbar,
  [dir="rtl"] .console-ui .dash-layout {
    margin-left: 0;
    margin-right: 0;
  }
  [dir="rtl"] .console-ui .dash-nav {
    border-left: 0;
    border-bottom: 1px solid var(--console-line);
  }
  [dir="rtl"] .console-ui .console-brand {
    margin: 0 0 0 10px;
  }
  [dir="rtl"] .console-ui .report-modules {
    border-left: 0;
    border-bottom: 1px solid var(--console-line);
  }
  [dir="rtl"] .console-ui .report-module-count {
    margin-left: 0;
    margin-right: 8px;
  }
  [dir="rtl"] .console-ui .report-context-cell {
    border-right: 0;
    padding: 0 0 0 16px;
  }
  [dir="rtl"] .console-ui .report-back {
    margin-right: 0 !important;
  }
}
@media (max-width: 540px) {
  [dir="rtl"] .console-ui .report-record-details {
    padding: 0 13px 14px;
  }
  [dir="rtl"] .console-ui .report-back {
    margin-right: auto !important;
    margin-left: 0 !important;
  }
}

/* ========================================================
   SMART SCAN SEARCH & WORKBENCH FUZZY SEARCH BARS
   ======================================================== */
.console-search-jump-btn {
  border-color: rgba(var(--edge-glow-rgb), 0.36);
  background: rgba(var(--edge-glow-rgb), 0.1);
  color: var(--console-ink);
}
.console-search-jump-btn:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.65);
  background: rgba(var(--edge-glow-rgb), 0.18);
}

.scan-search-bar,
.workbench-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.workbench-search-field {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
}

.search-fuzzy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.56rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--console-ink);
  font: 600 11px/1.2 var(--font-mono);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.search-fuzzy-toggle:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.45);
  background: rgba(var(--edge-glow-rgb), 0.1);
}
.search-fuzzy-toggle input[type="checkbox"] {
  accent-color: var(--console-accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.scan-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.scan-chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--console-muted);
  font: 600 11px/1.3 var(--font-mono);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background-color 0.16s ease;
}
.scan-chip-btn:hover {
  color: var(--console-ink);
  border-color: rgba(var(--edge-glow-rgb), 0.55);
  background: rgba(var(--edge-glow-rgb), 0.14);
}

.scan-search-card {
  border-color: var(--console-line);
  background: rgba(8, 10, 14, 0.65);
  transition: border-color 0.16s ease;
}
.scan-search-card:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.4);
}

.match-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 9px/1.3 var(--font-mono);
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid var(--console-line);
  vertical-align: middle;
}
.match-badge[data-match-type="exact"] {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(22, 163, 74, 0.16);
}
.match-badge[data-match-type="synonym"] {
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.42);
  background: rgba(14, 165, 233, 0.16);
}
.match-badge[data-match-type="fuzzy"] {
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.16);
}

html[data-theme="snow"] .search-fuzzy-toggle,
html[data-theme="snow"] .scan-chip-btn {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 197, 255, 0.24);
}
html[data-theme="snow"] .scan-chip-btn:hover,
html[data-theme="snow"] .search-fuzzy-toggle:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(125, 211, 252, 0.5);
  color: #f0f9ff;
}
html[data-theme="snow"] .scan-search-card {
  background: rgba(9, 17, 31, 0.84);
  border-color: rgba(148, 197, 255, 0.22);
}
html[data-theme="snow"] .scan-search-card:hover {
  border-color: rgba(125, 211, 252, 0.48);
}

/* ========================================================
   COMPACT AUDIT ACCORDION, SCROLL CONTAINERS & PAGINATION
   ======================================================== */
.audit-tier-card[data-audit-tier] {
  cursor: pointer;
  width: 100%;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.audit-tier-card[data-audit-tier]:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.52);
}

.audit-tier-section {
  padding: 0;
  overflow: hidden;
}
.audit-tier-section > summary.audit-tier-section-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
  background: rgba(var(--edge-glow-rgb), 0.035);
  transition: background-color 0.15s ease;
}
.audit-tier-section > summary.audit-tier-section-summary:hover {
  background: rgba(var(--edge-glow-rgb), 0.08);
}
.audit-tier-section > summary::-webkit-details-marker {
  display: none;
}
.audit-tier-section[open] > summary.audit-tier-section-summary {
  border-bottom: 1px solid var(--console-line);
}
.audit-tier-section[open] > summary .audit-finding-chevron {
  transform: rotate(180deg);
}
.audit-tier-section-body {
  padding: 12px 14px;
}

.audit-finding-details {
  border-radius: 10px;
  border: 1px solid var(--console-line);
  background: rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.audit-finding-details:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.4);
}
.audit-finding-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.audit-finding-summary::-webkit-details-marker {
  display: none;
}
.audit-finding-title {
  min-width: 0;
}
.audit-finding-chevron {
  margin-left: auto;
  color: var(--console-muted);
  font-size: 13px;
  line-height: 1;
  transition: transform 0.16s ease;
}
.audit-finding-details[open] > .audit-finding-summary {
  border-bottom: 1px solid var(--console-line);
  background: rgba(var(--edge-glow-rgb), 0.04);
}
.audit-finding-details[open] > .audit-finding-summary .audit-finding-chevron {
  transform: rotate(180deg);
}
.audit-finding-body {
  padding: 10px 12px 12px;
}

.audit-file-chip {
  display: inline-block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--console-ink);
  font: 600 10px/1.35 var(--font-mono);
}
.audit-repeat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
  font: 700 9px/1.3 var(--font-mono);
  white-space: nowrap;
}
.audit-path-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
}
.audit-show-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid var(--console-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--console-ink);
  font: 600 11px/1.2 var(--font-mono);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.audit-show-more-btn:hover {
  border-color: rgba(var(--edge-glow-rgb), 0.55);
  background: rgba(var(--edge-glow-rgb), 0.12);
}

.workbench-table-wrap--scroll {
  max-height: 430px;
  overflow-y: auto;
}
.workbench-table-wrap--scroll .workbench-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(9, 11, 16, 0.96);
}

.intel-method-disclosure {
  margin-top: 6px;
}
.intel-method-disclosure > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font: 600 10px/1.3 var(--font-mono);
  color: var(--console-accent);
  list-style: none;
}
.intel-method-disclosure > summary::-webkit-details-marker {
  display: none;
}
.intel-method-disclosure > summary:hover {
  text-decoration: underline;
}

html[data-theme="snow"] .audit-finding-details {
  background: rgba(11, 19, 34, 0.8);
  border-color: rgba(56, 189, 248, 0.22);
}
html[data-theme="snow"] .audit-finding-details:hover {
  border-color: rgba(125, 211, 252, 0.45);
}
html[data-theme="snow"] .audit-show-more-btn {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 197, 255, 0.26);
  color: #e0f2fe;
}
html[data-theme="snow"] .audit-show-more-btn:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(125, 211, 252, 0.55);
}
html[data-theme="snow"] .workbench-table-wrap--scroll .workbench-table thead th {
  background: rgba(7, 15, 28, 0.98);
}

[dir="rtl"] .audit-finding-chevron {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .report-inline-path {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

.audit-change-detail {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.28);
  font-size: 11px;
  line-height: 1.45;
  color: #fecaca;
}
.audit-change-detail code {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #fff;
  word-break: break-all;
}

.fosheptic-devtools-shield {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 6, 10, 0.94);
  backdrop-filter: blur(18px);
}
html[data-devtools-guard="1"] .fosheptic-devtools-shield {
  display: flex;
}
html[data-devtools-guard="1"] #dashboard-app,
html[data-devtools-guard="1"] #book-stage {
  filter: blur(14px);
  pointer-events: none;
  user-select: none;
}
.fosheptic-devtools-shield-card {
  max-width: 440px;
  width: 100%;
  padding: 24px;
  border-radius: 16px;
  background: rgba(12, 16, 24, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  text-align: center;
  color: #f8fafc;
}
.fosheptic-devtools-shield-card h2 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fca5a5;
  margin-bottom: 8px;
}
.fosheptic-devtools-shield-card p {
  font-size: 12px;
  line-height: 1.55;
  color: #cbd5e1;
}
