/* LampMark Shared Styles */

:root {
  --lm-bg: #020203;
  --lm-text: #ffffff;
  --lm-text-soft: #bcbcc7;
  --lm-accent: #e7c96c;
  --lm-white: #f5f5f7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, #181824 0%, #050508 40%, #020203 100%);
  color: var(--lm-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* WATERMARK */

@keyframes sigilPulse {

  0%,
  100% {
    opacity: 0.065;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
  }

  50% {
    opacity: 0.095;
    filter: drop-shadow(0 0 80px rgba(255, 255, 255, 0.5));
  }
}

@keyframes sigilGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.7));
  }

  50% {
    filter: drop-shadow(0 0 100px rgba(255, 255, 255, 1));
  }
}

.sigil-watermark {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(75vw, 880px);
  height: min(75vw, 880px);
  background: url("../white-sigil.svg") no-repeat center/contain;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: sigilFadeIn 3s ease-out forwards, sigilPulse 8s ease-in-out 3s infinite;
}

@keyframes sigilFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.065;
  }
}

/* SHELL */

.shell {
  max-width: 960px;
  margin: 32px auto 48px;
  padding: 0 24px 72px;
  position: relative;
  z-index: 1;
}

/* NAV */

header.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
}

.lm-mark {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 50;
  /* Ensure White sigil hover/flyout sits above the intake card */
}

/* REMOVED LM CIRCLE */
.lm-sigil-small {
  width: 15px;
  height: auto;
  filter: brightness(1.4) drop-shadow(0 12px 32px rgba(0, 0, 0, 0.75));
}

.lm-name {
  font-size: 1.2rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.nav-chip {
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: var(--lm-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.10), transparent 70%);
}

/* HERO TEXT (NO HERO IMAGE NOW) */

.hero {
  margin-top: 40px;
  text-align: center;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--lm-text-soft);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.3rem, 4.8vw, 3.2rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 6px 0 16px;
}

.hero-title span.light {
  display: block;
  color: var(--lm-white);
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lm-text-soft);
  margin-bottom: 20px;
}

.hero-body {
  max-width: 540px;
  margin: 0 auto 28px;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--lm-text-soft);
}

.hero-body b {
  color: var(--lm-text);
}

.hero-tagline {
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

/* EARLY ACCESS */

.early-access {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.access-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  width: 100%;
  align-items: center;
}

.access-input {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--lm-text);
  font-size: 0.95rem;
  font-family: "Inter", system-ui, sans-serif;
  transition: all 0.3s ease;
}

.access-input::placeholder {
  color: var(--lm-text-soft);
  opacity: 0.6;
}

.access-input:focus {
  outline: none;
  border-color: var(--lm-white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.access-btn {
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--lm-white);
  font-size: 0.9rem;
  font-family: "Inter", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.access-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
  border-color: var(--lm-white);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.turnstile-container,
.cf-turnstile {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4px auto 6px;
}

.trust-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--lm-text-soft);
  opacity: 0.65;
  text-align: center;
  letter-spacing: 0.3px;
}

.media-link {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lm-text-soft);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.media-link:hover {
  color: var(--lm-white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* MODAL */

.sigil-modal {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease, background 1.2s ease;
}

.sigil-modal.active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.95);
  pointer-events: auto;
}

.sigil-modal img {
  max-width: 90vw;
  max-height: 90vh;
  opacity: 0;
  animation: sigilGlow 8s ease-in-out infinite;
  transition: opacity 1.5s ease 0.3s;
}

.sigil-modal.active img {
  opacity: 1;
}

/* TOAST NOTIFICATION */

.toast {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 6px auto 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--lm-text);
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  margin-top: 60px;
  font-size: 0.78rem;
  color: var(--lm-text-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.social-links a {
  color: var(--lm-text-soft);
  opacity: 0.7;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.social-links a:hover {
  color: var(--lm-accent);
  opacity: 1;
  transform: translateY(-2px);
}

/* White Onboarding Shell */

.white-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.white-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.white-step-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 0;
  max-width: 80vw;
  white-space: normal;
  word-break: break-word;
  box-sizing: border-box;
}
}

.white-main {
  display: flex;
  justify-content: center;
}

.white-panel {
  width: 100%;
  max-width: 720px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 18px;
  padding: 28px 24px 32px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.white-title {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.white-intro {
  margin: 0 0 12px;
  opacity: 0.9;
}

.white-steps {
  margin: 0 0 20px 18px;
  padding: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* Dropzone */

.white-dropzone {
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  padding: 18px;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.white-dropzone.drag-over {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.white-dropzone-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.white-dropzone-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.white-dropzone-text {
  font-size: 14px;
}

.white-dropzone-sub {
  font-size: 12px;
  opacity: 0.7;
}

.white-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Preview + Reorder */

.white-preview {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.white-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: grab;
}

.white-thumb.dragging {
  opacity: 0.7;
  border-style: dashed;
}

.white-thumb img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.white-thumb-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.6);
}

.white-thumb-index {
  font-weight: 600;
  margin-right: 4px;
}

.white-thumb-remove {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* Buttons / hints */

.white-hint {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.8;
}

.white-primary-btn {
  margin-top: 20px;
  margin-bottom: 0.75rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #ffffff;
  color: #000;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

@media (max-width: 640px) {
  .white-primary-btn {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
}

.white-primary-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.white-primary-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.white-privacy {
  margin-top: 12px;
  margin-bottom: 1.5rem;
  font-size: 11px;
  opacity: 0.7;
}

@media (max-width: 640px) {
  .white-privacy {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
}

/* White Step 1 Photo Upload - Apple-clean styling */

.white-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.white-dropzone.is-dragover {
  background: rgba(231, 201, 108, 0.1);
  border-color: var(--lm-accent);
  border-style: solid;
  box-shadow: 0 0 20px rgba(231, 201, 108, 0.2);
}

.white-dropzone-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.25rem 0;
  color: var(--lm-text);
}

.white-file-input {
  display: none;
}

/* Photo Controls */

.white-photo-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.white-camera-btn,
.white-browse-btn {
  flex: 1;
  min-width: 160px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--lm-text);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.white-camera-btn:hover,
.white-browse-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.white-camera-btn:active,
.white-browse-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .white-photo-controls {
    flex-direction: column;
  }

  .white-camera-btn,
  .white-browse-btn {
    width: 100%;
    min-width: unset;
  }
}

/* Camera Modal */

/* ===== WHITE CAMERA MODAL ===== */

/* Full-screen camera modal */
.white-camera-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 2000;
}

.white-camera-modal.is-hidden {
  display: none;
}

/* Main camera area: portrait viewfinder + fixed thumbnail band */
.white-camera-container {
  flex: 1;
  width: 100%;
  max-width: 480px;
  padding: 16px 16px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Fixed-size viewfinder portal (stable "scanner frame") */
.white-camera-viewfinder {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  /* portrait orientation */
  margin: 0 auto;
  flex-shrink: 0;
  /* never collapse */
  overflow: hidden;
  border-radius: 16px;
  background: #020617;
}

/* Frame fills the viewfinder */
.white-camera-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Video fills frame with cover */
.white-camera-frame video,
.white-camera-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* fill the portal */
  background: #020617;
  transform-origin: center center;
}

/* Premium bracket overlay for slab framing */
.white-camera-brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* do NOT block taps */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.white-camera-brackets--visible {
  opacity: 1;
}

/* Inner "slab portal" area – portrait orientation for vertical slab */
.white-camera-brackets::before {
  content: "";
  display: block;
  width: 65%;
  aspect-ratio: 2.2 / 3.4;
  /* tall slab oriented vertically (ANACS/PCGS/NGC) */
  /* Optional: very faint outline */
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wc-bracket {
  position: absolute;
  width: 12%;
  height: 8%;
  border-radius: 14px;
  border: 0;
}

.wc-bracket::before,
.wc-bracket::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* horizontal segment */
.wc-bracket::before {
  height: 2px;
  width: 60%;
}

/* vertical segment */
.wc-bracket::after {
  width: 2px;
  height: 60%;
}

.wc-bracket--tl {
  top: 9%;
  left: 17.5%;
}

.wc-bracket--tl::before {
  top: 0;
  left: 0;
}

.wc-bracket--tl::after {
  top: 0;
  left: 0;
}

.wc-bracket--tr {
  top: 9%;
  right: 17.5%;
}

.wc-bracket--tr::before {
  top: 0;
  right: 0;
}

.wc-bracket--tr::after {
  top: 0;
  right: 0;
}

.wc-bracket--bl {
  bottom: 9%;
  left: 17.5%;
}

.wc-bracket--bl::before {
  bottom: 0;
  left: 0;
}

.wc-bracket--bl::after {
  bottom: 0;
  left: 0;
}

.wc-bracket--br {
  bottom: 9%;
  right: 17.5%;
}

.wc-bracket--br::before {
  bottom: 0;
  right: 0;
}

.wc-bracket--br::after {
  bottom: 0;
  right: 0;
}

/* Thumbnail strip – fixed height, scrolls if you go crazy with photos */
.white-camera-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  /* single row only */
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  /* scroll sideways when full */
  overflow-y: hidden;
  height: 80px;
  /* fixed height, not min-height */
  flex-shrink: 0;
  /* never collapse */
  width: 100%;
  max-width: 380px;
  /* match viewfinder width */
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
  /* nice iOS scroll */
}

/* Optional: subtle scrollbar styling (non-critical) */
.white-camera-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.white-camera-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.white-camera-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}

/* Each thumbnail */
.white-camera-thumb-wrapper {
  position: relative;
  flex: 0 0 72px;
  /* fixed width per thumb */
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.white-camera-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* Little X / remove button on a thumb */
.white-camera-thumb-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Fixed controls at bottom (capture, done, zoom, counter) */
.white-camera-fixed-controls {
  width: 100%;
  max-width: 480px;
  padding: 10px 16px 20px;
  box-sizing: border-box;

  /* Sticky to bottom of viewport */
  position: sticky;
  bottom: 0;

  background: linear-gradient(to top,
      rgba(15, 23, 42, 1),
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.6),
      transparent);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Slider row stays neat above the buttons */
.white-camera-zoom-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.white-camera-zoom-label {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.white-camera-zoom {
  flex: 1;
}

/* Keep the zoom slider feeling "Apple-ish" */
.white-camera-zoom input[type="range"] {
  width: 100%;
  accent-color: #22c55e;
}

/* Counter text */
.white-camera-counter {
  font-size: 11px;
  color: #cbd5f5;
  text-align: right;
}

/* Zoom slider */
.white-camera-zoom-slider {
  width: 100%;
  max-width: 300px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  outline: none;
}

.white-camera-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.white-camera-zoom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.white-camera-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Capture / Done buttons keep your existing look, just ensure they flex nicely */
.white-camera-capture-btn,
.white-camera-close-btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.white-camera-capture-btn {
  background: var(--lm-accent);
  color: #000;
  flex: 1;
  min-width: 160px;
}

.white-camera-capture-btn:hover {
  background: #f5d982;
  transform: scale(1.02);
}

.white-camera-capture-btn:active {
  transform: scale(0.98);
}

.white-camera-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--lm-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.white-camera-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.photo-remove-button {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.photo-remove-button:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.5);
}

.photo-remove-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Photo Guidelines */

.photo-guidelines {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.85rem;
}

.photo-guidelines h3,
.photo-guidelines-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--lm-text);
  opacity: 0.95;
}

.photo-guidelines p {
  margin: 0.65rem 0 0.25rem 0;
  font-size: 0.85rem;
  color: var(--lm-text-soft);
  line-height: 1.5;
}

.photo-guidelines p:first-of-type {
  margin-top: 0;
}

.photo-guidelines ul {
  margin: 0.25rem 0 0.65rem 1.25rem;
  padding: 0;
  list-style-type: disc;
}

.photo-guidelines li {
  margin: 0.2rem 0;
  color: var(--lm-text-soft);
  line-height: 1.45;
  opacity: 0.9;
}

.photo-guidelines ul:last-child {
  margin-bottom: 0;
}

/* Photo Queue Table */

.photo-queue {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .photo-queue {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

.photo-queue-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--lm-text);
}

.photo-queue-subtitle {
  font-size: 0.75rem;
  margin: 0 0 1rem 0;
  color: var(--lm-text-soft);
  opacity: 0.8;
}

.photo-table-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.02);
}

.photo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.photo-table thead {
  background: rgba(255, 255, 255, 0.04);
}

.photo-table th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-weight: 500;
  color: var(--lm-text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--lm-text);
}

.photo-table td:last-child {
  padding-right: 0.5rem;
  padding-left: 0.25rem;
  width: 40px;
}

@media (max-width: 640px) {
  .photo-table {
    font-size: 0.8rem;
  }

  .photo-table th,
  .photo-table td {
    padding: 0.4rem 0.5rem;
  }

  .photo-table td:last-child {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .photo-thumb {
    width: 40px;
    height: 40px;
  }
}

.photo-table tbody tr:last-child td {
  border-bottom: none;
}

.photo-table-empty {
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--lm-text-soft);
  opacity: 0.6;
}

.photo-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.photo-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.photo-status-pending {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.photo-status-ready {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

.photo-status-uploading {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.photo-status-uploaded {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.photo-status-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Responsive: Adjust viewfinder on smaller screens */
@media (max-width: 400px) {
  .white-camera-viewfinder {
    max-width: 100%;
  }

  .white-camera-thumbnails {
    max-width: 100%;
  }
}

/* Ensure portrait orientation on mobile devices */
@media (orientation: landscape) and (max-height: 500px) {
  .white-camera-viewfinder {
    max-width: 280px;
    aspect-ratio: 3 / 4;
    /* maintain portrait */
  }
}

/* White Step 2 Overlay */

.white-step-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  /* Sits above intake card and sigil */
}

.white-step-overlay.is-hidden {
  display: none;
}

.white-step-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.white-step-overlay-padding {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .white-step-overlay-padding {
    padding: 2.5rem;
  }
}

.white-step-overlay-tile {
  position: relative;
  max-width: 720px;
  width: 100%;
  margin: 0;
  border-radius: 18px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 1.75rem;
  padding-left: 3rem;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    0 0 48px rgba(255, 255, 255, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  overflow: auto;
  max-height: 90vh;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .white-step-overlay-tile {
    padding-left: 4rem;
  }
}

.white-step2-back-button {
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.white-step2-back-button:hover {
  color: #f3f4f6;
  text-decoration: underline;
}

.white-step2-form {
  margin-top: 1.5rem;
}

.white-form-group {
  margin-bottom: 1rem;
}

.white-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: var(--lm-text-soft);
}

.white-form-group input {
  width: 100%;
  max-width: 400px;
  padding: 0.625rem 0.75rem;
  background: rgba(0, 0, 0, 0.9);
  /* slightly darker */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.white-form-group input:focus {
  outline: none;
  border-color: rgba(231, 201, 108, 0.4);
  background: rgba(0, 0, 0, 0.95);
  /* keep dark on focus */
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px #f5f5f5, 0 0 12px rgba(255, 255, 255, 0.25);
  /* your glow */
}

/* Keep White form inputs dark even when autofilled */
.white-form-group input:-webkit-autofill,
.white-form-group input:-webkit-autofill:hover,
.white-form-group input:-webkit-autofill:focus,
.white-form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.9) inset;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.9) inset;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(231, 201, 108, 0.4);
  /* same as your focus border */
}

/* (Optional) Firefox-ish fallback */
.white-form-group input:-moz-autofill {
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.9) inset;
  -moz-text-fill-color: rgba(255, 255, 255, 0.9);
}

.white-form-group textarea {
  resize: vertical;
  min-height: 2.5rem;
  max-height: 12rem;
  overflow-y: auto;
  font-family: inherit;
}

.white-form-group input:focus,
.white-form-group textarea:focus {
  outline: none;
  border-color: #f5f5f5;
  background: #111;
  color: #fff;
  box-shadow: 0 0 0 1px #f5f5f5, 0 0 12px rgba(255, 255, 255, 0.25);
}

.white-form-group input:active,
.white-form-group textarea:active {
  background: #111;
  color: #fff;
}

.white-form-group input::placeholder,
.white-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  opacity: 1;
}

.white-form-group select {
  width: 100%;
  max-width: 400px;
  padding: 0.625rem 0.75rem;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #eee;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaa' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.white-form-group select:focus {
  outline: none;
  border-color: #f5f5f5;
  background: #111;
  color: #fff;
  box-shadow: 0 0 0 1px #f5f5f5, 0 0 12px rgba(255, 255, 255, 0.25);
}

.white-form-group select:active {
  background: #111;
  color: #fff;
}

.white-form-group select option {
  background: #1a1a1f;
  color: #eee;
  padding: 0.5rem;
}

.white-form-group input.soft-highlight,
.white-form-group select.soft-highlight {
  border-color: rgba(231, 201, 108, 0.3);
  background: rgba(231, 201, 108, 0.02);
}

/* Holder Style Debug Tag */
.white-holder-style-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 11px;
  opacity: 0.8;
  margin-left: 6px;
}

.white-holder-style-tag[hidden] {
  display: none;
}

/* ANACS Soapbox Banner */
.white-soapbox-banner {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.85;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.white-soapbox-banner[hidden] {
  display: none;
}

/* White Field Hint */
.white-field-hint {
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  line-height: 1.4;
}

/* Denomination Suggestions Dropdown */
.denomination-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: rgba(30, 30, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.denomination-suggestions.is-hidden {
  display: none;
}

.denomination-suggestion-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.denomination-suggestion-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.denomination-suggestion-item:active {
  background: rgba(231, 201, 108, 0.1);
}

/* White Step 2 Photo Strip */

.white-step2-photos {
  margin-bottom: 1rem;
}

.white-step2-photos-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e5e7eb;
  margin: 0 0 0.5rem 0;
}

.white-step2-photo-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.white-step2-photo-thumb-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.white-step2-photo-thumb-btn:hover {
  transform: scale(1.05);
}

.white-step2-photo-thumb-btn:active {
  transform: scale(0.95);
}

.white-step2-photo-thumb {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #020617;
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: block;
}

.white-step2-photo-thumb-btn:hover .white-step2-photo-thumb,
.white-step2-photo-thumb-btn:active .white-step2-photo-thumb {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.white-step2-photo-strip-empty {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
}

/* Photo Lightbox */
.white-photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.white-photo-lightbox.is-open {
  display: flex;
}

.white-photo-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 2px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
  background: #111;
}

.white-photo-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  background: rgba(17, 17, 17, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10001;
}

.white-photo-lightbox-close:hover {
  background: rgba(17, 17, 17, 1);
  border-color: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.4);
  transform: scale(1.05);
}

.white-photo-lightbox-close:active {
  transform: scale(0.95);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
  .white-photo-lightbox {
    padding: 0.5rem;
  }

  .white-photo-lightbox-close {
    width: 40px;
    height: 40px;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.75rem;
  }

  .white-photo-lightbox-img {
    border-width: 1px;
  }
}

/* --- White Step 2: Extraction Debug Panel --- */
.white-step2-debug {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.white-step2-debug-toggle {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0;
  margin-bottom: 0.25rem;
}

.white-step2-debug-toggle:hover {
  color: #b5bdc8;
}

.white-step2-debug-chevron {
  font-size: 0.75rem;
  opacity: 0.75;
}

.white-step2-debug-body {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.35rem;
}

.white-step2-debug-body.is-collapsed {
  display: none;
}

.white-step2-debug-line {
  margin: 0.1rem 0;
}

.white-step2-debug-note {
  margin-top: 0.4rem;
  color: #e5e7eb;
  font-style: italic;
}

/* --- Diagnostic Details Dropdown (Premium Glass Card) --- */
.white-diagnostics {
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Trigger row (collapsed state) */
.white-diagnostics-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.15s ease;
}

.white-diagnostics-toggle:hover {
  color: #f9fafb;
}

.white-diagnostics-label {
  flex: 1;
  text-align: left;
}

/* Chevron animation */
.white-diagnostics-chevron {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.6;
  transition: transform 0.15s ease, opacity 0.15s ease;
  transform: rotate(0deg);
  line-height: 1;
}

.white-diagnostics-toggle:hover .white-diagnostics-chevron {
  opacity: 0.9;
}

.white-diagnostics-toggle[aria-expanded="true"] .white-diagnostics-chevron {
  transform: rotate(90deg);
}

/* Expanded panel container */
.white-diagnostics-body {
  margin-top: 0.5rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.white-diagnostics-body.is-collapsed {
  display: none;
}

/* Glass card container */
.white-diagnostics-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Helper text */
.white-diagnostics-helper {
  color: rgba(156, 163, 175, 0.8);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

/* Monospaced JSON content */
.white-diagnostics-content {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin: 0;
  color: rgba(167, 243, 208, 0.9);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.6875rem;
  line-height: 1.6;
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Scrollbar styling (subtle, OS-style) */
.white-diagnostics-content::-webkit-scrollbar {
  width: 6px;
}

.white-diagnostics-content::-webkit-scrollbar-track {
  background: transparent;
}

.white-diagnostics-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

.white-diagnostics-content::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .white-diagnostics-card {
    padding: 0.875rem;
  }

  .white-diagnostics-content {
    font-size: 0.625rem;
    padding: 0.625rem;
    max-height: 200px;
    line-height: 1.5;
  }

  .white-diagnostics-helper {
    font-size: 0.6875rem;
  }
}

/* --- Report Extraction Issue Control --- */
.white-report-issue {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.white-report-issue-toggle {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(156, 163, 175, 0.5);
  transition: color 0.2s ease;
}

.white-report-issue-toggle:hover {
  color: #d1d5db;
  text-decoration-color: rgba(209, 213, 219, 0.7);
}

.white-report-issue-body {
  margin-top: 0.75rem;
  transition: all 0.2s ease;
  overflow: hidden;
}

.white-report-issue-body.is-collapsed {
  display: none;
}

.white-report-issue-form {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  padding: 1rem;
}

.white-report-issue-label {
  display: block;
  color: #e5e7eb;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.white-report-issue-textarea {
  width: 100%;
  max-width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 4px;
  color: #e5e7eb;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.625rem;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.white-report-issue-textarea:focus {
  outline: none;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.white-report-issue-textarea::placeholder {
  color: rgba(156, 163, 175, 0.6);
}

.white-report-issue-note {
  margin-top: 0.625rem;
  margin-bottom: 0.875rem;
  color: #9ca3af;
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.4;
}

.white-report-issue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  align-items: center;
}

.white-report-issue-submit-btn {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.white-report-issue-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
}

.white-report-issue-submit-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
}

.white-report-issue-cancel-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 0.5rem 0.625rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(156, 163, 175, 0.4);
  transition: color 0.2s ease;
}

.white-report-issue-cancel-btn:hover {
  color: #d1d5db;
  text-decoration-color: rgba(209, 213, 219, 0.6);
}

.white-report-issue-error {
  margin-top: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 4px;
  color: #fca5a5;
  font-size: 0.8125rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.white-report-issue-error.is-hidden {
  display: none;
}

.white-report-issue-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.95), rgba(22, 163, 74, 0.95));
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 12px rgba(34, 197, 94, 0.2);
  z-index: 10000;
  animation: slideUpFadeIn 0.3s ease;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

.white-report-issue-toast.is-hidden {
  display: none;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- Extraction Debug Panel (Developer Tool) --- */
.white-debug-panel {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.9));
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

.white-debug-summary {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  list-style: none;
  transition: background-color 0.2s ease;
  user-select: none;
}

.white-debug-summary::-webkit-details-marker {
  display: none;
}

.white-debug-summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.white-debug-chip {
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  text-transform: none;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.white-debug-body {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.white-debug-section {
  margin-bottom: 0.75rem;
}

.white-debug-section:last-child {
  margin-bottom: 0;
}

.white-debug-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  gap: 0.5rem;
}

.white-debug-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.white-debug-section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem 0;
  color: rgba(255, 255, 255, 0.6);
}

.white-debug-copy-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  min-height: 28px;
  min-width: 44px;
}

.white-debug-copy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.white-debug-copy-btn:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.98);
}

.white-debug-copy-btn.copied {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.5);
  color: #4CAF50;
}

.white-debug-pre {
  max-height: 220px;
  overflow: auto;
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.3;
  padding: 0.5rem;
  margin: 0;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.white-debug-routing {
  max-height: 160px;
  overflow: auto;
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

.white-debug-routing .debug-line+.debug-line {
  margin-top: 0.25rem;
}

/* Scrollbar styling for debug blocks */
.white-debug-pre::-webkit-scrollbar,
.white-debug-routing::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.white-debug-pre::-webkit-scrollbar-track,
.white-debug-routing::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.white-debug-pre::-webkit-scrollbar-thumb,
.white-debug-routing::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.white-debug-pre::-webkit-scrollbar-thumb:hover,
.white-debug-routing::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Upload status indicator */
.white-upload-status {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Mobile-specific adjustments for report issue control */
@media (max-width: 640px) {
  .white-report-issue-form {
    padding: 0.875rem;
  }

  .white-report-issue-textarea {
    font-size: 0.8125rem;
    min-height: 70px;
  }

  .white-report-issue-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .white-report-issue-submit-btn {
    width: 100%;
    justify-content: center;
  }

  .white-report-issue-cancel-btn {
    text-align: center;
  }

  .white-report-issue-toast {
    bottom: 1rem;
    font-size: 0.8125rem;
    padding: 0.625rem 1rem;
  }

  /* Mobile adjustments for diagnostics details */
  .white-diagnostics-summary {
    font-size: 0.8125rem;
    padding: 0.625rem 0.875rem;
  }

  .white-diagnostics-details-content {
    padding: 0 0.875rem 0.875rem 0.875rem;
  }

  .white-diagnostics-pre {
    font-size: 0.625rem;
    padding: 0.625rem;
    max-height: 180px;
  }
}

/* --- Error Banners --- */
.white-error-banner {
  display: none;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 4px;
  color: #fca5a5;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Success Banners --- */
.white-success-banner {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 6px;
}

.white-success-banner.is-hidden {
  display: none;
}

.white-success-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.white-success-left {
  flex: 1;
  min-width: 0;
}

.white-success-text {
  color: #86efac;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Courier New', monospace;
  margin-bottom: 0.5rem;
}

.white-success-url-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#white-step1-qr-canvas {
  display: block;
  background: white;
  padding: 2px;
  border-radius: 2px;
}

.white-url-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.white-success-url {
  color: #86efac;
  font-size: 0.8rem;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.white-copy-url-btn {
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.white-copy-url-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-copy-url-btn:active {
  transform: scale(0.98);
}

#white-print-slug {
  display: none;
}

.white-success-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

.white-review-button {
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.white-review-button:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-add-another-button {
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 4px;
  color: #86efac;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.white-add-another-button:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-nerd-toggle {
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 3px;
  color: #86efac;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
}

.white-nerd-toggle:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
}

.white-success-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.white-success-action-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  cursor: pointer;
  transition: all 0.2s;
}

.white-success-action-btn:hover {
  background: rgba(34, 197, 94, 0.3);
  border-color: rgba(34, 197, 94, 0.6);
}

.white-queue-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.white-queue-pill.is-hidden {
  display: none;
}

.white-nerd-body {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 4px;
}

.white-nerd-body.is-collapsed {
  display: none;
}

.white-nerd-json {
  margin: 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 3px;
  color: #86efac;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-x: auto;
}

/* --- Print Styles --- */
@media print {

  /* Hide everything by default */
  body * {
    visibility: hidden !important;
  }

  /* Show only the print wrapper and its contents */
  #white-print-wrapper,
  #white-print-wrapper * {
    visibility: visible !important;
  }

  /* Position wrapper at absolute top-left */
  #white-print-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
  }

  /* Force QR to exactly 10mm × 10mm */
  #white-print-qr-box {
    width: 10mm;
    height: 10mm;
    margin: 0;
    padding: 0;
    background: white;
  }

  /* Canvas fills the 10mm box */
  #white-step1-qr-canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0;
    padding: 0;
  }

  /* Hide screen URL in print */
  #white-step1-url {
    display: none !important;
  }

  /* Slug centered below QR */
  #white-print-slug {
    display: block !important;
    visibility: visible !important;
    text-align: center;
    font-size: 3mm;
    margin-top: 2mm;
  }

  /* Hide all other elements */
  .white-success-text,
  .white-success-actions,
  .white-review-button,
  .white-nerd-toggle,
  .white-nerd-body {
    display: none !important;
  }
}

.pq-meta-line {
  color: #000 !important;
  opacity: 0.9 !important;
  margin: 0 0 10px 0 !important;
  font-size: 12px !important;
}

.pq-print-meta,
.pq-kit-meta {
  opacity: 1 !important;
  color: #000 !important;
  font-weight: 800 !important;
  font-size: 3.2mm !important;
  /* was ~2.6–3.2; bump slightly */
  letter-spacing: 0.02em;
}