/* I1679_ASSET_VERSION_PARITY_MARKER: 16faces-r93-p015 */

/* Application visibility is authoritative over component display styles. */
[hidden]:not([hidden="until-found"]){ display: none !important; }

/* =====================================================================
   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: #f0f4ff;
  --bg-soft: #e8effc;
  --surface: #fff;
  --surface-strong: #fff;
  --surface-soft: #f0f4ff;
  --surface-container-lowest: #fff;
  --surface-container-low: #f0f4ff;
  --surface-container: #e8effc;
  --surface-container-high: #dde5f4;
  --surface-container-highest: #d3dceb;
  --text: #1f1f1f;
  --text-soft: #444746;
  --text-faint: #74777f;
  --line: #dadce0;
  --line-strong: #74777f;
  --brand: #0b57d0;
  --brand-strong: #0842a0;
  --brand-soft: #c2d7f9;
  --tone-blue-strong: #0842a0;
  --tone-blue-soft: #c2d7f9;
  --mint: #fff;
  --tone-neutral: #fff;
  --blue: #0b57d0;
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.12), 0 1px 2px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
  --radius-xl: 28px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: 300ms cubic-bezier(0.2, 0, 0, 1);
  --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: #fff;
  --btn-bg: #0b57d0;
  --border-style: 1px solid var(--line);
  --scan-glass: #0842a0;
  --scan-surface: #0b57d0;
  --scan-line: rgba(255, 255, 255, 0.14);
  --btn-text: #fff;
  --scan-surface-strong: #0842a0;
  --accent-soft: #c2d7f9;
  --accent-blue-soft: #c2d7f9;
  --accent-ink: #0842a0;
  --upgrade-bg: #0842a0;
  --bm-funnel-accent: #0b57d0;
  --bm-funnel-accent-strong: #0842a0;
  --bm-funnel-soft: #c2d7f9;
  --bm-funnel-warm: #c2d7f9;
  --bm-blue: #0b57d0;
  --bm-blue-strong: #0842a0;
  --bm-gray-900: #1f1f1f;
  --bm-gray-700: #444746;
  --bm-gray-600: #5f6368;
  --bm-gray-500: #9aa0a6;
  --bm-gray-300: #c4c7c5;
  --bm-gray-200: #e1e3e6;
  --bm-gray-100: #eef1f4;
  --bm-white: #fff;
  --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;
  overscroll-behavior: none;
  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;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: 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: #f8fafd;
}

.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: #f8fafd; }

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

.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: #fff;
  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: #fff;
  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: #fff; 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: #0b57d0; color: #fff;
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  max-width: 100%;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), box-shadow 200ms cubic-bezier(0.2, 0, 0, 1), opacity 200ms ease;
}

.button:active{
  transform: scale(0.96); filter: brightness(0.95);
}

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

.button-primary,
.button-upgrade-primary{
  color: #fff; background: linear-gradient(135deg, #0b57d0 0%, #1a73e8 100%); border-radius: 999px; box-shadow: var(--shadow);
}

.button-upgrade-secondary{
  color: var(--brand-strong); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: none;
}

.button-secondary{
  color: var(--brand-strong); background: var(--surface-container); border: none;
  border-radius: 999px; box-shadow: none;
}

.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: #c2d7f9; color: var(--brand-strong); border-color: rgba(13, 110, 253, 0.22);
}.report-card,
.metric-card{
  background: var(--surface-container-low); border: none; box-shadow: var(--shadow); border-radius: var(--radius-xl);
}.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(11, 87, 208, 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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
  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: #c2d7f9;
  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: #fff;
  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: #c2d7f9;
  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: #c2d7f9; color: #0842a0; }
.trait-chip.tone-blue{ background: var(--line); }
.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: #c2d7f9; color: #0842a0; }
.module-blob.tone-blue{ background: #c2d7f9; color: #0842a0; }
.module-blob.tone-blue-strong{ background: #c2d7f9; color: #0842a0; }
.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: #0b57d0;
}

.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: #fff;
  border: 1px solid rgba(11, 87, 208, 0.14);
}

.faces64-mini-node-current{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b57d0;
  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: #fff;
  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: #fff;
  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: #c2d7f9;
  background-image: none;
  border: 1px solid var(--line);
  color: #0842a0;
  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: #c2d7f9; 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: #fff;
  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{
  position: fixed;
  z-index: 2147483647;
  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: #fff;
  background-image: none;
  border: 1px solid var(--line);
  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 var(--line);
  border-radius: 4px;
  background: #c2d7f9;
  background-image: none;
  box-shadow: none;
  color: #0842a0;
  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: #0842a0; 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 var(--line);
  border-radius: 4px;
  background: #c2d7f9;
  background-image: none;
  box-shadow: none;
  color: #0842a0;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

.result-mini-stat strong{
  margin-left: 6px; color: #0842a0; 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: 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 (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: #fff !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: #0b57d0 !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
}

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

.button-secondary{
  background: #fff !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: #fff !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: #fff !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: #0842a0 !important; color: #fff !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: #0842a0 !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
}

.app-shell[data-scene="scan"] .pill-brand{
  background: #0b57d0 !important; color: #fff !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="scan"] #previewShell{
  opacity: 1 !important;
}

#previewViewport{
  position: absolute !important;
  inset: auto !important;
  overflow: hidden !important;
  background: #0842a0 !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: #0842a0 !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;
}

/* Match the existing canvas stage without adding an inset that shifts landmarks. */
.app-shell.test2-fusion[data-preview-renderer="dom"] #previewViewport{
  border: 0 !important;
  background: #ffffff !important;
  box-shadow: 0 0 14px rgba(33, 37, 41, 0.08), inset 0 0 0 1.2px #ced4da !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="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: #fff !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: #0842a0 !important; }

.camera,
.preview{ background: #0842a0 !important; }.chip,
.report-card,
.metric-card,
.mode-pill,
.confidence-pill,
.report-keyword,
.scan-support-tag,
.progress-rail,
.meter,
.metric{
  background: var(--surface-container-low) !important; border: none !important; box-shadow: var(--shadow) !important; border-radius: var(--radius-xl) !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: 8px !important; }

.button-primary,
.button-secondary,
.button-upgrade-primary,
.button-upgrade-secondary{ border-radius: 999px !important; }.report-card,
.preview-viewport{ border-radius: 28px !important; }.metric,
.metric-card{ border-radius: 16px !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 var(--line) !important; box-shadow: none !important;
}

.button-primary{
  background: linear-gradient(135deg, #0b57d0 0%, #1a73e8 100%) !important; color: #fff !important; border: none !important; box-shadow: var(--shadow) !important;
}

.button-upgrade-primary{
  background: linear-gradient(135deg, #0b57d0 0%, #1a73e8 100%) !important; color: #fff !important; border: none !important; box-shadow: var(--shadow) !important;
}

.button-upgrade-secondary{
  background: var(--surface) !important; color: var(--brand-strong) !important; border: 1px solid var(--line) !important; border-radius: 999px !important; box-shadow: none !important;
}

.button-secondary{
  background: var(--surface-container) !important; color: var(--brand-strong) !important; border: none !important; box-shadow: none !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: #0b57d0 !important; }

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

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

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

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

.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: #fff;
  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 var(--line);
  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.
   ===================================================================== */

.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;
}

.cta-stack-result .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; }

/* =====================================================================
   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: #fff;
  --scan-surface: #fff;
  --scan-surface-strong: #fff;
  --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: #fff !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: #fff !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: #fff !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: #fff !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 var(--line) !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: #0b57d0 !important; }

.app-shell[data-scene="scan"] .orientation-notice,
.app-shell[data-scene="scan"] .toast{
  background: #212529 !important; color: #fff !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: #fff; 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: #fff;
  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: #fff;
  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: #fff !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: #0842a0;
  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: #fff;
  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: #0b57d0;
  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: #fff;
  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: #fff; 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: #fff;
  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: #fff;
}

.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; }
}

/* I2141 deferred CSS split A: paid report, account, and report QR surfaces. */
/* =====================================================================
   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="scan"]) #previewCanvas.preview-live,
.app-shell: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, #fff);
  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: #fff;
}

.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(11, 87, 208, 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: #f8fafd;
}

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

.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: #0b57d0; }

.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: #f8fafd;
}

.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: #fff; 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: #0b57d0;
  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: #0842a0;
}

@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: #fff;
}

.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: #0842a0;
  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 var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.66rem;
  background: #c2d7f9;
  color: #0842a0;
  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: #c2d7f9; color: #0842a0;
  border: 1px solid var(--line); border-color: var(--line);
}

.paid-report-tip-card.is-recommend{
  background: #f8f9fa; border-color: var(--line);
}

.paid-report-tip-card.is-avoid{
  background: #f8f9fa; border-color: var(--line);
}

.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: #fff;
  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: #0842a0; 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: #c2d7f9;
}

.paid-report-stat-track b{
  position: absolute;
  top: 50%;
  left: var(--16f-stat-marker-left, 50%);
  width: 1rem;
  height: 1rem;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0b57d0;
  box-shadow: 0 6px 14px rgba(11, 87, 208, 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: #fff;
  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: #fff;
}

.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: #f8fafd !important; color: #212529 !important;
}

body.paid-report-page-open{ overflow: auto !important; }

body.paid-report-page-open :is(#resultHeroCard, #resultReportsMount, #analysisStatusBlock, .cta-fixed-bottom){ 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: #fff !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.payment-recovery-single-surface-open .result-header-v3,
#doneScreen.is-payment-recovery-single-surface .result-header-v3{ display: none !important; }

body.paid-report-page-open.payment-recovery-single-surface-open .payment-configuration-recovery-shell{
  display: grid !important;
  place-items: start center;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.paid-report-page-open.payment-recovery-single-surface-open .payment-state-recovery-surface{
  width: min(100%, 760px); margin-inline: auto;
}

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: #fff !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: #0842a0 !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: var(--surface-container) !important; border-color: var(--line) !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: #fff;
  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: #fff;
  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: #fff;
  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: #fff;
}

.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: #fff;
}

.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: #fff;
}

.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: #fff;
  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: #fff;
  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: #fff;
}

.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: #fff;
}

/* 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: #fff; 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: #fff;
  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: var(--line); background: #f8f9fa;
}

.viral-cta-card.is-active .viral-cta-button{
  border-color: #0b57d0; background: #0b57d0; color: #fff;
}

.viral-cta-card.is-active .viral-cta-button:hover{
  border-color: #0842a0; background: #0842a0;
}

.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: #fff !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: #fff !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: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.legal-modal-body,
.report-viewer-scroll{
  min-height: 0; overflow: auto; background: #fff !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;
}

/* =====================================================================
   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: #c2d7f9; 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; }
}

/* I2141 deferred CSS split A: payment gateway and payment-return surfaces. */

/* I2141 deferred CSS split A: result visualization and public share/compare surfaces. */
/* 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: #fff;
  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: #fff;
  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;
}
}

/* I2142: deferred master result owners. */
.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: #fff !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: #fff !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: #fff !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: #fff !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: #fff;
  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: #fff;
  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%; }
}


/* Account job cards also render on the root route, outside Profile's stylesheet. */
#myPageModal .my-page-profile-studio{
  display: grid; gap: 12px; margin: 18px 0 22px;
}

#myPageModal .my-page-profile-studio > h3{ margin: 0; font-size: 1rem; }

#myPageModal .my-page-profile-studio-card{
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px;
  min-width: 0; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface);
}

#myPageModal .my-page-profile-studio-card > div{ display: grid; gap: 4px; }

#myPageModal .my-page-profile-studio-card span,
#myPageModal .my-page-profile-studio-card p{
  margin: 0; color: var(--text-soft); font-size: .82rem; overflow-wrap: anywhere;
}

#myPageModal .my-page-profile-studio-card .auth-chip-button{
  width: 100%; text-align: center; text-decoration: none;
}

/* I2142: deferred post-intent owners. */
#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; }

/* I2141 deferred CSS split A: scoped paywall and payment overflow surfaces. */

/* I2141 deferred CSS split A: paid report module and report-view surfaces. */
#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: #fff;
  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: #fff;
  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-secondary-entry{
  margin-top: 12px; padding-top: 16px; display: grid;
  gap: 8px; border-top: 1px solid var(--line);
}

.landing-secondary-entry .landing-start-button{ min-height: 54px; }

.landing-secondary-hint{
  margin: 0; color: var(--text-soft); font-size: 13px;
  line-height: 1.55; text-align: center;
}
.landing-secondary-price-note{
  margin: 0; color: #526178; font-size: 12px; line-height: 1.65; text-align: center;
}

.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: 44px;
  min-block-size: 44px;
  block-size: auto;
  padding-block: 7px;
  overflow: visible;
  white-space: nowrap;
  line-height: 1.45;
}
.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;
}

/* I2141 deferred CSS split A: late result, social, paid-preview, and paid-report refinements. */

/* I2161 free-result to paid-comparison handoff controls. */
.profile-studio-free-result-choice,
.profile-studio-intake-staging-consent{
  margin-block: 16px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); background: var(--surface-soft);
}

.profile-studio-free-result-choice-legend{
  padding-inline: 4px; font-weight: 700;
}

.profile-studio-free-result-choice-option,
.profile-studio-intake-staging-consent label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-block-size: 44px;
  padding-block: 10px;
  cursor: pointer;
}

.profile-studio-free-result-choice-option input,
.profile-studio-intake-staging-consent input{
  flex: 0 0 auto; inline-size: 20px; block-size: 20px;
  margin-block-start: 1px; accent-color: var(--brand);
}

.profile-studio-free-result-choice-option input:focus-visible,
.profile-studio-intake-staging-consent input:focus-visible{
  outline: 3px solid var(--tone-blue-strong); outline-offset: 3px;
}

.profile-studio-free-result-handoff-status,
.profile-studio-intake-handoff-status{
  margin-block: 12px; color: var(--text-soft);
}

.profile-studio-free-result-choice[hidden],
.profile-studio-intake-staging-consent[hidden],
.profile-studio-intake-handoff-status[hidden]{ display: none !important; }

/* I2165 root landing hierarchy and secondary CTA repair. */
.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-shell-minimal{
  width: min(820px, 100%); min-height: 100%; align-content: start;
  gap: clamp(14px, 2.4vh, 24px); padding-top: calc(clamp(72px, 9vh, 96px) + var(--safe-top));
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-shell-minimal > .landing-top-row{ display: none; }

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-hero-minimal{
  width: 100%; margin: 0 auto; overflow: visible; border-radius: 24px;
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-hero-copy-16{
  min-height: 0; justify-content: flex-start; padding: clamp(28px, 4vw, 44px);
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-hero-copy-minimal{
  max-width: none; gap: 14px;
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-logo-title .logo-16-faces-picture,
.app-shell[data-scene="landing"]:not(.public-type-shell) .logo-16-faces-landing{ width: min(64vw, 340px); }

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-hook,
.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-proof{ max-width: 680px; }

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-cta-row-16{ margin-top: 8px; }

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-start-button{
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-secondary-entry{
  margin-top: 2px; padding-top: 16px; gap: 10px;
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-secondary-hint{
  max-width: 640px; margin: 0 auto; color: #495057;
  font-size: 14px; line-height: 1.6;
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-secondary-entry .landing-start-button{
  color: var(--brand-strong) !important; background: var(--surface-container) !important; border: none !important; border-radius: 999px !important; box-shadow: none !important;
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-start-button:focus-visible{
  outline: 3px solid #0842a0; outline-offset: 3px;
}

@media (hover: hover){
.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-secondary-entry .landing-start-button:hover{
  background: var(--surface-container-high) !important; border: none !important;
}
}

@media (max-width: 640px){
.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-shell-minimal{
  gap: 12px; padding-top: calc(68px + var(--safe-top)); padding-bottom: calc(20px + var(--safe-bottom));
}

.app-shell[data-scene="landing"]:not(.public-type-shell) .landing-hero-copy-16{ padding: 24px 20px; }

  .app-shell[data-scene="landing"]:not(.public-type-shell) .landing-logo-title .logo-16-faces-picture,
.app-shell[data-scene="landing"]:not(.public-type-shell) .logo-16-faces-landing{ width: min(72vw, 300px); }
}

/* One scoped free-result presentation. Paid results and scanner are untouched. */
#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-stage{max-width:900px;margin-inline:auto;gap:24px}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-header{align-items:center;margin-bottom:4px}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #doneTitle{font-size:clamp(24px,4vw,38px);letter-spacing:-.04em;line-height:1.25;margin:0}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #doneSummary{font-size:16px;line-height:1.55;margin:10px 0 0;color:#566b83}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #resultHeroCard{padding:28px;border:1px solid #dae5f4;border-radius:28px;background:linear-gradient(150deg,#f4f8ff,#fff);box-shadow:0 12px 38px #26477708}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-card-meta-row,#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-type-mode-row,#doneScreen.free-result-refresh:not(.is-paid-report-page) .doubutsumoji-disclosure-copy{display:none!important}
#doneScreen.free-result-refresh:not(.is-paid-report-page) :is(#resultTypeCode,#resultFamilyLabel,#resultShareQuote,#resultTypeTags,#resultTypeMode,#resultTypeConfidence,#resultModuleStrip,#resultBadges,#resultTraitCloud,.result-animal-single-name,.result-animal-single-signature){display:none!important}
#doneScreen.free-result-refresh:not(.is-paid-report-page) details:not([open])>*:not(summary){display:none!important}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-collectible-grid{display:flex!important;flex-direction:column;gap:16px!important}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .collectible-copy{order:-1;text-align:center;max-width:620px;margin:auto}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #resultTypeName{font-size:clamp(32px,5vw,48px);letter-spacing:-.04em;line-height:1.2;margin:0 0 12px}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #resultTypeDesc{font-size:14px;line-height:1.65;color:#52667f;max-width:460px;margin:auto}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .collectible-badge-art{width:100%;min-width:0}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .portrait-shell{width:100%!important;max-width:560px!important;min-height:0!important;height:auto!important;margin:auto;border:0;background:transparent;box-shadow:none;aspect-ratio:auto}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #resultHeroPlaceholder{width:100%;min-height:0!important;padding:0!important;background:transparent;border:0}
#doneScreen.free-result-refresh:not(.is-paid-report-page) [data-doubutsumoji-portrait-slot]{width:100%;max-width:none}
#doneScreen.free-result-refresh:not(.is-paid-report-page) [hidden]{display:none!important}
#doneScreen.free-result-refresh:not(.is-paid-report-page) [data-free-evidence-details],#doneScreen.free-result-refresh:not(.is-paid-report-page) .free-animal-explore{padding:18px 22px;background:#fff;border:1px solid #dee6f0;border-radius:18px}
#doneScreen.free-result-refresh:not(.is-paid-report-page) details>summary{font-size:16px;font-weight:650;cursor:pointer;color:#294666;line-height:1.5}
#doneScreen.free-result-refresh:not(.is-paid-report-page) details[open]>summary{margin-bottom:18px}
#doneScreen.free-result-refresh:not(.is-paid-report-page) #analysisResultPanels{display:block}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .cta-fixed-bottom{position:static;box-shadow:none;background:transparent;padding:0;margin-top:8px}
#doneScreen.free-result-refresh:not(.is-paid-report-page) .jy-entry{margin:0;max-width:100%;border-radius:24px}
.free-preview-controls{position:relative;width:100%;box-sizing:border-box;max-width:900px;margin:0 auto 18px;padding:18px 22px;border:1px dashed #3976c5;background:#edf4ff;border-radius:16px;font-size:14px;color:#17395f;line-height:1.5}
.free-preview-controls p{margin:6px 0 12px}.free-preview-controls label{display:inline-flex;align-items:center;gap:6px;margin:0 14px 10px 0}.free-preview-controls select{max-width:170px;padding:8px;font-size:14px}.free-preview-controls a{display:inline-block;margin:8px}
@media(max-width:540px){#doneScreen.free-result-refresh:not(.is-paid-report-page) #resultHeroCard{padding:20px 12px;border-radius:22px}#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-stage{gap:18px}#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-header{gap:12px}#doneScreen.free-result-refresh:not(.is-paid-report-page) .result-header .button{min-width:0;padding:12px 18px}#doneScreen.free-result-refresh:not(.is-paid-report-page) #resultTypeDesc{padding-inline:12px}.free-preview-controls{margin:16px 12px;padding:14px}}
