/* G008_ASSET_VERSION_PARITY_MARKER: 16faces-r93-p007 */
/* =====================================================================
   H013 global token owner layer
   Owner: all active :root custom properties. Later historical theme
   token blocks are intentionally inert so DevTools exposes one source.
   ===================================================================== */
:root{
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --bg: #f4f6f9;
  --bg-soft: #f4f6f9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-soft: #f8f9fa;
  --text: #212529;
  --text-soft: #6c757d;
  --text-faint: #adb5bd;
  --line: #dee2e6;
  --line-strong: #ced4da;
  --brand: #0d6efd;
  --brand-strong: #0a58ca;
  --brand-soft: #e7f1ff;
  --tone-blue-strong: #6ea8fe;
  --tone-blue-soft: #e7f1ff;
  --mint: #ffffff;
  --tone-neutral: #ffffff;
  --blue: #0a58ca;
  --shadow: 0 4px 6px rgba(33, 37, 41, 0.05);
  --shadow-lg: 0 10px 20px rgba(33, 37, 41, 0.08);
  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --transition: 220ms ease;
  --font-primary: system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", Roboto, Arial, sans-serif;
  --glass-blur: none;
  --btn-shadow: none;
  --special-fx-bg: none;
  --glass-bg: #ffffff;
  --btn-bg: #0d6efd;
  --border-style: 1px solid var(--line);
  --scan-glass: #084298;
  --scan-surface: #084298;
  --scan-line: rgba(255, 255, 255, 0.14);
  --btn-text: #ffffff;
  --scan-surface-strong: #0a58ca;
  --accent-soft: #e7f1ff;
  --accent-blue-soft: #e7f1ff;
  --accent-ink: #0a58ca;
  --upgrade-bg: #0a58ca;
  --bm-funnel-accent: #0d6efd;
  --bm-funnel-accent-strong: #084298;
  --bm-funnel-soft: #e7f1ff;
  --bm-funnel-warm: #e7f1ff;
  --bm-blue: #0d6efd;
  --bm-blue-strong: #0a58ca;
  --bm-gray-900: #212529;
  --bm-gray-700: #495057;
  --bm-gray-600: #6c757d;
  --bm-gray-500: #adb5bd;
  --bm-gray-300: #dee2e6;
  --bm-gray-200: #e9ecef;
  --bm-gray-100: #f8f9fa;
  --bm-white: #ffffff;
  --global-menu-z: 2147483000;
  --my-page-modal-z: 2147483200;
  --legal-modal-z: calc(var(--my-page-modal-z, 2147483200) - 1);
  --premium-flow-escape-z: calc(var(--global-menu-z, 2147483000) - 2);
  --master-upload-modal-z: calc(var(--global-menu-z, 2147483000) - 4);
  --payment-recovery-modal-z: calc(var(--global-menu-z, 2147483000) - 3);
}

*,
*::before,
*::after{
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body{
  width: 100%;
  min-height: 100%;
  margin: 0;
  max-inline-size: 100%;
  overflow-x: hidden;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: var(--font-primary) !important;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

body{
  overflow: hidden;
}

button,
input,
textarea,
select{
  font: inherit;
  font-family: var(--font-primary);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

button{
  border: 0;
  cursor: pointer;
  background: none;
}

button:focus-visible,
input:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}


.hidden{
  display: none !important;
}

.noscript-seo-fallback{
  max-width: 720px;
  margin: 32px auto;
  padding: 24px;
  font-family: var(--font-primary);
  line-height: 1.7;
  color: #212529;
}

.is-hidden{
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.app-shell{
  position: relative;
  width: 100vw;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #f4f6f9;
}

.app-shell::before,
.app-shell::after{
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: none;
}

.app-shell::before{
  top: 120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: none;
}

.app-shell::after{
  bottom: -120px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: none;
}

.app-shell[data-scene="scan"]{
  background: #212529;
}

.app-shell[data-scene="analyzing"],
.app-shell[data-scene="loading"]{
  background: #f4f6f9;
}

.app-shell[data-scene="done"]{
  background: #f4f6f9;
}

.preview-shell,
.preview-viewport,
.camera,
.preview,
.overlay{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-shell{
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.app-shell[data-scene="scan"] .preview-shell{
  opacity: 1;
  visibility: visible;
}

.preview-viewport{
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(33, 37, 41, 0.32);
}

.camera,
.preview{
  background: #eef2f7;
}

.camera{
  pointer-events: none;
  object-fit: fill;
}

.preview{
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.preview.preview-live{
  opacity: 1;
}

#overlay.overlay{
  z-index: 8;
  pointer-events: none;
}

.app-shell:not([data-scene="scan"]) #overlay{
  opacity: 0;
  visibility: hidden;
}

.screen,
.scan-ui{
  position: absolute;
  inset: 0;
  z-index: 10;
}

.screen-scroll{
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar{
  display: none;
}

#loadingScreen,
#analysisJourneyScreen{
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

:is(#loadingScreen, #onboardingScreen, #analysisJourneyScreen):not(.screen-active){
  pointer-events: none;
}

.top-bar{
  position: absolute;
  top: calc(16px + var(--safe-top));
  left: calc(16px + var(--safe-left));
  right: calc(16px + var(--safe-right));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 0.9rem);
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
}

/* H018 shared primitive consolidation: base owns repeated button, pill and icon-button chrome. */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.icon-button{
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 700;
}

.landing-language-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill-brand{
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  font-weight: 700;
  box-shadow: none;
}

.app-shell[data-scene="scan"] .pill,
.app-shell[data-scene="scan"] .icon-button,
.app-shell[data-scene="scan"] .landing-language-trigger,
.app-shell[data-scene="scan"] .landing-language-switch-button{
  background: rgba(33, 37, 41, 0.54);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(33, 37, 41, 0.22);
}

.app-shell[data-scene="scan"] .pill-brand{
  background: #0d6efd;
  color: #ffffff;
}

.button{
  max-width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:active{
  transform: translateY(1px) scale(0.99);
}

.button:disabled{
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow: none;
}

.button-primary,
.button-upgrade-primary{
  color: #ffffff;
  background: #0d6efd;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.14);
}

.button-upgrade-secondary{
  color: var(--brand-strong);
  background: #ffffff;
  border: 1px solid #9ec5fe;
  box-shadow: none;
}

.button-secondary{
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}


.screen{
  padding: 0;
}

/* H022 transient pre-scan consolidation block: loading, onboarding, and analysis journey surfaces. */
:is(.camera-warmup-shell, .onboarding-shell, .analysis-journey-shell){
  position: relative;
  z-index: 1;
  min-height: 100%;
  margin: 0 auto;
  max-inline-size: 100%;
}

:is(.camera-warmup-shell, .analysis-journey-shell){
  width: min(620px, 100%);
  padding:
    calc(112px + var(--safe-top))
    calc(22px + var(--safe-right))
    calc(34px + var(--safe-bottom))
    calc(22px + var(--safe-left));
  display: grid;
  align-content: center;
  gap: 24px;
  text-align: center;
}




.landing-language-switch-wrap{
  display: grid;
  gap: 10px;
  justify-items: end;
}

.landing-language-switch{
  position: relative;
  z-index: 50;
  isolation: isolate;
}

.landing-language-caret{
  font-size: 15px;
  line-height: 1;
}

.landing-language-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  width: max-content;
  max-width: min(230px, calc(100vw - 24px));
  z-index: 60;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.landing-language-switch.is-open .landing-language-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.landing-language-switch-button{
  min-height: 42px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text-soft);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 700;
  justify-content: flex-start;
  white-space: nowrap;
}

.landing-language-switch-button.is-active{
  background: #e7f1ff;
  color: var(--brand-strong);
  border-color: rgba(13, 110, 253, 0.22);
}.report-card,
.metric-card{
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}.report-card{
  border-radius: var(--radius-xl);
}




.scan-tour-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}.support-text,
.report-card-body{
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}



.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 110, 253, 0.14);
  color: var(--text-soft);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.08);
  font-size: 13px;
  font-weight: 700;
}



.camera-warmup-shell{
  width: min(620px, 100%);
}

.camera-warmup-shell-preload{
  contain: layout paint;
}

@media (prefers-reduced-motion: reduce){
  .camera-warmup-shell-preload .camera-warmup-ring,
  #analysisJourneyScreen .analysis-star{
    animation: none;
  }
}


.camera-warmup-visual{
  position: relative;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.camera-warmup-ring{
  position: absolute;
  border-radius: 50%;
  border: 1px dashed #dee2e6;
}

.camera-warmup-ring-a{
  inset: 8%;
  animation: spin 12s linear infinite;
}

.camera-warmup-ring-b{
  inset: -2%;
  animation: spinReverse 18s linear infinite;
}

.camera-warmup-core{
  position: relative;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-copy{
  display: grid;
  gap: 8px;
}.hero-copy h2,
.section-heading,
.report-card-head h3{
  margin: 0;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero-copy h2{
  font-size: clamp(28px, 5vw, 42px);
}
.eyebrow,
.panel-label,
.metric-card-kicker{
  margin: 0;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:is(.loading-track, .progress-rail, .meter){
  overflow: hidden;
  background: rgba(13, 110, 253, 0.12);
  border-radius: 999px;
}

.loading-track{
  width: min(100%, 420px);
  height: 10px;
  margin: 0 auto;
  background: #e9ecef;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.progress-rail{
  width: 100%;
  height: 8px;
  margin-top: 14px;
}

.meter{
  width: 100%;
  height: 6px;
  margin-top: 10px;
}

:is(.loading-track, .progress-rail, .meter) span{
  display: block;
  width: var(--16f-progress-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--bm-blue, #0d6efd);
  transition: width 220ms ease;
}

.onboarding-shell{
  width: min(820px, 100%);
  padding:
    calc(88px + var(--safe-top))
    calc(22px + var(--safe-right))
    calc(32px + var(--safe-bottom))
    calc(22px + var(--safe-left));
  display: grid;
  gap: 18px;
}

.onboarding-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button-light{
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-weight: 700;
}

.pill-brand-soft{
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.onboarding-progress{
  display: flex;
  gap: 8px;
}

.onboarding-progress span{
  flex: 1;
  height: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #e9ecef;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.onboarding-progress span.is-active{
  background: var(--bm-blue, #0d6efd);
}

.onboarding-progress span.is-current{
  transform: scaleY(1.22);
}

.trust-preflight-screen .onboarding-topbar,
.trust-preflight-screen .onboarding-progress{
  display: none;
}

.onboarding-panel{
  padding: 28px;
  display: grid;
  gap: 22px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.onboarding-copy-head{
  display: grid;
  gap: 10px;
}

.onboarding-copy-head h2{
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text);
}

.onboarding-body{
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}

.onboarding-checklist{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-check-item{
  padding: 16px;
  display: grid;
  gap: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.onboarding-check-icon{
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  border: 1px solid var(--brand);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.onboarding-check-item strong{
  font-size: 15px;
}

.onboarding-check-item p{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.onboarding-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.trust-preflight-actions{
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
}

.trust-preflight-actions .button{
  width: 100%;
  min-width: 0;
  padding-inline: 14px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 390px){
  .trust-preflight-panel{
    gap: 16px;
  }

  #onboardingScreen .trust-preflight-actions{
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #onboardingScreen .trust-preflight-actions .button{
    min-height: 46px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

@media (max-width: 860px){
  #onboardingScreen .onboarding-checklist{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  :is(#loadingScreen .camera-warmup-shell, #onboardingScreen .onboarding-shell, #analysisJourneyScreen .analysis-journey-shell){
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }

  #onboardingScreen .onboarding-panel{
    padding: 20px;
  }
}

.scan-recovery-panel{
  width: min(720px, 100%);
  margin-inline: auto;
}


.scan-recovery-tips,
.scan-recovery-guide ul,
.scan-recovery-quality-list{
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.65;
}

.scan-recovery-guide-grid{
  display: grid;
  gap: 10px;
}

.scan-recovery-guide,
.scan-recovery-quality,
.scan-recovery-upload,
.scan-recovery-support{
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.07);
  border: 1px solid rgba(13, 110, 253, 0.12);
}

.scan-recovery-guide h3,
.scan-recovery-quality h3,
.scan-recovery-upload h3,
.scan-recovery-support h3{
  margin: 0 0 8px;
  font-size: 15px;
}

.scan-recovery-upload p,
.scan-recovery-support p{
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.scan-recovery-upload{
  display: grid;
  gap: 12px;
  background: rgba(25, 135, 84, 0.08);
}

.scan-recovery-upload-control{
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--text-main);
  font-weight: 800;
}

.scan-recovery-upload-control input[type="file"]{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.scan-recovery-upload-status{
  min-height: 1.4em;
  font-size: 13px;
}

.scan-recovery-support{
  background: rgba(108, 117, 125, 0.08);
}

.scan-recovery-quality{
  background: rgba(255, 193, 7, 0.1);
}

.scan-recovery-quality-list li{
  overflow-wrap: anywhere;
}

.scan-recovery-actions{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
}

.scan-recovery-actions .button{
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 12px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
  touch-action: manipulation;
}

/* H032 mobile responsive override consolidation: scan recovery action stacking is owned beside the scan recovery CSS. */
@media (max-width: 480px){
  .scan-recovery-panel{
    gap: 16px;
  }

  .scan-recovery-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 8px;
  }

  .scan-recovery-actions .button{
    min-height: 46px;
    padding-inline: 10px;
    font-size: 14px;
  }
}

.analysis-journey-shell{
  width: min(620px, 100%);
}

#analysisJourneyScreen h2{
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text);
}

.analysis-journey-stage{
  position: relative;
  width: min(320px, 74vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.analysis-journey-svg,
.analysis-journey-stars{
  position: absolute;
  inset: 0;
}

.analysis-star{
  position: absolute;
  left: var(--star-x, 50%);
  top: var(--star-y, 50%);
  width: var(--star-size, 4px);
  height: var(--star-size, 4px);
  display: block;
  border-radius: 50%;
  background: #e7f1ff;
  box-shadow: none;
  opacity: var(--star-opacity, 0.7);
  transform: translate(-50%, -50%);
  animation: analysisStarPulse 2.8s ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
}

.analysis-journey-line{
  stroke: #0d6efd;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.analysis-journey-phase{
  width: fit-content;
  margin: 0 auto;
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.analysis-journey-percent{
  font-size: clamp(42px, 8vw, 58px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--text);
}

.scan-ui{
  padding: 0;
  isolation: isolate;
}

.app-shell[data-scene="scan"] .scan-ui::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.38);
  pointer-events: none;
  z-index: 0;
}

.scan-floating-top,
.scan-side-readout,
.bottom-panel-refit{
  z-index: 16;
}

.scan-floating-top{
  position: absolute;
  top: calc(80px + var(--safe-top));
  left: calc(16px + var(--safe-left));
  right: calc(16px + var(--safe-right));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.scan-floating-hidden[hidden]{
  display: none !important;
}

.scan-title-stack{
  display: grid;
  gap: 10px;
  max-width: min(58vw, 320px);
}

.guidance-badge{
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(33, 37, 41, 0.54);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(33, 37, 41, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scan-phase-meta,
.scan-live-card,
.bottom-panel-refit,
.scan-side-readout > *{
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.scan-phase-meta{
  padding: 12px 14px;
  border-radius: 20px;
  display: grid;
  gap: 4px;
}

.scan-phase-name,
.scan-phase-step{
  margin: 0;
}

.scan-phase-name{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.scan-phase-step{
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.scan-live-grid{
  width: min(34vw, 160px);
  display: grid;
  gap: 8px;
}

.scan-live-card{
  padding: 10px 12px;
  border-radius: 18px;
  display: grid;
  gap: 4px;
}

.scan-live-card-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.scan-live-card-value{
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

.scan-live-card-meta{
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-soft);
}

.scan-side-readout{
  position: absolute;
  left: calc(16px + var(--safe-left));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  width: min(30vw, 132px);
}

.scan-side-readout > *{
  padding: 10px 12px;
  border-radius: 16px;
}

.bottom-panel-refit{
  position: absolute;
  left: calc(12px + var(--safe-left));
  right: calc(12px + var(--safe-right));
  bottom: calc(12px + var(--safe-bottom));
  padding: 18px;
  border-radius: 30px;
}

.scan-guidance-row{
  display: grid;
  gap: 12px;
}

.scan-guidance-copy{
  display: grid;
  gap: 6px;
}

.panel-label{
  font-size: 11px;
}

.panel-value{
  margin: 0;
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
}

.metric-group{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric{
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.metric-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.metric-head strong{
  color: var(--text);
}

.scan-support-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.scan-support-tag{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.support-text{
  font-size: 13px;
  line-height: 1.6;
}

.support-text-tight{
  margin-top: 12px;
}

.result-header-copy{
  max-width: 760px;
}

.subcopy{
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-soft);
}

.result-badge-row,
.result-tag-row,
.result-type-mode-row,
.report-keyword-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-tag-row{
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.mode-pill,
.confidence-pill,
.report-keyword,
.metric-card-state{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.result-type-mode-row{
  max-width: 100%;
  min-width: 0;
}

.result-type-mode-row .mode-pill,
.result-type-mode-row .confidence-pill{
  max-width: 100%;
  min-width: 0;
  height: auto;
  min-height: 32px;
  padding-block: 6px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.result-collectible-grid{
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: 20px;
  align-items: start;
}

.collectible-badge-art{
  display: grid;
  gap: 14px;
}

.portrait-shell{
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #e7f1ff;
  border: 1px solid rgba(108, 117, 125, 0.72);
  box-shadow: var(--shadow-lg);
}

.collectible-portrait-shell{
  min-height: 540px;
}

.result-hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.result-hero-placeholder{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.trait-cloud{
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.trait-chip{
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(33, 37, 41, 0.08);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  animation: floatSoft 4.2s ease-in-out infinite;
}

.trait-chip[data-slot="tl"]{ top: 18px; left: 18px; }
.trait-chip[data-slot="tr"]{ top: 20px; right: 18px; animation-delay: 0.4s; }
.trait-chip[data-slot="lm"]{ top: 46%; left: 16px; animation-delay: 0.8s; }
.trait-chip[data-slot="rm"]{ top: 46%; right: 16px; animation-delay: 1.2s; }
.trait-chip[data-slot="bl"]{ bottom: 22px; left: 18px; animation-delay: 1.6s; }
.trait-chip[data-slot="br"]{ bottom: 22px; right: 18px; animation-delay: 2.0s; }

.trait-chip.tone-mint{ background: #f8f9fa; }
.trait-chip.tone-blue-soft{ background: #e7f1ff; color: #0a58ca; }
.trait-chip.tone-blue{ background: #cfe2ff; }
.trait-chip.tone-blue-strong{ background: #9ec5fe; }
.trait-chip.tone-neutral{ background: #f8f9fa; }

.collectible-copy{
  display: grid;
  gap: 14px;
  align-content: start;
}

.module-strip{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-blob{
  min-height: 136px;
  padding: 16px 14px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.blob-emoji{
  font-size: 26px;
  line-height: 1;
}

.blob-kicker{
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

.blob-value{
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.module-blob.tone-mint{ background: #f8f9fa; color: #495057; }
.module-blob.tone-blue-soft{ background: #e7f1ff; color: #0a58ca; }
.module-blob.tone-blue{ background: #e7f1ff; color: #0a58ca; }
.module-blob.tone-blue-strong{ background: #e7f1ff; color: #084298; }
.module-blob.tone-neutral{ background: #f8f9fa; color: #495057; }

.result-panels{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.story-card-head,
.report-card-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-heading,
.report-card-head h3{
  font-size: 24px;
}
.metric-deck{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-card{
  position: relative;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.metric-card::before{
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: #0d6efd;
}

.metric-card-kicker{
  display: block;
  margin-bottom: 8px;
}

.metric-card-value{
  display: block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}
.metric-card-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.metric-card-label{
  color: var(--text);
  font-weight: 700;
}

.metric-card-note{
  font-size: 13px;
  line-height: 1.6;
}

.faces64-atlas{
  display: grid;
  gap: 16px;
}

.faces64-atlas-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.faces64-atlas-title,
.faces64-detail-title{
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}

.faces64-atlas-hint,
.faces64-detail-note{
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.faces64-mini-board{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.96fr);
  gap: 16px;
  align-items: start;
}

.faces64-mini-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.faces64-mini-node{
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.faces64-mini-node:hover{
  transform: translateY(-2px);
}

.faces64-mini-node.is-active{
  border-color: rgba(13, 110, 253, 0.36);
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.12);
}

.faces64-mini-node-core{
  width: 70%;
  height: 70%;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.14);
}

.faces64-mini-node-current{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d6efd;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7);
}

.faces64-mini-node-orbit{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  --orbit-dot-color: rgba(13, 110, 253, 0.34);
  background:
    radial-gradient(circle at 50% 16px, var(--orbit-dot-color) 0 3.5px, transparent 4px),
    radial-gradient(circle at calc(100% - 16px) 50%, var(--orbit-dot-color) 0 3.5px, transparent 4px),
    radial-gradient(circle at 50% calc(100% - 16px), var(--orbit-dot-color) 0 3.5px, transparent 4px),
    radial-gradient(circle at 16px 50%, var(--orbit-dot-color) 0 3.5px, transparent 4px);
}

.faces64-detail-card{
  padding: 18px;
  display: grid;
  gap: 16px;
}

.faces64-detail-head{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.faces64-detail-badge{
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1px solid rgba(13, 110, 253, 0.18);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.faces64-detail-copy{
  display: grid;
  gap: 6px;
}

.faces64-subtype-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faces64-subtype-chip{
  min-height: 74px;
  padding: 14px;
  display: grid;
  gap: 6px;
  border-radius: 20px;
}

.faces64-subtype-chip em{
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-strong);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.faces64-subtype-chip strong{
  font-size: 15px;
  line-height: 1.35;
  color: var(--text);
}

.faces64-subtype-chip.is-current{
  border-color: rgba(13, 110, 253, 0.32);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.10);
}

.aura-radar-plot{
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.aura-radar-plot svg{
  width: 100%;
  height: 100%;
}

.aura-radar-axis-label{
  font-size: 12px;
  fill: rgba(33, 37, 41, 0.96);
  font-weight: 700;
}

.aura-radar-center{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  text-align: center;
  pointer-events: none;
}

.aura-radar-center span,
.aura-radar-center em{
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-strong);
}

.aura-radar-center strong{
  font-size: clamp(42px, 8vw, 56px);
  line-height: 1;
  letter-spacing: -0.08em;
  color: var(--text);
}

.aura-radar-meta{
  display: grid;
  gap: 6px;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.aura-radar-meta strong{
  font-size: 22px;
}

.aura-radar-meta p,
.aura-radar-meta small{
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.aura-radar-legend{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.aura-radar-chip{
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 22px;
}

.aura-radar-chip span{
  font-size: 12px;
  color: var(--brand-strong);
  font-weight: 700;
}

.aura-radar-chip strong{
  font-size: 22px;
  color: var(--text);
}

.aura-radar-chip small{
  color: var(--text-soft);
  line-height: 1.5;
}

.aura-radar-layer-legend{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: -4px auto 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
}

.aura-radar-layer-legend span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aura-radar-layer-legend i{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.aura-radar-layer-me{
  background: var(--brand-strong);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.aura-radar-layer-compare{
  background: #adb5bd;
  box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.14);
}

.aura-radar-chip.has-compare{
  border-color: rgba(108, 117, 125, 0.16);
}

.aura-radar-chip-compare{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: -2px;
  color: #6c757d;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.aura-radar-chip-compare b{
  font-weight: 800;
}

.free-report-shell{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.report-card{
  grid-column: span 6;
  padding: 20px;
}
.report-card-intro{
  grid-column: span 12;
}

.report-card-head{
  margin-bottom: 12px;
}

.report-keyword{
  background: rgba(255, 255, 255, 0.94);
}


.cta-fixed-bottom{
  /*position: sticky;*/
  bottom: 0;
  z-index: 4;
  padding-top: 8px;
}

.cta-stack-result{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cta-utility-row{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}


.site-footer{
  padding: 18px 20px;
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: grid;
  gap: 12px;
}

.site-footer-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer-top strong{
  font-size: 16px;
  font-weight: 700;
}

.site-footer-badge{
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  background: #e7f1ff;
  background-image: none;
  border: 1px solid #cfe2ff;
  color: #0a58ca;
  box-shadow: none;
  text-shadow: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.site-footer-links i{
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e7f1ff;
  align-self: center;
}

.site-footer-meta{
  display: grid;
  gap: 4px;
}

.site-footer-meta p,
.site-footer-note,
.site-footer-compact{
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer-compact{
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffffff;
  background-image: none;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.orientation-notice,
.toast{
  position: absolute;
  left: 50%;
  z-index: 60;
  max-width: min(88vw, 460px);
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(33, 37, 41, 0.82);
  color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 46px rgba(33, 37, 41, 0.24);
}

.orientation-notice{
  bottom: calc(18px + var(--safe-bottom));
  transform: translateX(-50%);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.toast{
  bottom: calc(94px + var(--safe-bottom));
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.toast-visible{
  opacity: 1;
  transform: translate(-50%, 0);
}

.animal-illustration-svg,
.animal-illustration-picture{
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

.animal-illustration-image{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.animal-illustration-node,
.faces64-mini-node-art .animal-illustration-picture{
  width: 52px;
  height: 52px;
}

.animal-illustration-node .animal-illustration-image,
.faces64-mini-node-art .animal-illustration-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.animal-illustration-detail,
.face16-detail-badge .animal-illustration-picture,
.faces64-detail-badge .animal-illustration-picture{
  width: 100%;
  height: 100%;
}

.animal-illustration-detail .animal-illustration-image,
.face16-detail-badge .animal-illustration-image,
.faces64-detail-badge .animal-illustration-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.animal-illustration-hero .animal-illustration-image{
  width: 100%;
  height: auto;
}

.animal-illustration-fallback{
  display: grid;
  place-items: center;
  width: var(--16f-animal-illustration-size, 120px);
  height: var(--16f-animal-illustration-size, 120px);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  font-size: 34px;
}

.archive-hero-art{
  width: min(240px, 72%);
  max-width: 240px;
  margin: 0 auto;
}
.archive-hero-placeholder{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.faces64-mini-node-core{
  grid-template-rows: auto auto;
  align-content: center;
  gap: 6px;
  padding: 10px;
}

.faces64-mini-node-art{
  width: 52px;
  height: 52px;
  display: block;
}

.faces64-mini-node-name{
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
}

.faces64-detail-badge{
  overflow: hidden;
}

.face16-detail-badge,
.faces64-detail-badge .animal-illustration-svg,
.faces64-detail-badge .animal-illustration-picture{
  width: 100%;
  height: 100%;
}

.face16-detail-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.face16-detail-keyword{
  min-height: auto;
  padding: 10px 12px;
}

.face16-detail-keyword strong{
  font-size: 13px;
}

/* =====================================================================
   H024 result surface consolidation: free-result header, hero cards,
   badges, tags, mini stats, and story/error cards. Paid-report route
   selectors remain scoped to body.paid-report-page-open/#doneScreen.
   ===================================================================== */
.result-stage{
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding:
    calc(92px + var(--safe-top))
    calc(22px + var(--safe-right))
    calc(34px + var(--safe-bottom))
    calc(22px + var(--safe-left));
  display: grid;
  gap: 16px;
}

.result-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.result-header h2{
  margin: 10px 0 12px;
  color: #212529;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.result-hero-panel,
.result-error,
.result-story-card{
  background: #ffffff;
  background-image: none;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
  color: #212529;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.result-hero-panel{
  display: grid;
  gap: 16px;
  padding: 16px;
}

.result-card-meta-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.result-badge,
.result-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cfe2ff;
  border-radius: 4px;
  background: #e7f1ff;
  background-image: none;
  box-shadow: none;
  color: #0a58ca;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
  text-shadow: none;
}

.result-badge strong,
.result-tag strong{
  color: #084298;
  font-weight: 700;
  text-shadow: none;
}

.result-badge strong{
  margin-right: 6px;
}

.result-card-mini-stats{
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.result-mini-stat{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cfe2ff;
  border-radius: 4px;
  background: #e7f1ff;
  background-image: none;
  box-shadow: none;
  color: #0a58ca;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

.result-mini-stat strong{
  margin-left: 6px;
  color: #084298;
  font-weight: 700;
  text-shadow: none;
}

.result-title{
  margin: 0;
  color: #212529;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-shadow: none;
}

.result-desc{
  margin: 0;
  color: #6c757d;
  line-height: 1.65;
  text-shadow: none;
}

.result-quote{
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  text-shadow: none;
}

.result-error{
  padding: 18px 20px;
  line-height: 1.65;
}

.result-error strong{
  display: block;
  margin-bottom: 8px;
  color: #212529;
  font-size: 15px;
  font-weight: 700;
  text-shadow: none;
}

.result-card-meta-row strong{
  color: #212529;
  font-weight: 700;
  text-shadow: none;
}

.result-story-card{
  display: grid;
  grid-column: span 6;
  gap: 16px;
  padding: 20px;
}

.result-story-card.story-wide{
  grid-column: span 12;
}

.result-story-card.story-half{
  grid-column: span 6;
}

@media (max-width: 960px){
  .result-story-card,
  .result-story-card.story-half,
  .result-story-card.story-wide{
    grid-column: span 12;
  }
}

@media (max-width: 780px){
  .result-story-card{
    padding: clamp(1rem, 4vw, 1.15rem);
  }

  .result-story-card,
  .result-story-card.story-half,
  .result-story-card.story-wide{
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px){
  .result-stage{
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }
}

@media (max-width: 520px){
  .result-card-meta-row,
  .result-header{
    gap: 10px;
  }
}

@keyframes spin {
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@keyframes spinReverse {
  from{ transform: rotate(360deg); }
  to{ transform: rotate(0deg); }
}

@keyframes analysisStarPulse {
  0%,
100%{ transform: translate(-50%, -50%) scale(0.9); }
  50%{ transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes floatSoft {
  0%,
100%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
}

@media (max-width: 1100px){
  
}

@media (max-width: 960px){
  .metric-deck{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .free-report-shell .report-card{
    grid-column: span 12;
  }
}

@media (max-width: 860px){  .report-card{
    border-radius: 28px;
  }
  

  

  .cta-stack-result{
    grid-template-columns: 1fr;
  }

  .cta-utility-row{
    grid-column: auto;
  }
}

@media (max-width: 640px){
  .top-bar{
    top: calc(12px + var(--safe-top));
    left: calc(12px + var(--safe-left));
    right: calc(12px + var(--safe-right));
    gap: 7px;
  }.report-card{
    padding: 20px;
  }

  .scan-floating-top{
    top: calc(72px + var(--safe-top));
    left: calc(12px + var(--safe-left));
    right: calc(12px + var(--safe-right));
  }

  .scan-live-grid{
    width: 118px;
  }

  .scan-side-readout{
    display: none !important;
  }

  .bottom-panel-refit{
    left: calc(10px + var(--safe-left));
    right: calc(10px + var(--safe-right));
    bottom: calc(10px + var(--safe-bottom));
    padding: 16px;
  }

  .metric-group{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }


  .cta-utility-row{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .metric-deck{
    grid-template-columns: 1fr 1fr;
  }

  

  

  
}

@media (max-width: 420px){


  

  

  

  
}

@media (prefers-reduced-motion: reduce){
  *,
*::before,
*::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


                                                                        
                                          
                                                                      
                                                                           
      
                
                     
                                      
                                              
                                           
                  
                       
                        
                                    
                                          
                   
                          
                                         
                              
                            
                  
                          
                  
                                               
                                                  
                    
                    
                    
                    
                                                                                                                             
                           
                     
                        
                                       
                    
                                    
                                       
                                         
                                         
 

     
     
                                   
                     
                                              
 

.camera,
.preview{
  background: var(--bg);
}

.button-primary,
.button-upgrade-primary{
  background: var(--btn-bg) !important;
  color: #ffffff !important;
  border: var(--border-style) !important;
  box-shadow: none !important;
}

.button-secondary{
  background: var(--glass-bg) !important;
  color: var(--text) !important;
  border: var(--border-style) !important;
  box-shadow: var(--shadow) !important;
}.report-card,
.metric-card,
.mode-pill,
.confidence-pill,
.report-keyword,
.scan-support-tag,
.progress-rail,
.meter{
  background: var(--surface) !important;
  border: var(--border-style) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
}.scan-tour-chip,
.guidance-badge,
.report-keyword,
.mode-pill,
.confidence-pill,
.metric-card-state{
  background: var(--bg) !important;
  border: var(--border-style) !important;
  color: var(--brand-strong) !important;
  box-shadow: none !important;
}



.scan-tour-chip{
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.chip{
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg) !important;
  border: var(--border-style) !important;
  color: var(--text-soft) !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 700;
}.scan-support-tag{
  background: var(--surface) !important;
  border: var(--border-style) !important;
  box-shadow: var(--shadow) !important;
}


.progress-rail,
.meter{
  background: rgba(13, 110, 253, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
}


.scan-live-card-label,
.guidance-badge{
  color: var(--brand) !important;
}










.orientation-notice,
.toast{
  background: rgba(33, 37, 41, 0.82);
  color: rgba(255, 255, 255, 0.96);
}

.app-shell[data-scene="scan"] .pill,
.app-shell[data-scene="scan"] .icon-button,
.app-shell[data-scene="scan"] .icon-button-light,
.app-shell[data-scene="scan"] .pill-brand-soft{
  background: var(--scan-glass) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 36px rgba(33, 37, 41, 0.22) !important;
}

.app-shell[data-scene="scan"] .pill-brand{
  background: var(--scan-glass) !important;
  color: rgba(13, 110, 253, 0.96) !important;
}

                                                                        
                                                           
                                  
                         
                                                                       
                                                                           
      
                
                     
                     
                            
                          
                  
                       
                        
                  
                         
                   
                          
                        
                              
                            
                  
                          
                  
                                               
                                                  
                    
                    
                    
                    
                                                                                                                                                                            
                     
                     
                        
                      
                    
                      
                                      
                        
                          
                                 
                           
                         
                              
                        
                        
 

     
     
                                   
                                
                                              
 

.app-shell[data-scene="scan"]{
  background: #212529 !important;
}

.eyebrow,
.panel-label,
.metric-card-kicker,
.scan-live-card-label{
  color: #212529 !important;
}

.button-primary{
  background: #0d6efd !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.button-upgrade-primary{
  background: #0d6efd !important;
  color: #ffffff !important;
  border: 1px solid #0d6efd !important;
  box-shadow: none !important;
}

.button-secondary{
  background: #ffffff !important;
  color: var(--text) !important;
  border: 0 !important;
  box-shadow: var(--shadow) !important;
}

.report-card,
.metric-card,
.mode-pill,
.confidence-pill,
.report-keyword,
.scan-support-tag,
.progress-rail,
.meter{
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.scan-tour-chip,
.guidance-badge,
.report-keyword,
.mode-pill,
.confidence-pill,
.metric-card-state{
  background: var(--accent-soft) !important;
  border: 0 !important;
  color: var(--accent-ink) !important;
  box-shadow: none !important;
}


.scan-tour-chip{
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
}




.chip{
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--bg) !important;
  border: 0 !important;
  color: var(--text-soft) !important;
  box-shadow: none !important;
  font-size: 12px;
  font-weight: 700;
}.scan-support-tag{
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: var(--shadow) !important;
}

.progress-rail,
.meter{
  background: #dee2e6 !important;
  border-color: transparent !important;
}


.scan-live-card-label{
  color: var(--brand) !important;
}
















.orientation-notice,
.toast{
  background: #084298 !important;
  color: #ffffff !important;
}

.app-shell[data-scene="scan"] .pill,
.app-shell[data-scene="scan"] .icon-button,
.app-shell[data-scene="scan"] .icon-button-light,
.app-shell[data-scene="scan"] .pill-brand-soft{
  background: #084298 !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.app-shell[data-scene="scan"] .pill-brand{
  background: #0d6efd !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* =====================================================================
   Stable preview stage overrides (merged from stable-preview.css)
   Corporate Memphis Tech adaptation
   ===================================================================== */
#previewShell{
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 180ms ease !important;
  background: #212529 !important;
}

.app-shell.test2-fusion[data-scene="loading"] #previewShell,
.app-shell.test2-fusion[data-scene="scan"] #previewShell{
  opacity: 1 !important;
}

#previewViewport{
  position: absolute !important;
  inset: auto !important;
  overflow: hidden !important;
  background: #084298 !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(33, 37, 41, 0.18) !important;
  will-change: transform, top, width, height !important;
  border-radius: 40px !important;
}

.app-shell.test2-fusion .camera{
  position: absolute !important;
  inset: auto !important;
  left: var(--preview-video-left, 0px) !important;
  top: var(--preview-video-top, 0px) !important;
  width: var(--preview-video-width, 100%) !important;
  height: var(--preview-video-height, 100%) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: fill !important;
  object-position: center center !important;
  background: #084298 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  filter: none !important;
  transform-origin: center center !important;
  backface-visibility: hidden !important;
  will-change: transform, left, top, width, height !important;
}

.app-shell.test2-fusion .camera.camera-visible{
  opacity: 1 !important;
}

.app-shell.test2-fusion .camera.camera-visible.camera-mirrored{
  transform: translateZ(0) scaleX(-1) !important;
}

#previewCanvas{
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  background: transparent !important;
  filter: none !important;
}

.app-shell.test2-fusion[data-preview-renderer="canvas"] #previewShell{
  opacity: 0 !important;
}

.app-shell.test2-fusion[data-preview-renderer="canvas"] .camera.camera-visible{
  opacity: 0 !important;
}

.app-shell.test2-fusion[data-scene="loading"] #previewCanvas.preview-live,
.app-shell.test2-fusion[data-scene="scan"] #previewCanvas.preview-live{
  opacity: 1 !important;
}.scan-tour-chip,
.guidance-badge,
.report-keyword,
.mode-pill,
.confidence-pill,
.metric-card-state,
.eyebrow,
.panel-label,
.metric-card-kicker,
.scan-live-card-label,
.metric-head strong,
.scan-phase-name,
.scan-live-card-value,
.section-heading,
.report-card-head h3,
.metric-card-value,
.panel-value{
  font-weight: 700 !important;
}

.mode-pill,
.confidence-pill,
.report-keyword,
.subcopy,
.support-text,
.scan-phase-step,
.scan-live-card-meta,
.report-card-body,
.metric-head,
.scan-tour-chip,
.guidance-badge,
.report-keyword,
.mode-pill,
.confidence-pill,
.metric-card-state,
.eyebrow,
.panel-label,
.metric-card-kicker,
.scan-live-card-label{
  color: var(--text-soft) !important;
}body,
.app-shell,
.section-heading,
.report-card-head h3,
.metric-card-value,
.metric-head strong,
.panel-value,
.scan-phase-name,
.scan-live-card-value,
.button-secondary{
  color: var(--text) !important;
}




.button-primary{
  color: #212529 !important;
}


                                                                        
                                     
                                                           
                                    
                                                                           
      
                
                     
                     
                            
                          
                  
                       
                        
                  
                         
                   
                          
                        
                              
                            
                  
                          
                  
                                             
                                                  
                    
                   
                   
                   
                                                                                                                             
                     
                     
                        
                      
                    
                      
                                        
                        
                          
                                 
                                         
                         
                        
                        
 

     
     
       
      
         
       
           
                                              
                                     
                                      
                                     
 

     
     
                                   
                                
 

.app-shell,
.app-shell[data-scene="landing"],
.app-shell[data-scene="done"]{
  background: var(--bg) !important;
}

.app-shell::before,
.app-shell::after{
  display: none !important;
}

.app-shell[data-scene="scan"]{
  background: #084298 !important;
}

.camera,
.preview{
  background: #084298 !important;
}.chip,
.report-card,
.metric-card,
.mode-pill,
.confidence-pill,
.report-keyword,
.scan-support-tag,
.progress-rail,
.meter,
.metric{
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}.chip,
.mode-pill,
.confidence-pill,
.report-keyword,
.scan-support-tag,
.scan-tour-chip,
.guidance-badge,
.metric-card-state{
  border-radius: 4px !important;
}

.button-primary,
.button-secondary,
.button-upgrade-primary,
.button-upgrade-secondary{
  border-radius: 8px !important;
}.report-card,
.preview-viewport{
  border-radius: 12px !important;
}.metric,
.metric-card{
  border-radius: 8px !important;
}

.eyebrow,
.panel-label,
.metric-card-kicker,
.scan-live-card-label,
.blob-kicker{
  color: var(--brand-strong) !important;
}.scan-tour-chip,
.guidance-badge,
.report-keyword,
.mode-pill,
.confidence-pill,
.metric-card-state{
  background: var(--brand-soft) !important;
  color: var(--brand-strong) !important;
  border: 1px solid #cfe2ff !important;
  box-shadow: none !important;
}

.button-primary{
  background: var(--brand) !important;
  color: #ffffff !important;
  border: 1px solid var(--brand) !important;
  box-shadow: none !important;
}

.button-upgrade-primary{
  background: var(--brand) !important;
  color: #ffffff !important;
  border: 1px solid var(--brand) !important;
  box-shadow: none !important;
}

.button-upgrade-secondary{
  background: #ffffff !important;
  color: var(--brand-strong) !important;
  border: 1px solid #9ec5fe !important;
  box-shadow: none !important;
}

.button-secondary{
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}.section-heading,
.report-card-head h3,
.metric-card-value,
.metric-head strong,
.panel-value,
.scan-phase-name,
.scan-live-card-value{
  color: var(--text) !important;
  font-weight: 700 !important;
}

.progress-rail,
.meter{
  background: #e9ecef !important;
  border-color: transparent !important;
}

.progress-rail span,
.meter span{
  background: #0d6efd !important;
}

.metric-card::before{
  background: #0d6efd !important;
}

.orientation-notice,
.toast{
  background: #212529 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.style-map-plot svg text{
  font-family: var(--font-primary) !important;
}



.result-conversion-panel,
.result-lock-card,
.result-conversion-tags span{
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.result-conversion-panel{
  padding: 22px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.96fr);
  gap: 18px;
  align-items: stretch;
}

.result-conversion-copy{
  display: grid;
  gap: 12px;
  align-content: center;
}

.result-conversion-copy .section-heading{
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.result-conversion-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.result-conversion-tags span{
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: #cfe2ff;
  box-shadow: none;
}

.result-lock-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-lock-card{
  min-height: 132px;
  padding: 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.result-lock-card span{
  color: var(--brand-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.result-lock-card strong{
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
}

.result-lock-card em{
  font-style: normal;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.archive-hero-placeholder em{
  color: var(--brand-strong) !important;
  font-weight: 700;
}

@media (max-width: 1100px){
  .result-conversion-panel{
    grid-template-columns: 1fr;
  }

  .result-lock-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px){


  .result-conversion-panel{
    padding: 16px;
  }
  .result-lock-grid{
    grid-template-columns: 1fr;
  }
}


.landing-language-switch-wrap-minimal{
  min-width: auto;
}






.camera-warmup-core-logo{
  overflow: hidden;
}

.camera-warmup-logo-slot{
  position: relative;
  display: grid;
  place-items: center;
  width: min(168px, 42vw);
  aspect-ratio: 1;
  border-radius: 34px;
  border: 1px dashed var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

.camera-warmup-brand-mark{
  display: block;
  width: 100%;
  height: auto;
  max-width: 80px;
  margin: 0 auto;
}

.camera-warmup-logo-slot::after{
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid #cfe2ff;
  opacity: 0.42;
  animation: none;
}

.camera-warmup-logo-slot span{
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: clamp(20px, 6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.camera-warmup-logo-slot em{
  position: absolute;
  z-index: 1;
  bottom: 26px;
  color: var(--text-soft);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-shell[data-scene="scan"] .scan-side-readout,
.app-shell[data-scene="scan"] .scan-tour-chip,
.app-shell[data-scene="scan"] .metric-group,
.app-shell[data-scene="scan"] .scan-support-tags,
.app-shell[data-scene="scan"] .support-text,
.app-shell[data-scene="scan"] .site-footer-slot-inline{
  display: none !important;
}

/* =====================================================================
   H029 paywall checkout CSS owner surface · paywall card, provider chooser,
   PayPal checkout shell, and pending-payment recovery chrome. Provider
   SDK URLs, verification, checkout creation, return handling, webhooks,
   and secrets remain owned by JS/PHP payment logic.
   ===================================================================== */
.premium-paywall-wrapper{
  position: relative;
  grid-column: span 12;
  display: grid;
  gap: 16px;
  min-height: 360px;
  border-radius: var(--radius-xl);
  background: #f8f9fa;
  overflow: hidden;
}

.paywall-overlay{
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: end center;
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.94);
}

.paywall-box{
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  padding: 26px 22px 22px;
  border-radius: 28px;
  border: 1px solid rgba(13, 110, 253, 0.22);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(33, 37, 41, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  text-align: center;
  overflow: hidden;
  animation: none;
}

.paywall-box::before{
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(13, 110, 253, 0.10);
  border-radius: 22px;
  pointer-events: none;
}

.paywall-lock{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 30px;
  margin-bottom: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #9ec5fe;
  background: #e7f1ff;
  color: var(--brand-strong);
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.paywall-box h3{
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text);
  font-size: clamp(20px, 4vw, 27px);
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.paywall-box p{
  position: relative;
  z-index: 1;
  margin: 0 auto 2px;
  max-width: 440px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.72;
}

.paywall-mini-list{
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 0;
}

.paywall-mini-list span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 14px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: #f8f9fa;
  color: rgba(33, 37, 41, 0.76);
  box-shadow: none;
  font-size: 12px;
  font-weight: 850;
}

.paywall-mini-list span::before{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0d6efd;
  flex: none;
}

.paywall-button-stack{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.paywall-box .button-upgrade-primary{
  min-height: 54px;
  background: #0d6efd;
  color: #ffffff;
  border: 1px solid #0d6efd;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.14);
}

.paywall-box .button-upgrade-secondary{
  min-height: 48px;
  background: #ffffff;
  color: #0a58ca;
  border: 1px solid #9ec5fe;
  box-shadow: none;
}

.local-price-disclosure{
  margin: -1px 0 0;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.paywall-button-stack .local-price-disclosure,
.cta-stack-result .local-price-disclosure{
  text-align: center;
}

.sample-report-wrapper{
  min-height: auto;
  overflow: visible;
}

.paywall-overlay-sample{
  position: static;
  inset: auto;
  padding: 0;
  background: none;
  place-items: stretch;
}

.paywall-box-sample{
  width: 100%;
  max-height: none;
  margin-top: 8px;
  background: #ffffff;
  overflow: visible;
  animation: none;
}

.free-result-paid-cta-boundary{
  min-height: auto;
  background: transparent;
  border: 1px solid rgba(13, 110, 253, 0.14);
  box-shadow: none;
}

.free-result-paid-cta-boundary .paywall-box-sample{
  margin-top: 0;
  padding: 18px;
  gap: 12px;
  border-radius: 24px;
  box-shadow: none;
  text-align: left;
}

.free-result-paid-cta-boundary .paywall-box-sample::before{
  display: none;
}

.free-result-paid-cta-boundary .paywall-lock{
  justify-self: start;
  letter-spacing: 0.08em;
}

.free-result-paid-cta-copy{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.free-result-paid-cta-boundary .paywall-box h3{
  font-size: clamp(18px, 3.4vw, 22px);
}

.free-result-paid-cta-boundary .paywall-box p{
  margin: 0;
  max-width: 620px;
  line-height: 1.55;
}

.free-result-paid-cta-actions{
  grid-template-columns: minmax(0, 1fr) minmax(148px, auto);
  align-items: stretch;
  gap: 8px;
}

.free-result-paid-cta-actions .button{
  min-height: 48px;
}

.free-result-paid-cta-actions .local-price-disclosure{
  grid-column: 1 / -1;
  text-align: left;
}

@media (max-width: 520px){
  .free-result-paid-cta-actions{
    grid-template-columns: minmax(0, 1fr);
  }

  .free-result-paid-cta-actions .local-price-disclosure{
    text-align: center;
  }
}


.recent-report-shelf-mount{
  width: 100%;
  margin-top: 18px;
}

.recent-report-shelf{
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(33, 37, 41, 0.08);
}

.recent-report-shelf-head h2{
  margin: 4px 0 6px;
  color: var(--text);
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: -0.035em;
}

.recent-report-shelf-head p:last-child{
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.free-report-shell-locked{
  grid-column: span 12;
}

.report-card-free-visible{
  margin-bottom: 6px;
}

.cta-utility-row #downloadButton,
.cta-utility-row #downloadAnalysisButton{
  display: none !important;
}

@media (max-width: 680px){



  .paywall-overlay{
    padding: 16px 12px;
  }

  .paywall-box{
    gap: 10px;
    width: min(100%, 460px);
    max-height: min(74svh, 560px);
    padding: 18px 14px 16px;
    border-radius: 22px;
    overflow-y: auto;
  }

  .paywall-box::before{
    inset: 7px;
    border-radius: 17px;
  }

  .paywall-box h3{
    font-size: clamp(18px, 5.8vw, 22px);
  }

  .paywall-box p{
    font-size: 13px;
    line-height: 1.62;
  }

  .paywall-mini-list{
    gap: 6px;
  }

  .paywall-mini-list span{
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .paywall-box .button-upgrade-primary,
.paywall-box .button-upgrade-secondary{
    min-height: 46px;
  }

  .paywall-box-sample{
    padding: 22px 16px;
  }
}

/* =====================================================================
   H023 scan capture CSS owner surface · camera preview, bottom panel,
   live metric cards, and meter chrome.
   Static layout/chrome belongs here. app.js may keep sanitized inline runtime
   geometry only for #previewViewport, #camera, #previewCanvas, and #overlay
   position/size/radius/fit/transform values derived from viewport/video math.
   ===================================================================== */
.app-shell[data-scene="scan"]{
  background: var(--bg) !important;
  --scan-glass: #ffffff;
  --scan-surface: #ffffff;
  --scan-surface-strong: #ffffff;
  --scan-line: var(--line);
  --accent-soft: var(--brand-soft);
  --accent-ink: var(--brand-strong);
}

.app-shell[data-scene="scan"]::before,
.app-shell[data-scene="scan"]::after{
  display: none !important;
}

.app-shell[data-scene="scan"] #previewShell,
.app-shell[data-scene="loading"] #previewShell{
  background: var(--bg) !important;
}

.app-shell[data-scene="scan"] #scanningUi.scan-ui::before{
  background: none !important;
}

.app-shell[data-scene="scan"] .camera,
.app-shell[data-scene="scan"] .preview{
  background: #ffffff !important;
}

.app-shell[data-scene="scan"] #previewViewport,
.app-shell[data-scene="scan"] .preview-viewport,
.app-shell[data-scene="loading"] #previewViewport,
.app-shell[data-scene="loading"] .preview-viewport{
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-lg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-shell[data-scene="scan"] .pill,
.app-shell[data-scene="scan"] .icon-button,
.app-shell[data-scene="scan"] .icon-button-light,
.app-shell[data-scene="scan"] .pill-brand-soft,
.app-shell[data-scene="scan"] .scan-phase-meta,
.app-shell[data-scene="scan"] .scan-live-card,
.app-shell[data-scene="scan"] .bottom-panel-refit,
.app-shell[data-scene="scan"] .scan-side-readout > *,
.app-shell[data-scene="scan"] .metric,
.app-shell[data-scene="scan"] .scan-support-tag{
  background: #ffffff !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.app-shell[data-scene="scan"] .pill-brand{
  background: var(--brand) !important;
  color: #ffffff !important;
  border: 1px solid var(--brand) !important;
  box-shadow: none !important;
}

.app-shell[data-scene="scan"] .guidance-badge,
.app-shell[data-scene="scan"] .scan-tour-chip{
  background: var(--brand-soft) !important;
  color: var(--brand-strong) !important;
  border: 1px solid #cfe2ff !important;
  box-shadow: none !important;
}

.app-shell[data-scene="scan"] .panel-label,
.app-shell[data-scene="scan"] .scan-live-card-label{
  color: var(--brand-strong) !important;
}

.app-shell[data-scene="scan"] .scan-phase-step,
.app-shell[data-scene="scan"] .scan-live-card-meta,
.app-shell[data-scene="scan"] .metric-head span,
.app-shell[data-scene="scan"] .scan-support-tag,
.app-shell[data-scene="scan"] .support-text{
  color: var(--text-soft) !important;
}

.app-shell[data-scene="scan"] .panel-value,
.app-shell[data-scene="scan"] .scan-phase-name,
.app-shell[data-scene="scan"] .scan-live-card-value,
.app-shell[data-scene="scan"] .metric-head,
.app-shell[data-scene="scan"] .metric-head strong{
  color: var(--text) !important;
}

.app-shell[data-scene="scan"] .progress-rail,
.app-shell[data-scene="scan"] .meter,
.app-shell[data-scene="scan"] .loading-track{
  background: #e9ecef !important;
  border: 0 !important;
  box-shadow: none !important;
}

.app-shell[data-scene="scan"] .progress-rail span,
.app-shell[data-scene="scan"] .meter span,
.app-shell[data-scene="scan"] .loading-track span{
  background: #0d6efd !important;
}

.app-shell[data-scene="scan"] .orientation-notice,
.app-shell[data-scene="scan"] .toast{
  background: #212529 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#scanningUi .bottom-panel-refit{
  padding: 14px 16px 16px;
  gap: 10px;
  border-radius: var(--radius-lg);
}

#scanningUi .scan-guidance-row{
  grid-template-columns: 1fr;
  min-height: auto;
  gap: 8px;
}

#scanningUi .scan-guidance-copy{
  gap: 4px;
}

#scanningUi .metric-group{
  gap: 8px;
  margin-top: 16px;
}

#scanningUi .panel-value{
  font-size: clamp(16px, 3.4vw, 20px);
}

#scanningUi .progress-rail{
  margin-top: 8px;
  height: 6px;
}



/* Legal document modal */
.site-footer-legal-links{
  align-items: center;
}

.site-footer-legal-links :is(button, .site-footer-legal-link){
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.site-footer-legal-links :is(button, .site-footer-legal-link):hover,
.site-footer-legal-links :is(button, .site-footer-legal-link):focus-visible{
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-legal-links-compact{
  justify-content: center;
  margin-top: 6px;
  gap: 9px;
}

.is-legal-modal-open{
  overflow: hidden;
}

.legal-modal.hidden{
  display: none;
}

.legal-modal{
  position: fixed;
  inset: 0;
  z-index: var(--legal-modal-z, 2147483199);
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.legal-modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.62);
  backdrop-filter: blur(10px);
}

.legal-modal-panel{
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 940px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 32px 96px rgba(33, 37, 41, 0.32);
  outline: none;
}

.legal-modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: rgba(33, 37, 41, 0.08);
  color: var(--text-main);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible{
  background: rgba(13, 110, 253, 0.16);
  color: var(--brand-strong);
  outline: none;
}

.legal-modal-head{
  padding: 28px 72px 18px 28px;
  border-bottom: 1px solid var(--line);
}

.legal-modal-kicker{
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-modal-head h2{
  margin: 0;
  color: var(--text-main);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
}

.legal-modal-updated{
  margin: 9px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.legal-modal-body{
  overflow: auto;
  padding: 24px 28px 32px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.72;
}

.legal-modal-loading,
.legal-modal-error{
  margin: 0;
  color: var(--text-soft);
  font-weight: 800;
}

.legal-prevail-notice{
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.legal-section + .legal-section{
  margin-top: 24px;
}

.legal-section h3{
  margin: 0 0 10px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.35;
}

.legal-section p{
  margin: 8px 0;
}

.legal-section ol,
.legal-section ul{
  margin: 8px 0 0;
  padding-left: 1.25em;
}

.legal-section li + li{
  margin-top: 5px;
}

.legal-table-wrap{
  overflow-x: auto;
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.legal-table{
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.76);
}

.legal-table th,
.legal-table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th{
  background: rgba(13, 110, 253, 0.08);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 900;
}

.legal-table tr:last-child td{
  border-bottom: 0;
}

@media (max-width: 640px){
  .legal-modal{
    padding: 0;
    align-items: stretch;
  }

  .legal-modal-panel{
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .legal-modal-head{
    padding: 24px 64px 16px 20px;
  }

  .legal-modal-body{
    padding: 20px 20px 30px;
    font-size: 13px;
  }

  .legal-modal-close{
    top: 12px;
    right: 12px;
  }
}

.site-footer-meta .site-footer-legal-links{
  margin: 2px 0 1px;
}


/* TossPayments paid report demo */
.paid-report-shell{
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.paid-report-meta-card{
  border: 1px solid rgba(33, 37, 41, 0.14);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(33, 37, 41, 0.10);
}

.paid-report-cover{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(33, 37, 41, 0.14);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(33, 37, 41, 0.10);
}

.paid-report-cover-copy h3{
  margin: 8px 0 10px;
  font-size: clamp(1.3rem, 4vw, 2rem);
}

.paid-report-cover-copy p{
  margin: 0;
  color: rgba(33, 37, 41, 0.72);
  line-height: 1.7;
}

.paid-report-url-box{
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(33, 37, 41, 0.18);
}

.paid-report-url-box span,
.paid-report-qr-wrap small,
.paid-report-meta-card span{
  color: rgba(33, 37, 41, 0.55);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.paid-report-url-box code{
  display: block;
  max-width: 100%;
  color: rgba(33, 37, 41, 0.82);
  font-size: 0.78rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.paid-report-qr-wrap{
  display: grid;
  justify-items: center;
  gap: 8px;
}

.paid-report-qr{
  width: 192px;
  height: 192px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(33, 37, 41, 0.16);
  overflow: hidden;
  word-break: break-all;
  font-size: 0.68rem;
  text-align: center;
}

.paid-report-qr img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.paid-report-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.paid-report-actions .button{
  flex: 1 1 150px;
}

.paid-report-meta-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.paid-report-meta-card{
  padding: 20px;
}

.paid-report-meta-card strong{
  display: block;
  margin: 8px 0;
  font-size: 1.05rem;
}

.paid-report-meta-card p{
  margin: 6px 0 0;
  color: rgba(33, 37, 41, 0.66);
  overflow-wrap: anywhere;
}

@media (max-width: 720px){
  .paid-report-cover,
.paid-report-meta-grid{
    grid-template-columns: 1fr;
  }

  .paid-report-qr{
    width: min(192px, 60vw);
    height: min(192px, 60vw);
  }
}

@media print{
  .top-bar,
  .cta-fixed-bottom,
  .paid-report-actions{
    display: none !important;
  }
  .screen,
  .paid-report-shell{
    background: #ffffff !important;
    box-shadow: none !important;
  }
}


/* Result hero: single selected animal picture,
no captured face preview. */


.result-animals-hero.result-animals-hero-single{
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  justify-items: center;
  gap: clamp(10px, 1.8vw, 15px);
  padding: 0;
  border-radius: 0;
  overflow: visible;
  text-align: center;
}

.result-animals-hero.result-animals-hero-single::before,
.result-animals-hero.result-animals-hero-single::after{
  display: none !important;
  content: none !important;
}

.result-animals-hero-kicker{
  color: var(--brand-strong) !important;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.result-animal-single-art{
  width: min(72%, 280px);
  max-width: 100%;
  min-width: 160px;
  display: grid;
  place-items: center;
}

.result-animal-single-art .animal-illustration-result-hero{
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
}

.result-animal-single-art .animal-illustration-image{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.result-animal-single-name{
  max-width: 100%;
  color: var(--text) !important;
  font-size: clamp(18px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-animal-single-signature{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 240px);
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(158, 197, 254, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0a58ca;
  font-size: clamp(12px, 2vw, 14px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px){
  .result-hero-placeholder.result-hero-placeholder-animal-board,
.result-hero-placeholder.result-hero-placeholder-animal-single{
    padding: 15px 22px !important;
  }

  .result-animal-single-art{
    width: min(74%, 230px);
    min-width: 138px;
  }
}

@media (max-width: 420px){
  .result-animals-hero.result-animals-hero-single{
    gap: 8px;
  }

  .result-animal-single-art{
    width: min(76%, 196px);
    min-width: 128px;
  }

  .result-animal-single-name{
    max-width: 96%;
  }
}

/* 16Faces wordmark replacement: textmark and non-landing inline logo refinements.
   H021 owns the shared picture box and landing logo dimensions below. */



.heading-16faces-text{
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
}

.logo-16-faces-textmark{
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.logo-16-faces-textmark-number,
.logo-16-faces-textmark-name,
.logo-16-faces-textmark-suffix{
  color: inherit;
}

.heading-with-16faces-logo{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.16em;
}

.heading-with-16faces-logo .logo-16-faces-inline{
  flex: 0 0 auto;
  margin-inline: 0.03em;
}

.heading-with-16faces-logo .logo-16-faces-inline img{
  height: 0.88em;
  width: auto;
}

.result-animals-hero-kicker{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.result-animals-hero-kicker .logo-16-faces-result-kicker img{
  width: auto;
  height: clamp(24px, 4.6vw, 42px);
}

@media (max-width: 640px){
  .result-animals-hero-kicker .logo-16-faces-result-kicker img{
    height: clamp(22px, 7vw, 34px);
  }
}



.paid-report-kicker-row{
  margin-bottom: 0;
}

.paid-report-metric-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paid-report-metric-chip-row span{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(33, 37, 41, 0.68);
  font-size: 12px;
  font-weight: 800;
}

/* Async report issuing state: QR + full URL first,
long report body later. */
.paid-report-pending-shell{
  gap: 16px;
}

.paid-report-pending-cover{
  align-items: stretch;
}

.paid-report-url-box-large{
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.86);
}

.paid-report-url-full{
  display: block;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.62;
  font-size: clamp(0.78rem, 2.8vw, 0.94rem);
  letter-spacing: -0.01em;
}

.paid-report-screenshot-note{
  margin-top: 10px;
  color: rgba(33, 37, 41, 0.56);
  font-size: 0.83rem;
}

.paid-report-pending-qr-wrap{
  align-content: start;
}

.paid-report-qr-large{
  width: 224px;
  height: 224px;
  border-radius: 28px;
}

.paid-report-processing-card{
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(33, 37, 41, 0.10);
}

.paid-report-processing-card h3{
  margin: 6px 0 8px;
  font-size: clamp(1.1rem, 3.6vw, 1.55rem);
  letter-spacing: -0.035em;
}

.paid-report-processing-card p{
  margin: 0;
  color: rgba(33, 37, 41, 0.70);
  line-height: 1.72;
}

.paid-report-processing-meter{
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.10);
}

.paid-report-processing-meter span{
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  border-radius: inherit;
  background: #0d6efd;
  animation: reportProcessingSlide 1.8s ease-in-out infinite;
}

@keyframes reportProcessingSlide {
  0%{ transform: translateX(-105%); }
  45%{ transform: translateX(70%); }
  100%{ transform: translateX(280%); }
}

.paid-report-processing-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paid-report-processing-meta span{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(33, 37, 41, 0.62);
  font-size: 11px;
  font-weight: 800;
}

.paid-report-pending-actions .button-upgrade-primary{
  flex-basis: 220px;
}

@media (max-width: 720px){
  .paid-report-qr-large{
    width: min(224px, 68vw);
    height: min(224px, 68vw);
  }
}

/* Report personalization modal */
.report-pref-backdrop{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: clamp(0.9rem, 3vw, 1.6rem);
  background: rgba(33, 37, 41, 0.38);
  backdrop-filter: blur(14px);
}

.report-pref-modal{
  inline-size: min(100%, 44rem);
  max-block-size: min(92vh, 48rem);
  overflow: auto;
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.1rem);
  padding: clamp(1rem, 2.8vw, 1.5rem);
  border: 1px solid rgba(33, 37, 41, 0.16);
  border-radius: clamp(1rem, 3vw, 1.7rem);
  background: #ffffff;
  box-shadow: 0 1.4rem 4rem rgba(33, 37, 41, 0.22);
}

.report-pref-head,
.report-pref-block{
  display: grid;
  gap: 0.55rem;
}

.report-pref-head h3,
.report-pref-block h4{
  margin: 0;
  color: var(--text);
  letter-spacing: -0.035em;
}

.report-pref-head h3{
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1.12;
}

.report-pref-block h4{
  font-size: clamp(1rem, 3vw, 1.16rem);
}

.report-pref-head p,
.report-pref-block p,
.report-pref-head small{
  margin: 0;
  color: rgba(33, 37, 41, 0.64);
  line-height: 1.65;
}

.report-pref-head small{
  font-weight: 800;
}

.report-pref-choice-grid,
.report-pref-chip-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.65rem;
}

.report-pref-choice,
.report-pref-chip{
  appearance: none;
  border: 1px solid rgba(33, 37, 41, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.report-pref-choice{
  min-block-size: 5.4rem;
  display: grid;
  align-content: start;
  gap: 0.28rem;
  padding: 0.85rem;
  border-radius: 1rem;
  text-align: left;
}

.report-pref-choice strong{
  font-size: 0.98rem;
  line-height: 1.3;
}

.report-pref-choice span{
  color: rgba(33, 37, 41, 0.58);
  font-size: 0.78rem;
  line-height: 1.5;
}

.report-pref-chip{
  min-block-size: 2.8rem;
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
}

.report-pref-choice:hover,
.report-pref-chip:hover{
  transform: translateY(-1px);
  border-color: rgba(13, 110, 253, 0.28);
}

.report-pref-choice.is-selected,
.report-pref-chip.is-selected{
  border-color: rgba(13, 110, 253, 0.50);
  background: #ffffff;
  box-shadow: 0 0.7rem 1.6rem rgba(13, 110, 253, 0.12);
}

.report-pref-block-title-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
}

.report-pref-block-title-row strong{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(33, 37, 41, 0.62);
  font-size: 0.78rem;
}

.report-pref-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.65rem;
  margin-top: 0.25rem;
}

@media (max-width: 520px){
  .report-pref-backdrop{
    align-items: end;
    padding: 0.75rem;
  }

  .report-pref-modal{
    max-block-size: 94vh;
    border-radius: 1.25rem;
  }

  .report-pref-block-title-row{
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Paid report visual explanation cards */
.paid-report-visual-section{
  display: grid;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.paid-report-visual-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: clamp(0.7rem, 1.7vw, 0.95rem);
}

.paid-visual-card{
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.72fr) minmax(0, 1fr);
  gap: clamp(0.7rem, 1.6vw, 0.95rem);
  align-items: center;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: clamp(1rem, 3vw, 1.45rem);
  background: #ffffff;
  box-shadow: 0 1rem 2.4rem rgba(33, 37, 41, 0.09);
}

.paid-visual-graphic{
  inline-size: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: clamp(0.85rem, 2vw, 1.1rem);
  background: #ffffff;
}

.paid-visual-copy{
  display: grid;
  gap: 0.36rem;
}

.paid-visual-copy h4{
  margin: 0;
  color: var(--text);
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.paid-visual-scale{
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  color: rgba(33, 37, 41, 0.52);
  font-size: 0.74rem;
  line-height: 1.35;
}

.paid-visual-badge{
  display: inline-flex;
  width: fit-content;
  max-inline-size: 100%;
  padding: 0.4rem 0.68rem;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(33, 37, 41, 0.82);
  font-size: 0.78rem;
  line-height: 1.35;
}

.paid-visual-copy p:last-child{
  margin: 0;
  color: rgba(33, 37, 41, 0.66);
  line-height: 1.65;
  font-size: 0.86rem;
}

@media (max-width: 720px){
  .paid-visual-card{
    grid-template-columns: 1fr;
  }
}

/* Paid report v4: sale-quality document view,
separated from payment/debug metadata. */
.paid-report-shell{
  inline-size: min(100%, 68rem);
  margin-inline: auto;
  margin-top: clamp(1rem, 2vw, 1.35rem);
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.paid-report-executive,
.paid-report-free-snapshot,
.paid-report-save-strip,
.paid-report-personalization,
.paid-report-visual-section,
.paid-report-action-pack,
.paid-report-disclosure{
  border: 1px solid rgba(33, 37, 41, 0.13);
  border-radius: clamp(1rem, 2.6vw, 1.65rem);
  background: #ffffff;
  box-shadow: 0 1rem 2.4rem rgba(33, 37, 41, 0.09);
}

.paid-report-card{
  display: grid;
  gap: clamp(0.65rem, 1.5vw, 0.85rem);
  padding: clamp(1rem, 2.5vw, 1.3rem);
  border: 1px solid rgba(33, 37, 41, 0.13);
  border-radius: clamp(1rem, 2.6vw, 1.65rem);
  background: #ffffff;
  box-shadow: 0 1rem 2.4rem rgba(33, 37, 41, 0.09);
}

.paid-report-executive{
  padding: clamp(1.05rem, 2.8vw, 1.65rem);
  display: grid;
  gap: clamp(0.9rem, 2vw, 1.15rem);
}

.paid-report-eyebrow,
.paid-report-section-title span,
.paid-report-personalization span,
.paid-report-reliability span,
.paid-report-priority span,
.paid-action-card span,
.paid-report-meta-list span{
  margin: 0;
  color: rgba(33, 37, 41, 0.54);
  font-size: clamp(0.68rem, 1.6vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paid-report-executive-copy h3{
  margin: 0.2rem 0 0.3rem;
  color: rgba(33, 37, 41, 0.96);
  font-size: clamp(1.28rem, 3.4vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.045em;
}

.paid-report-mood{
  display: inline-flex;
  width: fit-content;
  max-inline-size: 100%;
  margin-bottom: 0.65rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(33, 37, 41, 0.78);
  font-size: clamp(0.82rem, 2vw, 0.92rem);
}

.paid-report-executive-copy p{
  max-inline-size: 58rem;
  margin: 0;
  color: rgba(33, 37, 41, 0.73);
  line-height: 1.78;
  font-size: clamp(0.98rem, 2.3vw, 1.05rem);
}

.paid-report-executive-cards,
.paid-action-grid,
.paid-report-visual-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: clamp(0.65rem, 1.7vw, 0.9rem);
}

.paid-report-executive-cards article,
.paid-action-card,
.paid-visual-card{
  min-inline-size: 0;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: clamp(0.85rem, 2vw, 1.15rem);
  background: rgba(255, 255, 255, 0.76);
}

.paid-report-executive-cards article{
  display: grid;
  gap: 0.35rem;
  padding: clamp(0.85rem, 2vw, 1rem);
}

.paid-report-executive-cards span{
  color: rgba(33, 37, 41, 0.50);
  font-size: 0.75rem;
  font-weight: 900;
}

.paid-report-executive-cards strong{
  color: rgba(33, 37, 41, 0.94);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.35;
}

.paid-report-executive-cards p,
.paid-report-priority,
.paid-report-reliability,
.paid-report-personalization p{
  margin: 0;
  color: rgba(33, 37, 41, 0.66);
  line-height: 1.65;
  font-size: clamp(0.86rem, 2vw, 0.94rem);
}

.paid-report-priority,
.paid-report-reliability,
.paid-report-personalization{
  display: grid;
  gap: 0.35rem;
  padding: clamp(0.9rem, 2vw, 1rem);
  border-radius: clamp(0.9rem, 2vw, 1.2rem);
  border: 1px solid rgba(33, 37, 41, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.paid-report-priority strong,
.paid-report-reliability strong,
.paid-report-personalization strong{
  color: rgba(33, 37, 41, 0.92);
  line-height: 1.45;
}

.paid-report-save-strip{
  padding: clamp(0.85rem, 2vw, 1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.7rem 1.4rem rgba(33, 37, 41, 0.06);
}

.paid-report-save-strip > span{
  color: rgba(33, 37, 41, 0.62);
  font-size: clamp(0.86rem, 2vw, 0.94rem);
  line-height: 1.55;
}

.paid-report-save-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.paid-report-action-strip{
  align-items: stretch;
}

.paid-report-action-head{
  flex: 1 1 16rem;
  display: grid;
  align-content: center;
  gap: 0.25rem;
}

.paid-report-action-head span{
  color: rgba(13, 110, 253, 0.92);
  font-size: clamp(0.68rem, 1.6vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paid-report-action-head p,
.paid-report-action-note{
  margin: 0;
  color: rgba(33, 37, 41, 0.64);
  font-size: clamp(0.84rem, 2vw, 0.92rem);
  line-height: 1.55;
}

.paid-report-action-grid{
  flex: 2 1 28rem;
  justify-content: flex-end;
}

.paid-report-action-note{
  flex-basis: 100%;
  padding-top: 0.15rem;
}

.returning-user-card{
  position: relative;
}

.paid-report-section-title{
  display: grid;
  gap: 0.25rem;
  margin-bottom: clamp(0.7rem, 1.6vw, 0.9rem);
}

.paid-report-section-lead{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.86rem;
  line-height: 1.55;
}

.paid-report-section-title strong{
  color: rgba(33, 37, 41, 0.90);
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  letter-spacing: -0.02em;
}

.paid-report-visual-section,
.paid-report-action-pack{
  padding: clamp(1rem, 2.4vw, 1.25rem);
}

.paid-visual-card{
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: center;
  padding: clamp(0.8rem, 2vw, 1rem);
}

.paid-visual-graphic{
  inline-size: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid rgba(33, 37, 41, 0.12);
  background: #ffffff;
  overflow: hidden;
}

.paid-visual-graphic svg{
  inline-size: 100%;
  block-size: 100%;
}

.paid-visual-copy{
  min-inline-size: 0;
  display: grid;
  gap: 0.35rem;
}

.paid-visual-copy h4{
  margin: 0;
  color: rgba(33, 37, 41, 0.92);
  font-size: clamp(0.98rem, 2.3vw, 1.1rem);
  line-height: 1.35;
}

.paid-visual-scale{
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: rgba(33, 37, 41, 0.50);
  font-size: 0.75rem;
}

.paid-visual-badge{
  display: inline-flex;
  width: fit-content;
  max-inline-size: 100%;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 37, 41, 0.13);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(33, 37, 41, 0.78);
  line-height: 1.35;
  font-size: 0.82rem;
}

.paid-visual-copy p{
  margin: 0;
  color: rgba(33, 37, 41, 0.66);
  line-height: 1.65;
  font-size: clamp(0.84rem, 2vw, 0.92rem);
}

.paid-report-core{
  display: grid;
}

.paid-report-section-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.8rem, 1.8vw, 1rem);
}


.paid-report-card h3{
  margin: 0;
  color: rgba(33, 37, 41, 0.93);
  font-size: clamp(1.02rem, 2.25vw, 1.16rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.paid-report-card .report-card-body{
  margin: 0;
  color: rgba(33, 37, 41, 0.76);
  line-height: 1.88;
  white-space: pre-wrap;
  font-size: clamp(0.96rem, 2.05vw, 1.01rem);
}

.paid-report-metric-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.paid-report-metric-chip-row span{
  min-height: auto;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  line-height: 1.35;
}

.paid-action-card{
  padding: clamp(0.9rem, 2vw, 1rem);
  display: grid;
  gap: 0.55rem;
}

.paid-action-card ul{
  margin: 0;
  padding-left: 1.05rem;
  color: rgba(33, 37, 41, 0.72);
  line-height: 1.62;
}

.paid-action-card li + li{
  margin-top: 0.35rem;
}

.paid-report-appendix{
  display: grid;
  gap: 0.7rem;
}

.paid-report-disclosure{
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0.6rem 1.4rem rgba(33, 37, 41, 0.05);
}

.paid-report-disclosure-spaced{
  margin-bottom: 1.25rem;
}

.paid-report-disclosure summary{
  cursor: pointer;
  padding: clamp(0.85rem, 2vw, 1rem) clamp(1rem, 2.4vw, 1.2rem);
  color: rgba(33, 37, 41, 0.82);
  font-weight: 900;
  list-style: none;
}

.paid-report-disclosure summary::-webkit-details-marker{
  display: none;
}

.paid-report-disclosure summary::after{
  content: "+";
  float: right;
  color: rgba(33, 37, 41, 0.48);
  font-size: 0.78rem;
}

.paid-report-disclosure[open] summary::after{
  content: "−";
}

.paid-report-disclosure-body{
  padding: 0 clamp(1rem, 2.4vw, 1.2rem) clamp(1rem, 2.4vw, 1.2rem);
}

.paid-report-access-body{
  display: grid;
  grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.paid-report-qr-label{
  color: var(--bm-gray-500, #adb5bd);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.paid-report-action-strip-offset{
  margin-top: 1.2rem;
}

.paid-report-login-lead{
  margin: 0 0 12px;
  color: var(--bm-gray-600, #6c757d);
  font-size: 14px;
  line-height: 1.55;
}

.paid-report-qr{
  inline-size: min(100%, clamp(8rem, 24vw, 12rem));
  block-size: auto;
  aspect-ratio: 1 / 1;
  border-radius: clamp(0.9rem, 2vw, 1.2rem);
}

.paid-report-url-box{
  margin-top: 0;
  padding: clamp(0.8rem, 2vw, 1rem);
  border-radius: 1rem;
}

.paid-report-url-full{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.6;
  font-size: clamp(0.78rem, 2vw, 0.9rem);
}

.paid-report-meta-list{
  display: grid;
  gap: 0.55rem;
}

.paid-report-meta-list p{
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.28fr) minmax(0, 1fr);
  gap: 0.7rem;
  margin: 0;
  color: rgba(33, 37, 41, 0.72);
  overflow-wrap: anywhere;
}

.paid-report-meta-list strong{
  color: rgba(33, 37, 41, 0.86);
  font-weight: 800;
}

@media (max-width: 780px){
  .paid-report-save-strip,
.paid-report-save-actions{
    display: grid;
    grid-template-columns: 1fr;
    inline-size: 100%;
  }

  .paid-visual-card,
.paid-report-access-body,
.paid-report-meta-list p{
    grid-template-columns: 1fr;
  }

  .paid-report-qr-wrap{
    justify-items: start;
  }
}

@media print{
  .paid-report-save-strip,
.paid-report-appendix{
    display: none !important;
  }
}

/* Account login status bar */
.auth-status-bar{
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-inline-size: min(100%, 32rem);
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--bm-gray-900);
}

.auth-status-text{
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  max-inline-size: min(48vw, 18rem);
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--bm-gray-300);
  border-radius: 999px;
  background: var(--bm-white);
  background-image: none;
  color: var(--bm-gray-900);
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.06);
  overflow: hidden;
  white-space: nowrap;
}

.auth-status-text strong{
  color: var(--bm-gray-900);
  font-weight: 900;
}

.auth-status-text em{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bm-gray-600);
  font-style: normal;
  font-weight: 800;
}
.auth-chip-button{
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--bm-gray-300);
  border-radius: 999px;
  background: var(--bm-white);
  background-image: none;
  color: var(--bm-gray-900);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.06);
}

.auth-chip-button:not(.auth-chip-button-ghost){
  border-color: var(--bm-blue);
  background: var(--bm-white);
  color: var(--bm-blue);
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.16), 0 6px 14px rgba(33, 37, 41, 0.06);
}

@media (max-width: 720px){
  .auth-status-bar{
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .auth-status-text{
    max-inline-size: 100%;
  }
}
/* My Page account report modal */
body.my-page-open{
  overflow: hidden;
}

.my-page-modal{
  position: fixed;
  inset: 0;
  z-index: var(--my-page-modal-z, 2147483200);
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.my-page-modal.hidden{
  display: none !important;
}

.my-page-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, 0.36);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.my-page-panel{
  position: relative;
  z-index: 1;
  inline-size: min(100%, 42rem);
  max-block-size: min(88vh, 48rem);
  overflow: auto;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.1rem);
  padding: clamp(1.05rem, 3vw, 1.45rem);
  border: 1px solid var(--bm-gray-300);
  border-radius: clamp(1.15rem, 3vw, 1.8rem);
  background: var(--bm-white);
  background-image: none;
  color: var(--bm-gray-900);
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.06);
}

.my-page-close{
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  inline-size: 2.25rem;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--bm-gray-300);
  border-radius: 0;
  background: var(--bm-white);
  color: var(--bm-gray-900);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.my-page-head{
  display: grid;
  gap: 0.35rem;
  padding-inline-end: 2.6rem;
}

.my-page-head span,
.my-page-summary span,
.my-page-toolbar > strong{
  color: var(--bm-gray-900);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-page-head h2{
  margin: 0;
  color: var(--bm-gray-900);
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.my-page-head p{
  margin: 0;
  color: var(--bm-gray-600);
  line-height: 1.68;
}

.my-page-summary{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.7rem;
}
.my-page-summary article,
.my-page-state{
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.76);
}

.my-page-summary article{
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  background: var(--bm-white);
  background-image: none;
  color: var(--bm-gray-900);
  border-color: var(--bm-gray-300);
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.06);
}

.my-page-summary strong{
  color: var(--bm-gray-900);
  font-size: 1.05rem;
}

.my-page-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.my-page-toolbar > div{
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.my-page-login-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.55rem;
}

.my-page-state{
  padding: 1rem;
  background: var(--bm-white);
  background-image: none;
  color: var(--bm-gray-600);
  border-color: var(--bm-gray-300);
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.06);
  line-height: 1.7;
}

.my-page-state strong{
  display: block;
  margin-bottom: 0.25rem;
  color: rgba(33, 37, 41, 0.9);
}

.my-page-state p{
  margin: 0;
}

@media (max-width: 640px){
  .my-page-modal{
    align-items: end;
    padding: 0.6rem;
  }
}


                                                       
                                                                    
      
                     
                            
                         
                         
                         
                         
                         
                         
                         
                      
 
.report-pref-modal,
.report-pref-choice,
.report-pref-chip,
.report-pref-block-title-row strong,
.paid-report-executive,
.paid-report-free-snapshot,
.paid-report-save-strip,
.paid-report-personalization,
.paid-report-visual-section,
.paid-report-action-pack,
.paid-report-disclosure,
.paid-report-executive-cards article,
.paid-action-card,
.paid-visual-card,
.paid-report-priority,
.paid-report-reliability,
.paid-report-url-box,
.paid-report-qr,
.paid-report-processing-card{
  background: var(--bm-white) !important;
  background-image: none !important;
  border-color: var(--bm-gray-300) !important;
  color: var(--bm-gray-900) !important;
  box-shadow: 0 4px 12px rgba(33, 37, 41, 0.06) !important;
}
.report-pref-head h3,
.report-pref-block h4,
.report-pref-head p,
.report-pref-block p,
.report-pref-head small,
.report-pref-choice,
.report-pref-choice strong,
.report-pref-choice span,
.report-pref-chip,
.paid-report-eyebrow,
.paid-report-executive-copy h3,
.paid-report-executive-copy p,
.paid-report-mood,
.paid-report-executive-cards span,
.paid-report-executive-cards strong,
.paid-report-executive-cards p,
.paid-report-priority,
.paid-report-reliability,
.paid-report-personalization,
.paid-report-personalization p,
.paid-visual-copy h4,
.paid-visual-scale,
.paid-visual-badge,
.paid-visual-copy p,
.paid-report-metric-chip-row span,
.paid-action-card span,
.paid-action-card ul,
.paid-report-meta-list span,
.paid-report-meta-list strong{
  color: var(--bm-gray-900) !important;
}
.report-pref-head p,
.report-pref-block p,
.report-pref-choice span,
.paid-report-executive-copy p,
.paid-report-executive-cards p,
.paid-report-priority,
.paid-report-reliability,
.paid-report-personalization p,
.paid-visual-scale,
.paid-visual-copy p{
  color: var(--bm-gray-600) !important;
}
.report-pref-choice.is-selected,
.report-pref-chip.is-selected,
.report-pref-choice:hover,
.report-pref-chip:hover{
  border-color: var(--bm-blue) !important;
  background: var(--bm-white) !important;
  color: var(--bm-blue) !important;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.16), 0 6px 14px rgba(33, 37, 41, 0.06) !important;
}

.report-pref-choice.is-selected strong,
.report-pref-chip.is-selected,
.paid-report-eyebrow,
.paid-report-personalization span,
.paid-report-priority span,
.paid-report-reliability span,
.paid-action-card span,
.paid-report-meta-list span,
.blob-kicker{
  color: var(--bm-blue) !important;
}

.report-pref-backdrop{
  background: rgba(33, 37, 41, 0.42) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.paid-report-shell{
  inline-size: min(100%, 68rem) !important;
}
.paid-report-mood,
.paid-visual-badge,
.paid-report-metric-chip-row span,
.report-pref-block-title-row strong{
  border-color: var(--bm-gray-300) !important;
  background: var(--bm-gray-100) !important;
}

.paid-visual-graphic,
.paid-report-qr,
.paid-report-processing-meter,
.report-pref-choice-grid,
.report-pref-chip-grid{
  background: var(--bm-gray-100) !important;
}

.paid-visual-graphic svg [fill]{ fill: var(--bm-white) !important; }
.paid-visual-graphic svg [stroke]{ stroke: var(--bm-gray-900) !important; }
.paid-visual-graphic svg rect:last-of-type,
.paid-visual-graphic svg circle:nth-of-type(2),
.paid-visual-graphic svg path:last-of-type{ fill: var(--bm-blue) !important; stroke: var(--bm-blue) !important; }

.paid-report-processing-meter span,
.progress-rail span{
  background: var(--bm-blue) !important;
}

.my-page-state.is-error{
  background: var(--bm-gray-100) !important;
  color: var(--bm-gray-900) !important;
  border-color: var(--bm-gray-300) !important;
}

/* Keep report pages from collapsing inside the 12-col result grid. */
.result-panels{ grid-auto-flow: row dense; align-items: start; }
.result-panels > *{ min-inline-size: 0; }
.result-panels > .paid-report-shell,
.result-panels > .paid-report-pending-shell{
  grid-column: 1 / -1 !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
}

@media (max-width: 1100px){
}

@media (max-width: 780px){
  .result-panels{ grid-template-columns: 1fr; }.premium-paywall-wrapper{ grid-column: 1 / -1 !important; }
  .metric-deck{ grid-template-columns: 1fr; }
  .paid-visual-card{ grid-template-columns: 1fr !important; }
}


/* 2026-05-08 branded report QR code */
.paid-report-qr{
  display: grid !important;
  place-items: center !important;
  padding: clamp(0.45rem, 1.2vw, 0.68rem) !important;
  border-radius: 1rem !important;
  border: 1px solid var(--bm-gray-300) !important;
  background: #f4f6f9 !important;
  box-shadow: 0 8px 20px rgba(33, 37, 41, 0.08) !important;
}

.paid-report-qr-art{
  position: relative;
  inline-size: 100%;
  block-size: 100%;
  display: grid;
  place-items: center;
  padding: 5%;
  border-radius: 0.75rem;
  border: 1px solid var(--bm-gray-200);
  background: var(--bm-white);
  box-shadow: 0 2px 8px rgba(33, 37, 41, 0.06);
  overflow: hidden;
}

.paid-report-qr-image{
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

.paid-report-qr-logo{
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  
  /* Cover the logo cutout completely. */
  inline-size: 27%; 
  aspect-ratio: 1 / 1;
  min-inline-size: 2.2rem;
  
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border-radius: 50%; 

  /* Remove the neutral ring. */
  border: none !important; 
  background: transparent;
  
  pointer-events: none;
}

.paid-report-qr-logo img{
  display: block;
  width: 100%;
  height: 100%;
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: cover; 
  
  /* Slightly enlarge logo art if the source image contains transparent padding. */
  transform: scale(1.1); 
}
/* =========================================
   Large stacked QR and URL layout
   ========================================= */

/* Stack the two-column layout into one centered column. */
.paid-report-access-body{
  grid-template-columns: 1fr !important;
  justify-items: center !important;
  gap: 1.5rem !important;
}

/* Keep QR content centered on narrow screens. */
.paid-report-qr-wrap{
  justify-items: center !important;
  width: 100%;
}

/* Increase QR size for share-friendly capture. */
.paid-report-qr{
  inline-size: min(100%, 280px) !important;
  border-radius: 1.5rem !important; /* Keep corners soft at the larger size. */
}

/* Fill and center the report URL box. */
.paid-report-url-box{
  width: 100% !important;
  box-sizing: border-box;
  text-align: center !important;
}

/* Center long URL text. */
.paid-report-url-full{
  display: block !important;
  text-align: center !important;
}

.paid-report-free-snapshot{
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, .65fr);
  gap: 1rem;
  align-items: stretch;
}

.paid-snapshot-copy,
.paid-snapshot-side{
  display: grid;
  gap: .85rem;
}

.paid-snapshot-copy h3{
  margin: 0;
  font-size: clamp(1.32rem, 4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.045em;
}

.paid-snapshot-copy p{
  margin: 0;
  color: var(--muted, #6c757d);
  line-height: 1.72;
}

.paid-snapshot-chips{
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.paid-snapshot-chips span{
  border: 1px solid var(--line, #dee2e6);
  background: var(--soft, #f8f9fa);
  border-radius: 999px;
  padding: .4rem .68rem;
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted, #6c757d);
}

.paid-snapshot-side{
  border: 1px solid var(--line, #dee2e6);
  border-radius: 1rem;
  background: var(--soft, #f8f9fa);
  padding: 1rem;
  align-content: start;
}

.paid-snapshot-side > strong{
  font-size: 1.15rem;
  letter-spacing: -.025em;
}

.paid-snapshot-animal{
  inline-size: min(100%, 10rem);
  block-size: auto;
  justify-self: center;
}

.paid-aura-bars{
  display: grid;
  gap: .58rem;
}

@media (max-width: 720px){
  .paid-report-free-snapshot{
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   Capture-only camera notices
   - Keep orientation/face-position guidance out of landing,
report,
and done pages.
   - Treat the camera preview canvas as visible only during the actual camera flow.
   ===================================================================== */
.orientation-notice{
  display: none;
}

.app-shell[data-scene="scan"] .orientation-notice:not(.hidden){
  display: block;
}

.app-shell:not([data-scene="scan"]) .orientation-notice{
  display: none !important;
}

.app-shell:not([data-scene="loading"]):not([data-scene="scan"]) #previewCanvas.preview-live,
.app-shell:not([data-scene="loading"]):not([data-scene="scan"]) .preview.preview-live{
  opacity: 0 !important;
  visibility: hidden !important;
}

/* =====================================================================
   Paid report viewer: opens reports as an independent full-screen layer
   instead of embedding the paid report inside the result page.
   ===================================================================== */
body.report-viewer-open{
  overflow: hidden;
}

.report-viewer-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: stretch;
}

.report-viewer-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(33, 37, 41, .46);
  backdrop-filter: blur(12px);
}

.report-viewer-panel{
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100vw, 1060px);
  height: min(100dvh, 960px);
  margin: auto;
  border: 1px solid var(--line, rgba(108, 117, 125, .18));
  border-radius: 28px;
  background: var(--surface, #ffffff);
  box-shadow: 0 32px 88px rgba(33, 37, 41, .26);
  overflow: hidden;
}

.report-viewer-topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line, rgba(108, 117, 125, .18));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}

.report-viewer-title{
  min-width: 0;
}

.report-viewer-title span{
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-strong, #0a58ca);
}

.report-viewer-title strong{
  display: block;
  margin-top: 3px;
  color: var(--text, #212529);
  font-size: clamp(17px, 3.3vw, 24px);
  line-height: 1.15;
  letter-spacing: -.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-viewer-title em{
  display: block;
  margin-top: 3px;
  color: var(--text-soft, #6c757d);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-viewer-top-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.report-viewer-close{
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.report-viewer-scroll{
  min-height: 0;
  overflow: auto;
  padding: 20px;
  background: #ffffff;
}

.report-viewer-scroll .paid-report-card{
  margin: 0 auto;
  max-width: 920px;
}

.report-viewer-scroll .paid-report-card + .paid-report-card,
.report-viewer-scroll .paid-report-card ~ .paid-report-card{
  margin-top: 16px;
}

.report-viewer-loading{
  display: grid;
  min-height: 42vh;
  place-items: center;
  padding: 24px;
  color: var(--text-soft, #6c757d);
  font-weight: 800;
}

.result-report-shelf-mount{
  max-width: min(100%, 920px);
  margin: 18px auto 110px;
}

.recent-report-shelf.is-compact{
  padding: 16px;
  border-radius: 22px;
}

.recent-report-shelf.is-compact .recent-report-shelf-head h2{
  font-size: clamp(17px, 3.4vw, 22px);
}

.private-report-reopen-rail{
  width: 100%;
  max-inline-size: 100%;
  overflow: hidden;
}

.private-report-reopen-head{
  display: grid;
  gap: 4px;
}

.private-report-reopen-list{
  display: grid;
  gap: 12px;
  min-inline-size: 0;
}

.private-report-reopen-card{
  display: grid;
  gap: 14px;
  min-inline-size: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(33, 37, 41, 0.07);
}

.private-report-reopen-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: 8px;
  min-inline-size: 0;
}

.private-report-reopen-actions .button,
.private-report-reopen-actions a.button{
  inline-size: 100%;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.returning-session-lifecycle-nudge{
  display: grid;
  gap: 14px;
  width: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: 16px;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 36px rgba(33, 37, 41, 0.08);
  overflow: hidden;
}

.returning-session-lifecycle-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-inline-size: 0;
}

.returning-session-lifecycle-head h2,
.returning-session-lifecycle-head p{
  margin: 0;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.returning-session-lifecycle-dismiss{
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 999px;
  background: rgba(248, 249, 250, 0.92);
  color: var(--text-soft, #495057);
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.returning-session-lifecycle-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: 8px;
  min-inline-size: 0;
}

.returning-session-lifecycle-actions .button,
.returning-session-lifecycle-actions a.button{
  inline-size: 100%;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@media (max-width: 480px){
  .returning-session-lifecycle-nudge{
    padding: 14px;
    border-radius: 18px;
  }

  .returning-session-lifecycle-head{
    grid-template-columns: 1fr;
  }

  .returning-session-lifecycle-dismiss{
    inline-size: 100%;
  }
}

.master-resume-next-action-rail{
  display: grid;
  gap: 12px;
  width: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: 14px;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 18px;
  background: rgba(231, 241, 255, 0.48);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.07);
}

.master-resume-next-action-rail.is-compact{
  padding: 12px;
  gap: 10px;
}

.master-resume-next-action-head{
  display: grid;
  gap: 4px;
  min-inline-size: 0;
}

.master-resume-next-action-head h3,
.master-resume-next-action-head p{
  margin: 0;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.master-resume-next-action-meta{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 8px;
  min-inline-size: 0;
}

.master-resume-next-action-meta p{
  display: grid;
  gap: 3px;
  min-inline-size: 0;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.master-resume-next-action-meta span{
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.master-resume-next-action-meta strong{
  min-inline-size: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.master-resume-next-action-actions{
  display: grid;
  gap: 8px;
  min-inline-size: 0;
}

.master-resume-next-action-primary-slot,
.master-resume-next-action-secondary{
  display: grid;
  gap: 8px;
  min-inline-size: 0;
}

.master-resume-next-action-secondary{
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
}

.master-resume-next-action-actions .button,
.master-resume-next-action-actions a.button{
  inline-size: 100%;
  justify-content: center;
  min-block-size: 44px;
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.master-resume-privacy-note{
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.my-page-panel .private-report-reopen-rail{
  box-shadow: none;
}

.my-page-panel .private-report-reopen-card{
  background: #fff;
}

@media (max-width: 760px){
  .report-viewer-panel{
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .report-viewer-topbar{
    padding: 12px 12px;
  }

  .report-viewer-title strong,
.report-viewer-title em{
    white-space: normal;
  }

  .report-viewer-top-actions .button{
    display: none;
  }

  .report-viewer-scroll{
    padding: 12px;
  }
}

/* =====================================================================
   2026-05-10 full-page report reader upgrade
   Reports are not embedded cards or small popups: they open as a full-screen
   PDF/E-book style reader layer with page-like report cards.
   ===================================================================== */
.report-viewer-modal{
  display: block;
  background: #f4f6f9;
}

.report-viewer-panel{
  width: 100vw;
  height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f4f6f9;
}

.report-viewer-topbar{
  min-height: 64px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(33, 37, 41, .08), 0 12px 34px rgba(33, 37, 41, .08);
  z-index: 2;
}

.report-viewer-title span{
  color: #0d6efd;
}

.report-viewer-title strong{
  max-inline-size: min(64vw, 56rem);
}

.report-viewer-scroll{
  padding: clamp(14px, 2.4vw, 32px) clamp(12px, 3vw, 40px) calc(56px + env(safe-area-inset-bottom));
  background: #f4f6f9;
}

.report-reader-page{
  width: min(100%, 1080px);
  margin: 0 auto;
}

.report-viewer-scroll .paid-report-shell,
.report-reader-page > .paid-report-shell,
.report-reader-page > .paid-report-pending-shell{
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.report-viewer-scroll .paid-report-section-grid{
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.2vw, 24px);
}

.report-viewer-scroll .paid-report-card,
.paid-report-chapter-card{
  max-width: none;
}

.paid-report-chapter-card{
  position: relative;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(33, 37, 41, .10);
}

.paid-report-chapter-number{
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 1px solid rgba(13, 110, 253, .18);
  border-radius: 999px;
  background: rgba(13, 110, 253, .08);
  color: #0d6efd;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
}

.report-viewer-scroll .paid-report-metric-chip-row.is-hashtag-row span{
  background: rgba(13, 110, 253, .08);
  border-color: rgba(13, 110, 253, .16);
  color: #0a58ca;
}

@media (max-width: 760px){
  .report-viewer-topbar{
    min-height: 58px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  }

  .report-viewer-title strong{
    max-inline-size: calc(100vw - 74px);
    font-size: 17px;
  }

  .report-viewer-title em{
    display: none;
  }

  .report-viewer-scroll{
    padding: 12px 12px calc(48px + env(safe-area-inset-bottom));
  }

  .paid-report-chapter-card{
    padding: 18px 16px;
    border-radius: 16px;
  }
}

/* =====================================================================
   H014 paid-report/result component owner layer
   Owner: paid-report tip labels, tip body affordances, and stat tracks for
   in-app fulfillment/payment-return plus report-view surfaces. Kind classes
   may style card containers only; the label pill contract is owned here.
   ===================================================================== */
.paid-report-card .report-card-body strong,
.paid-report-executive-copy strong,
.card p strong{
  color: var(--ink, #212529);
  font-weight: 900;
  background: rgba(13, 110, 253, 0.10);
  padding: 0 0.04em;
}

.paid-report-tip-list{
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.paid-report-tip-card{
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: clamp(16px, 3vw, 18px);
  padding: clamp(0.9rem, 2.5vw, 1rem);
  background: #f8f9fa;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.06);
}

.paid-report-chapter-card.is-styling{
  border-color: rgba(108, 117, 125, 0.28);
  background: #ffffff;
}

.paid-report-chapter-card.is-clinic{
  border-color: rgba(33, 37, 41, 0.22);
}

.paid-report-tip-card p:not(.paid-report-tip-fact):not(.paid-report-tip-solution){
  margin: 0.35rem 0 0;
  color: rgba(33, 37, 41, 0.78);
  font-size: 0.95rem;
  line-height: 1.68;
}

.paid-report-tip-fact,
.paid-report-tip-solution{
  display: grid;
  gap: 0.22rem;
  margin-top: 0.72rem;
}

.paid-report-tip-fact b,
.paid-report-tip-solution b{
  display: inline-flex;
  width: fit-content;
  color: #0a58ca;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paid-report-tip-fact{
  padding-top: 0.55rem;
  border-top: 1px solid rgba(33, 37, 41, 0.08);
}

.paid-report-tip-solution{
  color: rgba(33, 37, 41, 0.88);
}

.paid-report-tip-label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-inline-size: 100%;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  background: #e7f1ff;
  color: #0a58ca;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

body.paid-report-page-open .paid-report-tip-card .paid-report-tip-label,
#doneScreen.is-paid-report-page .paid-report-tip-card .paid-report-tip-label{
  display: inline-flex;
  background: #e7f1ff;
  color: #0a58ca;
  border: 1px solid #cfe2ff;
  border-color: #cfe2ff;
}

.paid-report-tip-card.is-recommend{
  background: #f8f9fa;
  border-color: #e7f1ff;
}

.paid-report-tip-card.is-avoid{
  background: #f8f9fa;
  border-color: #cfe2ff;
}

.paid-report-tip-list.is-clinic{
  gap: 0.85rem;
}

.paid-report-stat-dashboard{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: clamp(20px, 3.4vw, 30px);
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(33, 37, 41, 0.09);
  padding: clamp(18px, 3vw, 28px);
}

.paid-report-stat-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
  gap: 0.85rem;
}

.paid-report-stat-card{
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  background: #f8f9fa;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.06);
}

.paid-report-stat-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.paid-report-stat-head span{
  color: #0a58ca;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.paid-report-stat-head strong{
  color: #212529;
  font-size: clamp(1.12rem, 3vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.paid-report-stat-card h4{
  margin: 0.55rem 0 0.7rem;
  color: #212529;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.paid-report-stat-track{
  position: relative;
  height: 0.56rem;
  border-radius: 999px;
  background: #e9ecef;
  overflow: visible;
}

.paid-report-stat-track i{
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #e7f1ff;
}

.paid-report-stat-track b{
  position: absolute;
  top: 50%;
  left: var(--16f-stat-marker-left, 50%);
  width: 1rem;
  height: 1rem;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.14);
  transform: translate(-50%, -50%);
}

.paid-report-stat-scale{
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.48rem;
  color: #6c757d;
  font-size: 0.74rem;
  font-weight: 800;
}

.paid-report-stat-card p{
  margin: 0.7rem 0 0;
  color: rgba(33, 37, 41, 0.70);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Report v5: direct LLM output reader */
.paid-report-shell-direct-llm{
  display: grid;
  gap: clamp(1rem, 2.8vw, 1.4rem);
}

.paid-report-shell-is-processing[hidden]{
  display: none !important;
}

.paid-report-llm-cover{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: clamp(22px, 4vw, 34px);
  background: #ffffff;
  box-shadow: 0 18px 54px rgba(33, 37, 41, 0.10);
  padding: clamp(1.35rem, 4vw, 2.4rem);
}

.paid-report-llm-cover h1{
  margin: 0;
  max-inline-size: min(100%, 32ch);
  color: #212529;
  font-size: clamp(1.45rem, 4.1vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.26;
  text-wrap: balance;
}

.paid-report-llm-cover .paid-report-eyebrow{
  margin: 0 0 0.75rem;
}

.paid-report-llm-summary{
  max-inline-size: 860px;
  margin: 1.05rem 0 0;
  color: rgba(33, 37, 41, 0.72);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.82;
}

.paid-report-llm-summary strong,
.paid-report-raw-card .report-card-body strong,
.paid-report-tip-card strong{
  color: #212529;
  font-weight: 950;
  background: rgba(13, 110, 253, 0.10);
  padding: 0 0.03em;
}

.is-raw-llm-tags{
  margin-top: 1rem;
}

.is-raw-llm-tags span:first-child{
  background: #212529;
  border-color: #212529;
  color: #ffffff;
}

.paid-report-free-result-wrap{
  display: grid;
  gap: clamp(1rem, 2vw, 1.2rem);
}

.paid-report-reused-result .result-hero-panel,
.paid-report-reused-result-panels .result-story-card{
  margin: 0;
}

.paid-report-aura-card .aura-radar-plot{
  margin-inline: auto;
}

.paid-report-raw-core .paid-report-section-title strong{
  color: rgba(33, 37, 41, 0.72);
}

.paid-report-raw-card{
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px rgba(33, 37, 41, 0.075);
}

.paid-report-raw-card .report-card-head h3{
  letter-spacing: -0.035em;
}

.paid-report-raw-card .report-card-body{
  color: rgba(33, 37, 41, 0.76);
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  line-height: 1.9;
}

@media (max-width: 720px){
  .paid-report-free-card .result-collectible-grid{
    grid-template-columns: 1fr;
  }
  .paid-report-free-portrait{
    min-height: 15rem;
  }
}

/* =====================================================================
   H007 paid-report/result route containment layer
   Owner: body.paid-report-page-open and #doneScreen.is-paid-report-page.
   The route-scope rules below own page containment only. Paid-report
   component chips and stat tracks are owned by the H014 component layer.
   ===================================================================== */
/* Paid report route: render as the normal /d/<id> page,
not as a popup layer. */
body.paid-report-page-open,
body.paid-report-page-open .app-shell,
body.paid-report-page-open .app-shell-refit,
body.paid-report-page-open #doneScreen{
  background: #f4f6f9 !important;
  color: #212529 !important;
}

body.paid-report-page-open{
  overflow: auto !important;
}

body.paid-report-page-open :is(#resultHeroCard,
#resultConversionPanel,
#resultReportsMount,
#analysisStatusBlock,
.cta-fixed-bottom,
.paywall-overlay,
.premium-paywall-wrapper){
  display: none !important;
}

body.paid-report-page-open #analysisResultPanels{
  display: block !important;
  width: min(100%, 1120px) !important;
  margin: 0 auto !important;
}

body.paid-report-page-open .result-stage-v3{
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  gap: 18px !important;
  padding-bottom: clamp(2rem, 6vw, 4rem) !important;
}

body.paid-report-page-open .result-header-v3{
  background: #ffffff !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 12px !important;
  padding: clamp(1.2rem, 2.5vw, 1.6rem) !important;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.06) !important;
}

body.paid-report-page-open .result-header h2{
  max-inline-size: 32ch !important;
  font-size: clamp(1.35rem, 3.3vw, 2rem) !important;
  line-height: 1.32 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

body.paid-report-page-open .paid-report-shell,
body.paid-report-page-open .paid-report-pending-shell,
body.paid-report-page-open .paid-report-raw-core,
body.paid-report-page-open .paid-report-section-grid,
body.paid-report-page-open .paid-report-visual-grid,
body.paid-report-page-open .paid-action-grid,
body.paid-report-page-open .paid-report-reused-result-panels{
  width: 100% !important;
}

body.paid-report-page-open .paid-report-shell,
body.paid-report-page-open .paid-report-pending-shell,
body.paid-report-page-open .paid-report-raw-core{
  margin: 0 !important;
}

body.paid-report-page-open :is(.paid-report-shell,
.paid-report-pending-shell,
.paid-report-raw-core,
.paid-report-llm-cover,
.paid-report-executive,
.paid-report-free-snapshot,
.paid-report-save-strip,
.paid-report-personalization,
.paid-report-visual-section,
.paid-report-action-pack,
.paid-report-disclosure,
.paid-report-processing-card,
.paid-report-appendix,
.paid-action-card,
.paid-visual-card,
.paid-report-priority,
.paid-report-reliability){
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #dee2e6 !important;
  color: #212529 !important;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.06) !important;
}

body.paid-report-page-open .paid-report-reused-result :is(.result-hero-panel,
.result-story-card.story-wide){
  margin: 0 !important;
}

body.paid-report-page-open .paid-report-free-result-wrap{
  margin-top: 1rem !important;
}

body.paid-report-page-open .animal-illustration-picture,
body.paid-report-page-open .animal-illustration-image{
  filter: none !important;
}

body.paid-report-page-open :is(.paid-report-section-title span,
.paid-report-eyebrow,
.paid-report-chapter-number){
  color: #0a58ca !important;
}


body.paid-report-page-open .paid-report-qr-logo,
body.paid-report-page-open .paid-visual-graphic,
body.paid-report-page-open .paid-report-mood{
  background: #e7f1ff !important;
  border-color: #cfe2ff !important;
}

@media (max-width: 720px){
  body.paid-report-page-open .result-header-v3{
    align-items: stretch !important;
  }
  body.paid-report-page-open #shareResultButton{
    width: 100% !important;
  }
}
/* =====================================================================
   2026-05-12 top menu + result-share cleanup
   - Top actions live inside one full-screen menu.
   - Free result page hides numeric readouts and favors shareable copy.
   - All overlay flows are styled as full-page views.
   ===================================================================== */
.auth-status-bar.auth-status-bar-legacy{
  display: none !important;
}

.app-shell[data-scene="done"] .top-bar,
.app-shell[data-scene="landing"] .top-bar,
.app-shell[data-scene="onboarding"] .top-bar,
.app-shell[data-scene="analyzing"] .top-bar,
.app-shell[data-scene="loading"] .top-bar{
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: var(--premium-flow-escape-z, 2147482998) !important;
  isolation: isolate;
}
.app-menu-panel{
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100dvh;
  display: block;
  padding: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--text, #212529);
  overflow-x: hidden;
  overflow-y: auto;
  transition: none !important;
  animation: none !important;
}

.app-menu-panel.hidden{
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.global-menu-page{
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100vw;
  height: 100dvh;
  display: block;
  padding: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
  background: #ffffff;
  color: var(--text, #212529);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: none !important;
  animation: none !important;
}

.global-menu-page.hidden{
  display: none !important;
}

.global-menu-inner{
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.global-menu-head{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) 18px calc(18px + var(--safe-left));
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(33, 37, 41, 0.10);
  background: #ffffff;
}

.global-menu-head span{
  margin: 0;
  color: var(--text-soft, #6c757d);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.global-menu-head h2{
  margin: 3px 0 0;
  color: var(--text, #212529);
  font-size: clamp(26px, 8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.global-menu-close{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  max-inline-size: 100%;
  font-size: 28px;
  line-height: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.global-menu-body{
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 22px calc(18px + var(--safe-right)) calc(38px + var(--safe-bottom)) calc(18px + var(--safe-left));
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-wrap: anywhere;
}

.app-menu-page{
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
}

.app-menu-head{
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + var(--safe-top)) calc(18px + var(--safe-right)) 18px calc(18px + var(--safe-left));
  border-bottom: 1px solid rgba(33, 37, 41, 0.10);
  background: #ffffff;
}

.app-menu-head p,
.app-menu-card span{
  margin: 0;
  color: var(--text-soft, #6c757d);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-menu-head h2{
  margin: 3px 0 0;
  color: var(--text, #212529);
  font-size: clamp(26px, 8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.app-menu-close{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}

.app-menu-body{
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 22px calc(18px + var(--safe-right)) calc(38px + var(--safe-bottom)) calc(18px + var(--safe-left));
  display: grid;
  gap: 14px;
  align-content: start;
}

.app-menu-card{
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(33, 37, 41, 0.10);
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.app-menu-card strong{
  color: var(--text, #212529);
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

.app-menu-card p{
  margin: 0;
  color: var(--text-soft, #6c757d);
  line-height: 1.62;
}

.app-menu-link{
  min-height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0;
  background: #ffffff;
  color: var(--text, #212529);
  box-shadow: none;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
}

.app-menu-primary-link{
  background: #212529;
  border-color: #212529;
  color: #ffffff;
}

.app-menu-provider-grid,
.app-menu-language-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}

.app-menu-language-button.is-active{
  background: #212529;
  border-color: #212529;
  color: #ffffff;
}

/* Free result: no numeric deck,
no scan-count emphasis */
.result-card-mini-stats .result-mini-stat{
  min-width: 0;
}

.result-card-mini-stats .result-mini-stat strong{
  font-size: 12px;
  letter-spacing: -0.02em;
}

.report-card-shareable{
  border: 1px solid rgba(33, 37, 41, 0.10);
  background: #ffffff;
  box-shadow: none;
}

.viral-cta-block{
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(33, 37, 41, 0.04);
}

.viral-cta-card{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 13rem);
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px dashed rgba(13, 110, 253, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.viral-cta-card > *{
  max-width: 100%;
  min-width: 0;
}

.viral-cta-card.is-disabled{
  cursor: not-allowed;
}

.viral-cta-icon{
  grid-column: 1;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1;
}

.viral-cta-copy{
  grid-column: 2;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.viral-cta-card > .viral-cta-copy:first-child{
  grid-column: 1 / 3;
}

.viral-cta-title{
  color: var(--text, #212529);
  font-size: 14px;
  line-height: 1.32;
  font-weight: 900;
  letter-spacing: -0.025em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.viral-cta-body{
  margin: 0;
  color: var(--text-soft, #6c757d);
  font-size: 12px;
  line-height: 1.52;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.viral-cta-button{
  grid-column: 3;
  inline-size: fit-content;
  max-inline-size: 100%;
  min-inline-size: 0;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid rgba(33, 37, 41, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-faint, #6c757d);
  box-shadow: none;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.viral-cta-button.is-disabled{
  cursor: not-allowed;
  opacity: 0.76;
}

.viral-cta-card.is-active{
  border-style: solid;
  border-color: #9ec5fe;
  background: #f8f9fa;
}

.viral-cta-card.is-active .viral-cta-button{
  border-color: #0d6efd;
  background: #0d6efd;
  color: #ffffff;
}

.viral-cta-card.is-active .viral-cta-button:hover{
  border-color: #0a58ca;
  background: #0a58ca;
}

.viral-cta-card:focus-within{
  outline: 2px solid rgba(13, 110, 253, 0.18);
  outline-offset: 2px;
}

@media (max-width: 640px){
  .viral-cta-block{
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .viral-cta-card{
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px 10px;
    padding: 12px;
  }

  .viral-cta-card > .viral-cta-copy:first-child{
    grid-column: 1 / -1;
  }

  .viral-cta-button{
    grid-column: 1 / -1;
    inline-size: 100%;
    max-inline-size: 100%;
    justify-self: stretch;
    min-height: 34px;
  }
}

@media (max-width: 390px){
  .viral-cta-button{
    inline-size: 100%;
    max-inline-size: 100%;
    max-width: 100%;
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.free-report-share-shell .report-card-shareable{
  grid-column: span 4;
}

/* Full-page pages instead of popup-looking modals */ .my-page-modal,
.report-pref-backdrop,
.report-viewer-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  width: 100vw !important;
  height: 100dvh !important;
  display: block !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  animation: none !important;
  transition: none !important;
}

.report-viewer-modal.hidden{
  display: none !important;
}

.report-viewer-backdrop{
  display: none !important;
}

.report-pref-modal,
.report-viewer-panel{
  position: relative !important;
  z-index: 1 !important;
  width: 100vw !important;
  max-width: none !important;
  inline-size: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  max-block-size: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff !important;
  overflow: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.report-pref-modal{
  padding: calc(20px + var(--safe-top)) calc(18px + var(--safe-right)) calc(32px + var(--safe-bottom)) calc(18px + var(--safe-left)) !important;
  align-content: start;
}

.report-viewer-panel{
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.legal-modal-head,
.report-viewer-topbar{
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(33, 37, 41, 0.10) !important;
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.legal-modal-body,
.report-viewer-scroll{
  min-height: 0;
  overflow: auto;
  background: #ffffff !important;
}

.my-page-close,
.legal-modal-close,
.report-viewer-close{
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 960px){
  .free-report-share-shell .report-card-shareable{
    grid-column: span 12;
  }
}

@media (max-width: 640px){
  .app-menu-body{
    padding-top: 16px;
  }
}















.result-report-shelf-mount{
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 110px !important;
}

.result-report-shelf-mount .recent-report-shelf{
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px !important;
  border-radius: var(--radius-xl) !important;
  background: rgba(255, 255, 255, 0.84) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

.result-report-shelf-mount .recent-report-shelf.is-compact{
  padding: 20px !important;
  border-radius: var(--radius-xl) !important;
}

@media (max-width: 960px){
  
}

@media (max-width: 520px){
  

  

  
}

/* =====================================================================
   H007 language-switch base owner layer · visible language dropdown
   Owner: .top-language-switch-wrap and .page-language-* for top-bar language UI.
   The legacy .landing-language-* selector tree remains as a hidden landing
   fallback and is contained by the final scoped landing/mobile owner below.
   ===================================================================== */
.top-language-switch-wrap{
  position: relative;
  z-index: 90;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.app-shell:not([data-scene="landing"]):not([data-scene="done"]) .top-language-switch-wrap{
  display: none !important;
}

.app-shell:not([data-scene="landing"]):not([data-scene="done"]) .global-menu-button{
  margin-left: auto;
}

.page-language-dropdown{
  position: relative;
  isolation: isolate;
}

.page-language-dropdown summary{
  list-style: none;
}

.page-language-dropdown summary::-webkit-details-marker{
  display: none;
}

.page-language-trigger{
  min-height: 44px;
  padding: 6px 14px;
  line-height: 1.45;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-language-globe,
.page-language-caret{
  line-height: 1;
  color: var(--text-soft);
}

.page-language-current{
  display: inline-block;
  max-width: 9.5em;
  overflow: visible;
  text-overflow: clip;
  vertical-align: baseline;
  line-height: 1.45;
}

.page-language-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 120;
  min-width: 180px;
  width: max-content;
  max-width: min(230px, calc(100vw - 24px));
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.page-language-dropdown[open] .page-language-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.page-language-option{
  min-height: 42px;
  padding: 7px 13px;
  line-height: 1.45;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(108, 117, 125, 0.75);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-language-option:hover,
.page-language-option:focus-visible{
  color: var(--text);
  border-color: rgba(13, 110, 253, 0.28);
  outline: none;
}

.page-language-option.is-active,
.page-language-option[aria-current="page"]{
  background: #e7f1ff;
  color: var(--brand-strong);
  border-color: rgba(13, 110, 253, 0.22);
}

@media (max-width: 560px){
  .top-language-switch-wrap .page-language-trigger{
    padding-inline: 10px;
    gap: 6px;
    font-size: 12px;
  }

  .top-language-switch-wrap .page-language-menu{
    min-width: 168px;
  }
}

@media (max-width: 390px){
  .app-shell[data-scene="landing"] #qualityChip,
.app-shell[data-scene="done"] #qualityChip{
    display: none;
  }

  .top-language-switch-wrap .page-language-globe{
    display: none;
  }
}

/* Payment gateway selection */
.payment-provider-modal{
  inline-size: min(100%, 46rem);
  max-block-size: calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
}

.payment-provider-head small{
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-provider-master-requirement{
  margin: 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.07);
  color: rgba(33, 37, 41, 0.74);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.45;
}

.payment-provider-expectation{
  margin: 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(33, 37, 41, 0.72);
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.payment-provider-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
}

.payment-provider-choice{
  position: relative;
  min-block-size: 8rem;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 1.1rem;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease;
}

.payment-provider-choice:hover,
.payment-provider-choice:focus-visible{
  transform: translateY(-1px);
  background: #ffffff;
  border-color: #6ea8fe;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.10);
  outline: none;
}

.payment-provider-choice strong{
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.payment-provider-choice em{
  color: rgba(33, 37, 41, 0.62);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

.payment-provider-state-action{
  display: block;
  color: rgba(132, 32, 41, 0.92);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.payment-provider-badge{
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 1.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0a58ca;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.payment-provider-choice.is-disabled{
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.52;
  filter: none;
}

.payment-provider-choice.is-disabled:hover,
.payment-provider-choice.is-disabled:focus-visible{
  transform: none;
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  box-shadow: none;
}

.payment-provider-choice.is-disabled .payment-provider-badge{
  background: #ffffff;
  color: #6c757d;
}

.payment-provider-actions{
  grid-template-columns: minmax(0, 1fr);
}

.paypal-checkout-modal{
  inline-size: min(100%, 34rem);
  max-block-size: calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
}

.paypal-checkout-head small{
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paypal-checkout-status{
  min-block-size: 2.65rem;
  display: grid;
  align-items: center;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.07);
  color: rgba(33, 37, 41, 0.72);
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.45;
}

.paypal-buttons-container{
  min-block-size: 4.25rem;
  display: grid;
  gap: 0.55rem;
  align-items: center;
}

.paypal-checkout-backdrop.is-busy .paypal-buttons-container{
  opacity: 0.52;
  pointer-events: none;
}

.paypal-checkout-backdrop.is-busy [data-paypal-checkout-close]{
  opacity: 0.56;
  cursor: wait;
}

.paypal-checkout-backdrop.has-error .paypal-checkout-status{
  border-color: rgba(220, 53, 69, 0.26);
  background: rgba(220, 53, 69, 0.08);
}

.paypal-checkout-actions{
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}

.master-upload-backdrop{
  z-index: 90;
}

.master-upload-modal{
  max-width: min(94vw, 42rem);
  gap: 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.master-upload-head small{
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.master-upload-auth-box,
.master-upload-field,
.master-upload-drop,
.master-upload-selected,
.master-upload-checklist-shell,
.master-upload-reuse,
.master-upload-warning,
.master-upload-error{
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem 1rem;
}

.master-upload-auth-box{
  display: grid;
  gap: 0.5rem;
}

.master-upload-auth-box strong,
.master-upload-field span,
.master-upload-drop span{
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.master-upload-auth-box p,
.master-upload-field small,
.master-upload-drop em{
  min-width: 0;
  max-width: 100%;
  margin: 0;
  color: rgba(33, 37, 41, 0.64);
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.master-upload-field,
.master-upload-drop{
  display: grid;
  gap: 0.55rem;
}

.master-upload-field input[type="email"]{
  width: 100%;
  border: 1px solid rgba(33, 37, 41, 0.15);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  padding: 0.78rem 0.9rem;
  font: inherit;
}

.master-upload-drop input[type="file"]{
  width: 100%;
  border: 1px dashed rgba(13, 110, 253, 0.34);
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.05);
  padding: 0.85rem;
}

.master-upload-reuse{
  display: grid;
  gap: 0.72rem;
  background: rgba(13, 110, 253, 0.055);
  border-color: rgba(13, 110, 253, 0.18);
}

.master-upload-reuse-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.master-upload-reuse-head strong{
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.master-upload-reuse > p,
.master-upload-reuse-state{
  margin: 0;
  color: rgba(33, 37, 41, 0.64);
  font-size: 0.8rem;
  line-height: 1.5;
}

.master-upload-reuse-state.is-error{
  color: rgba(33, 37, 41, 0.9);
  font-weight: 800;
}

.master-upload-reuse-list{
  display: grid;
  gap: 0.55rem;
  max-block-size: 16rem;
  overflow: auto;
  padding-right: 0.2rem;
}

.master-upload-reuse-item{
  width: 100%;
  display: grid;
  gap: 0.24rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(33, 37, 41, 0.76);
  padding: 0.72rem 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.master-upload-reuse-item:hover,
.master-upload-reuse-item:focus-visible{
  border-color: rgba(13, 110, 253, 0.34);
  box-shadow: 0 0.55rem 1.3rem rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
}

.master-upload-reuse-item.is-selected{
  border-color: rgba(13, 110, 253, 0.44);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.14);
}

.master-upload-reuse-item strong{
  color: rgba(33, 37, 41, 0.92);
  font-size: 0.84rem;
  font-weight: 900;
}

.master-upload-reuse-item span,
.master-upload-reuse-item em{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(33, 37, 41, 0.58);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 710;
}

.master-upload-reuse-clear{
  flex: none;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: rgba(33, 37, 41, 0.68);
  padding: 0.35rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.master-upload-warning{
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(13, 110, 253, 0.22);
  color: rgba(33, 37, 41, 0.86);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.master-upload-error{
  min-width: 0;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(13, 110, 253, 0.22);
  color: rgba(33, 37, 41, 0.9);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.master-upload-error.hidden{
  display: none;
}

.master-upload-actions{
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.master-upload-actions .button{
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.master-upload-actions .button:disabled{
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 640px){
  .master-upload-actions{
    grid-template-columns: 1fr;
  }
}

/* Free result page: keep analysisResultPanels from squeezing content into split grid columns. */
#analysisResultPanels.result-panels-v3{
  grid-template-columns: minmax(0, 1fr) !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
}

#analysisResultPanels.result-panels-v3 > *{
  grid-column: 1 / -1 !important;
  inline-size: 100% !important;
  min-inline-size: 0 !important;
}

#analysisResultPanels.result-panels-v3 > .free-report-shell{
  grid-template-columns: minmax(0, 1fr) !important;
}

#analysisResultPanels.result-panels-v3 > .free-report-shell > *{
  grid-column: 1 / -1 !important;
  min-inline-size: 0 !important;
}

/* 2026-05-25 STEP 04 CTA blue-only final layer */
.button-upgrade-primary,
.master-upload-actions .button-upgrade-primary{
  background: #0d6efd !important;
  color: #ffffff !important;
  border: 1px solid #0d6efd !important;
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.14) !important;
}

.button-upgrade-primary:not(:disabled):not([aria-disabled="true"]):hover,
.button-upgrade-primary:not(:disabled):not([aria-disabled="true"]):focus-visible,
.master-upload-actions .button-upgrade-primary:not(:disabled):not([aria-disabled="true"]):hover,
.master-upload-actions .button-upgrade-primary:not(:disabled):not([aria-disabled="true"]):focus-visible{
  background: #0a58ca !important;
  border-color: #0a58ca !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.18) !important;
}

.button-upgrade-secondary{
  background: #ffffff !important;
  color: #0a58ca !important;
  border: 1px solid #9ec5fe !important;
  box-shadow: none !important;
}

.button-upgrade-secondary:not(:disabled):not([aria-disabled="true"]):hover,
.button-upgrade-secondary:not(:disabled):not([aria-disabled="true"]):focus-visible{
  background: #e7f1ff !important;
  border-color: #6ea8fe !important;
  color: #084298 !important;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.10) !important;
}

.button-upgrade-primary:disabled,
.button-upgrade-secondary:disabled,
.button-upgrade-primary[aria-disabled="true"],
.button-upgrade-secondary[aria-disabled="true"],
.master-upload-actions .button:disabled{
  background: #f8f9fa !important;
  color: #6c757d !important;
  border-color: #cfe2ff !important;
  box-shadow: none !important;
  opacity: 0.72;
}

.master-upload-reuse-item:hover,
.master-upload-reuse-item:focus-visible{
  border-color: #6ea8fe !important;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.10) !important;
}

.master-upload-reuse-item.is-selected{
  border-color: #6ea8fe !important;
  background: #ffffff !important;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.14) !important;
}

/* 2026-05-25 STEP 05 cards/badges/chips blue-neutral final layer */
.report-card,
.metric-card,
.report-card-shareable,
.result-conversion-panel,
.result-lock-card,
.paid-action-card,
.paid-visual-card{
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #cfe2ff !important;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06) !important;
  color: #212529 !important;
  text-shadow: none !important;
}

:is(#resultHeroCard, #analysisResultPanels, #resultEvidenceTrustBlock) .result-reveal-prep{
  opacity: 0;
  transform: translateY(12px);
}

:is(#resultHeroCard, #analysisResultPanels, #resultEvidenceTrustBlock) .result-reveal-prep.result-reveal-visible{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease;
}

.result-hero-panel:hover,
.result-story-card:hover,
.report-card:hover,
.report-card-shareable:hover,
.metric-card:hover,
.paid-action-card:hover,
.paid-visual-card:hover{
  border-color: #9ec5fe !important;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.10), 0 8px 20px rgba(33, 37, 41, 0.06) !important;
}

.result-hero-panel:focus-within,
.result-story-card:focus-within,
.report-card:focus-within,
.report-card-shareable:focus-within,
.metric-card:focus-within,
.paid-action-card:focus-within,
.paid-visual-card:focus-within{
  border-color: #6ea8fe !important;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12), 0 14px 32px rgba(33, 37, 41, 0.08) !important;
}

.mode-pill,
.confidence-pill,
.report-keyword,
.metric-card-state,
.scan-tour-chip,
.guidance-badge,
.chip,
.scan-support-tag,
.result-conversion-tags span,
.paid-report-metric-chip-row span,
.paid-snapshot-chips span,
.paid-visual-badge{
  background: #e7f1ff !important;
  background-image: none !important;
  border: 1px solid #cfe2ff !important;
  color: #0a58ca !important;
  box-shadow: none !important;
  text-shadow: none !important;
}.mode-pill strong,
.confidence-pill strong,
.report-keyword strong,
.metric-card-state strong{
  color: #084298 !important;
  text-shadow: none !important;
}
.result-animals-hero-kicker,
.result-lock-card span,
.result-conversion-tags span{
  color: #0a58ca !important;
  text-shadow: none !important;
}.result-lock-card strong,
.result-animal-single-name{
  color: #212529 !important;
  text-shadow: none !important;
}.report-card-body,
.result-lock-card em{
  color: #6c757d !important;
  text-shadow: none !important;
}











.app-shell[data-scene="scan"] .guidance-badge,
.app-shell[data-scene="scan"] .scan-tour-chip,
.app-shell[data-scene="scan"] .scan-support-tag{
  background: rgba(33, 37, 41, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 30px rgba(33, 37, 41, 0.20) !important;
  text-shadow: none !important;
}

/* =====================================================================
   H025 result visualization CSS owner: result collectible, atlas,
   aura radar, and Face16 animal-board imagery. The selectors here are
   scoped to result hosts so legacy card/chip patches do not re-own
   unrelated report cards.
   ===================================================================== */
.result-collectible-grid,
.result-hero-panel .collectible-badge-art,
.result-hero-panel .collectible-copy,
#resultTypeAtlas,
#resultAuraRadar{
  min-width: 0;
  max-width: 100%;
}

.result-collectible-grid .portrait-shell,
#resultTypeAtlas .faces64-detail-card,
#resultTypeAtlas .faces64-subtype-chip,
#resultAuraRadar .aura-radar-chip{
  background: #ffffff;
  background-image: none;
  border: 1px solid #cfe2ff;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
  color: #212529;
  text-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#resultTypeAtlas .faces64-subtype-chip:hover,
#resultAuraRadar .aura-radar-chip:hover{
  border-color: #9ec5fe;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.10), 0 8px 20px rgba(33, 37, 41, 0.06);
}

#resultTypeAtlas .faces64-subtype-chip:focus-within,
#resultAuraRadar .aura-radar-chip:focus-within{
  border-color: #6ea8fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12), 0 14px 32px rgba(33, 37, 41, 0.08);
}

#resultTypeAtlas .faces64-mini-node,
#resultTypeAtlas .faces64-mini-node-core,
#resultTypeAtlas .faces64-detail-badge{
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#resultTypeAtlas .face16-detail-badge,
#resultTypeAtlas .animal-illustration-fallback,
.result-hero-panel .trait-chip,
.result-hero-panel .module-blob,
.result-hero-panel .animal-illustration-fallback{
  background: #ffffff;
  background-image: none;
  border: 1px solid #cfe2ff;
  color: #212529;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.08), 0 6px 14px rgba(33, 37, 41, 0.06);
  text-shadow: none;
}

#resultTypeAtlas .faces64-detail-badge,
#resultTypeAtlas .face16-detail-badge{
  overflow: hidden;
}

#resultTypeAtlas .faces64-atlas-kicker,
#resultTypeAtlas .faces64-detail-kicker,
#resultTypeAtlas .faces64-subtype-chip em,
#resultAuraRadar .aura-radar-center span,
#resultAuraRadar .aura-radar-center em,
#resultAuraRadar .aura-radar-chip span{
  color: #0a58ca;
  font-weight: 700;
  text-shadow: none;
}

#resultTypeAtlas .faces64-atlas-title,
#resultTypeAtlas .faces64-detail-title,
#resultTypeAtlas .faces64-subtype-chip strong,
#resultAuraRadar .aura-radar-meta strong,
#resultAuraRadar .aura-radar-chip strong{
  color: #212529;
  font-weight: 700;
  text-shadow: none;
}

#resultTypeAtlas .faces64-atlas-hint,
#resultTypeAtlas .faces64-detail-note,
#resultAuraRadar .aura-radar-meta p,
#resultAuraRadar .aura-radar-meta small,
#resultAuraRadar .aura-radar-chip small{
  color: #6c757d;
  text-shadow: none;
}

#resultTypeAtlas .faces64-mini-node.is-active,
#resultTypeAtlas .faces64-subtype-chip.is-current{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.14), var(--shadow);
}

#resultTypeAtlas .faces64-mini-node-current{
  background: var(--brand);
  box-shadow: 0 0 0 6px #ffffff;
}

#resultTypeAtlas .face16-animal-board .faces64-mini-node.is-current-result{
  border-color: var(--brand);
}

#resultTypeAtlas .face16-animal-board .faces64-mini-node.is-current-result:not(.is-active){
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.10), var(--shadow);
}

#resultTypeAtlas .face16-animal-board .faces64-mini-node-current{
  top: 7px;
  right: 7px;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 0 0 3px #ffffff;
}

#resultTypeAtlas .faces64-mini-node-orbit{
  --orbit-dot-color: #e7f1ff;
}

#resultTypeAtlas .animal-illustration-svg,
#resultTypeAtlas .animal-illustration-picture,
.result-hero-panel .animal-illustration-svg,
.result-hero-panel .animal-illustration-picture{
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}

#resultTypeAtlas .animal-illustration-image,
.result-hero-panel .animal-illustration-image{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

#resultTypeAtlas .animal-illustration-node,
#resultTypeAtlas .faces64-mini-node-art .animal-illustration-picture{
  width: 52px;
  height: 52px;
}

#resultTypeAtlas .animal-illustration-node .animal-illustration-image,
#resultTypeAtlas .faces64-mini-node-art .animal-illustration-image,
#resultTypeAtlas .animal-illustration-detail,
#resultTypeAtlas .face16-detail-badge .animal-illustration-picture,
#resultTypeAtlas .faces64-detail-badge .animal-illustration-picture,
#resultTypeAtlas .animal-illustration-detail .animal-illustration-image,
#resultTypeAtlas .face16-detail-badge .animal-illustration-image,
#resultTypeAtlas .faces64-detail-badge .animal-illustration-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.result-hero-panel .animal-illustration-hero .animal-illustration-image,
.result-hero-panel .animal-illustration-result-hero .animal-illustration-image{
  width: 100%;
  height: auto;
}

#resultTypeAtlas .animal-illustration-fallback,
.result-hero-panel .animal-illustration-fallback{
  display: grid;
  place-items: center;
  width: var(--16f-animal-illustration-size, 120px);
  height: var(--16f-animal-illustration-size, 120px);
  border-radius: 50%;
  font-size: 34px;
}

.result-hero-panel .trait-chip.tone-mint,
.result-hero-panel .trait-chip.tone-neutral,
.result-hero-panel .module-blob.tone-mint,
.result-hero-panel .module-blob.tone-neutral{
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
}

.result-hero-panel .trait-chip.tone-blue-soft,
.result-hero-panel .module-blob.tone-blue-soft{
  background: #e7f1ff;
  border-color: #cfe2ff;
  color: #0a58ca;
}

.result-hero-panel .trait-chip.tone-blue,
.result-hero-panel .trait-chip.tone-blue-strong,
.result-hero-panel .module-blob.tone-blue,
.result-hero-panel .module-blob.tone-blue-strong{
  background: #cfe2ff;
  border-color: #9ec5fe;
  color: #084298;
}

.result-hero-panel .module-strip{
  gap: 8px;
}

.result-hero-panel .module-blob{
  border-radius: 8px;
  padding: 14px 12px;
}

.result-hero-panel .module-blob .blob-kicker,
.result-hero-panel .module-blob .blob-value,
.result-hero-panel .module-blob .blob-emoji{
  color: inherit;
  text-shadow: none;
}

.result-hero-panel .trait-chip{
  border-radius: 8px;
}

.result-collectible-grid .portrait-shell,
.result-collectible-grid .portrait-shell.portrait-shell-animal-single,
.result-hero-panel .result-hero-placeholder.result-hero-placeholder-animal-board,
.result-hero-panel .result-hero-placeholder.result-hero-placeholder-animal-single,
.result-hero-panel .result-animals-hero.result-animals-hero-single{
  background-image: none;
  text-shadow: none;
}

.result-collectible-grid .portrait-shell.portrait-shell-animal-single{
  background: transparent;
  border: 0;
  box-shadow: none;
}

.result-hero-panel .result-hero-placeholder.result-hero-placeholder-animal-board,
.result-hero-panel .result-hero-placeholder.result-hero-placeholder-animal-single{
  padding: clamp(17px, 3.5vw, 31px) clamp(24px, 5vw, 44px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.result-hero-panel .result-animals-hero.result-animals-hero-single{
  background: transparent;
  border: 0;
  box-shadow: none;
}

#resultAuraRadar .aura-radar-plot{
  width: min(100%, 460px);
  max-width: 460px;
  overflow: visible;
  padding: 8px;
}

#resultAuraRadar .aura-radar-plot svg{
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--font-primary);
}

#resultAuraRadar .aura-radar-axis-label{
  fill: rgba(33, 37, 41, 0.96);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 3px;
  stroke-linejoin: round;
}

#resultAuraRadar .aura-radar-meta{
  width: min(100%, 620px);
}

#resultAuraRadar .aura-radar-legend{
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#resultAuraRadar .aura-radar-chip{
  min-width: 0;
  overflow: hidden;
}

#resultAuraRadar .aura-radar-chip span{
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

@media (max-width: 1100px){
  .result-collectible-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px){
  #resultAuraRadar .aura-radar-legend{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px){
  .result-hero-panel .module-strip,
  #resultTypeAtlas .faces64-mini-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #resultTypeAtlas .faces64-mini-board{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  #resultTypeAtlas .faces64-subtype-grid{
    grid-template-columns: 1fr 1fr;
  }

  .result-hero-panel .module-strip{
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .result-hero-panel .module-strip::-webkit-scrollbar{
    display: none;
  }

  .result-hero-panel .module-blob{
    min-width: 164px;
    scroll-snap-align: start;
  }

  #resultAuraRadar .aura-radar-plot{
    width: min(100%, 360px);
    padding: 2px;
  }

  #resultAuraRadar .aura-radar-axis-label{
    font-size: 10px;
    stroke-width: 2.6px;
  }

  #resultAuraRadar .aura-radar-legend{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px){
  .result-hero-panel .collectible-portrait-shell{
    min-height: 420px;
  }

  .result-hero-panel .trait-chip{
    min-height: 30px;
    padding: 0 12px;
    font-size: 11px;
  }

  #resultTypeAtlas .faces64-mini-grid{
    gap: 10px;
  }
}

/* B02 public result/share route fallback */
/* H030 public social scoped owner: share, guess, compare, and receiver surfaces reuse result primitives without private paid-report/paywall selectors. */
.public-snapshot-fallback{
  width: min(100%, 760px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.public-route-card{
  max-width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cfe2ff;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 42px rgba(13, 110, 253, 0.10), 0 8px 20px rgba(33, 37, 41, 0.06);
  color: #212529;
  overflow-wrap: anywhere;
}

.public-route-card > *{
  max-width: 100%;
  min-width: 0;
}

.public-route-card-head{
  display: grid;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 14px;
}

.public-route-card-head h3{
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.15rem);
  line-height: 1.12;
  color: #212529;
}

:is(.public-route-badge, .public-route-nickname){
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #cfe2ff;
  background: #e7f1ff;
  color: #0a58ca;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.public-route-badge{
  padding: 6px 10px;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.public-route-nickname{
  margin: 4px 0 12px;
  padding: 7px 12px;
  font-size: 0.92rem;
}

:is(.public-route-summary, .public-route-share-copy){
  max-width: 100%;
  min-width: 0;
  margin: 0;
  color: #495057;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.public-route-keywords{
  max-width: 100%;
  min-width: 0;
  margin: 18px 0;
}

/* Intentional result primitive reuse: public social cards may use .report-keyword and .button only as public-safe primitives. */
.public-route-keywords .report-keyword,
.public-route-card .button{
  max-width: 100%;
  min-width: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.public-route-share-copy{
  padding-top: 14px;
  border-top: 1px solid #dee2e6;
  color: #084298;
  font-weight: 800;
}

.public-snapshot-empty{
  text-align: center;
}

.public-snapshot-empty .public-route-card-head,
.public-snapshot-empty .public-route-summary{
  justify-items: center;
  text-align: center;
}

.public-snapshot-empty .button{
  margin-top: 20px;
  min-width: min(100%, 220px);
}

.public-snapshot-loading .public-route-card{
  position: relative;
  overflow: hidden;
  border-color: #cfe2ff;
  background: #ffffff;
}

.public-snapshot-loading .public-route-card::before{
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #0d6efd;
  animation: publicSnapshotLoadingPulse 1.18s ease-in-out infinite;
}

@keyframes publicSnapshotLoadingPulse {
  0%,
100%{
    opacity: 0.38;
    transform: scaleX(0.62);
  }

  50%{
    opacity: 1;
    transform: scaleX(1);
  }
}

/* B07 /guess/:shareId friend vote route */
.guess-page{
  width: min(100%, 920px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  color: #212529;
}

:is(.guess-card, .guess-summary){
  max-width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cfe2ff;
  border-radius: 28px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 18px 42px rgba(13, 110, 253, 0.10), 0 8px 20px rgba(33, 37, 41, 0.06);
  overflow-wrap: anywhere;
}

.guess-card > *,
.guess-summary > *{
  max-width: 100%;
  min-width: 0;
}

.guess-card-head{
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.guess-card-head h3,
.guess-summary-head h3{
  margin: 0;
  color: #212529;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

:is(.guess-card-head p, .guess-card > p, .guess-vote-hint, .guess-summary-status, .guess-summary-empty){
  margin: 0;
  color: #495057;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guess-animal-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(112px, 100%), 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.guess-animal-button{
  max-width: 100%;
  min-width: 0;
  min-height: 122px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid #dee2e6;
  border-radius: 22px;
  background: #ffffff;
  color: #212529;
  box-shadow: 0 10px 24px rgba(33, 37, 41, 0.06);
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
  word-break: keep-all;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.guess-animal-button:hover:not(:disabled),
.guess-animal-button:focus-visible{
  transform: translateY(-2px);
  border-color: #9ec5fe;
  background: #f8f9fa;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.10);
}

.guess-animal-button.is-selected,
.guess-animal-button[aria-pressed="true"]{
  border-color: #0d6efd;
  background: #e7f1ff;
  color: #084298;
}

.guess-animal-button:disabled{
  cursor: not-allowed;
  opacity: 0.78;
}

.guess-animal-art{
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
}

.guess-animal-button strong{
  color: inherit;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
}

.guess-vote-hint{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #dee2e6;
  font-size: 13px;
}

.guess-summary{
  display: grid;
  gap: 14px;
}

.guess-summary-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.guess-summary-head > span{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #cfe2ff;
  background: #e7f1ff;
  color: #0a58ca;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guess-summary-list{
  display: grid;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.guess-summary-row{
  display: grid;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 18px;
  background: #f8f9fa;
}

.guess-summary-row.is-selected{
  border-color: #9ec5fe;
  background: #e7f1ff;
}

.guess-summary-row-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.guess-summary-row-head strong{
  min-width: 0;
  color: #212529;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.guess-summary-row-head span{
  max-width: 100%;
  min-width: 0;
  color: #0a58ca;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.guess-summary-meter{
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dee2e6;
}

.guess-summary-meter i{
  display: block;
  width: var(--16f-guess-summary-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: #0d6efd;
}

:is(.guess-summary-privacy, .guess-summary-section-label){
  margin: 0;
  color: #6c757d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.guess-summary-section-label{
  color: #084298;
  letter-spacing: -0.01em;
}

.guess-summary-public-reveal{
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #cfe2ff;
  border-radius: 20px;
  background: #ffffff;
}

.guess-summary-public-reveal strong{
  color: #212529;
  font-size: 1.02rem;
  font-weight: 900;
}

.guess-summary-public-reveal p{
  margin: 0;
  color: #495057;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.guess-summary-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.guess-summary-chip-row .report-keyword{
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guess-paid-cta{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid #9ec5fe;
  border-radius: 18px;
  padding: 14px 16px;
  background: #e7f1ff;
  color: #084298;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.08);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.guess-paid-cta:hover,
.guess-paid-cta:focus-visible{
  transform: translateY(-1px);
  border-color: #0d6efd;
  background: #cfe2ff;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.13);
}

.guess-paid-cta strong{
  color: #084298;
  font-size: 14px;
  font-weight: 900;
}

.guess-paid-cta span{
  color: #0a58ca;
  font-size: 12px;
  font-weight: 800;
}

.guess-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.guess-actions .button{
  max-width: 100%;
  min-width: min(100%, 190px);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.guess-card-empty,
.guess-card-loading{
  text-align: center;
}

.guess-card-empty .button{
  margin-top: 20px;
}

@media (max-width: 640px){
  :is(.guess-card, .guess-summary){
    border-radius: 24px;
    padding: 18px;
  }

  .guess-animal-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guess-summary-head,
.guess-summary-row-head{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .guess-summary-row-head span{
    white-space: normal;
  }

  .guess-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .guess-actions .button{
    width: 100%;
    min-width: 0;
  }
}


/* B09 /compare/:compareId friend compare route */
.compare-page{
  width: min(100%, 1080px);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  color: #212529;
}

.compare-card{
  position: relative;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cfe2ff;
  border-radius: 30px;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 18px 42px rgba(13, 110, 253, 0.10), 0 8px 20px rgba(33, 37, 41, 0.06);
  overflow-wrap: anywhere;
}

.compare-card > *{
  max-width: 100%;
  min-width: 0;
}

.compare-card-head{
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.compare-card-head h3{
  margin: 0;
  color: #212529;
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.compare-card-head p,
.compare-summary-text{
  margin: 0;
  color: #495057;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.compare-artifact-card{
  border-color: #9ec5fe;
}

.compare-artifact-privacy{
  justify-self: center;
  max-width: min(620px, 100%);
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #e7f1ff;
  color: #084298;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compare-card-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

:is(.compare-side, .compare-middle){
  display: grid;
  align-content: start;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #dee2e6;
  border-radius: 24px;
  padding: clamp(18px, 3vw, 26px);
  background: #f8f9fa;
  overflow-wrap: anywhere;
}

.compare-middle{
  background: #ffffff;
  border-color: #9ec5fe;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.05);
}

.compare-side-head{
  display: grid;
  justify-items: start;
  gap: 8px;
}

.compare-side-art{
  width: 76px;
  height: 76px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cfe2ff;
  border-radius: 24px;
  background: #e7f1ff;
}

.compare-side-head h3{
  margin: 0;
  color: #212529;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.compare-nickname{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 6px 11px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0a58ca;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.compare-middle h4{
  margin: 0;
  color: #212529;
  font-size: clamp(1.08rem, 2.4vw, 1.55rem);
  line-height: 1.34;
  letter-spacing: -0.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.compare-keyword-section{
  display: grid;
  gap: 9px;
}

.compare-keyword-section > strong{
  color: #084298;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.compare-keyword-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.compare-keyword-row .report-keyword,
.compare-keyword{
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.compare-keyword-empty{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px dashed #ced4da;
  border-radius: 999px;
  background: #ffffff;
  color: #6c757d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.compare-cta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  margin-top: 4px;
}

.compare-cta-row .button{
  max-width: 100%;
  min-width: min(100%, 178px);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

:is(.compare-recap-actions .button, .compare-invitation-actions .button){
  min-block-size: 44px;
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.compare-paid-placeholder{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px dashed #cfe2ff;
  border-radius: 18px;
  padding: 14px 16px;
  background: #f8f9fa;
  color: #495057;
  font: inherit;
  cursor: not-allowed;
  opacity: 0.86;
  overflow-wrap: anywhere;
}

.compare-paid-placeholder strong{
  color: #212529;
  font-size: 14px;
  font-weight: 900;
}

.compare-paid-placeholder span{
  color: #6c757d;
  font-size: 12px;
  font-weight: 800;
}

.compare-paid-placeholder.compare-paid-cta{
  border-style: solid;
  border-color: #9ec5fe;
  background: #e7f1ff;
  color: #084298;
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 10px 24px rgba(13, 110, 253, 0.08);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.compare-paid-placeholder.compare-paid-cta:hover,
.compare-paid-placeholder.compare-paid-cta:focus-visible{
  transform: translateY(-1px);
  border-color: #0d6efd;
  background: #cfe2ff;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.13);
}

.compare-paid-placeholder.compare-paid-cta strong{
  color: #084298;
}

.compare-paid-placeholder.compare-paid-cta span{
  color: #0a58ca;
}

.compare-recap-card{
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #9ec5fe;
  border-radius: 24px;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.04);
  overflow-wrap: anywhere;
}

.compare-recap-copy{
  display: grid;
  gap: 7px;
  text-align: left;
}

.compare-recap-copy h4{
  margin: 0;
  color: #212529;
  font-size: clamp(1.14rem, 2.5vw, 1.6rem);
  line-height: 1.24;
  letter-spacing: -0.035em;
}
.compare-recap-copy p{
  margin: 0;
  color: #495057;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.compare-recap-summary{
  display: grid;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px dashed #9ec5fe;
  border-radius: 18px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.compare-recap-summary span,
.compare-recap-proof > span{
  color: #084298;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.compare-recap-summary strong{
  color: #212529;
  line-height: 1.45;
}

.compare-recap-proof-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 100%;
  min-width: 0;
}

.compare-recap-proof{
  display: grid;
  align-content: start;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dee2e6;
  border-radius: 18px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.compare-recap-proof strong{
  color: #212529;
  line-height: 1.3;
}

.compare-recap-actions{
  justify-content: center;
}

.compare-invitation-artifact{
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid #9ec5fe;
  border-radius: 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.04);
  overflow-wrap: anywhere;
}

.compare-invitation-head{
  display: grid;
  gap: 7px;
  text-align: left;
}

.compare-invitation-head h4{
  margin: 0;
  color: #212529;
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

:is(.compare-invitation-head p, .compare-invitation-side p, .compare-fallback-note){
  margin: 0;
  color: #495057;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.compare-invitation-pair{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}

.compare-invitation-side{
  display: grid;
  align-content: start;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  background: #ffffff;
  overflow-wrap: anywhere;
}

.compare-invitation-side strong{
  color: #212529;
  font-size: 1.05rem;
  line-height: 1.25;
}

.compare-invitation-side span{
  display: inline-flex;
  justify-self: start;
  max-width: 100%;
  min-width: 0;
  padding: 5px 9px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0a58ca;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.compare-invitation-vs{
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #e7f1ff;
  color: #084298;
  font-weight: 1000;
}

.compare-invitation-summary{
  display: grid;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px dashed #9ec5fe;
  border-radius: 18px;
  background: #f8f9fa;
  text-align: left;
  overflow-wrap: anywhere;
}

.compare-invitation-summary span{
  color: #084298;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.compare-invitation-summary strong{
  color: #212529;
  line-height: 1.45;
}

.compare-invitation-actions,
.compare-fallback-actions{
  justify-content: center;
}

.compare-fallback-note{
  justify-self: center;
  max-width: min(640px, 100%);
  padding: 10px 12px;
  border: 1px solid #cfe2ff;
  border-radius: 18px;
  background: #f8fbff;
  color: #084298;
  font-size: 13px;
  font-weight: 800;
}

.compare-card-empty{
  text-align: center;
}

.compare-card-empty .compare-cta-row{
  justify-content: center;
}

.compare-page-loading .compare-card::before{
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: #0d6efd;
  animation: publicSnapshotLoadingPulse 1.18s ease-in-out infinite;
}

@media (max-width: 900px){
  .compare-card-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-middle{
    order: 3;
  }
}

@media (max-width: 640px){
  .compare-card{
    border-radius: 24px;
    padding: 20px;
  }

  :is(.compare-side, .compare-middle){
    border-radius: 20px;
  }

  .compare-cta-row{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .compare-cta-row .button{
    width: 100%;
    min-width: 0;
  }

  .compare-recap-proof-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-invitation-pair{
    grid-template-columns: minmax(0, 1fr);
  }

  .compare-invitation-vs{
    justify-self: center;
    transform: rotate(90deg);
  }
}

body.public-route-fallback-mode #shareResultButton,
body.public-route-fallback-mode .share-url-inline,
body.public-route-fallback-mode #resultHeroCard,
body.public-route-fallback-mode #resultConversionPanel,
body.public-route-fallback-mode .cta-fixed-bottom-v3,
body.public-route-fallback-mode #resultReportsMount,
body.public-route-fallback-mode #analysisStatusBlock,
.app-shell.public-route-fallback-mode #shareResultButton,
.app-shell.public-route-fallback-mode .share-url-inline,
.app-shell.public-route-fallback-mode #resultHeroCard,
.app-shell.public-route-fallback-mode #resultConversionPanel,
.app-shell.public-route-fallback-mode .cta-fixed-bottom-v3,
.app-shell.public-route-fallback-mode #resultReportsMount,
.app-shell.public-route-fallback-mode #analysisStatusBlock{
  display: none !important;
}

/* C03: public animal type route static body */
.animal-type-static-section{
  width: min(920px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.animal-type-static-section > *{
  max-width: 100%;
  min-width: 0;
}

.animal-type-static-copy{
  display: grid;
  gap: 12px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  justify-items: center;
}

.animal-type-static-copy h1{
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 5.6vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.animal-type-static-copy p{
  margin: 0;
  max-width: min(680px, 100%);
  min-width: 0;
  color: var(--text-soft);
  font-size: clamp(15px, 2.8vw, 17px);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.animal-type-static-cta{
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.animal-type-static-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.animal-type-static-link{
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.animal-type-static-link.is-active{
  background: var(--brand-soft);
  border-color: rgba(13, 110, 253, 0.22);
  color: var(--brand-strong);
}


.animal-type-static-traits{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: min(720px, 100%);
  min-width: 0;
}

.animal-type-static-traits span{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border: 1px solid rgba(13, 110, 253, 0.16);
  font-size: 13px;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.animal-type-static-keywords{
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: min(720px, 100%);
  min-width: 0;
  text-align: center;
}

.animal-type-static-keywords strong{
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.animal-type-static-keywords div{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}

.animal-type-static-keywords span{
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.animal-type-static-cta-note{
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.animal-type-static-depth-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.animal-type-static-depth-card{
  max-width: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  overflow-wrap: anywhere;
}

.animal-type-static-depth-card h2,
.animal-type-static-faq h2{
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.animal-type-static-depth-card p,
.animal-type-static-faq p{
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.animal-type-static-related{
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}

.animal-type-static-related strong{
  color: var(--text);
  font-size: 14px;
}

.animal-type-static-related div{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.animal-type-static-faq{
  display: grid;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

.animal-type-static-faq h2{
  text-align: center;
}

.animal-type-static-faq details{
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  overflow-wrap: anywhere;
}

.animal-type-static-faq summary{
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.animal-type-static-faq details p{
  margin-top: 8px;
}

/* H032 mobile responsive override consolidation: animal static-route nav/action stacking stays with the animal route CSS. */
@media (max-width: 640px){
  .animal-type-static-section{
    padding: 18px;
    border-radius: 24px;
  }

  .animal-type-static-depth-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .animal-type-static-related div,
.animal-type-static-nav{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .animal-type-static-link{
    width: 100%;
    white-space: normal;
  }
}

@media (max-width: 390px){
  .public-route-card,
.guess-card,
.guess-summary,
.compare-card,
.animal-type-static-section{
    padding: 16px;
  }
}



.animal-type-conversion-rail{
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 24px;
  background: rgba(248, 250, 255, 0.9);
  overflow-wrap: anywhere;
}

.animal-type-conversion-copy{
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  max-width: 100%;
  min-width: 0;
}

.animal-type-conversion-eyebrow{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.animal-type-conversion-copy h2{
  margin: 0;
  color: var(--text);
  font-size: clamp(19px, 4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.animal-type-conversion-copy p,
.animal-type-conversion-example p{
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.animal-type-conversion-privacy{
  display: grid;
  gap: 4px;
  width: min(680px, 100%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.animal-type-conversion-privacy strong,
.animal-type-conversion-example strong{
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.animal-type-conversion-privacy span{
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.animal-type-conversion-actions{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.animal-type-conversion-action{
  min-width: 0;
  min-height: 44px;
  padding-inline: 14px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.animal-type-conversion-example{
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(13, 110, 253, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

@media (max-width: 760px){
  .animal-type-conversion-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* H032 mobile responsive override consolidation: animal conversion controls keep their one-column mobile rule in the conversion owner. */
@media (max-width: 480px){
  .animal-type-conversion-rail{
    padding: 14px;
    border-radius: 20px;
  }

  .animal-type-conversion-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .animal-type-conversion-action{
    inline-size: 100%;
    width: 100%;
  }
}



.share-privacy-badge{
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(76, 110, 245, 0.18);
  border-radius: 16px;
  background: rgba(76, 110, 245, 0.07);
  color: #24324b;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.share-privacy-badge strong{
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  color: #193a8a;
  font-weight: 800;
  white-space: normal;
}

.share-privacy-badge span{
  max-width: 100%;
  min-width: 0;
}

.share-privacy-badge small{
  flex-basis: 100%;
  max-width: 100%;
  min-width: 0;
  color: #3f4f70;
  font-size: 0.74rem;
  line-height: 1.45;
}

.share-privacy-badge-card{
  margin-top: 12px;
}

.share-privacy-badge-public{
  margin-top: 16px;
}

.share-privacy-confirm-dialog{
  position: fixed;
  inset: 0;
  z-index: calc(var(--global-menu-z, 2147483000) - 3);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  max-inline-size: 100vw;
  min-inline-size: 0;
  padding: clamp(14px, 4vw, 28px);
  overflow-x: hidden;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.share-privacy-confirm-dialog.hidden,
.share-privacy-confirm-dialog[aria-hidden="true"]{
  display: none !important;
  pointer-events: none !important;
}

html.share-privacy-confirm-open,
body.share-privacy-confirm-open{
  overflow: hidden !important;
  overscroll-behavior: none;
}

.share-privacy-confirm-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(5px);
  pointer-events: auto;
  touch-action: pan-y;
}

.share-privacy-confirm-panel{
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  box-sizing: border-box;
  width: min(100%, 34rem);
  max-inline-size: 100%;
  min-inline-size: 0;
  max-height: min(88dvh, 720px);
  max-block-size: calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(76, 110, 245, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  color: #172036;
  pointer-events: auto;
}

.share-privacy-confirm-close{
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  max-inline-size: 100%;
  min-width: 44px;
  min-inline-size: 0;
  height: 44px;
  min-height: 44px;
  min-block-size: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #1f2937;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.share-privacy-confirm-panel h3{
  margin: 0;
  padding-right: 36px;
  color: #111827;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.18;
}

.share-privacy-confirm-body{
  margin: 0;
  color: #4b5872;
  line-height: 1.58;
}

.share-privacy-confirm-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 10px;
  align-items: stretch;
}

.share-privacy-confirm-actions .button,
.share-privacy-confirm-actions button{
  width: 100%;
  max-inline-size: 100%;
  min-height: 44px;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@media (max-width: 480px){
  :is(.share-privacy-confirm-dialog){
    align-items: end;
    padding: 10px;
  }

  :is(.share-privacy-confirm-panel){
    width: 100%;
    max-height: min(92dvh, 760px);
    border-radius: 22px;
  }

  :is(.share-privacy-confirm-actions){
    grid-template-columns: minmax(0, 1fr);
  }
}

@supports not (height: 100dvh){
  :is(.share-privacy-confirm-panel):not([data-h030-public-social-support-neutral]){
    max-block-size: calc(100vh - 1.5rem);
  }
}

.receiver-first-action{
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 244, 255, 0.92));
  box-shadow: 0 18px 48px rgba(31, 41, 55, 0.12);
}

.receiver-first-action h3{
  margin: 6px 0 8px;
  font-size: clamp(1.2rem, 3.8vw, 1.75rem);
  line-height: 1.18;
  color: #121826;
}

.receiver-first-action-inline{
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.1);
}

.receiver-first-action-inline h3{
  font-size: 1.1rem;
}

.public-receiver-next-action-rail{
  display: grid;
  gap: 0.85rem;
  box-sizing: border-box;
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.public-receiver-next-action-rail.receiver-first-action{
  display: grid;
}

.public-receiver-next-action-rail--compact{
  gap: 0.7rem;
}

.public-receiver-next-action-copy{
  display: grid;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.public-receiver-next-action-copy h3{
  margin: 0;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  line-height: 1.2;
}

.public-receiver-next-action-copy p:not(.panel-label){
  margin: 0;
  line-height: 1.55;
}

.public-receiver-privacy-disclosure{
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(31, 41, 55, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: #4b5563;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.public-receiver-next-action-grid{
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: 0.55rem;
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  align-items: stretch;
  overflow-wrap: anywhere;
}

.public-receiver-next-action-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  min-height: 44px;
  min-block-size: 44px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  touch-action: manipulation;
}

.public-receiver-next-action-button[data-public-receiver-primary-make-mine]{
  min-height: 48px;
  font-weight: 800;
}

.public-receiver-next-action-button[data-public-receiver-make-mine]{
}

@media (max-width: 640px){
  :is(.public-receiver-next-action-rail){
    width: 100%;
    justify-items: stretch;
  }

  :is(.public-receiver-next-action-grid){
    grid-template-columns: minmax(0, 1fr);
  }
}



.post-result-invite-compare{
  display: grid;
  gap: clamp(0.78rem, 2.4vw, 1rem);
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  margin: clamp(0.9rem, 2.6vw, 1.25rem) 0 0;
  padding: clamp(1rem, 2.8vw, 1.35rem);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(33, 37, 41, 0.07);
  overflow-wrap: anywhere;
}

.post-result-invite-copy{
  display: grid;
  gap: 0.38rem;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.post-result-invite-copy h3{
  margin: 0;
  color: var(--bm-gray-900, #212529);
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  line-height: 1.24;
}

.post-result-invite-copy p:not(.panel-label){
  margin: 0;
  color: var(--bm-gray-700, #495057);
  font-size: 0.88rem;
  line-height: 1.5;
}

.post-result-invite-actions{
  display: grid;
  box-sizing: border-box;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  gap: 0.56rem;
  align-items: stretch;
  max-width: 100%;
  max-inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.post-result-invite-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  min-width: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@media (max-width: 640px){
  :is(.post-result-invite-compare){
    width: 100%;
    justify-items: stretch;
  }

  :is(.post-result-invite-actions){
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px){
  .share-privacy-badge{
    flex-direction: column;
    gap: 4px;
  }
}


.paid-report-module-core .paid-report-section-title{
  margin-bottom: clamp(0.9rem, 2vw, 1.15rem);
}
.paid-report-module-nav{
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.paid-report-module-nav-link{
  min-width: min(15rem, 74vw);
  scroll-snap-align: start;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.96));
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(33, 37, 41, 0.06);
}
.paid-report-module-nav-link span,
.paid-report-module-eyebrow{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paid-report-module-nav-link strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.98rem;
  line-height: 1.3;
}
.paid-report-module-stack{
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}
.paid-report-module-card{
  padding: 0;
  overflow: hidden;
}
.paid-report-module-card > summary{
  list-style: none;
}
.paid-report-module-card > summary::-webkit-details-marker{
  display: none;
}
.paid-report-module-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.7rem);
  cursor: pointer;
}
.paid-report-module-head.is-static{
  cursor: default;
}
.paid-report-module-head h3{
  margin: 0.28rem 0 0.35rem;
}
.paid-report-module-head .panel-label{
  margin: 0;
}
.paid-report-module-head em{
  flex: 0 0 auto;
  max-width: 12rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 37, 41, 0.08);
  background: rgba(33, 37, 41, 0.04);
  color: var(--bm-gray-700, #495057);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}
.paid-report-module-body{
  padding: 0 clamp(1.1rem, 3vw, 1.7rem) clamp(1.15rem, 3vw, 1.8rem);
}
.paid-report-module-intro{
  margin: -0.15rem 0 0.9rem;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.92rem;
  line-height: 1.65;
}
.paid-report-preview-slot{
  margin: 0 0 0.95rem;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(13, 110, 253, 0.13);
  border-radius: 16px;
  background: rgba(248, 249, 250, 0.94);
  color: var(--bm-gray-700, #495057);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.paid-report-guarded-personalization-preview{
  display: grid;
  gap: 0.72rem;
  padding: 0.95rem;
}
.paid-report-guarded-preview-head{
  display: grid;
  gap: 0.25rem;
}
.paid-report-guarded-preview-head span,
.paid-report-guarded-flag-row small{
  width: fit-content;
  max-width: 100%;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--brand-strong, #0d6efd);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}
.paid-report-guarded-preview-head strong{
  color: var(--bm-gray-900, #212529);
  font-size: 1rem;
  line-height: 1.3;
}
.paid-report-guarded-preview-head p{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.86rem;
  line-height: 1.55;
}
.paid-report-guarded-slot-list{
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.paid-report-guarded-slot-list li{
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.62rem 0.68rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(33, 37, 41, 0.06);
}
.paid-report-guarded-slot-list span{
  color: var(--bm-gray-500, #868e96);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.paid-report-guarded-slot-list strong{
  color: var(--bm-gray-800, #343a40);
  font-size: 0.84rem;
  line-height: 1.45;
}
.paid-report-guarded-flag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.paid-report-module-empty{
  padding: clamp(1.1rem, 3vw, 1.7rem);
}
.paid-report-module-empty .paid-report-module-head{
  padding: 0 0 0.8rem;
}
@media (max-width: 640px){
  .paid-report-module-nav{
    margin-inline: -0.15rem;
    padding-bottom: 0.5rem;
  }
  .paid-report-module-head{
    display: grid;
    gap: 0.7rem;
  }
  .paid-report-module-head em{
    max-width: none;
    width: fit-content;
    text-align: left;
  }
}


.master-workbench-shell{
  display: grid;
  gap: clamp(0.9rem, 2.4vw, 1.25rem);
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 42px rgba(33, 37, 41, 0.08);
  min-inline-size: 0;
  max-inline-size: 100%;
}
.master-workbench-shell:focus,
.master-workbench-shell:focus-visible{
  outline: 3px solid rgba(13, 110, 253, 0.36);
  outline-offset: 4px;
}
.master-workbench-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(15rem, 0.85fr);
  gap: clamp(0.9rem, 2.5vw, 1.25rem);
  align-items: stretch;
}
.master-workbench-hero-copy,
.master-workbench-state-card,
.master-workbench-use,
.master-workbench-empty,
.master-workbench-privacy,
.master-workbench-section{
  border: 1px solid rgba(33, 37, 41, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}
.master-workbench-hero-copy,
.master-workbench-state-card,
.master-workbench-use,
.master-workbench-empty,
.master-workbench-privacy{
  padding: clamp(1rem, 2.8vw, 1.35rem);
}
.master-workbench-hero-copy h3{
  margin: 0.3rem 0 0.6rem;
  color: var(--bm-gray-900, #212529);
  font-size: clamp(1.35rem, 4.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}
.master-workbench-hero-copy p,
.master-workbench-state-card p,
.master-workbench-card p,
.master-workbench-empty p,
.master-workbench-section p,
.master-workbench-privacy p{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  line-height: 1.65;
  font-size: 0.93rem;
}
.master-workbench-state-card{
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.master-workbench-state-card span,
.master-workbench-card span,
.master-workbench-section summary span{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.master-workbench-state-card strong{
  color: var(--bm-gray-900, #212529);
  font-size: 1.05rem;
  line-height: 1.3;
}
.master-workbench-state-card em{
  width: fit-content;
  padding: 0.38rem 0.66rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--bm-blue, #0d6efd);
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}
.master-workbench-progress{
  display: block;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.45;
}
.master-workbench-recovery-note{
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255, 193, 7, 0.26);
  border-radius: 16px;
  background: rgba(255, 193, 7, 0.11);
  color: var(--bm-gray-700, #495057);
  font-size: 0.84rem;
  line-height: 1.55;
}
.master-workbench-actions{
  position: sticky;
  bottom: calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 32;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.15rem;
  padding: 0.65rem;
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(33, 37, 41, 0.12);
}
.master-workbench-actions .button{
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 0.7rem 0.85rem;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.master-workbench-actions [hidden]{
  display: none !important;
}
.master-workbench-home{
  text-decoration: none;
}

.master-workbench-section-nav{
  display: grid;
  gap: 0.75rem;
  min-inline-size: 0;
  max-inline-size: 100%;
  padding: clamp(0.9rem, 2.6vw, 1.1rem);
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  scroll-margin-top: calc(74px + env(safe-area-inset-top));
}
.master-workbench-section-nav-head{
  display: grid;
  gap: 0.25rem;
  min-inline-size: 0;
}
.master-workbench-section-nav-head strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.98rem;
  line-height: 1.3;
}
.master-workbench-section-nav-head p{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.master-workbench-section-nav-list{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  min-inline-size: 0;
  max-inline-size: 100%;
}
.master-workbench-nav-button{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-inline-size: 0;
  min-block-size: 44px;
  width: 100%;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(33, 37, 41, 0.10);
  border-radius: 16px;
  background: rgba(248, 249, 250, 0.88);
  color: var(--bm-gray-800, #343a40);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.master-workbench-nav-button span{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.master-workbench-nav-button strong{
  min-inline-size: 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
.master-workbench-nav-button:hover,
.master-workbench-nav-button:focus-visible,
.master-workbench-nav-button[data-master-workbench-nav-active]{
  border-color: rgba(13, 110, 253, 0.26);
  background: rgba(13, 110, 253, 0.08);
  color: var(--bm-blue, #0d6efd);
}
.master-workbench-nav-button:focus-visible{
  outline: 3px solid rgba(13, 110, 253, 0.34);
  outline-offset: 2px;
}
.master-workbench-grid,
.master-workbench-empty-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin-top: 0.72rem;
}
.master-workbench-card{
  display: grid;
  gap: 0.36rem;
  min-height: 8.5rem;
  padding: 1rem;
}
.master-workbench-card strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.98rem;
  line-height: 1.3;
}

.master-workbench-stability-summary{
  overflow: hidden;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
}
.master-workbench-stability-summary > summary{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  cursor: pointer;
  list-style: none;
}
.master-workbench-stability-summary > summary::-webkit-details-marker{
  display: none;
}
.master-workbench-stability-summary summary span,
.master-workbench-photo-slot span,
.master-workbench-summary-chip em{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.master-workbench-stability-summary summary strong{
  color: var(--bm-gray-900, #212529);
  font-size: 1rem;
}
.master-workbench-stability-summary summary em{
  margin-left: auto;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}
.master-workbench-stability-body{
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}
.master-workbench-stability-body > p,
.master-workbench-photo-slot p,
.master-workbench-summary-recovery p{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.9rem;
  line-height: 1.6;
}
.master-workbench-summary-chip-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}
.master-workbench-summary-chip{
  display: grid;
  gap: 0.2rem;
  min-inline-size: 0;
  padding: 0.72rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 16px;
  background: rgba(13, 110, 253, 0.045);
}
.master-workbench-summary-chip strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.82rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.master-workbench-photo-slot-wrap{
  display: grid;
  gap: 0.6rem;
}
.master-workbench-photo-slot-wrap h4{
  margin: 0;
  color: var(--bm-gray-900, #212529);
  font-size: 0.98rem;
}
.master-workbench-photo-slot-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.master-workbench-photo-slot{
  display: grid;
  gap: 0.45rem;
  min-inline-size: 0;
  padding: 0.82rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}
.master-workbench-photo-slot strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.9rem;
}
.master-workbench-photo-quality-list{
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.master-workbench-photo-quality-list li{
  min-height: 32px;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(13, 110, 253, 0.10);
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.045);
  color: var(--bm-gray-700, #495057);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.master-workbench-photo-slot dl{
  display: grid;
  gap: 0.35rem;
  margin: 0;
}
.master-workbench-photo-slot dl div{
  display: grid;
  gap: 0.08rem;
}
.master-workbench-photo-slot dt{
  color: var(--bm-gray-500, #868e96);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.master-workbench-photo-slot dd{
  margin: 0;
  color: var(--bm-gray-800, #343a40);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.master-workbench-slot-action-row{
  display: grid;
  gap: 0.55rem;
  min-inline-size: 0;
  padding: 0.62rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 16px;
  background: rgba(248, 249, 250, 0.92);
}
.master-workbench-slot-action-row em{
  display: block;
  margin-bottom: 0.18rem;
  color: var(--bm-gray-500, #868e96);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.master-workbench-slot-action-row strong{
  display: block;
  color: var(--bm-gray-900, #212529);
  font-size: 0.84rem;
  line-height: 1.28;
}
.master-workbench-slot-action-row p,
.master-workbench-slot-action-row small{
  display: block;
  margin: 0.24rem 0 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.master-workbench-slot-control,
.master-workbench-slot-wait{
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.66rem 0.72rem;
  text-align: center;
  white-space: normal;
}
.master-workbench-slot-control:disabled,
.master-workbench-slot-control[aria-disabled="true"]{
  cursor: not-allowed;
  opacity: 0.72;
}
.master-workbench-slot-wait{
  display: inline-flex;
  align-items: center;
  border: 1px dashed rgba(33, 37, 41, 0.16);
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.045);
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.78rem;
  font-weight: 900;
}
.master-workbench-summary-recovery{
  padding: 0.82rem;
  border: 1px solid rgba(255, 193, 7, 0.24);
  border-radius: 18px;
  background: rgba(255, 193, 7, 0.10);
}
.master-workbench-summary-recovery strong{
  display: block;
  margin-bottom: 0.3rem;
  color: var(--bm-gray-900, #212529);
  font-size: 0.92rem;
}
.master-workbench-profile-ranking-body{
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}
.master-workbench-profile-ranking-body > p,
.master-workbench-profile-ranking-card p,
.master-workbench-profile-next-shoot li,
.master-workbench-profile-ranking-actions p,
.master-workbench-profile-privacy{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.88rem;
  line-height: 1.58;
}
.master-workbench-profile-ranking-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
}
.master-workbench-profile-ranking-card,
.master-workbench-profile-ranking-empty{
  display: grid;
  gap: 0.45rem;
  min-inline-size: 0;
  padding: 0.82rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}
.master-workbench-profile-ranking-card span{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.master-workbench-profile-ranking-card strong,
.master-workbench-profile-ranking-empty strong,
.master-workbench-profile-next-shoot strong,
.master-workbench-profile-ranking-actions strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.9rem;
  line-height: 1.28;
}
.master-workbench-profile-bucket{
  width: fit-content;
  max-width: 100%;
  padding: 0.32rem 0.58rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.07);
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.master-workbench-profile-basis,
.master-workbench-profile-next-shoot ul{
  display: grid;
  gap: 0.34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.master-workbench-profile-basis li,
.master-workbench-profile-next-shoot li{
  min-height: 34px;
  padding: 0.42rem 0.5rem;
  border: 1px solid rgba(13, 110, 253, 0.10);
  border-radius: 12px;
  background: rgba(13, 110, 253, 0.045);
  overflow-wrap: anywhere;
}
.master-workbench-profile-basis li{
  color: var(--bm-gray-700, #495057);
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.28;
}
.master-workbench-profile-next-shoot,
.master-workbench-profile-ranking-actions{
  display: grid;
  gap: 0.6rem;
  padding: 0.82rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.92);
}
.master-workbench-profile-ranking-actions{
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.42fr);
  align-items: center;
}
.master-workbench-profile-action{
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0.66rem 0.72rem;
  text-align: center;
  white-space: normal;
}
.master-workbench-profile-action-disabled{
  display: inline-flex;
  align-items: center;
  border: 1px dashed rgba(33, 37, 41, 0.16);
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.045);
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.78rem;
  font-weight: 900;
}
.master-workbench-profile-privacy{
  padding: 0.7rem 0.78rem !important;
  border: 1px solid rgba(25, 135, 84, 0.16);
  border-radius: 16px;
  background: rgba(25, 135, 84, 0.07);
}
.master-workbench-empty{
  display: grid;
  gap: 0.75rem;
}
.master-workbench-empty h4{
  margin: 0.25rem 0 0.45rem;
  color: var(--bm-gray-900, #212529);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}
.master-workbench-empty-grid .master-workbench-card{
  min-height: 7.2rem;
  background: rgba(33, 37, 41, 0.025);
}
.master-workbench-sections{
  display: grid;
  gap: 0.65rem;
}
.master-workbench-section{
  overflow: hidden;
}
.master-workbench-section > summary{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.92rem 1rem;
  cursor: pointer;
  list-style: none;
}
.master-workbench-section > summary::-webkit-details-marker{
  display: none;
}
.master-workbench-section summary strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.98rem;
}
.master-workbench-section p{
  padding: 0 1rem 1rem;
}
.master-workbench-privacy strong{
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bm-gray-900, #212529);
  font-size: 0.96rem;
}
@media (max-width: 760px){
  .master-workbench-shell{
    gap: 0.78rem;
    padding-inline: max(0.78rem, env(safe-area-inset-left));
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    border-radius: 22px;
  }
  .master-workbench-hero,
.master-workbench-grid,
.master-workbench-empty-grid,
.master-workbench-summary-chip-grid,
.master-workbench-photo-slot-grid,
.master-workbench-profile-ranking-grid,
.master-workbench-profile-ranking-actions,
.master-workbench-section-nav-list{
    grid-template-columns: minmax(0, 1fr);
  }
  .master-workbench-stability-summary summary,
.master-workbench-section > summary{
    align-items: flex-start;
    flex-wrap: wrap;
    min-inline-size: 0;
  }
  .master-workbench-stability-summary summary em{
    margin-left: 0;
    max-inline-size: 100%;
    overflow-wrap: anywhere;
  }
  .master-workbench-slot-action-row{
    grid-template-columns: minmax(0, 1fr);
  }
  .master-workbench-actions{
    grid-template-columns: minmax(0, 1fr);
    bottom: calc(0.5rem + env(safe-area-inset-bottom));
    z-index: 32;
    margin-inline: 0;
    border-radius: 18px;
  }
  body.app-menu-open .master-workbench-actions,
body.is-legal-modal-open .master-workbench-actions{
    position: static;
  }
  .master-workbench-section-nav,
.master-workbench-stability-summary,
.master-workbench-section,
.master-workbench-privacy{
    scroll-margin-top: calc(76px + env(safe-area-inset-top));
  }
  .master-workbench-nav-button,
.master-workbench-photo-quality-list li,
.master-workbench-slot-control,
.master-workbench-slot-wait,
.master-workbench-profile-basis li,
.master-workbench-profile-next-shoot li,
.master-workbench-profile-action{
    min-height: 44px;
  }
  .master-workbench-state-card em{
    width: 100%;
  }
}


.master-stability-analysis{
  display: grid;
  gap: clamp(0.9rem, 2.4vw, 1.25rem);
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid rgba(94, 92, 230, 0.18);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(94, 92, 230, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 42px rgba(33, 37, 41, 0.08);
}
.master-stability-analysis-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.8fr);
  gap: clamp(0.85rem, 2.2vw, 1.15rem);
  align-items: stretch;
}
.master-stability-analysis-copy,
.master-stability-analysis-state,
.master-stability-module-card{
  border: 1px solid rgba(33, 37, 41, 0.10);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
}
.master-stability-analysis-copy,
.master-stability-analysis-state{
  padding: clamp(1rem, 2.8vw, 1.35rem);
}
.master-stability-analysis-copy h3{
  margin: 0.3rem 0 0.55rem;
  color: var(--bm-gray-900, #212529);
  font-size: clamp(1.28rem, 4vw, 1.92rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.master-stability-analysis-copy p,
.master-stability-module-body p,
.master-stability-empty,
.master-stability-fallback-note{
  margin: 0;
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.93rem;
  line-height: 1.65;
}
.master-stability-analysis-state{
  display: grid;
  gap: 0.48rem;
  align-content: start;
}
.master-stability-analysis-state span,
.master-stability-chip em,
.master-stability-module-head span{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.master-stability-analysis-state strong{
  color: var(--bm-gray-900, #212529);
  font-size: 1.04rem;
  line-height: 1.3;
}
.master-stability-analysis-state em,
.master-stability-analysis-state small{
  width: fit-content;
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(13, 110, 253, 0.14);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.07);
  color: var(--bm-blue, #0d6efd);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}
.master-stability-analysis-meta,
.master-stability-chip-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.master-stability-chip{
  display: inline-grid;
  gap: 0.2rem;
  min-width: 9rem;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(33, 37, 41, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}
.master-stability-chip strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.88rem;
  line-height: 1.25;
}
.master-stability-fallback-note{
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(13, 110, 253, 0.22);
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.055);
}
.master-stability-module-stack{
  display: grid;
  gap: 0.75rem;
}
.master-stability-module-card{
  overflow: hidden;
}
.master-stability-module-card > summary{
  list-style: none;
}
.master-stability-module-card > summary::-webkit-details-marker{
  display: none;
}
.master-stability-module-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  padding: clamp(1rem, 2.6vw, 1.35rem);
  cursor: pointer;
}
.master-stability-module-head strong{
  flex: 1 1 auto;
  color: var(--bm-gray-900, #212529);
  font-size: 1rem;
  line-height: 1.3;
}
.master-stability-module-head em{
  flex: 0 0 auto;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.04);
  color: var(--bm-gray-700, #495057);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 900;
}
.master-stability-module-body{
  display: grid;
  gap: 0.8rem;
  padding: 0 clamp(1rem, 2.6vw, 1.35rem) clamp(1rem, 2.6vw, 1.35rem);
}
.master-stability-scope{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.master-stability-scope span{
  color: var(--bm-gray-600, #6c757d);
  font-size: 0.76rem;
  font-weight: 900;
}
.master-stability-scope strong{
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.05);
  color: var(--bm-gray-800, #343a40);
  font-size: 0.78rem;
}
.master-stability-photo-rows,
.master-stability-condition-list,
.master-stability-slot-list{
  display: grid;
  gap: 0.62rem;
}
.master-stability-photo-row,
.master-stability-condition-list article,
.master-stability-slot-list article{
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 16px;
  background: rgba(33, 37, 41, 0.025);
}
.master-stability-photo-row > strong,
.master-stability-condition-list strong,
.master-stability-slot-list strong{
  display: block;
  color: var(--bm-gray-900, #212529);
  font-size: 0.94rem;
  line-height: 1.3;
}
.master-stability-photo-row dl{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 0.8rem;
  margin: 0.62rem 0 0;
}
.master-stability-photo-row dl div{
  min-width: 0;
}
.master-stability-photo-row dt{
  color: var(--bm-gray-500, #868e96);
  font-size: 0.72rem;
  font-weight: 900;
}
.master-stability-photo-row dd,
.master-stability-condition-list p,
.master-stability-condition-list em,
.master-stability-slot-list p{
  margin: 0.18rem 0 0;
  color: var(--bm-gray-700, #495057);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.45;
}
.master-stability-slot-list span{
  display: inline-block;
  margin-bottom: 0.22rem;
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.master-stability-checklist{
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.05rem;
  color: var(--bm-gray-700, #495057);
  font-size: 0.9rem;
  line-height: 1.55;
}
@media (max-width: 760px){
  .master-stability-analysis-hero,
.master-stability-photo-row dl{
    grid-template-columns: 1fr;
  }
  .master-stability-chip{
    min-width: min(13rem, 100%);
  }
  .master-stability-module-head{
    display: grid;
    gap: 0.55rem;
  }
  .master-stability-module-head em{
    width: fit-content;
  }
}


/* =====================================================================
   H026 result actions CSS consolidation: default result share, evidence,
   quality guidance, and retry controls stay scoped to the default result path.
   ===================================================================== */
#doneScreen :is(.share-action-stack, .share-url-inline, .result-evidence-trust-block, .result-evidence-strip, .result-certainty-band-card, .result-quality-guidance-panel){
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

#doneScreen .share-action-stack{
  display: grid;
  justify-items: end;
  gap: 10px;
  width: min(360px, 100%);
}

#doneScreen .share-url-inline{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

#doneScreen .share-url-field{
  flex: 1 1 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#doneScreen .share-url-inline :is(.button, button){
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
}

#doneScreen :is(#shareResultButton.button-share, #copyShareUrlButton.button-copy){
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-width: 104px;
  min-height: 50px;
  min-block-size: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

#doneScreen .result-stage-v3 :is([data-public-result-retry], [data-result-share]){
  position: relative;
  z-index: 1;
  min-block-size: 44px;
  touch-action: manipulation;
}

#doneScreen .result-evidence-trust-block{
  display: grid;
  gap: clamp(0.9rem, 2.4vw, 1.15rem);
  margin: clamp(1rem, 3vw, 1.4rem) 0;
}

#doneScreen .result-evidence-trust-block.hidden{
  display: none;
}

#doneScreen :is(.result-evidence-strip, .result-certainty-band-card){
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(33, 37, 41, 0.07);
}

#doneScreen .result-evidence-strip{
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2.6vw, 1.35rem);
}

#doneScreen .result-evidence-strip:empty{
  display: none;
}

#doneScreen .result-evidence-head{
  display: grid;
  gap: 0.38rem;
}

#doneScreen .result-evidence-eyebrow,
#doneScreen .result-evidence-card span{
  color: var(--bm-blue, #0d6efd);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#doneScreen .result-evidence-head strong{
  color: var(--bm-gray-900, #212529);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.3;
}

#doneScreen .result-evidence-head p,
#doneScreen .result-evidence-card p{
  margin: 0;
  color: var(--bm-gray-700, #495057);
  font-size: 0.88rem;
  line-height: 1.5;
}

#doneScreen .result-evidence-card-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

#doneScreen .result-evidence-card{
  display: grid;
  gap: 0.38rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.84rem 0.9rem;
  border: 1px solid rgba(13, 110, 253, 0.1);
  border-radius: 18px;
  background: rgba(13, 110, 253, 0.035);
  overflow-wrap: anywhere;
}

#doneScreen .result-evidence-card strong{
  color: var(--bm-gray-900, #212529);
  font-size: 0.96rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#doneScreen .result-certainty-band-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.72fr);
  gap: clamp(0.9rem, 2.4vw, 1.25rem);
  align-items: start;
  padding: clamp(1rem, 2.6vw, 1.35rem);
}

#doneScreen .result-certainty-band-card.result-quality-guidance-panel{
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

#doneScreen .result-quality-guidance-panel{
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#doneScreen .result-quality-eyebrow{
  color: var(--bm-gray-900, #212529);
  font-weight: 950;
}

#doneScreen .result-quality-guidance-panel > strong{
  display: block;
  font-size: 1rem;
}

#doneScreen .result-quality-guidance-panel > p{
  margin: 0;
  line-height: 1.5;
}

#doneScreen .result-quality-action-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  margin-top: 0.28rem;
}

#doneScreen .result-quality-action-button{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-block-size: 44px;
  justify-content: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.22;
  touch-action: manipulation;
}

#doneScreen .result-quality-action-primary{
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
}

@media (max-width: 760px){
  #resultEvidenceTrustBlock .result-evidence-card-grid,
  #resultCertaintyBand .result-certainty-band-card,
  #doneScreen .result-quality-guidance-panel .result-quality-action-row{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  #doneScreen .result-header-v3 > .share-action-stack{
    justify-items: stretch;
    width: 100%;
  }
}

@media (max-width: 640px){
  #doneScreen .collectible-badge-art > .share-url-inline{
    align-items: stretch;
    flex-direction: column;
  }

  #doneScreen #shareUrlField.share-url-field,
  #doneScreen #copyShareUrlButton.button-copy{
    width: 100%;
    min-width: 0;
  }
}



.admin-backoffice-page{
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 34rem),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  color: #111827;
}

.admin-backoffice-shell{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) 0;
}

.admin-backoffice-hero,
.admin-backoffice-card,
.admin-backoffice-note{
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
}

.admin-backoffice-hero{
  padding: clamp(28px, 5vw, 48px);
}

.admin-backoffice-eyebrow,
.admin-backoffice-card-kicker{
  margin: 0 0 10px;
  color: #4f46e5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.admin-backoffice-hero h1{
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.admin-backoffice-hero > p{
  max-width: 760px;
  margin: 18px 0 0;
  color: #475569;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.admin-backoffice-status{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.admin-backoffice-status div{
  min-width: 0;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.88);
  padding: 14px 16px;
}

.admin-backoffice-status dt{
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-backoffice-status dd{
  margin: 6px 0 0;
  color: #0f172a;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-backoffice-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.admin-backoffice-card,
.admin-backoffice-note{
  padding: 24px;
}

.admin-backoffice-card h2,
.admin-backoffice-note h2{
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.admin-backoffice-card p:not(.admin-backoffice-card-kicker),
.admin-backoffice-note p{
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.62;
}

.admin-backoffice-disabled-button{
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

.admin-backoffice-note{
  margin-top: 22px;
}


.admin-backoffice-report-test{
  margin-top: 22px;
}

.admin-backoffice-section-head{
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  padding: 24px;
}

.admin-backoffice-section-head h2,
.admin-report-test-card h3{
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.admin-backoffice-section-head h2{
  font-size: 1.55rem;
}

.admin-report-test-card h3{
  font-size: 1.22rem;
}

.admin-backoffice-section-head p:not(.admin-backoffice-card-kicker),
.admin-report-test-card p{
  margin: 12px 0 0;
  color: #475569;
  line-height: 1.62;
}

.admin-report-test-grid{
  align-items: stretch;
}

.admin-report-test-card{
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-report-test-card-wide{
  grid-column: 1 / -1;
}

.admin-report-test-button{
  justify-content: center;
  margin-top: auto;
  width: 100%;
}

.admin-report-test-button[disabled]{
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-report-test-output{
  margin-top: 22px;
}

.admin-report-test-output-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-report-test-output-head h2{
  margin-top: 0;
}

.admin-report-test-copy{
  flex: 0 0 auto;
}

.admin-report-test-status{
  max-width: 100%;
  min-height: 120px;
  margin: 16px 0 0;
  border-radius: 18px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.86rem;
  line-height: 1.55;
  overflow-x: auto;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-report-test-public-path{
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #475569;
  font-weight: 800;
}

.admin-report-test-public-path input{
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  padding: 12px 14px;
}

@media (max-width: 760px){
  .admin-backoffice-shell{
    width: min(100% - 24px, 1120px);
    padding-block: 24px;
  }

  .admin-backoffice-status,
.admin-backoffice-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-backoffice-hero,
.admin-backoffice-card,
.admin-backoffice-note,
.admin-backoffice-section-head{
    border-radius: 22px;
  }

  .admin-report-test-card-wide{
    grid-column: auto;
  }

  .admin-report-test-output-head{
    align-items: stretch;
    flex-direction: column;
  }

  .admin-report-test-copy{
    width: 100%;
  }
}


      
                              
 

#globalMenuOverlay.global-menu-page{
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--global-menu-z, 2147483000) !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  min-inline-size: 0;
  block-size: 100vh !important;
  min-block-size: 100vh !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box;
  background: #ffffff !important;
  color: var(--text, #212529);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  visibility: visible;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  isolation: isolate;
  touch-action: pan-y;
}

@supports (height: 100dvh){
  #globalMenuOverlay.global-menu-page{
    block-size: 100dvh !important;
    min-block-size: 100dvh !important;
    height: 100dvh !important;
  }
}

@supports (height: 100svh){
  #globalMenuOverlay.global-menu-page{
    min-block-size: 100svh !important;
  }
}

#globalMenuOverlay.global-menu-page:not(.hidden):not([aria-hidden="true"]){
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  max-inline-size: 100vw;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: none !important;
  filter: none !important;
}

#globalMenuOverlay.global-menu-page.hidden,
#globalMenuOverlay.global-menu-page[aria-hidden="true"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#globalMenuButton.global-menu-button{
  position: relative;
  z-index: calc(var(--global-menu-z, 2147483000) - 1);
  flex: 0 0 auto;
  min-inline-size: 44px;
  min-block-size: 44px;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.app-menu-open #globalMenuButton.global-menu-button{
  z-index: auto;
}

#globalMenuOverlay .global-menu-inner{
  position: relative;
  z-index: 1;
  inline-size: 100%;
  max-inline-size: 100vw;
  min-inline-size: 0;
  min-block-size: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  max-block-size: calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
}

@supports (height: 100dvh){
  #globalMenuOverlay .global-menu-inner{
    min-block-size: 100dvh;
  }
}

#globalMenuOverlay .global-menu-head,
#globalMenuOverlay .global-menu-body{
  inline-size: 100%;
  max-inline-size: 100vw;
  min-inline-size: 0;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

#globalMenuOverlay .app-menu-card{
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

#globalMenuOverlay .app-menu-link{
  min-inline-size: 0;
  max-inline-size: 100%;
  min-block-size: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

/* Keep legal documents opened from the menu dismissible above sticky modal headers. */
#legalModal.legal-modal:not(.hidden) .legal-modal-close{
  z-index: 3;
}

html.app-menu-open,
body.app-menu-open{
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.app-menu-open .app-shell{
  isolation: auto;
}


      
                                
 

html.my-page-open,
body.my-page-open{
  overflow: hidden !important;
  overscroll-behavior: none;
}

#myPageModal.my-page-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--my-page-modal-z, 2147483200) !important;
  display: grid !important;
  place-items: center !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  block-size: 100vh !important;
  min-block-size: 100vh !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: clamp(0.75rem, 4vw, 1.75rem) !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  isolation: isolate !important;
  touch-action: none;
}

@supports (height: 100dvh){
  #myPageModal.my-page-modal{
    block-size: 100dvh !important;
    min-block-size: 100dvh !important;
    height: 100dvh !important;
  }
}

@supports (height: 100svh){
  #myPageModal.my-page-modal{
    min-block-size: 100svh !important;
  }
}

#myPageModal.my-page-modal.hidden,
#myPageModal.my-page-modal[aria-hidden="true"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#myPageModal .my-page-backdrop{
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: rgba(33, 37, 41, 0.46) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  pointer-events: auto !important;
}

#myPageModal .my-page-panel{
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  gap: clamp(0.85rem, 2vw, 1.1rem) !important;
  inline-size: min(100%, 42rem) !important;
  width: min(100%, 42rem) !important;
  max-inline-size: 42rem !important;
  height: auto !important;
  max-height: min(88vh, 48rem) !important;
  max-block-size: min(88vh, 48rem) !important;
  margin: 0 !important;
  padding: clamp(1.05rem, 3vw, 1.45rem) !important;
  border: 1px solid rgba(33, 37, 41, 0.15) !important;
  border-radius: clamp(1.15rem, 3vw, 1.8rem) !important;
  background: #ffffff !important;
  box-shadow: 0 1.4rem 4rem rgba(33, 37, 41, 0.22) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  touch-action: pan-y;
}

@supports (height: 100dvh){
  #myPageModal .my-page-panel{
    max-height: min(88dvh, 48rem) !important;
    max-block-size: min(88dvh, 48rem) !important;
  }
}

#myPageModal .my-page-close{
  z-index: 2 !important;
  touch-action: manipulation;
}
#myPageModal .auth-chip-button,
#myPageModal [data-mypage-refresh],
#myPageModal [data-auth-logout],
#myPageModal [data-auth-provider]{
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}


      
                                                                
 

html.is-legal-modal-open,
body.is-legal-modal-open{
  overflow: hidden !important;
  overscroll-behavior: none;
}

#legalModal.legal-modal{
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--legal-modal-z, 2147483199) !important;
  display: block;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  block-size: 100vh !important;
  min-block-size: 100vh !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  isolation: isolate !important;
  touch-action: none;
}

@supports (height: 100dvh){
  #legalModal.legal-modal{
    block-size: 100dvh !important;
    min-block-size: 100dvh !important;
    height: 100dvh !important;
  }
}

@supports (height: 100svh){
  #legalModal.legal-modal{
    min-block-size: 100svh !important;
  }
}

#legalModal.legal-modal.hidden,
#legalModal.legal-modal[aria-hidden="true"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#legalModal .legal-modal-backdrop{
  display: none;
}

#legalModal .legal-modal-panel{
  position: relative !important;
  z-index: 1 !important;
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: none !important;
  block-size: 100% !important;
  height: 100% !important;
  max-block-size: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: hidden !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  touch-action: none;
}

#legalModal .legal-modal-head{
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  min-width: 0 !important;
  border-bottom: 1px solid rgba(33, 37, 41, 0.10);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: max(1.25rem, env(safe-area-inset-top)) !important;
  padding-right: calc(4rem + env(safe-area-inset-right)) !important;
  padding-left: max(1.25rem, env(safe-area-inset-left)) !important;
  overflow-wrap: anywhere;
}

#legalModal .legal-modal-close{
  z-index: 3 !important;
  border-radius: 0;
  box-shadow: none;
  top: max(0.75rem, env(safe-area-inset-top)) !important;
  right: max(0.75rem, env(safe-area-inset-right)) !important;
  touch-action: manipulation;
}

#legalModal .legal-modal-body{
  min-width: 0 !important;
  min-height: 0 !important;
  background: #ffffff;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: max(1.25rem, env(safe-area-inset-right)) !important;
  padding-bottom: max(1.875rem, env(safe-area-inset-bottom)) !important;
  padding-left: max(1.25rem, env(safe-area-inset-left)) !important;
  overflow-wrap: anywhere;
  touch-action: pan-y;
}

#legalModal .legal-table-wrap{
  max-inline-size: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

#legalModal .legal-table{
  inline-size: max(100%, 32rem);
  min-inline-size: 32rem;
}

@media (max-width: 420px){
  #legalModal .legal-modal-head h2{
    font-size: clamp(1.35rem, 7vw, 1.7rem);
  }
}

@media (max-width: 640px){
  #myPageModal.my-page-modal{
    align-items: end !important;
    justify-items: center !important;
    padding: max(0.5rem, env(safe-area-inset-top)) max(0.5rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left)) !important;
  }

  #myPageModal .my-page-panel{
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: none !important;
    max-height: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom))) !important;
    max-block-size: calc(100dvh - max(1rem, env(safe-area-inset-top)) - max(1rem, env(safe-area-inset-bottom))) !important;
    border-radius: 1.35rem 1.35rem 0.85rem 0.85rem !important;
  }

  #myPageModal .my-page-login-grid,
#myPageModal .my-page-toolbar > div,
#myPageModal .my-page-summary{
    grid-template-columns: 1fr !important;
  }

  #myPageModal .auth-chip-button,
#myPageModal .my-page-toolbar button{
    inline-size: 100%;
  }
}


.app-shell[data-scene="scan"] .preview-shell,
.app-shell[data-scene="scan"] .camera,
.app-shell[data-scene="scan"] .preview,
.app-shell[data-scene="scan"] .overlay{
  pointer-events: none !important;
}


      
                                                                      
                                                                      
 

.app-shell[data-scene="trust_preflight"] .top-bar,
.app-shell[data-scene="scan_recovery"] .top-bar,
.app-shell[data-scene="scan"] .top-bar,
.report-viewer-topbar{
  z-index: var(--premium-flow-escape-z, 2147482998) !important;
  pointer-events: auto !important;
  isolation: isolate;
}

#appMenuTrigger.app-menu-trigger,
.report-viewer-menu-button.global-menu-button{
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#masterUploadDialog.master-upload-backdrop{
  box-sizing: border-box !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--master-upload-modal-z, 2147482996) !important;
  display: grid !important;
  place-items: center !important;
  width: 100vw !important;
  inline-size: 100vw !important;
  max-width: 100% !important;
  max-inline-size: 100% !important;
  height: 100vh !important;
  block-size: 100vh !important;
  margin: 0 !important;
  padding: max(76px, calc(58px + var(--safe-top, 0px))) max(12px, var(--safe-right, 0px)) max(12px, var(--safe-bottom, 0px)) max(12px, var(--safe-left, 0px)) !important;
  background: rgba(33, 37, 41, 0.38) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
}

@supports (height: 100dvh){
  #masterUploadDialog.master-upload-backdrop{
    height: 100dvh !important;
    block-size: 100dvh !important;
  }
}

#masterUploadDialog.master-upload-backdrop.hidden,
#masterUploadDialog.master-upload-backdrop[hidden],
#masterUploadDialog.master-upload-backdrop[aria-hidden="true"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#masterUploadDialog .master-upload-modal{
  width: min(100%, 42rem) !important;
  inline-size: min(100%, 42rem) !important;
  max-width: 42rem !important;
  max-inline-size: 42rem !important;
  height: auto !important;
  max-height: calc(100vh - 92px - max(12px, var(--safe-bottom, 0px))) !important;
  max-block-size: calc(100vh - 92px - max(12px, var(--safe-bottom, 0px))) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

@supports (height: 100dvh){
  #masterUploadDialog .master-upload-modal{
    max-height: calc(100dvh - 92px - max(12px, var(--safe-bottom, 0px))) !important;
    max-block-size: calc(100dvh - 92px - max(12px, var(--safe-bottom, 0px))) !important;
  }
}
#masterUploadDialog .master-upload-actions,
#masterUploadDialog .master-upload-reuse-head{
  min-width: 0;
}

#masterUploadDialog :is(button, .button, input[type="email"], input[type="file"]){
  min-block-size: 44px;
  touch-action: manipulation;
}

#premiumPaywallWrapper.premium-paywall-wrapper{
  max-inline-size: 100%;
}

#premiumPaywallWrapper .paywall-overlay{
  z-index: 20;
  pointer-events: auto !important;
}

#premiumPaywallWrapper :is([data-report-cta], #buyPremiumButton, #buyMasterButton, .button-upgrade-primary, .button-upgrade-secondary){
  position: relative;
  z-index: 1;
  min-block-size: 44px;
  touch-action: manipulation;
}

body.paid-report-page-open #doneScreen .result-stage-v3 :is([data-paid-report-focus-master-upload], [data-auth-open-mypage]){
  position: relative;
  z-index: 1;
  min-block-size: 44px;
  touch-action: manipulation;
}

@media (max-width: 640px){
  #masterUploadDialog.master-upload-backdrop{
    align-items: end !important;
    justify-items: center !important;
    padding: max(66px, calc(54px + var(--safe-top, 0px))) max(8px, var(--safe-right, 0px)) max(8px, var(--safe-bottom, 0px)) max(8px, var(--safe-left, 0px)) !important;
  }

  #masterUploadDialog .master-upload-modal{
    width: 100% !important;
    inline-size: 100% !important;
    max-width: none !important;
    max-inline-size: none !important;
    border-radius: 1.35rem 1.35rem 0.85rem 0.85rem !important;
  }

  #masterUploadDialog .master-upload-actions{
    grid-template-columns: 1fr !important;
  }
}


html.master-upload-open,
body.master-upload-open{
  overflow: hidden !important;
  overscroll-behavior: none;
}

#masterUploadDialog .master-upload-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem;
}

#masterUploadDialog .master-upload-head-copy{
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

#masterUploadDialog .master-upload-close{
  min-inline-size: 44px;
  min-block-size: 44px;
  border-radius: 999px;
  border: 1px solid rgba(33, 37, 41, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(33, 37, 41, 0.78);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

#masterUploadDialog .master-upload-escape{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  gap: 0.5rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-escape .button,
#masterUploadDialog .master-upload-picker-button{
  width: 100%;
  min-width: 0;
  white-space: normal;
}

#masterUploadDialog .master-upload-drop{
  position: relative;
  overflow: hidden;
}

#masterUploadDialog .master-upload-drop input[type="file"]{
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

#masterUploadDialog .master-upload-progress{
  margin: 0 0 0.65rem;
  border-radius: 0.85rem;
  background: rgba(13, 110, 253, 0.08);
  color: rgba(33, 37, 41, 0.86);
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

#masterUploadDialog .master-upload-progress strong{
  font-weight: 900;
}

.master-upload-completion-nudge-shell{
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.master-upload-completion-nudge{
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.095), rgba(255, 255, 255, 0.9));
  padding: 0.9rem;
  box-shadow: 0 14px 34px rgba(13, 110, 253, 0.08);
}

.master-upload-completion-nudge.is-ready{
  border-color: rgba(25, 135, 84, 0.24);
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.09), rgba(255, 255, 255, 0.92));
}

.master-upload-completion-nudge.is-failed{
  border-color: rgba(176, 42, 55, 0.24);
  background: linear-gradient(180deg, rgba(176, 42, 55, 0.075), rgba(255, 255, 255, 0.92));
}

.master-upload-completion-nudge-head{
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.master-upload-completion-nudge-head h3{
  margin: 0;
  color: rgba(33, 37, 41, 0.92);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.master-upload-completion-nudge-head p:not(.panel-label),
.master-upload-completion-nudge-privacy{
  margin: 0;
  color: rgba(33, 37, 41, 0.68);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.5;
}

.master-upload-completion-nudge-progress{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  align-items: center;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.72rem 0.8rem;
  min-width: 0;
}

.master-upload-completion-nudge-progress strong{
  grid-row: span 2;
  display: grid;
  place-items: center;
  min-inline-size: 3.25rem;
  min-block-size: 2.4rem;
  border-radius: 0.8rem;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  font-weight: 950;
}

.master-upload-completion-nudge-progress span,
.master-upload-completion-nudge-progress em{
  min-width: 0;
  color: rgba(33, 37, 41, 0.72);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.master-upload-completion-nudge-checklist{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.master-upload-completion-nudge-checklist li{
  min-width: 0;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.78);
  color: rgba(33, 37, 41, 0.72);
  padding: 0.62rem 0.68rem;
  font-size: 0.75rem;
  font-weight: 780;
  line-height: 1.46;
}

.master-upload-completion-nudge-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: 0.5rem;
  min-width: 0;
}

.master-upload-completion-nudge-actions .button{
  min-width: 0;
  min-block-size: 42px;
  padding-inline: 0.65rem;
  white-space: normal;
}

#masterUploadDialog .master-upload-checklist-shell{
  display: grid;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
}

#masterUploadDialog .master-upload-checklist{
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-checklist-summary{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  border-radius: 0.9rem;
  background: rgba(13, 110, 253, 0.08);
  padding: 0.75rem 0.85rem;
}

#masterUploadDialog .master-upload-checklist-summary span,
#masterUploadDialog .master-upload-checklist-panel strong{
  color: rgba(33, 37, 41, 0.86);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#masterUploadDialog .master-upload-checklist-summary > strong{
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #0d6efd;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

#masterUploadDialog .master-upload-checklist-summary p,
#masterUploadDialog .master-upload-checklist-list p,
#masterUploadDialog .master-upload-checklist-panel p{
  margin: 0;
  color: rgba(33, 37, 41, 0.66);
  font-size: 0.78rem;
  line-height: 1.48;
}

#masterUploadDialog .master-upload-checklist-summary p{
  grid-column: 1 / -1;
}

#masterUploadDialog .master-upload-checklist-list{
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#masterUploadDialog .master-upload-checklist-list li{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.68rem 0.75rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-checklist-list li > span{
  display: grid;
  place-items: center;
  inline-size: 1.5rem;
  block-size: 1.5rem;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.08);
  color: rgba(33, 37, 41, 0.64);
  font-size: 0.72rem;
  font-weight: 900;
}

#masterUploadDialog .master-upload-checklist-list li.is-complete > span{
  background: rgba(25, 135, 84, 0.14);
  color: rgba(25, 135, 84, 0.96);
}

#masterUploadDialog .master-upload-checklist-list li.is-current{
  border-color: rgba(13, 110, 253, 0.22);
  background: rgba(13, 110, 253, 0.045);
}

#masterUploadDialog .master-upload-checklist-list strong{
  display: block;
  color: rgba(33, 37, 41, 0.9);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#masterUploadDialog .master-upload-checklist-panels{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.55rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-checklist-panel{
  display: grid;
  gap: 0.28rem;
  border-radius: 0.85rem;
  background: rgba(33, 37, 41, 0.045);
  padding: 0.68rem 0.75rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-checklist-privacy{
  background: rgba(25, 135, 84, 0.08);
}

#masterUploadDialog .master-upload-actions .button[disabled],
#masterUploadDialog .master-upload-actions .button[aria-disabled="true"]{
  cursor: not-allowed;
  opacity: 0.62;
}

#masterUploadDialog .master-upload-slots{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.6rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-slot{
  min-width: 0;
  min-block-size: 6rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(33, 37, 41, 0.78);
  padding: 0.75rem;
  text-align: left;
  overflow: hidden;
}

#masterUploadDialog button.master-upload-slot{
  display: grid;
  place-items: center;
  gap: 0.22rem;
  cursor: pointer;
  touch-action: manipulation;
}

#masterUploadDialog .master-upload-slot.is-empty{
  border-style: dashed;
  background: rgba(13, 110, 253, 0.045);
}

#masterUploadDialog .master-upload-slot.is-empty span,
#masterUploadDialog .master-upload-slot-meta span{
  color: rgba(33, 37, 41, 0.55);
  font-size: 0.74rem;
  font-weight: 800;
}

#masterUploadDialog .master-upload-slot.is-empty strong{
  color: #0d6efd;
  font-size: 0.88rem;
  font-weight: 900;
}

#masterUploadDialog .master-upload-slot.is-filled{
  display: grid;
  gap: 0.65rem;
}

#masterUploadDialog .master-upload-slot-meta{
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

#masterUploadDialog .master-upload-slot-meta strong,
#masterUploadDialog .master-upload-slot-meta em{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#masterUploadDialog .master-upload-slot-meta strong{
  color: rgba(33, 37, 41, 0.9);
  font-size: 0.84rem;
  font-weight: 900;
}

#masterUploadDialog .master-upload-slot-meta em{
  color: rgba(33, 37, 41, 0.54);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 750;
}

#masterUploadDialog .master-upload-slot-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-slot-actions button{
  min-width: 0;
  min-block-size: 40px;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(33, 37, 41, 0.74);
  padding: 0.45rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}

#masterUploadDialog .master-upload-slot-overflow{
  margin: 0.65rem 0 0;
  color: rgba(176, 42, 55, 0.95);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.5;
}

#masterUploadDialog .master-upload-error{
  scroll-margin-block: 1rem;
}

#masterUploadDialog .master-upload-recovery{
  min-width: 0;
  scroll-margin-block: 1rem;
}

#masterUploadDialog .master-upload-recovery.hidden,
#masterUploadDialog .master-upload-recovery[aria-hidden="true"]{
  display: none !important;
}

#masterUploadDialog .master-upload-recovery-panel{
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 1rem;
  background: rgba(13, 110, 253, 0.065);
  padding: 0.85rem;
}

#masterUploadDialog .master-upload-recovery-panel.is-failed{
  border-color: rgba(176, 42, 55, 0.22);
  background: rgba(176, 42, 55, 0.06);
}

#masterUploadDialog .master-upload-recovery-panel.is-complete{
  border-color: rgba(25, 135, 84, 0.22);
  background: rgba(25, 135, 84, 0.075);
}

#masterUploadDialog .master-upload-recovery-copy{
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-recovery-copy strong{
  color: rgba(33, 37, 41, 0.92);
  font-size: 0.92rem;
  font-weight: 950;
}

#masterUploadDialog .master-upload-recovery-copy p{
  margin: 0;
  color: rgba(33, 37, 41, 0.68);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.45;
}

#masterUploadDialog .master-upload-recovery-slots{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

#masterUploadDialog .master-upload-recovery-slots li{
  min-width: 0;
  border: 1px solid rgba(33, 37, 41, 0.13);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(33, 37, 41, 0.68);
  padding: 0.48rem 0.35rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

#masterUploadDialog .master-upload-recovery-slots li.is-complete{
  border-color: rgba(25, 135, 84, 0.24);
  color: rgba(25, 135, 84, 0.96);
}

#masterUploadDialog .master-upload-recovery-slots li.is-failed{
  border-color: rgba(176, 42, 55, 0.28);
  color: rgba(176, 42, 55, 0.98);
}

#masterUploadDialog .master-upload-recovery-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.25rem), 1fr));
  gap: 0.5rem;
  min-width: 0;
}

#masterUploadDialog .master-upload-recovery-actions .button{
  min-width: 0;
  min-block-size: 42px;
  padding-inline: 0.65rem;
  white-space: normal;
}

@media (max-width: 420px){
  #masterUploadDialog .master-upload-modal{
    padding-inline: max(0.9rem, env(safe-area-inset-left)) max(0.9rem, env(safe-area-inset-right)) !important;
  }

  #masterUploadDialog .master-upload-head{
    gap: 0.55rem;
  }

  #masterUploadDialog .master-upload-slots,
#masterUploadDialog .master-upload-slot-actions,
#masterUploadDialog .master-upload-escape,
#masterUploadDialog .master-upload-checklist-summary,
#masterUploadDialog .master-upload-checklist-panels,
#masterUploadDialog .master-upload-recovery-actions,
.master-upload-completion-nudge-progress,
.master-upload-completion-nudge-checklist,
.master-upload-completion-nudge-actions{
    grid-template-columns: 1fr;
  }

  #masterUploadDialog .master-upload-slot{
    min-block-size: 5.35rem;
  }
}

body.master-upload-open #globalMenuButton.global-menu-button.is-master-upload-escape,
body.master-upload-open #appMenuTrigger.app-menu-trigger.is-master-upload-escape{
  position: fixed !important;
  top: max(16px, calc(16px + var(--safe-top, 0px))) !important;
  right: max(16px, calc(16px + var(--safe-right, 0px))) !important;
  left: auto !important;
  bottom: auto !important;
  z-index: calc(var(--global-menu-z, 2147483000) - 1) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}


      
                                                                         
 

.report-pref-backdrop.payment-provider-backdrop,
.report-pref-backdrop.paypal-checkout-backdrop{
  position: fixed !important;
  inset: 0 !important;
  z-index: var(--payment-recovery-modal-z, 2147482997) !important;
  inline-size: 100vw !important;
  width: 100vw !important;
  max-inline-size: 100vw !important;
  min-block-size: 100vh !important;
  height: 100vh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  pointer-events: auto !important;
  transform: none !important;
  filter: none !important;
  contain: none !important;
  isolation: isolate !important;
  -webkit-overflow-scrolling: touch;
}

@supports (height: 100dvh){
  .report-pref-backdrop.payment-provider-backdrop,
.report-pref-backdrop.paypal-checkout-backdrop{
    min-block-size: 100dvh !important;
    height: 100dvh !important;
  }
}

.report-pref-backdrop.payment-provider-backdrop.hidden,
.report-pref-backdrop.payment-provider-backdrop[hidden],
.report-pref-backdrop.payment-provider-backdrop[aria-hidden="true"],
.report-pref-backdrop.paypal-checkout-backdrop.hidden,
.report-pref-backdrop.paypal-checkout-backdrop[hidden],
.report-pref-backdrop.paypal-checkout-backdrop[aria-hidden="true"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.payment-provider-choice[aria-disabled="true"]{
  pointer-events: auto !important;
  cursor: not-allowed !important;
  touch-action: manipulation;
}

.payment-provider-choice[aria-disabled="true"]:focus-visible{
  outline: 2px solid rgba(13, 110, 253, 0.34);
  outline-offset: 3px;
}

.payment-provider-choice[data-payment-provider-readiness="config_missing"],
.payment-provider-choice[data-payment-provider-readiness="pending_verification"],
.payment-provider-choice[data-payment-provider-readiness="temporarily_unavailable"],
.payment-provider-choice[data-payment-provider-readiness="review_only"],
.payment-provider-choice[data-payment-provider-readiness="payment_only"],
.payment-provider-choice[data-payment-provider-readiness="disabled"]{
  min-block-size: 7.6rem;
}

.payment-provider-choice[data-payment-provider-readiness="ready"]{
  min-block-size: 7.25rem;
}

.payment-provider-unavailable-note{
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(220, 53, 69, 0.18);
  border-radius: 0.85rem;
  background: rgba(220, 53, 69, 0.07);
  color: rgba(132, 32, 41, 0.95);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 520px){

  .payment-provider-expectation,
.payment-provider-master-requirement,
.payment-provider-unavailable-note{
    font-size: 0.8rem;
  }
}

.paid-report-pending-actions,
.payment-provider-actions,
.paypal-checkout-actions{
  min-width: 0;
  align-items: stretch;
}

.paid-report-pending-actions .button,
.payment-provider-actions .button,
.paypal-checkout-actions .button{
  min-inline-size: 0;
  min-block-size: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@media (max-width: 520px){
  .report-pref-backdrop.payment-provider-backdrop,
.report-pref-backdrop.paypal-checkout-backdrop{
    align-items: end !important;
    justify-items: center !important;
    padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left)) !important;
  }

  .payment-provider-modal,
.paypal-checkout-modal{
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: none !important;
    max-block-size: calc(100dvh - 1.5rem) !important;
    border-radius: 1.35rem 1.35rem 0.9rem 0.9rem !important;
  }

  .payment-provider-grid,
.payment-provider-actions,
.paypal-checkout-actions{
    grid-template-columns: 1fr;
  }

  .payment-provider-choice{
    min-block-size: auto;
    padding: 0.82rem;
    gap: 0.34rem;
  }

  .payment-provider-state-action{
    font-size: 0.73rem;
  }
}



body.paid-report-page-open #globalMenuOverlay.global-menu-page,
body.app-menu-open #globalMenuOverlay.global-menu-page{
  z-index: var(--global-menu-z, 2147483000) !important;
}

body.paid-report-page-open #globalMenuOverlay.global-menu-page.hidden,
body.paid-report-page-open #globalMenuOverlay.global-menu-page[aria-hidden="true"],
.app-menu-panel[aria-hidden="true"]{
  pointer-events: none !important;
  visibility: hidden !important;
}

body.paid-report-page-open #globalMenuButton.global-menu-button,
body.paid-report-page-open #appMenuTrigger.app-menu-trigger,
body.paid-report-page-open .report-viewer-menu-button{
  position: relative;
  z-index: calc(var(--global-menu-z, 2147483000) - 1) !important;
  min-inline-size: 44px;
  min-block-size: 44px;
  pointer-events: auto !important;
  touch-action: manipulation;
}

body.paid-report-page-open .top-bar,
body.paid-report-page-open .report-viewer-topbar{
  position: sticky;
  top: 0;
  z-index: calc(var(--global-menu-z, 2147483000) - 2) !important;
  pointer-events: auto !important;
}

.payment-fulfillment-shell,
.paid-report-pending-shell,
.paid-report-error-shell,
.master-workbench-shell,
.master-workbench-state-card,
.paid-report-action-strip,
.report-processing-recovery-box,
.report-processing-action-strip{
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.payment-fulfillment-shell .paid-report-actions,
.paid-report-pending-actions,
.master-workbench-actions,
.report-processing-action-strip .paid-report-action-grid{
  min-inline-size: 0;
  align-items: stretch;
}

.payment-fulfillment-shell .paid-report-actions .button,
.payment-fulfillment-shell .paid-report-actions a.button,
.paid-report-pending-actions .button,
.paid-report-pending-actions a.button,
.master-workbench-actions .button,
.master-workbench-actions a.button,
.report-processing-action-strip .button,
.report-processing-action-strip a.button{
  min-block-size: 44px;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.paid-report-processing-meta strong,
.paid-report-url-full{
  min-inline-size: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}


.paid-report-recovery-panel{
  display: grid;
  gap: clamp(0.85rem, 2.3vw, 1.2rem);
  padding: clamp(1rem, 3vw, 1.35rem);
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.paid-report-recovery-head{
  display: grid;
  gap: 0.45rem;
  min-inline-size: 0;
}

.paid-report-recovery-head h3,
.paid-report-recovery-head p{
  margin: 0;
}

.paid-report-recovery-head h3{
  line-height: 1.18;
}

.paid-report-recovery-meta{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.65rem;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.paid-report-recovery-meta p{
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.paid-report-recovery-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.65rem;
  min-inline-size: 0;
  align-items: stretch;
}

.paid-report-recovery-actions .payment-pending-choice-card{
  grid-column: 1 / -1;
  width: 100%;
  min-inline-size: 0;
}

.paid-report-recovery-actions .button,
.paid-report-recovery-actions a.button{
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

/* H032 mobile responsive override consolidation: paid/report action grids own their stacked mobile behavior here, not in a late mixed rescue block. */
@media (max-width: 720px){
  .payment-fulfillment-shell .paid-report-actions,
.paid-report-pending-actions,
.paid-report-action-strip .paid-report-action-grid,
.master-workbench-actions,
.report-processing-action-strip .paid-report-action-grid{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.65rem !important;
  }

  .payment-fulfillment-shell .paid-report-actions .button,
.payment-fulfillment-shell .paid-report-actions a.button,
.paid-report-pending-actions .button,
.paid-report-pending-actions a.button,
.master-workbench-actions .button,
.master-workbench-actions a.button,
.report-processing-action-strip .button,
.report-processing-action-strip a.button{
    inline-size: 100%;
    width: 100%;
  }

  .payment-fulfillment-shell .paid-report-cover,
.paid-report-pending-shell .paid-report-cover,
.paid-report-error-shell .paid-report-processing-card,
.master-workbench-hero,
.master-workbench-state-card{
    min-inline-size: 0;
    max-inline-size: 100%;
  }
}


body.paid-report-page-open .report-viewer-top-actions{
  min-inline-size: 0;
  max-inline-size: min(62vw, 24rem);
}

body.paid-report-page-open .report-viewer-top-actions .report-viewer-home-button,
body.paid-report-page-open .report-viewer-top-actions .report-viewer-account-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 0;
  min-block-size: 44px;
  padding-inline: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  touch-action: manipulation;
}
body.paid-report-page-open .paid-report-action-strip,
body.paid-report-page-open .paid-report-save-strip,
body.paid-report-page-open .paid-report-save-actions,
body.paid-report-page-open .paid-report-action-grid,
body.paid-report-page-open .master-workbench-grid,
body.paid-report-page-open .master-workbench-photo-slot-grid,
body.paid-report-page-open .master-workbench-summary-chip-grid,
body.paid-report-page-open .master-workbench-actions{
  min-inline-size: 0;
  max-inline-size: 100%;
}

body.paid-report-page-open .paid-report-action-grid .button,
body.paid-report-page-open .paid-report-action-grid a.button,
body.paid-report-page-open .paid-report-save-actions .button,
body.paid-report-page-open .paid-report-save-actions a.button,
body.paid-report-page-open .master-workbench-actions .button,
body.paid-report-page-open .master-workbench-actions a.button{
  min-inline-size: 0;
  min-block-size: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

body.paid-report-page-open .paid-report-disclosure,
body.paid-report-page-open .paid-report-module-card,
body.paid-report-page-open .master-workbench-section,
body.paid-report-page-open .master-workbench-stability-summary,
body.paid-report-page-open .master-workbench-privacy{
  scroll-margin-top: calc(74px + env(safe-area-inset-top));
}

body.paid-report-page-open .paid-report-disclosure summary,
body.paid-report-page-open .paid-report-module-card summary,
body.paid-report-page-open .master-workbench-section summary,
body.paid-report-page-open .master-workbench-stability-summary summary{
  min-block-size: 44px;
  touch-action: manipulation;
}

@media (max-width: 720px){
  body.paid-report-page-open .report-viewer-title strong{
    max-inline-size: calc(100vw - 182px);
  }

  body.paid-report-page-open .report-viewer-top-actions{
    gap: 0.35rem;
    max-inline-size: calc(100vw - 126px);
  }

  body.paid-report-page-open .report-viewer-top-actions .report-viewer-home-button,
body.paid-report-page-open .report-viewer-top-actions .report-viewer-account-button{
    max-inline-size: 5rem;
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }

  body.paid-report-page-open .paid-report-action-strip,
body.paid-report-page-open .paid-report-save-actions.paid-report-action-grid,
body.paid-report-page-open .paid-report-action-grid,
body.paid-report-page-open .master-workbench-actions{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-content: stretch;
    width: 100%;
  }

  body.paid-report-page-open .paid-report-action-grid .button,
body.paid-report-page-open .paid-report-action-grid a.button,
body.paid-report-page-open .paid-report-save-actions .button,
body.paid-report-page-open .paid-report-save-actions a.button,
body.paid-report-page-open .master-workbench-actions .button,
body.paid-report-page-open .master-workbench-actions a.button{
    inline-size: 100%;
    width: 100%;
  }
}


.toast{
  position: fixed !important;
  z-index: calc(var(--global-menu-z, 2147483000) - 4) !important;
  inset-inline-start: 50% !important;
  inset-block-end: calc(24px + var(--safe-bottom)) !important;
  max-inline-size: min(88vw, 460px) !important;
}


.module-strip > .receiver-first-action-inline{
  grid-column: 1 / -1;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
}

@media (max-width: 520px){
  .module-strip > .receiver-first-action-inline{
    flex: 0 0 100%;
    min-inline-size: 100%;
    scroll-snap-align: start;
  }
}



#globalMenuOverlay .app-menu-account-card[data-auth-menu-state="loading"],
#globalMenuOverlay .app-menu-account-card[data-auth-menu-state="unavailable"],
.app-menu-page .app-menu-account-card[data-auth-menu-state="loading"],
.app-menu-page .app-menu-account-card[data-auth-menu-state="unavailable"]{
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.app-menu-account-recovery-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 0.6rem;
  min-inline-size: 0;
}

.app-menu-account-recovery-actions .app-menu-link{
  justify-content: center;
  min-inline-size: 0;
  min-block-size: 44px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@media (max-width: 520px){
  .app-menu-account-recovery-actions{
    grid-template-columns: minmax(0, 1fr);
  }
}


     
     
                        
                     
 

.app-shell,
.screen,
.screen-scroll{
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.app-shell{
  width: 100%;
}


.top-bar > *,
.global-menu-head > *,
.global-menu-body > *{
  min-inline-size: 0;
}

#appMenuTrigger.app-menu-trigger{
  flex: 0 0 auto;
  min-inline-size: 44px;
  min-block-size: 44px;
}

#myPageModal.my-page-modal{
  inline-size: 100% !important;
  width: 100% !important;
  max-inline-size: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
#myPageModal .my-page-panel,
.report-pref-modal{
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

#myPageModal.my-page-modal.hidden,
#myPageModal.my-page-modal[aria-hidden="true"],
.report-pref-backdrop.hidden,
.report-pref-backdrop[aria-hidden="true"]{
  pointer-events: none !important;
}

.payment-pending-choice-card{
  display: grid;
  gap: 1rem;
  width: min(100%, 38rem);
  margin: 1rem auto 0;
  padding: clamp(1rem, 4vw, 1.35rem);
  border: 1px solid rgba(88, 117, 255, 0.18);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1rem 2.5rem rgba(31, 45, 89, 0.12);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.payment-pending-choice-copy{
  display: grid;
  gap: 0.65rem;
}

.payment-pending-choice-copy h3,
.payment-pending-cancel-copy h3{
  margin: 0;
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  line-height: 1.25;
  color: #151a32;
}

.payment-pending-choice-copy p,
.payment-pending-cancel-copy p{
  margin: 0;
  line-height: 1.55;
  color: #3f4866;
}

.payment-pending-choice-warning{
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(178, 101, 14, 0.22);
  background: rgba(255, 247, 232, 0.82);
  color: #74430a;
  font-weight: 700;
}

.payment-pending-choice-unavailable{
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(110, 119, 140, 0.2);
  background: rgba(246, 248, 252, 0.9);
  color: #59627a;
}

.payment-pending-choice-actions{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.65rem;
  align-items: stretch;
  min-inline-size: 0;
}

.payment-pending-choice-actions .button,
.payment-pending-cancel-actions .button{
  min-block-size: 44px;
  width: 100%;
  white-space: normal;
  touch-action: manipulation;
}

.button-destructive{
  border-color: rgba(220, 53, 69, 0.34);
  background: rgba(220, 53, 69, 0.08);
  color: #8a1c2b;
  box-shadow: none;
}

.button-destructive:hover,
.button-destructive:focus-visible{
  border-color: rgba(220, 53, 69, 0.52);
  background: rgba(220, 53, 69, 0.13);
  color: #741323;
}

html.is-payment-pending-cancel-open,
body.is-payment-pending-cancel-open{
  overflow: hidden;
}

.payment-pending-cancel-backdrop{
  position: fixed;
  inset: 0;
  z-index: var(--payment-recovery-modal-z, 2147482997);
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  background: rgba(15, 23, 42, 0.42);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  isolation: isolate;
}

.payment-pending-cancel-dialog{
  display: grid;
  gap: 1rem;
  width: min(100%, 32rem);
  max-height: calc(100dvh - 1.5rem);
  max-block-size: calc(100dvh - max(1.5rem, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 1.25rem);
  border: 1px solid rgba(31, 45, 89, 0.13);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.28);
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.payment-pending-cancel-copy{
  display: grid;
  gap: 0.65rem;
}

.payment-pending-cancel-safe-code{
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(246, 248, 252, 0.95);
  color: #59627a;
  font-size: 0.88rem;
}

.payment-pending-cancel-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  min-inline-size: 0;
}

.payment-pending-cancel-backdrop[aria-busy="true"] .button{
  cursor: wait;
}

@media (max-width: 520px){
  .payment-pending-choice-actions,
.payment-pending-cancel-actions{
    grid-template-columns: 1fr;
  }

  .payment-pending-cancel-backdrop{
    align-items: end;
  }

  .payment-pending-cancel-dialog{
    width: 100%;
    max-height: calc(100dvh - 1.5rem);
    border-radius: 1.35rem 1.35rem 0.9rem 0.9rem;
  }
}

.paid-report-actions .payment-pending-choice-card{
  flex: 1 1 100%;
}


.payment-fulfillment-shell[data-payment-unknown-state="true"] .unknown-state-detail-card{
  border-style: dashed;
}

.public-route-unknown-state .unknown-state-detail-card,
.compare-card-unknown-state.unknown-state-detail-card{
  border-style: dashed;
}

.unknown-state-detail-card{
  display: grid;
  gap: 0.75rem;
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.public-route-actions,
.compare-card-unknown-state .compare-cta-row{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.65rem;
  min-inline-size: 0;
  align-items: stretch;
}

.public-route-actions .button,
.public-route-actions a.button,
.compare-card-unknown-state .compare-cta-row .button,
.compare-card-unknown-state .compare-cta-row a.button{
  min-inline-size: 0;
  min-block-size: 44px;
  width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.public-route-status-detail{
  font-size: 0.85rem;
  line-height: 1.55;
  opacity: 0.82;
}

@media (max-width: 520px){
  .public-route-actions,
.compare-card-unknown-state .compare-cta-row{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================
   H029 paywall/payment scoped overflow and tap-target owner
   Keeps checkout/provider and pending-payment chrome out of unrelated
   result/share/recovery rescue groups while preserving current mobile sizes.
   ===================================================================== */
:is(#premiumPaywallWrapper, .premium-paywall-wrapper) :is(.paywall-box, .paywall-button-stack, .paywall-box [data-regional-variant-surface]),
:is(.report-pref-backdrop.payment-provider-backdrop, .report-pref-backdrop.paypal-checkout-backdrop) :is(.payment-provider-modal, .paypal-checkout-modal, .payment-provider-grid, .payment-provider-choice, .payment-provider-actions, .paypal-checkout-actions),
.paid-report-shell.payment-fulfillment-shell,
.payment-fulfillment-shell :is(.payment-pending-choice-card, .payment-pending-choice-actions),
.payment-pending-cancel-backdrop :is(.payment-pending-cancel-dialog, .payment-pending-cancel-actions){
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

:is(#premiumPaywallWrapper, .premium-paywall-wrapper) .paywall-button-stack .button,
:is(.report-pref-backdrop.payment-provider-backdrop, .report-pref-backdrop.paypal-checkout-backdrop) :is(.payment-provider-choice, .payment-provider-actions .button, .paypal-checkout-actions .button),
.payment-fulfillment-shell .payment-pending-choice-actions .button,
.payment-pending-cancel-backdrop .payment-pending-cancel-actions .button{
  min-block-size: 44px;
  max-inline-size: 100%;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@supports not (height: 100dvh){
  :is(.report-pref-backdrop.payment-provider-backdrop, .report-pref-backdrop.paypal-checkout-backdrop) :is(.payment-provider-modal, .paypal-checkout-modal),
  .payment-pending-cancel-backdrop .payment-pending-cancel-dialog{
    max-block-size: calc(100vh - 1.5rem);
  }
}

@media (max-width: 480px){
  :is(#premiumPaywallWrapper, .premium-paywall-wrapper) .paywall-button-stack,
  :is(.report-pref-backdrop.payment-provider-backdrop, .report-pref-backdrop.paypal-checkout-backdrop) :is(.payment-provider-grid, .payment-provider-actions, .paypal-checkout-actions),
  .payment-fulfillment-shell .payment-pending-choice-actions,
  .payment-pending-cancel-backdrop .payment-pending-cancel-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  :is(.report-pref-backdrop.payment-provider-backdrop, .report-pref-backdrop.paypal-checkout-backdrop) :is(.payment-provider-choice, .payment-provider-actions .button, .paypal-checkout-actions .button),
  .payment-fulfillment-shell .payment-pending-choice-actions .button,
  .payment-pending-cancel-backdrop .payment-pending-cancel-actions .button{
    inline-size: 100%;
    width: 100%;
  }
}

[data-regional-variant-surface],
.trust-preflight-body,
.onboarding-body[data-regional-variant-surface],
.scan-recovery-body[data-regional-variant-surface],
.scan-recovery-upload,
.scan-recovery-support{
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.animal-type-static-section,
.animal-type-conversion-rail{
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.animal-type-static-cta,
.animal-type-static-link,
.animal-type-conversion-action{
  min-block-size: 44px;
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}


/* H030 mobile radius ownership stays scoped to public social receiver surfaces. */
@media (max-width: 480px){
  :is(.public-receiver-next-action-rail, .post-result-invite-compare){
    border-radius: min(20px, 6vw);
  }
}

.scan-recovery-panel,
.scan-recovery-guide-grid,
.scan-recovery-guide,
.scan-recovery-quality,
.scan-recovery-upload,
.scan-recovery-support,
.scan-recovery-actions,
.result-conversion-panel,
.paid-report-pending-shell,
.paid-report-action-strip,
.report-processing-action-strip,
.animal-type-conversion-rail,
.animal-type-conversion-actions{
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.scan-recovery-actions .button,
.paid-report-action-strip .button,
.paid-report-action-strip a.button,
.animal-type-conversion-action{
  min-block-size: 44px;
  max-inline-size: 100%;
  min-inline-size: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.payment-pending-cancel-backdrop.hidden,
.payment-pending-cancel-backdrop[hidden],
.payment-pending-cancel-backdrop[aria-hidden="true"],
body:not(.is-payment-pending-cancel-open) .payment-pending-cancel-backdrop[aria-modal="true"]{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@supports not (height: 100dvh){
  #globalMenuOverlay .global-menu-inner{
    max-block-size: calc(100vh - 1.5rem);
  }
}



/* =====================================================================
   H028 paid report module/report-view CSS contract
   Scoped report-view chrome, recovery rails, master upload completion, and
   reopen/resume controls stay inside paid-report/report-view surfaces.
   ===================================================================== */
:is(body.paid-report-page-open, body.report-viewer-open) :is(.report-viewer-scroll, .paid-report-module-core, .paid-report-module-nav, .paid-report-module-stack, .paid-report-module-card, .paid-report-module-head, .paid-report-module-body, .paid-report-recovery-panel, .paid-report-recovery-actions, .private-report-reopen-rail, .private-report-reopen-card, .private-report-reopen-list, .private-report-reopen-actions, .master-resume-next-action-rail, .master-resume-next-action-meta, .master-resume-next-action-actions, .master-resume-next-action-primary-slot, .master-resume-next-action-secondary, .master-upload-completion-nudge, .master-upload-completion-nudge-actions, .master-workbench-shell, .returning-session-lifecycle-nudge, .returning-session-lifecycle-actions){
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

:is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-topbar{
  box-sizing: border-box;
  min-inline-size: 0;
  max-inline-size: 100%;
}

:is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-topbar > *{
  min-inline-size: 0;
}

:is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-menu-button.global-menu-button{
  flex: 0 0 auto;
  min-inline-size: 44px;
  min-block-size: 44px;
}

:is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-top-actions :is([data-report-viewer-home], [data-report-viewer-account], [data-report-viewer-close], .report-viewer-menu-button){
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 0;
  min-block-size: 44px;
  max-inline-size: 100%;
  pointer-events: auto;
  visibility: visible;
  touch-action: manipulation;
}

:is(body.paid-report-page-open, body.report-viewer-open) :is(.paid-report-recovery-actions .button, .paid-report-recovery-actions a.button, .private-report-reopen-actions .button, .private-report-reopen-actions a.button, .master-resume-next-action-actions .button, .master-resume-next-action-actions a.button, .master-upload-completion-nudge-actions .button, .master-workbench-actions .button, .returning-session-lifecycle-dismiss, .returning-session-lifecycle-actions .button, .returning-session-lifecycle-actions a.button){
  min-block-size: 44px;
  min-inline-size: 0;
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

@media (max-width: 720px){
  :is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-topbar{
    gap: 0.45rem;
    overflow-x: hidden;
  }

  :is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-title{
    flex: 1 1 0;
    min-inline-size: 0;
    max-inline-size: 100%;
  }

  :is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-title strong{
    max-inline-size: 100%;
  }

  :is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-top-actions{
    flex: 0 1 auto;
    flex-shrink: 1;
    min-inline-size: 0;
    max-inline-size: min(58vw, 13.5rem);
  }

  :is(body.paid-report-page-open, body.report-viewer-open) .report-viewer-top-actions :is([data-report-viewer-home], [data-report-viewer-account]){
    flex: 1 1 0;
    max-inline-size: 4.8rem;
  }
}

@media (max-width: 480px){
  :is(body.paid-report-page-open, body.report-viewer-open) :is(.paid-report-recovery-actions, .private-report-reopen-actions, .master-resume-next-action-secondary, .master-upload-completion-nudge-actions, .returning-session-lifecycle-actions){
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  :is(body.paid-report-page-open, body.report-viewer-open) :is(.paid-report-recovery-actions .button, .paid-report-recovery-actions a.button, .private-report-reopen-actions .button, .master-resume-next-action-actions .button, .returning-session-lifecycle-actions .button){
    inline-size: 100%;
    width: 100%;
  }

  :is(body.paid-report-page-open, body.report-viewer-open) :is(.paid-report-recovery-panel, .private-report-reopen-rail, .master-resume-next-action-rail, .returning-session-lifecycle-nudge){
    border-radius: min(20px, 6vw);
  }
}

#startButton:focus-visible,
#shareResultButton:focus-visible,
#copyShareUrlButton:focus-visible,
#buyPremiumButton:focus-visible,
#buyMasterButton:focus-visible,
#restartButton:focus-visible,
#downloadButton:focus-visible,
#downloadAnalysisButton:focus-visible,
[data-report-cta]:focus-visible,
[data-payment-provider]:focus-visible,
[data-payment-provider-cancel]:focus-visible,
[data-payment-pending-continue]:focus-visible,
[data-payment-pending-cancel-open]:focus-visible,
[data-payment-pending-cancel-close]:focus-visible,
[data-payment-pending-cancel-confirm]:focus-visible,
[data-payment-state-refresh]:focus-visible,
[data-payment-retry]:focus-visible,
[data-payment-switch-provider]:focus-visible,
[data-payment-open-report]:focus-visible,
[data-payment-return-to-result]:focus-visible,
[data-payment-contact-support]:focus-visible,
[data-paid-report-action]:focus-visible,
[data-master-upload-open]:focus-visible,
[data-master-upload-recovery-action]:focus-visible,
[data-master-resume-next-action]:focus-visible,
[data-share-privacy-confirm-accept]:focus-visible,
[data-share-privacy-confirm-cancel]:focus-visible,
[data-share-privacy-confirm-close]:focus-visible,
[data-public-receiver-action]:focus-visible,
[data-public-result-retry]:focus-visible,
[data-receiver-scan-cta]:focus-visible,
[data-receiver-compare-cta]:focus-visible,
[data-compare-recap-action]:focus-visible,
#globalMenuOverlay .app-menu-link:focus-visible,
#globalMenuOverlay .global-menu-close:focus-visible{
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.payment-provider-modal:focus,
.payment-pending-cancel-dialog:focus,
.share-privacy-confirm-panel:focus,
#masterUploadDialog:focus,
#globalMenuOverlay .global-menu-inner:focus{
  outline: none;
}



/* =====================================================================
   H021 landing/logo/hero/CTA/footer-slot owner layer
   Owner: landing shell, logo hero, landing CTA row, and footer-slot box
   metrics. This layer replaces earlier landing entries in base/rescue
   groups; only the scoped mobile/print contexts below may override it.
   ===================================================================== */
.landing-shell{
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding:
    calc(88px + var(--safe-top))
    calc(22px + var(--safe-right))
    calc(32px + var(--safe-bottom))
    calc(22px + var(--safe-left));
  display: grid;
  gap: 16px;
}

.landing-shell-minimal{
  min-height: 100%;
  align-content: space-between;
}

.landing-brand-mark{
  display: block;
  width: 100%;
  height: auto;
  max-width: 220px;
  margin: 0 auto;
  animation: floatSoft 4.2s ease-in-out infinite;
}

.landing-top-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-hero{
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-hero-16{
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 1.06fr);
}

.landing-hero-minimal{
  grid-template-columns: 1fr;
  align-items: center;
}

.landing-hero-copy{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
  padding: 24px 20px 24px 24px;
  background: #ffffff;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.landing-hero-copy::before{
  content: none;
  display: none;
}

.landing-hero-copy-16{
  min-height: 520px;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 48px);
}

.landing-hero-copy-minimal{
  max-width: 760px;
  gap: 18px;
}

.landing-title{
  margin: 12px 0 4px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.06em;
  color: var(--text);
  font-weight: 700;
}

.landing-hero-copy-16 .landing-title{
  margin-top: 16px;
  font-size: clamp(50px, 9.4vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.085em;
}

.landing-hero-copy-minimal .landing-title{
  margin-bottom: 0;
}

.landing-title.landing-logo-title,
.landing-hero-copy-16 .landing-title.landing-logo-title{
  font-size: 0;
  line-height: 1;
  letter-spacing: 0;
}

.logo-16-faces-picture{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  line-height: 0;
  vertical-align: -0.12em;
}

.logo-16-faces-picture img{
  display: block;
  width: auto;
  max-width: 100%;
  height: 0.92em;
  object-fit: contain;
}

.landing-logo-title .logo-16-faces-picture,
.logo-16-faces-landing{
  width: min(72vw, 430px);
}

.landing-logo-title .logo-16-faces-picture img,
.logo-16-faces-landing img{
  width: 100%;
  height: auto;
}

.landing-hook{
  margin: 0;
  color: var(--text);
  font-size: clamp(16px, 2.7vw, 19px);
  line-height: 1.65;
}

.landing-proof{
  max-width: 100%;
  min-width: 0;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.landing-hero-copy-16 .landing-hook{
  max-width: 620px;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.035em;
}

.landing-hero-copy-minimal .landing-hook{
  max-width: 640px;
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.78;
}

.landing-hero-copy-16 .landing-proof{
  max-width: 620px;
  margin-top: 12px;
  font-size: 15px;
}

.landing-cta-row-16{
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.landing-cta-row-minimal{
  margin-top: 2px;
}

.landing-start-button{
  width: 100%;
  margin-top: auto;
}

.landing-cta-row-16 .landing-start-button{
  margin-top: 0;
  min-height: 58px;
  font-size: 16px;
}

.landing-archive-note{
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer-slot{
  min-height: 1px;
}

@media (prefers-reduced-motion: reduce){
  .landing-brand-mark{
    animation: none;
  }
}

@media (max-width: 1100px){
  .landing-hero,
  .landing-hero-16{
    grid-template-columns: 1fr;
  }

  .landing-hero-copy-16{
    min-height: auto;
  }
}

@media (max-width: 860px){
  .landing-hero-copy{
    border-radius: 28px;
  }
}

@media (max-width: 680px){
  .landing-shell-minimal,
  .landing-hero-minimal{
    gap: 18px;
  }

  .landing-hero-copy-16{
    padding: 24px 20px;
  }

  .landing-hero-copy-16 .landing-title{
    font-size: clamp(46px, 16vw, 68px);
  }

  .landing-logo-title .logo-16-faces-picture,
  .logo-16-faces-landing{
    width: min(78vw, 340px);
  }
}

@media (max-width: 640px){
  .landing-shell{
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }

  .landing-top-row{
    flex-direction: column;
    align-items: stretch;
  }

  .landing-hero-copy{
    padding: 20px;
  }
}

@media (max-width: 420px){
  .landing-title{
    font-size: 34px;
  }
}

@media print{
  .site-footer-slot{
    display: none;
  }
}

/* =====================================================================
   H012/H013 language typography owner layer
   Owner: language label box metrics only. Keeps native autonyms on one
   unclipped baseline without changing the H003/H004 header/menu alignment.
   H013 note: this is the single broad typography owner; the final scoped
   H007 block below remains the landing/mobile source-order owner.
   H020 note: language labels keep uncapped inline metrics; responsive changes
   may adjust shell chrome, but not current/option text clipping.
   ===================================================================== */
.page-language-trigger,
.landing-language-trigger{
  min-height: 44px;
  min-block-size: 44px;
  block-size: auto;
  padding-block: 6px;
  overflow: visible;
  line-height: 1.45;
}

.page-language-current,
.landing-language-current{
  display: inline-flex;
  align-items: center;
  max-width: none;
  max-inline-size: none;
  min-block-size: 1.45em;
  block-size: auto;
  padding-block: 0.08em 0.12em;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  line-height: 1.45;
}

.page-language-option,
.landing-language-switch-button,
.app-menu-language-button{
  min-height: 42px;
  min-block-size: 42px;
  block-size: auto;
  padding-block: 7px;
  overflow: visible;
  white-space: nowrap;
  line-height: 1.45;
}

/* =====================================================================
   H003/H007/H013 mobile top-bar production-baseline owner layer
   H019 app shell/header/global-menu consolidation: top-bar row alignment,
   global menu overlay geometry, and icon-button tap sizing are owned here
   after the base menu block above supplies shared shell dimensions.
   H007 CSS owner-layer containment map:
   - app shell/top-bar owner: .app-shell[data-scene="landing"] .top-bar.
   - language switch owner: .top-language-switch-wrap plus .page-language-*.
   - landing owner: .landing-shell base layout, with legacy .landing-language-*
     hidden only inside .app-shell[data-scene="landing"].
   - transient pre-scan owner: H022 block owns loading, onboarding, and analysis journey chrome.
   - scan capture owner: H023 owns preview viewport chrome, bottom-panel-refit,
     scan-live-card, metric/progress/meter presentation, and keeps app.js inline
     geometry limited to sanitized runtime video/canvas/viewport coordinates.
   - result owner: result/report shelf rules stay in the result section above.
   - public social owner: .public-snapshot-fallback, .guess-page, .compare-page,
     .share-privacy-confirm-dialog, and .public-receiver-next-action-rail
     own public share/guess/compare/receiver CSS; only .button and
     .report-keyword result primitives are intentionally reused.
   - paywall/payment owner: #premiumPaywallWrapper, provider checkout backdrops,
     paypal checkout shell, payment-pending cancel dialog, and payment fulfillment
     shell; H029 keeps these out of mixed rescue groups without provider logic changes.
   - H031 overlay/footer/legal/auth/menu z-index map: --global-menu-z sits
     below --legal-modal-z and --my-page-modal-z; html/body open-state
     classes own scroll locks while panels own internal scrolling.
   - paid-report owner: body.paid-report-page-open and #doneScreen.is-paid-report-page;
     H028 scopes report-view chrome, paid modules, recovery, master upload,
     and reopen rail touch/overflow seams to paid-report/report-view surfaces.
   - mobile overrides owner: this final scoped block controls marker removal,
     current-label no-wrap behavior, and right-aligned language/menu actions.
   Duplicate selector policy: global tokens/base now live in H013 owner layers;
   remaining header/language duplicates are limited to base, media, state, and
   typography owner seams. H020 scopes responsive shell chrome away from the
   current-label width contract. Do not add broad *, body *, or body :is(...) rescue
   selectors in this owner layer.
   ===================================================================== */
.app-shell[data-scene="landing"] .top-bar{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  overflow: visible;
}

.app-shell[data-scene="landing"] .top-language-switch-wrap{
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-inline-size: max-content;
  margin-left: auto;
}

.app-shell[data-scene="landing"] .page-language-dropdown{
  flex: 0 0 auto;
  min-inline-size: max-content;
}

.app-shell[data-scene="landing"] summary.page-language-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-block-size: 44px;
  min-inline-size: max-content;
  max-inline-size: calc(100vw - 76px - var(--safe-left, 0px) - var(--safe-right, 0px));
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  list-style: none;
  appearance: none;
  -webkit-appearance: none;
}

.app-shell[data-scene="landing"] summary.page-language-trigger::marker{
  content: "";
  font-size: 0;
}

.app-shell[data-scene="landing"] summary.page-language-trigger::-webkit-details-marker{
  display: none;
}

.app-shell[data-scene="landing"] .page-language-current{
  display: inline-block;
  flex: 0 0 auto;
  min-inline-size: max-content;
  max-inline-size: none;
  white-space: nowrap;
  overflow: visible;
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.45;
  text-overflow: clip;
}

.app-shell[data-scene="landing"] #globalMenuButton.global-menu-button{
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
}

.app-shell[data-scene="landing"] #authStatusBar.auth-status-bar:empty,
.app-shell[data-scene="landing"] #authStatusBar.auth-status-bar[data-auth-state="loading"]{
  display: none;
}

.app-shell[data-scene="landing"] .landing-language-switch-wrap,
.app-shell[data-scene="landing"] #landingLanguageSwitch{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.app-shell[data-scene="landing"] #landingLanguageTrigger,
.app-shell[data-scene="landing"] #landingLanguageMenu{
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


#doneScreen.free-result-compact-surface .share-privacy-badge-card,
#doneScreen.free-result-compact-surface .share-url-inline[data-free-result-actions-relocated="true"]{
  display: none !important;
}

#doneScreen.free-result-compact-surface .result-collectible-grid{
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1.26fr);
  gap: 16px;
}

#doneScreen.free-result-compact-surface .collectible-badge-art,
#doneScreen.free-result-compact-surface .collectible-copy{
  gap: 10px;
}

#doneScreen.free-result-compact-surface .collectible-portrait-shell{
  min-height: clamp(240px, 64vw, 360px);
}

#doneScreen.free-result-compact-surface .free-report-compact-shell{
  gap: 14px;
}

/* I327 friend/social loop retention: compact free result keeps a secondary public-card invite. */
#doneScreen.free-result-compact-surface .viral-cta-block--compact{
  grid-template-columns: minmax(0, 1fr);
  padding: 10px;
  border-radius: 22px;
}

#doneScreen.free-result-compact-surface .viral-cta-card--compact{
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 14px;
}

#doneScreen.free-result-compact-surface .viral-cta-card--compact > .viral-cta-copy:first-child{
  grid-column: 1 / -1;
}

#doneScreen.free-result-compact-surface .viral-cta-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

#doneScreen.free-result-compact-surface .viral-cta-actions .viral-cta-button{
  grid-column: auto;
  inline-size: 100%;
  max-inline-size: 100%;
  min-height: 36px;
}

#doneScreen.free-result-compact-surface .viral-cta-card--compact.is-disabled .viral-cta-button,
#doneScreen.free-result-compact-surface .viral-cta-actions .viral-cta-button.is-disabled{
  border-color: rgba(33, 37, 41, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-faint, #6c757d);
}

@media (max-width: 420px){
  #doneScreen.free-result-compact-surface .viral-cta-actions{
    grid-template-columns: minmax(0, 1fr);
  }
}

#doneScreen.free-result-compact-surface #resultAuraRadar{
  display: grid;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas{
  display: block;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .faces64-atlas{
  gap: 12px;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .faces64-atlas-head{
  gap: 8px;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .faces64-atlas-title{
  font-size: 18px;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .faces64-atlas-hint{
  font-size: 12px;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .faces64-detail-note{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .face16-detail-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

#doneScreen.free-result-compact-surface #resultTypeAtlas .face16-detail-tags::-webkit-scrollbar{
  display: none;
}

#doneScreen.free-result-compact-surface .premium-paywall-wrapper{
  min-height: auto;
}

#doneScreen.free-result-compact-surface .paywall-box-sample{
  margin-top: 0;
  padding: 20px 16px;
  gap: 10px;
}

#doneScreen.free-result-compact-surface .paywall-mini-list{
  display: none !important;
}

#doneScreen.free-result-compact-surface .cta-utility-row{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#doneScreen.free-result-compact-surface .cta-utility-row #downloadButton{
  display: inline-flex !important;
}

#doneScreen.free-result-compact-surface .cta-utility-row #downloadAnalysisButton{
  display: none !important;
}

@media (max-width: 760px){
  #doneScreen.free-result-compact-surface .result-collectible-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #doneScreen.free-result-compact-surface .collectible-portrait-shell{
    min-height: clamp(220px, 72vw, 320px);
  }
}

/* I335 mobile density: preserve core free-result surfaces while fitting hero + first action above fold. */
#doneScreen.free-result-compact-surface{
  overflow-x: hidden;
  overflow-y: auto;
}

#doneScreen.free-result-compact-surface .result-stage-v3{
  align-content: start;
}

@media (max-width: 760px){
  #doneScreen.free-result-compact-surface .result-stage-v3{
    gap: 10px;
    padding-top: calc(66px + var(--safe-top));
    padding-right: calc(12px + var(--safe-right));
    padding-bottom: calc(24px + var(--safe-bottom));
    padding-left: calc(12px + var(--safe-left));
  }

  #doneScreen.free-result-compact-surface .result-header-v3{
    gap: 8px;
  }

  #doneScreen.free-result-compact-surface .result-header-copy{
    display: grid;
    gap: 6px;
    max-width: 100%;
  }

  #doneScreen.free-result-compact-surface #doneTitle{
    margin: 0;
    font-size: clamp(23px, 7vw, 31px);
    line-height: 1.08;
  }

  #doneScreen.free-result-compact-surface #doneSummary{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.45;
  }

  #doneScreen.free-result-compact-surface .free-result-primary-actions{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-width: 100%;
    margin: 6px 0 8px;
  }

  #doneScreen.free-result-compact-surface .free-result-primary-action{
    min-height: 42px;
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.15;
  }

  #doneScreen.free-result-compact-surface .free-result-primary-actions .free-result-share-reassurance{
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.3;
  }

  #doneScreen.free-result-compact-surface .free-result-primary-actions .free-result-share-reassurance span{
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #doneScreen.free-result-compact-surface .result-hero-panel-v3{
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  #doneScreen.free-result-compact-surface .result-card-meta-row{
    gap: 6px;
  }

  #doneScreen.free-result-compact-surface .result-badge-row{
    gap: 6px;
    max-height: 32px;
    overflow: hidden;
  }

  #doneScreen.free-result-compact-surface .result-collectible-grid{
    grid-template-columns: minmax(116px, 0.45fr) minmax(0, 0.55fr);
    align-items: center;
    gap: 10px;
  }

  #doneScreen.free-result-compact-surface .collectible-badge-art,
  #doneScreen.free-result-compact-surface .collectible-copy{
    gap: 8px;
  }

  #doneScreen.free-result-compact-surface .collectible-portrait-shell{
    min-height: clamp(142px, 42vw, 208px);
  }

  #doneScreen.free-result-compact-surface .collectible-copy .panel-label{
    font-size: 11px;
    line-height: 1.2;
  }

  #doneScreen.free-result-compact-surface .result-title{
    font-size: clamp(20px, 6vw, 27px);
    line-height: 1.08;
  }

  #doneScreen.free-result-compact-surface .result-desc,
  #doneScreen.free-result-compact-surface .result-quote{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #doneScreen.free-result-compact-surface .result-desc{
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.45;
  }

  #doneScreen.free-result-compact-surface .result-quote{
    -webkit-line-clamp: 2;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.4;
  }

  #doneScreen.free-result-compact-surface .result-tag-row{
    flex-wrap: wrap;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  #doneScreen.free-result-compact-surface .result-tag{
    max-width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 4px 9px;
    font-size: 11px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #doneScreen.free-result-compact-surface .result-type-mode-row{
    gap: 6px;
  }

  #doneScreen.free-result-compact-surface .result-type-mode-row .mode-pill,
  #doneScreen.free-result-compact-surface .result-type-mode-row .confidence-pill{
    min-height: 28px;
    padding: 5px 9px;
    font-size: 11px;
  }

  #doneScreen.free-result-compact-surface .module-strip{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #doneScreen.free-result-compact-surface .module-strip::-webkit-scrollbar{
    display: none;
  }

  #doneScreen.free-result-compact-surface .module-blob{
    flex: 0 0 128px;
    min-height: 84px;
    padding: 10px;
    scroll-snap-align: start;
  }

  #doneScreen.free-result-compact-surface .free-report-compact-shell{
    gap: 12px;
  }

  #doneScreen.free-result-compact-surface #resultTypeAtlas,
  #doneScreen.free-result-compact-surface .viral-cta-block--compact,
  #doneScreen.free-result-compact-surface .premium-paywall-wrapper{
    scroll-margin-top: calc(70px + var(--safe-top));
  }
}

@media (max-width: 420px){
  #doneScreen.free-result-compact-surface .result-stage-v3{
    gap: 9px;
    padding-top: calc(60px + var(--safe-top));
  }

  #doneScreen.free-result-compact-surface .free-result-primary-actions{
    gap: 5px;
  }

  #doneScreen.free-result-compact-surface .free-result-primary-action{
    min-height: 40px;
    padding-inline: 4px;
    font-size: 11px;
  }

  #doneScreen.free-result-compact-surface .result-collectible-grid{
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 0.58fr);
    gap: 8px;
  }

  #doneScreen.free-result-compact-surface .collectible-portrait-shell{
    min-height: clamp(130px, 40vw, 172px);
  }

  #doneScreen.free-result-compact-surface .result-animal-single-name{
    font-size: clamp(16px, 5vw, 20px);
  }

  #doneScreen.free-result-compact-surface .result-animal-single-signature{
    max-width: 100%;
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
  }
}


/* =====================================================================
   I357 free-result card rhythm owner
   Scoped to #doneScreen result cards and immediate result-panel shells only.
   Public type, legal, scanner, payment, and paid-report surfaces are excluded
   by host selector rather than broad shared card selectors.
   ===================================================================== */
#doneScreen:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3,
#doneScreen:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell{
  gap: 16px;
}

#doneScreen:not(.is-paid-report-page) :is(
  .result-hero-panel.result-hero-panel-v3,
  #analysisResultPanels.result-panels-v3 > .result-story-card,
  #analysisResultPanels.result-panels-v3 > .viral-cta-block,
  #analysisResultPanels.result-panels-v3 > .post-result-invite-compare,
  #analysisResultPanels.result-panels-v3 > .free-result-paid-cta-boundary,
  #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .result-story-card,
  #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .viral-cta-block,
  #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .free-result-paid-cta-boundary,
  #resultEvidenceTrustBlock.result-evidence-trust-block > .result-evidence-strip,
  #resultEvidenceTrustBlock.result-evidence-trust-block .result-certainty-band-card
){
  background: #ffffff;
  background-image: none;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
}

#doneScreen:not(.is-paid-report-page) :is(
  .result-hero-panel.result-hero-panel-v3,
  #analysisResultPanels.result-panels-v3 > .result-story-card,
  #analysisResultPanels.result-panels-v3 > .viral-cta-block,
  #analysisResultPanels.result-panels-v3 > .post-result-invite-compare,
  #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .result-story-card,
  #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .viral-cta-block,
  #resultEvidenceTrustBlock.result-evidence-trust-block > .result-evidence-strip,
  #resultEvidenceTrustBlock.result-evidence-trust-block .result-certainty-band-card
){
  gap: 16px;
  padding: 16px;
}

#doneScreen:not(.is-paid-report-page) :is(
  #analysisResultPanels.result-panels-v3 > .free-result-paid-cta-boundary,
  #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .free-result-paid-cta-boundary
){
  padding: 16px;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-boundary .paywall-box-sample{
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#doneScreen:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 :is(.viral-cta-card, .result-evidence-card){
  background: #f8f9fa;
  background-image: none;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  box-shadow: none;
}

@media (max-width: 760px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell{
    gap: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) :is(
    .result-hero-panel.result-hero-panel-v3,
    #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .result-story-card,
    #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .viral-cta-block,
    #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .free-result-paid-cta-boundary,
    #resultEvidenceTrustBlock.result-evidence-trust-block > .result-evidence-strip,
    #resultEvidenceTrustBlock.result-evidence-trust-block .result-certainty-band-card
  ){
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }
}

/* =====================================================================
   I295 public type compact mobile document owner
   The dedicated public type route uses normal document flow and one scoped
   result-card presentation. Root application screens retain their fixed
   viewport, absolute-screen, card, scanner, result, payment, and report CSS.
   ===================================================================== */
body.public-type-page{
  overflow-x: visible;
  overflow-y: auto;
}

body.public-type-page .app-shell{
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

body.public-type-page #landingScreen{
  position: relative;
  inset: auto;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
}

body.public-type-page [data-public-type-shell]::before,
body.public-type-page [data-public-type-shell]::after{
  display: none;
}

body.public-type-page [data-public-type-header]{
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  min-height: 0;
  padding:
    calc(10px + var(--safe-top))
    calc(16px + var(--safe-right))
    6px
    calc(16px + var(--safe-left));
}

body.public-type-page [data-public-type-content] .landing-shell{
  width: min(760px, 100%);
  min-height: 0;
  padding:
    4px
    calc(16px + var(--safe-right))
    calc(24px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  gap: 16px;
  align-content: start;
}

body.public-type-page [data-public-type-content] .landing-shell > picture:first-child,
body.public-type-page [data-public-type-content] .landing-top-row{
  display: none;
}

body.public-type-page .animal-type-static-section{
  width: 100%;
  margin: 0 auto;
  padding: 0;
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body.public-type-page [data-public-type-result-card]{
  width: 100%;
  margin: 0;
  padding: 18px;
  gap: 0;
  overflow: visible;
  border: 1px solid #d6e3f3;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(33, 37, 41, 0.08);
}

body.public-type-page [data-public-type-result-card] .result-collectible-grid{
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.public-type-page [data-public-type-result-card] .result-animals-hero.result-animals-hero-single{
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 7px;
}

body.public-type-page [data-public-type-result-card] .result-animals-hero-kicker{
  color: var(--brand-strong) !important;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

body.public-type-page [data-public-type-result-card] .result-animal-single-art{
  width: clamp(198px, 64vw, 260px);
  min-width: 0;
  max-width: 100%;
}

body.public-type-page [data-public-type-result-card] .result-animal-single-art .animal-illustration-result-hero{
  width: 100%;
  max-width: none;
}

body.public-type-page [data-public-type-result-card] .result-animal-single-art .animal-illustration-image{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

body.public-type-page [data-public-type-result-card] .result-animal-single-name{
  display: none;
}

body.public-type-page [data-public-type-result-card] .animal-type-static-copy{
  gap: 12px;
  justify-items: stretch;
  text-align: left;
}

body.public-type-page [data-public-type-result-card] .animal-type-static-copy h1{
  max-width: 18ch;
  margin: 0;
  font-size: clamp(28px, 8.2vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

body.public-type-page [data-public-type-result-card] [data-public-type-summary]{
  max-width: 60ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.62;
  text-align: left;
}

body.public-type-page [data-public-type-result-card] .animal-type-static-keywords{
  justify-items: start;
  gap: 0;
  text-align: left;
}

body.public-type-page [data-public-type-result-card] .animal-type-static-keywords div{
  justify-content: flex-start;
  gap: 6px;
}

body.public-type-page [data-public-type-result-card] .animal-type-static-keywords span{
  min-height: 28px;
  padding: 4px 9px;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.25;
}

body.public-type-page [data-public-type-result-card] .animal-type-static-cta{
  width: 100%;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.35;
}

body.public-type-page .animal-type-static-related{
  gap: 8px;
  justify-items: start;
  text-align: left;
}

body.public-type-page .animal-type-static-related strong{
  color: var(--text-muted, var(--text-soft));
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

body.public-type-page .animal-type-static-related div{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
}

body.public-type-page .animal-type-static-related .animal-type-static-link{
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

body.public-type-page [data-public-type-footer]{
  width: 100%;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

body.public-type-page [data-public-type-footer] .app-menu-card{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.public-type-page [data-public-type-footer] .app-menu-card > span{
  flex: 1 0 100%;
  text-align: center;
  font-size: 10px;
  line-height: 1.3;
}

body.public-type-page [data-public-type-footer] .app-menu-link{
  width: auto;
  min-height: 40px;
  padding: 0 10px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 359px){
  body.public-type-page [data-public-type-header]{
    padding-right: calc(12px + var(--safe-right));
    padding-left: calc(12px + var(--safe-left));
  }

  body.public-type-page [data-public-type-content] .landing-shell{
    padding-right: calc(12px + var(--safe-right));
    padding-left: calc(12px + var(--safe-left));
  }

  body.public-type-page [data-public-type-result-card]{
    padding: 16px;
  }

  body.public-type-page [data-public-type-result-card] .result-animal-single-art{
    width: clamp(196px, 65vw, 214px);
  }
}

@media (min-width: 700px){
  body.public-type-page [data-public-type-header]{
    padding-right: calc(24px + var(--safe-right));
    padding-left: calc(24px + var(--safe-left));
  }

  body.public-type-page [data-public-type-content] .landing-shell{
    padding-right: calc(24px + var(--safe-right));
    padding-left: calc(24px + var(--safe-left));
  }

  body.public-type-page [data-public-type-result-card]{
    padding: 24px;
    border-radius: 28px;
  }

  body.public-type-page [data-public-type-result-card] .result-collectible-grid{
    grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: center;
  }

  body.public-type-page [data-public-type-result-card] .result-animals-hero.result-animals-hero-single{
    align-content: center;
  }

  body.public-type-page [data-public-type-result-card] .result-animal-single-art{
    width: min(100%, 280px);
  }

  body.public-type-page [data-public-type-result-card] .animal-type-static-copy h1{
    font-size: 34px;
  }

  body.public-type-page [data-public-type-result-card] [data-public-type-summary]{
    font-size: 16px;
  }
}

/* I326 free-result primary action row: share/copy/save/scan remain visible together. */
#doneScreen .free-result-primary-actions{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 760px;
  margin: 12px 0 18px;
}

#doneScreen .free-result-primary-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

#doneScreen .free-result-primary-action--primary{
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.16);
}

#doneScreen .share-action-stack[data-free-result-actions-relocated="true"]{
  display: none !important;
}

#doneScreen .share-url-inline[data-free-result-actions-relocated="true"]{
  display: none !important;
}

#doneScreen.free-result-compact-surface .free-result-primary-actions{
  display: grid !important;
}

#doneScreen.free-result-compact-surface .free-result-primary-actions :is(#shareResultButton, #copyShareUrlButton, #downloadButton, #restartButton){
  display: inline-flex !important;
  visibility: visible !important;
}

#doneScreen .free-result-primary-actions .free-result-share-reassurance{
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 6px 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 0.76rem;
  line-height: 1.4;
}

#doneScreen .free-result-primary-actions .free-result-share-reassurance strong{
  white-space: nowrap;
}

#doneScreen .free-result-primary-actions .free-result-share-reassurance span{
  min-width: 0;
}

@media (max-width: 760px){
  #doneScreen .free-result-primary-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px){
  #doneScreen .free-result-primary-actions{
    gap: 8px;
  }

  #doneScreen .free-result-primary-action{
    min-height: 46px;
    padding-inline: 10px;
  }
}

/* I358 free-result button system owner: normalize share/copy/save/rescan/social/paid CTA controls. */
#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action,
  #shareResultButton.button-share,
  #copyShareUrlButton.button-copy,
  #restartButton.button-secondary,
  #downloadButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-actions .button,
  #premiumPaywallWrapper .paywall-button-stack .button,
  #buyPremiumButton.button-upgrade-primary,
  #buyMasterButton.button-upgrade-secondary
){
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-block-size: 44px;
  padding: 0 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #ffffff;
  color: #212529;
  box-shadow: none;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

#doneScreen:not(.is-paid-report-page) :is(
  #shareResultButton.free-result-primary-action--primary,
  #shareResultButton.button-share:not(.free-result-primary-action--secondary),
  #buyPremiumButton.button-upgrade-primary,
  #premiumPaywallWrapper .paywall-button-stack .button-upgrade-primary,
  .free-result-paid-cta-primary
){
  border-color: #0d6efd;
  background: #0d6efd;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.16);
}

#doneScreen:not(.is-paid-report-page) :is(
  #shareResultButton.free-result-primary-action--primary,
  #shareResultButton.button-share:not(.free-result-primary-action--secondary),
  #buyPremiumButton.button-upgrade-primary,
  #premiumPaywallWrapper .paywall-button-stack .button-upgrade-primary,
  .free-result-paid-cta-primary
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: #0a58ca;
  background: #0a58ca;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.18);
}

#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action--secondary,
  [data-free-result-primary-action="save-card"],
  [data-free-result-primary-action="scan-again"],
  #downloadButton.button-secondary,
  #restartButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-secondary,
  #buyMasterButton.button-upgrade-secondary,
  #premiumPaywallWrapper .paywall-button-stack .button-upgrade-secondary
),
#doneScreen:not(.is-paid-report-page) .viral-cta-card.is-active .viral-cta-button:not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: #9ec5fe;
  background: #ffffff;
  color: #0a58ca;
  box-shadow: none;
}

#doneScreen:not(.is-paid-report-page) .post-result-invite-button.button-primary:not(:disabled):not([aria-disabled="true"]){
  border-color: #9ec5fe !important;
  background: #ffffff !important;
  color: #0a58ca !important;
  box-shadow: none !important;
}

#doneScreen:not(.is-paid-report-page) .post-result-invite-button.button-primary:is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: #6ea8fe !important;
  background: #e7f1ff !important;
  color: #084298 !important;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.10) !important;
}

#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action--secondary,
  [data-free-result-primary-action="save-card"],
  [data-free-result-primary-action="scan-again"],
  #downloadButton.button-secondary,
  #restartButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-secondary,
  #buyMasterButton.button-upgrade-secondary,
  #premiumPaywallWrapper .paywall-button-stack .button-upgrade-secondary
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled),
#doneScreen:not(.is-paid-report-page) .viral-cta-card.is-active .viral-cta-button:is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: #6ea8fe;
  background: #e7f1ff;
  color: #084298;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.10);
}

#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action,
  #shareResultButton.button-share,
  #copyShareUrlButton.button-copy,
  #restartButton.button-secondary,
  #downloadButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-actions .button,
  #premiumPaywallWrapper .paywall-button-stack .button,
  #buyPremiumButton.button-upgrade-primary,
  #buyMasterButton.button-upgrade-secondary
):focus-visible{
  outline: 2px solid rgba(13, 110, 253, 0.18);
  outline-offset: 2px;
}

#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action,
  #shareResultButton.button-share,
  #copyShareUrlButton.button-copy,
  #restartButton.button-secondary,
  #downloadButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-actions .button,
  #premiumPaywallWrapper .paywall-button-stack .button,
  #buyPremiumButton.button-upgrade-primary,
  #buyMasterButton.button-upgrade-secondary
):is(:disabled, [aria-disabled="true"], .is-disabled){
  border-color: var(--line) !important;
  background: #f8f9fa !important;
  color: var(--text-soft) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.76;
  text-decoration: none;
}

/* I363 share/save action row UI normalization: share and card-save stay prominent, copy remains a touch-safe quiet action. */
#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"]{
  grid-template-columns: minmax(156px, 1.18fr) minmax(144px, 1.08fr) minmax(112px, 0.92fr) minmax(116px, 0.92fr);
  gap: 10px 12px;
  align-items: stretch;
  max-width: 100%;
  margin: 6px 0 14px;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton){
  min-height: 46px;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] [data-free-result-action-priority="primary"]{
  order: 1;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] [data-free-result-primary-action="save-card"]{
  order: 2;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] [data-free-result-primary-action="copy-link"]{
  order: 3;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] [data-free-result-primary-action="scan-again"]{
  order: 4;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] .free-result-share-reassurance{
  order: 5;
}

#doneScreen:not(.is-paid-report-page) :is(
  [data-free-result-primary-action="copy-link"],
  #copyShareUrlButton.button-copy
),
#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is([data-free-result-action-variant="quiet"], .free-result-primary-action--quiet){
  border-color: transparent;
  background: transparent;
  color: #0a58ca;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#doneScreen:not(.is-paid-report-page) :is(
  [data-free-result-primary-action="copy-link"],
  #copyShareUrlButton.button-copy
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled),
#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is([data-free-result-action-variant="quiet"], .free-result-primary-action--quiet):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: #cfe2ff;
  background: #e7f1ff;
  color: #084298;
  box-shadow: none;
}

@media (max-width: 760px){
  #doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 6px 0 12px;
  }

  #doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton),
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton){
    min-height: 44px;
    min-block-size: 44px;
    padding-inline: 10px;
    font-size: 12px;
    line-height: 1.2;
  }
}

@media (max-width: 420px){
  #doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton),
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton){
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
  }
}


/* I364 friend guess/compare UI normalization: public snapshot-only social loop card and action tokens. */
:is(
  .post-result-invite-compare,
  .viral-cta-card,
  .guess-card,
  .guess-summary,
  .compare-card,
  .compare-recap-card,
  .compare-invitation-artifact,
  .public-receiver-next-action-rail.receiver-first-action,
  .public-receiver-next-action-rail.receiver-first-action-inline
){
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-wrap: anywhere;
  background: #ffffff;
  background-image: none;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
}

:is(
  .post-result-invite-compare,
  .viral-cta-card,
  .guess-card,
  .guess-summary,
  .compare-card,
  .compare-recap-card,
  .compare-invitation-artifact,
  .public-receiver-next-action-rail.receiver-first-action,
  .public-receiver-next-action-rail.receiver-first-action-inline
) > *{
  min-width: 0;
}

:is(
  .post-result-invite-actions,
  .viral-cta-actions,
  .guess-actions,
  .compare-cta-row,
  .compare-recap-actions,
  .compare-invitation-actions,
  .public-receiver-next-action-grid
){
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 10px;
  align-items: stretch;
}

:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-actions .button,
  .compare-cta-row .button,
  .compare-recap-actions .button,
  .compare-invitation-actions .button,
  .public-receiver-next-action-button
){
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-block-size: 44px;
  padding: 0 16px;
  border: 1px solid #9ec5fe;
  border-radius: 8px;
  background: #ffffff;
  color: #0a58ca;
  box-shadow: none;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

:is(
  .guess-actions .button-primary,
  .compare-cta-row .button-primary,
  .compare-recap-actions .button-primary,
  .compare-invitation-actions .button-primary,
  .public-receiver-next-action-button.button-primary
):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.16);
}

:is(
  .guess-actions .button-primary,
  .compare-cta-row .button-primary,
  .compare-recap-actions .button-primary,
  .compare-invitation-actions .button-primary,
  .public-receiver-next-action-button.button-primary
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(13, 110, 253, 0.18);
}

:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-actions .button-secondary,
  .compare-cta-row .button-secondary,
  .compare-recap-actions .button-secondary,
  .compare-recap-actions .button-ghost,
  .compare-invitation-actions .button-secondary,
  .public-receiver-next-action-button.button-secondary
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: #6ea8fe;
  background: var(--brand-soft);
  color: #084298;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.10);
}

:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-actions .button,
  .compare-cta-row .button,
  .compare-recap-actions .button,
  .compare-invitation-actions .button,
  .public-receiver-next-action-button
):is(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-disabled){
  border-color: #dee2e6 !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.76;
  text-decoration: none;
}

:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-actions .button,
  .compare-cta-row .button,
  .compare-recap-actions .button,
  .compare-invitation-actions .button,
  .public-receiver-next-action-button
):focus-visible{
  outline: 2px solid rgba(13, 110, 253, 0.18);
  outline-offset: 2px;
}

:is(.viral-cta-card.is-disabled, .compare-card.is-disabled, .guess-card.is-disabled) :is(.viral-cta-body, p){
  color: #495057;
}

@media (max-width: 640px){
  :is(
    .post-result-invite-actions,
    .viral-cta-actions,
    .guess-actions,
    .compare-cta-row,
    .compare-recap-actions,
    .compare-invitation-actions,
    .public-receiver-next-action-grid
  ){
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  :is(
    .post-result-invite-compare,
    .viral-cta-card,
    .guess-card,
    .guess-summary,
    .compare-card,
    .compare-recap-card,
    .compare-invitation-artifact,
    .public-receiver-next-action-rail.receiver-first-action,
    .public-receiver-next-action-rail.receiver-first-action-inline
  ){
    border-radius: 12px;
  }
}

/* =====================================================================
   I365 free-result paid expansion CTA boundary UI owner.
   Keep Premium/Master checkout semantics intact while separating the locked
   paid expansion from the free result card stack with approved blue tokens.
   ===================================================================== */
#doneScreen:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-result-paid-cta-boundary,
#doneScreen:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .free-result-paid-cta-boundary{
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  margin-block-start: 4px;
  padding: 16px;
  border: 1px solid #9ec5fe;
  border-left: 4px solid #0d6efd;
  border-radius: 12px;
  background: #f8f9fa;
  background-image: none;
  box-shadow: none;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-boundary .paywall-overlay-sample{
  display: block;
  padding: 0;
  background: transparent;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-boundary .free-result-paid-cta-box{
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  text-align: left;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-boundary .paywall-lock{
  justify-self: start;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  background: #e7f1ff;
  color: #0a58ca;
  box-shadow: none;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-copy{
  display: grid;
  gap: 6px;
  max-width: 64ch;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-boundary .paywall-box h3{
  max-width: 22ch;
  color: #212529;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.24;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-boundary .paywall-box p{
  max-width: 64ch;
  color: #6c757d;
  font-size: 14px;
  line-height: 1.55;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-actions{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-actions .button{
  min-height: 46px;
  min-block-size: 46px;
}

#doneScreen:not(.is-paid-report-page) .free-result-paid-cta-actions .local-price-disclosure{
  grid-column: 1 / -1;
  margin: 0;
  color: #6c757d;
  text-align: left;
}

@media (max-width: 640px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .free-result-paid-cta-boundary{
    margin-block-start: 2px;
    padding: 12px;
    border-radius: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-paid-cta-actions{
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-paid-cta-actions .local-price-disclosure{
    text-align: center;
  }
}

/* =====================================================================
   I359 free-result hero and representative animal card hierarchy.
   Scoped to the runtime #doneScreen hero only so public type SSR cards keep
   their dedicated data-public-type-result-card rules.
   ===================================================================== */
#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3{
  gap: clamp(12px, 2vw, 18px);
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: 20px;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions{
  max-width: 100%;
  margin: 4px 0 12px;
}

#doneScreen:not(.is-paid-report-page) #doneSummary{
  max-width: 58ch;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
  grid-template-columns: minmax(220px, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: clamp(14px, 2.5vw, 24px);
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-copy{
  align-content: center;
  gap: clamp(9px, 1.4vw, 13px);
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-portrait-shell.portrait-shell-animal-single{
  min-height: clamp(260px, 34vw, 380px);
  border: 1px solid #cfe2ff;
  border-radius: 20px;
  background: #f8f9fa;
  box-shadow: none;
  overflow: hidden;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-hero-placeholder.result-hero-placeholder-animal-single{
  padding: clamp(18px, 3vw, 30px);
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animals-hero.result-animals-hero-single{
  gap: clamp(7px, 1.4vw, 12px);
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-art{
  width: clamp(160px, 58%, 260px);
  min-width: 0;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-art .animal-illustration-result-hero{
  max-inline-size: 260px;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-name{
  max-width: 18ch;
  font-size: clamp(19px, 2.5vw, 28px);
  line-height: 1.08;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-signature{
  max-width: min(100%, 18ch);
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .panel-label{
  letter-spacing: 0.11em;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-title{
  max-width: 18ch;
  font-size: clamp(26px, 3.7vw, 38px);
  line-height: 1.06;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-desc{
  max-width: 54ch;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

#doneScreen:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-quote{
  padding: 12px 14px;
  border-color: #cfe2ff;
  border-radius: 12px;
  background: #f8f9fa;
  color: #495057;
  font-size: 14px;
  line-height: 1.52;
  box-shadow: none;
}

@media (max-width: 860px){
  #doneScreen:not(.free-result-compact-surface):not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3{
    gap: 10px;
    padding: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
    grid-template-columns: minmax(142px, 0.44fr) minmax(0, 0.56fr);
    gap: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-portrait-shell.portrait-shell-animal-single{
    min-height: clamp(184px, 46vw, 236px);
    border-radius: 18px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-hero-placeholder.result-hero-placeholder-animal-single{
    padding: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-art{
    width: clamp(112px, 74%, 170px);
    min-width: 0;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-name{
    max-width: 100%;
    font-size: clamp(17px, 5vw, 22px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-title{
    font-size: clamp(20px, 6vw, 27px);
  }
}

@media (max-width: 420px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
    grid-template-columns: minmax(126px, 0.44fr) minmax(0, 0.56fr);
    gap: 10px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-portrait-shell.portrait-shell-animal-single{
    min-height: clamp(164px, 45vw, 188px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-art{
    width: clamp(104px, 76%, 138px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-animal-single-signature{
    max-width: 100%;
  }
}

/* =====================================================================
   I361 free-result aura/balance graph UI owner.
   Keep the existing renderer and graph math; this layer only integrates the
   Korean compact free-result graph with the approved card/token system.
   ===================================================================== */
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .result-story-card #resultAuraRadar{
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-plot{
  width: min(100%, 360px);
  max-width: 360px;
  margin: 0 auto;
  padding: 2px;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-axis-label{
  fill: rgba(33, 37, 41, 0.96);
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 2.6px;
  font-size: 10px;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-meta{
  width: min(100%, 48ch);
  gap: 6px;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-meta strong{
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-meta p,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-meta small{
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-legend{
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-chip{
  min-width: 0;
  padding: 12px;
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-chip span{
  color: var(--brand-strong);
  font-weight: 700;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-chip strong{
  color: var(--text);
  font-size: 20px;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-chip small{
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 520px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-plot{
    width: min(100%, 316px);
    max-width: 316px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultAuraRadar .aura-radar-legend{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* =====================================================================
   I362 free-result 16-animal board UI restoration owner.
   Restore Korean compact result animal-board wrapping and interactive states
   without changing the renderer, taxonomy, public links, or animal assets.
   ===================================================================== */
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > .result-animal-board-card #resultTypeAtlas{
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas[data-atlas-mode="face16"] .face16-animal-board,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board{
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-board{
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
  scrollbar-width: auto;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-grid::-webkit-scrollbar{
  display: initial;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node{
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--text);
  scroll-snap-align: none;
  transform: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node:hover{
  border-color: #9ec5fe;
  box-shadow: 0 16px 34px rgba(13, 110, 253, 0.10), 0 8px 20px rgba(33, 37, 41, 0.06);
  transform: translateY(-1px);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-color: #6ea8fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node.is-active{
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.14), var(--shadow);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node.is-current-result:not(.is-active){
  border-color: #9ec5fe;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.10), var(--shadow);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-core{
  width: 100%;
  height: 100%;
  padding: 8px 6px;
  gap: 4px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-art,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .animal-illustration-node,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-art .animal-illustration-picture{
  width: clamp(34px, 12vw, 46px);
  height: clamp(34px, 12vw, 46px);
  max-width: 68%;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-name{
  display: block;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(9px, 2.7vw, 11px);
  line-height: 1.15;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-current{
  top: 5px;
  right: 5px;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 3px #ffffff;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-detail-card{
  padding: 14px;
  gap: 10px;
  border: 1px solid #cfe2ff;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-detail-head{
  gap: 10px;
  align-items: center;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-detail-badge{
  width: 60px;
  height: 60px;
  border-radius: 16px;
}

@media (max-width: 520px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-grid{
    gap: 8px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node{
    border-radius: 16px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-core{
    padding: 7px 5px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-detail-head{
    align-items: flex-start;
  }
}

@media (max-width: 360px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-grid{
    gap: 7px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-current{
    top: 4px;
    right: 4px;
    padding: 2px 5px;
    font-size: 8px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node-name{
    font-size: 8.5px;
  }
}

/* =====================================================================
   I366 rescan and secondary action UI normalization: copy-link, rescan,
   and back/home actions stay reachable without competing with the main CTA.
   ===================================================================== */
#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"]{
  gap: 8px 10px;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] :is(
  [data-free-result-action-priority="secondary"],
  [data-free-result-primary-action="save-card"],
  [data-free-result-primary-action="scan-again"]
){
  border-color: var(--line);
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: none;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] [data-free-result-primary-action="scan-again"]{
  color: var(--text-soft);
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] :is(
  [data-free-result-action-variant="quiet"],
  [data-free-result-primary-action="copy-link"],
  .free-result-primary-action--quiet
){
  border-color: transparent;
  background: transparent;
  color: var(--brand-strong);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#doneScreen:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] :is(
  [data-free-result-action-priority="secondary"],
  [data-free-result-action-variant="quiet"],
  [data-free-result-primary-action="copy-link"],
  [data-free-result-primary-action="scan-again"]
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: var(--line);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: none;
}

#onboardingScreen :is(
  .trust-preflight-actions #trustPreflightBackButton,
  .onboarding-actions #onboardingBackHomeButton,
  .onboarding-actions #onboardingPrevButton,
  .scan-recovery-actions #scanRecoveryBackButton,
  .scan-recovery-actions #scanRecoveryHomeButton
){
  border-color: transparent;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#onboardingScreen :is(
  .trust-preflight-actions #trustPreflightBackButton,
  .onboarding-actions #onboardingBackHomeButton,
  .onboarding-actions #onboardingPrevButton,
  .scan-recovery-actions #scanRecoveryBackButton,
  .scan-recovery-actions #scanRecoveryHomeButton
):is(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]):not(.is-disabled){
  border-color: var(--line);
  background: var(--brand-soft);
  color: var(--brand-strong);
  box-shadow: none;
}

/* =====================================================================
   I367 privacy/quality/retry note UI minimization: required notices remain
   visible, but share reassurance and retake guidance use quiet note chrome.
   ===================================================================== */
#doneScreen:not(.is-paid-report-page) :is(.share-privacy-badge-card, .free-result-primary-actions .free-result-share-reassurance){
  padding: 2px 0;
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
  font-size: 0.72rem;
  line-height: 1.35;
}

#doneScreen:not(.is-paid-report-page) :is(.share-privacy-badge-card, .free-result-primary-actions .free-result-share-reassurance) strong{
  color: var(--text-soft);
  font-weight: 800;
}

#doneScreen:not(.is-paid-report-page) :is(.share-privacy-badge-card, .free-result-primary-actions .free-result-share-reassurance) span{
  color: var(--text-soft);
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"]{
  gap: 0.38rem;
  padding: 10px 12px;
  border-color: var(--line);
  border-radius: 14px;
  background: #f8f9fa;
  color: var(--text-soft);
  box-shadow: none;
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"] .result-quality-eyebrow{
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"] > strong{
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.32;
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"] > p{
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.42;
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"] .result-quality-action-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"] .result-quality-action-button{
  width: auto;
  min-block-size: 44px;
  padding-inline: 12px;
  border-color: var(--line);
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: none;
  font-size: 0.76rem;
  font-weight: 800;
}

#doneScreen:not(.is-paid-report-page) .result-quality-guidance-panel[data-result-note-ui="quiet"] .result-quality-action-primary{
  box-shadow: none;
}

/* =====================================================================
   I371 result loading/skeleton/transition UI consistency owner.
   Keep scan completion, analysis loading, and free-result reveal states
   visually aligned without changing scanner or analytics logic.
   ===================================================================== */
#loadingScreen.screen-active .camera-warmup-shell,
#analysisJourneyScreen.screen-active .analysis-journey-shell{
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

#loadingScreen .camera-warmup-core,
#analysisJourneyScreen .analysis-journey-stage{
  background: #ffffff;
  border-color: #cfe2ff;
  box-shadow: 0 14px 32px rgba(13, 110, 253, 0.08), 0 8px 20px rgba(33, 37, 41, 0.06);
}

#loadingScreen .loading-track,
#analysisJourneyScreen .loading-track{
  background: #e9ecef;
  border-color: #dee2e6;
  box-shadow: none;
}

#loadingScreen .loading-track span,
#analysisJourneyScreen .loading-track span{
  background: #0d6efd;
  transition: width 180ms ease;
}

#doneScreen.screen-active:not(.is-paid-report-page) .result-stage-v3{
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease;
}

#doneScreen.screen-active:not(.is-paid-report-page) :is(#resultHeroCard, #analysisResultPanels, #resultEvidenceTrustBlock) .result-reveal-prep{
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

#doneScreen.screen-active:not(.is-paid-report-page) :is(#resultHeroCard, #analysisResultPanels, #resultEvidenceTrustBlock) .result-reveal-prep.result-reveal-visible{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  #loadingScreen.screen-active .camera-warmup-shell,
  #analysisJourneyScreen.screen-active .analysis-journey-shell,
  #doneScreen.screen-active:not(.is-paid-report-page) .result-stage-v3,
  #doneScreen.screen-active:not(.is-paid-report-page) :is(#resultHeroCard, #analysisResultPanels, #resultEvidenceTrustBlock) .result-reveal-prep,
  #doneScreen.screen-active:not(.is-paid-report-page) :is(#resultHeroCard, #analysisResultPanels, #resultEvidenceTrustBlock) .result-reveal-prep.result-reveal-visible{
    opacity: 1;
    transform: none;
    transition: none;
  }

  #loadingScreen .loading-track span,
  #analysisJourneyScreen .loading-track span{
    transition: none;
  }

  #loadingScreen .camera-warmup-ring,
  #analysisJourneyScreen .analysis-star{
    animation: none;
  }
}

/* =====================================================================
   I368 mobile free-result spacing and one-column flow: safe-area padding,
   touch-safe actions, and no 360px horizontal overflow. Public type and
   scanner shells are intentionally not selected here.
   ===================================================================== */
#doneScreen.free-result-compact-surface:not(.is-paid-report-page),
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-stage-v3,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell{
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
}

#doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-stage-v3 > *,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > *,
#doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > *{
  max-inline-size: 100%;
  min-inline-size: 0;
}

@media (max-width: 420px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page){
    overflow-x: clip;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-stage-v3{
    inline-size: 100%;
    max-inline-size: 100%;
    gap: 10px;
    padding-top: calc(60px + var(--safe-top));
    padding-right: calc(10px + var(--safe-right));
    padding-bottom: calc(30px + var(--safe-bottom));
    padding-left: calc(10px + var(--safe-left));
    overflow-x: clip;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-header-v3,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell{
    grid-template-columns: minmax(0, 1fr);
    inline-size: 100%;
    max-inline-size: 100%;
    gap: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-board,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .viral-cta-card--compact,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .post-result-invite-actions,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-paid-cta-actions{
    grid-template-columns: minmax(0, 1fr);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-strip{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-blob{
    flex: initial;
    min-inline-size: 0;
    min-height: 84px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) :is(
    .result-card-meta-row,
    .result-badge-row,
    .result-tag-row,
    .result-type-mode-row
  ){
    max-inline-size: 100%;
    min-inline-size: 0;
    overflow: visible;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inline-size: 100%;
    max-inline-size: 100%;
    gap: 8px;
    margin: 6px 0 10px;
    overflow: visible;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton),
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton){
    width: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
    padding-inline: 10px;
    line-height: 1.2;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions .free-result-share-reassurance{
    grid-column: 1 / -1;
    max-inline-size: 100%;
    min-inline-size: 0;
  }
}

@media (max-width: 360px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-stage-v3{
    padding-right: calc(8px + var(--safe-right));
    padding-left: calc(8px + var(--safe-left));
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"]{
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton),
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton){
    min-block-size: 44px;
    padding-inline: 12px;
  }
}

/* =====================================================================
   I369 tablet/desktop free-result spacing and grid consistency.
   Smooth the compact free-result transitions around 600/768/1024px while
   preserving the mobile-first component hierarchy and product surfaces.
   ===================================================================== */
@media (min-width: 421px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page){
    overflow-x: clip;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-stage-v3{
    inline-size: 100%;
    max-inline-size: min(1120px, 100%);
    gap: clamp(12px, 1.5vw, 16px);
    padding-top: calc(clamp(68px, 8vw, 92px) + var(--safe-top));
    padding-right: calc(clamp(12px, 2.1vw, 22px) + var(--safe-right));
    padding-bottom: calc(clamp(28px, 3.4vw, 34px) + var(--safe-bottom));
    padding-left: calc(clamp(12px, 2.1vw, 22px) + var(--safe-left));
    overflow-x: clip;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-header-v3,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell{
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell{
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 1.5vw, 16px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #analysisResultPanels.result-panels-v3 > .free-report-compact-shell > *{
    grid-column: 1 / -1;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-board,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-grid,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .viral-cta-card--compact,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .post-result-invite-actions,
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-paid-cta-actions{
    max-inline-size: 100%;
    min-inline-size: 0;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"]{
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    overflow: visible;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton),
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"] :is(#shareResultButton, #downloadButton, #copyShareUrlButton, #restartButton){
    width: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 44px;
  }
}

@media (min-width: 421px) and (max-width: 599px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-portrait-shell.portrait-shell-animal-single{
    min-height: clamp(196px, 55vw, 280px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-strip{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-blob{
    flex: initial;
    min-inline-size: 0;
  }
}

@media (min-width: 600px) and (max-width: 1023px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
    grid-template-columns: minmax(188px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(12px, 2vw, 22px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-portrait-shell.portrait-shell-animal-single{
    min-height: clamp(220px, 36vw, 340px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"]{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-strip{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-blob{
    flex: initial;
    min-inline-size: 0;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-paid-cta-actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px){
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .result-collectible-grid{
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(18px, 2.1vw, 24px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .result-hero-panel.result-hero-panel-v3 .collectible-portrait-shell.portrait-shell-animal-single{
    min-height: clamp(300px, 31vw, 380px);
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-share-save-ui="normalized"],
  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .free-result-primary-actions[data-free-result-rescan-secondary-ui="normalized"]{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 12px;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-strip{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  #doneScreen.free-result-compact-surface:not(.is-paid-report-page) .module-blob{
    flex: initial;
    min-inline-size: 0;
  }
}


/* =====================================================================
   I370 focus/active/disabled accessibility state owner.
   Normalize visible keyboard focus, pressed feedback, and disabled/loading
   affordances for free-result controls without changing action semantics.
   ===================================================================== */
#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action,
  #shareResultButton.button-share,
  #copyShareUrlButton.button-copy,
  #restartButton.button-secondary,
  #downloadButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-actions .button,
  #premiumPaywallWrapper .paywall-button-stack .button,
  #buyPremiumButton.button-upgrade-primary,
  #buyMasterButton.button-upgrade-secondary
):focus-visible,
#doneScreen:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node:focus-visible,
:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-animal-button,
  .guess-actions .button,
  .guess-paid-cta,
  .compare-cta-row .button,
  .compare-recap-actions .button,
  .compare-invitation-actions .button,
  .compare-paid-placeholder.compare-paid-cta,
  .public-receiver-next-action-button
):focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

#doneScreen:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node:is(.is-active, [aria-pressed="true"]){
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.14), var(--shadow);
}

#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action,
  #shareResultButton.button-share,
  #copyShareUrlButton.button-copy,
  #restartButton.button-secondary,
  #downloadButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-actions .button,
  #premiumPaywallWrapper .paywall-button-stack .button,
  #buyPremiumButton.button-upgrade-primary,
  #buyMasterButton.button-upgrade-secondary
):active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-disabled),
#doneScreen:not(.is-paid-report-page) #resultTypeAtlas .face16-animal-board .faces64-mini-node:active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-disabled),
:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-animal-button,
  .guess-actions .button,
  .guess-paid-cta,
  .compare-cta-row .button,
  .compare-recap-actions .button,
  .compare-invitation-actions .button,
  .compare-paid-placeholder.compare-paid-cta,
  .public-receiver-next-action-button
):active:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):not(.is-disabled){
  transform: translateY(1px);
  box-shadow: none;
}

#doneScreen:not(.is-paid-report-page) :is(
  .free-result-primary-action,
  #shareResultButton.button-share,
  #copyShareUrlButton.button-copy,
  #restartButton.button-secondary,
  #downloadButton.button-secondary,
  #downloadAnalysisButton.button-secondary,
  .result-quality-action-button,
  .post-result-invite-button,
  .viral-cta-button,
  .free-result-paid-cta-actions .button,
  #premiumPaywallWrapper .paywall-button-stack .button,
  #buyPremiumButton.button-upgrade-primary,
  #buyMasterButton.button-upgrade-secondary
):is(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-disabled),
#doneScreen:not(.is-paid-report-page) :is(.viral-cta-card.is-disabled .viral-cta-button, .post-result-invite-button.is-disabled),
:is(
  .post-result-invite-actions .post-result-invite-button,
  .viral-cta-actions .viral-cta-button,
  .viral-cta-card > .viral-cta-button,
  .guess-animal-button,
  .guess-actions .button,
  .guess-paid-cta,
  .compare-cta-row .button,
  .compare-recap-actions .button,
  .compare-invitation-actions .button,
  .compare-paid-placeholder,
  .public-receiver-next-action-button
):is(:disabled, [aria-disabled="true"], [aria-busy="true"], .is-disabled){
  border-color: #dee2e6 !important;
  background: #f8f9fa !important;
  color: #6c757d !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.76;
  transform: none;
  text-decoration: none;
}

