@media print {
  /* default portrait — JS injects a <style id="flyer-page-orient"> to override this when photo is landscape */
  @page { size: Letter portrait; margin: 0; }
  body * { visibility: hidden; }
  .flyer-print, .flyer-print * { visibility: visible; }
  .flyer-print {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
  }
  .flyer-page {
    width: 100vw !important;
    height: 100vh !important;
    aspect-ratio: unset !important;
  }
  nav, .no-print, .flyer-screen-header { display: none !important; }
}

body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.brand-home-link {
  text-decoration: none;
}

.brand-logo {
  width: clamp(2.6rem, 7vw, 3.8rem);
  height: clamp(2.6rem, 7vw, 3.8rem);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-home-link:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(251,191,36,0.4);
}

.logo-watermark {
  width: min(42vw, 20rem);
  max-width: 320px;
  opacity: 0.09;
  filter: grayscale(8%);
  -webkit-user-select: none;
  pointer-events: none;
  user-select: none;
}

.logo-watermark-strong {
  opacity: 0.16;
}

/* Prevent iOS auto-zoom on input focus (requires font-size >= 16px on inputs) */
input, select, textarea {
  font-size: max(16px, 1em);
}

/* Smooth scrolling everywhere */
html {
  scroll-behavior: smooth;
}

/* Better touch on range inputs */
input[type="range"] {
  touch-action: manipulation;
  cursor: pointer;
}

:root {
  --flyer-surface: #f8fafc;
  --flyer-surface-strong: #e2e8f0;
  --flyer-ink: #0f172a;
  --flyer-ink-soft: #334155;
  --flyer-accent: #0f766e;
  --flyer-accent-strong: #115e59;
  --flyer-action: #1d4ed8;
  --flyer-action-strong: #1e40af;
  --flyer-lost: #9f1239;
  --flyer-lost-border: #fecdd3;
  --flyer-found: #0f766e;
  --flyer-found-border: #99f6e4;
  --flyer-reunited: #166534;
  --flyer-reunited-border: #86efac;
  --flyer-overlay-top: rgba(15, 23, 42, 0.06);
  --flyer-overlay-bottom: rgba(15, 23, 42, 0.92);
  --flyer-note-bg: rgba(15, 23, 42, 0.88);
}

.neon-emerald {
  text-shadow: 0 0 5px #2dffb3, 0 0 10px #2dffb3, 0 0 20px #2dffb3, 0 0 40px #2dffb3;
}

.neon-rose {
  text-shadow: 0 0 5px #ff2d55, 0 0 10px #ff2d55, 0 0 20px #ff2d55, 0 0 40px #ff2d55;
}

/* ==================== COMPACT NAV HEADER ==================== */
nav {
  --nav-padding: 0.5rem; /* Reduced from py-3 (0.75rem) */
}

.brand-logo {
  width: clamp(2rem, 6vw, 2.8rem); /* Reduced from 2.6rem-3.8rem */
  height: clamp(2rem, 6vw, 2.8rem);
}

.auth-shell-wrap {
  padding-bottom: 0.375rem; /* Reduced from pb-3 */
}

.auth-shell-box {
  padding: 0.5rem; /* Reduced from p-3 */
}

.auth-shell-box .flex {
  gap: 0.375rem; /* Reduced from gap-3 */
}

.auth-shell-wrap .text-xs {
  font-size: 0.625rem; /* Even smaller caption text */
}

/* Hide tagline on mobile to save space */
@media (max-width: 640px) {
  nav .text-xs.text-slate-400 {
    display: none;
  }
}

/* ==================== THREE-DOT MENU ICON ==================== */
.menu-dots {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 1.25rem;
  height: 1.25rem;
}

.menu-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background-color: currentColor;
}

/* ==================== REUNITED PETS TICKER ==================== */
.reunited-section {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.95) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgba(16,185,129,0.05)"/><stop offset="100%" style="stop-color:rgba(15,23,42,0.2)"/></linearGradient></defs><rect fill="url(%23grad)" width="1200" height="120"/></svg>');
  background-attachment: fixed;
  overflow: hidden;
  padding: 1.5rem 1rem;
  border-top: 2px solid rgba(16, 185, 129, 0.3);
  border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.reunited-ticker-label {
  max-width: 7xl;
  margin: 0 auto 1rem;
  text-align: center;
}

.reunited-ticker-label h2 {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2dffb3 0%, #86efac 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.25rem 0;
}

.reunited-ticker-label p {
  font-size: 0.75rem;
  color: #cbd5e1;
  margin: 0;
}

.reunited-ticker-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.reunited-ticker-track {
  display: flex;
  gap: 1rem;
  animation: scroll-ticker 40s linear infinite;
  padding: 0.5rem 0;
}

.reunited-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.reunited-ticker-card {
  position: relative;
  overflow: hidden;
}

.reunited-ticker-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top-left, rgba(16, 185, 129, 0.1), transparent);
  pointer-events: none;
}

.reunited-ticker-card:hover {
  transform: translateY(-4px);
}

/* ==================== FOOTER SPACING ADJUSTMENT ==================== */
body {
  padding-bottom: 0; /* Reunited section handles its own spacing */
}

.neon-blue {
  text-shadow: 0 0 5px #00eaff, 0 0 10px #00eaff, 0 0 20px #00eaff, 0 0 40px #00eaff;
}

#map {
  min-height: 16rem;
  position: relative;
}

.gmap-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 2px solid rgba(255,255,255,0.7);
}

.gmap-pin--lost {
  background: #be123c;
}

.gmap-pin--found {
  background: #0f766e;
}

.search-result-pin-num {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 1;
}

.search-result-thumb {
  position: relative;
}

.search-result-card.pin-active {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px #38bdf844;
}

/* Flyer viewer modal */
#flyer-viewer-modal {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.fv-scroll-wrap {
  overflow-y: auto;
}

.map-canvas {
  height: 20rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.5rem;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-link:hover {
  color: #e2e8f0;
}

.legal-bar {
  position: relative;
  width: min(100%, 48rem);
  margin: 1rem auto 0;
  z-index: 22;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.legal-bar > div {
  justify-content: center;
  text-align: center;
}

/* Evaluator floating button position */
.eval-toggle-btn {
  bottom: 4.5rem;
}

/* ── Mobile: scrollable tab bar ────────────────────────── */
.tabs-list {
  display: flex;
  overflow-x: auto;
  gap: 0.25rem;
  padding-bottom: 2px;
}
.tabs-list::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 64px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  border: 1px solid #334155;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.tab-btn.is-active {
  border-color: #10b981;
  color: #6ee7b7;
  background: #0f2720;
}

/* ── iOS safe-area breathing room for the legal strip ───── */
.legal-bar {
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 4px);
  border-left: 1px solid #1e293b;
  border-right: 1px solid #1e293b;
  border-top-left-radius: 0.85rem;
  border-top-right-radius: 0.85rem;
  border-bottom-left-radius: 0.85rem;
  border-bottom-right-radius: 0.85rem;
}

/* Evaluator progress bar starts at zero width */
.eval-progress-bar {
  width: 0%;
}

.tabs-shell {
  position: relative;
  z-index: 1;
}

#main-content {
  padding-top: 11.5rem;
}

@media (max-width: 768px) {
  .tabs-shell {
    padding: 0;
  }

  #main-content {
    padding-top: 7.2rem;
  }

  .auth-shell-wrap {
    position: fixed;
    top: 0.55rem;
    right: 0.55rem;
    left: auto;
    width: auto;
    max-width: calc(100vw - 1.1rem);
    z-index: 45;
    padding: 0;
    margin: 0;
  }

  .auth-shell-box {
    padding: 0;
    border: none;
    background: transparent;
  }

  #auth-user-compact {
    display: none;
  }

  #toggle-auth-panel {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(100, 116, 139, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }

  #auth-panel {
    margin-top: 0.35rem;
    border-top: none;
    padding-top: 0;
  }
}
.tabs-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
  gap: 0.2rem;
  padding: 0.28rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(71, 85, 105, 0.75);
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  max-width: 80rem;
  margin: 0 auto;
}

.tab-btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0.4rem 0.25rem;
  min-height: 38px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.35);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tab-btn:hover {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
}

.tab-btn.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #0f172a;
}

@media (max-width: 640px) {
  .tabs-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .tab-btn {
    font-size: 0.64rem;
    padding: 0.36rem 0.2rem;
  }
}

/* ── FLYER PAPER (screen card wrapper) ───────── */
.flyer-paper {
  background: var(--flyer-surface);
  border: 1px solid #cbd5e1;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
  width: min(100%, 8.5in);
  overflow: hidden;
  border-radius: 0.5rem;
}

/* screen-only header strip */
.flyer-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #334155;
  background: linear-gradient(135deg, #dbe4ea 0%, #bfd0db 100%);
  gap: 0.5rem;
  flex-wrap: wrap;
}
.flyer-screen-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--flyer-ink);
}
.flyer-screen-sub {
  font-size: 0.68rem;
  color: var(--flyer-ink-soft);
  margin-left: 0.4rem;
}
.flyer-preview-btn,
.flyer-print-btn {
  min-height: 44px;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--flyer-action);
  border-radius: 0.25rem;
  background: #ffffff;
  color: var(--flyer-action-strong);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.flyer-preview-btn:hover,
.flyer-print-btn:hover {
  border-color: var(--flyer-action-strong);
  background: #dbeafe;
  color: #1e3a8a;
}

/* LOST/FOUND badge in screen header */
.flyer-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.2rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
}

/* ── PRINTABLE PAGE ───────────────────────────── */
/* portrait by default; .flyer-landscape flips aspect ratio */
.flyer-page {
  position: relative;
  width: 100%;
  aspect-ratio: 8.5 / 11;
  overflow: hidden;
  background: var(--flyer-surface-strong);
}
.flyer-page.flyer-landscape {
  aspect-ratio: 11 / 8.5;
}

/* full-bleed photo */
.flyer-photo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #e2e8f0 0%, #cbd5e1 100%);
  overflow: hidden;
}
.flyer-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.98) contrast(1.04);
}
.flyer-photo-placeholder {
  color: var(--flyer-ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* status stamp — top-left of photo */
.flyer-stamp {
  position: absolute;
  top: 3.5%;
  left: 3.5%;
  z-index: 10;
  font-size: clamp(0.9rem, 3.5vw, 1.8rem);
  font-weight: 900;
  padding: 0.2em 0.5em;
  border-radius: 0.2rem;
  letter-spacing: 0.1em;
  line-height: 1.25;
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.35);
}
.flyer-status-lost {
  background: var(--flyer-lost);
  color: #ffffff;
  border: 2px solid var(--flyer-lost-border);
}
.flyer-status-found {
  background: var(--flyer-found);
  color: #ffffff;
  border: 2px solid var(--flyer-found-border);
}
.flyer-status-reunited {
  background: var(--flyer-reunited);
  color: #ffffff;
  border: 2px solid var(--flyer-reunited-border);
}

.search-result-layout {
  display: grid;
  grid-template-columns: minmax(92px, 108px) minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.search-result-thumb {
  position: relative;
  aspect-ratio: 8.5 / 11;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid #334155;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
}

.search-result-thumb-image,
.search-result-thumb-placeholder {
  width: 100%;
  height: 100%;
}

.search-result-thumb-image {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.search-result-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.search-result-thumb-badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.15;
  padding: 0.2rem 0.38rem;
  border-radius: 0.35rem;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.28);
}

.search-result-info {
  min-width: 0;
}

.search-result-actions {
  grid-column: 1 / -1;
}

.search-result-compact-action {
  min-height: 36px;
  padding: 0.35rem 0.6rem;
}

.share-chooser-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.share-chooser-btn {
  min-height: 44px;
  border-radius: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(30, 41, 59, 0.75);
  color: #e0e7ff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.8rem 0.9rem;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.share-chooser-btn:hover {
  border-color: rgba(129, 140, 248, 0.75);
  background: rgba(49, 46, 129, 0.22);
  transform: translateY(-1px);
}

.share-chooser-btn-wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .share-chooser-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .share-chooser-btn-wide {
    grid-column: auto;
  }
}

@media (min-width: 960px) {
  .search-result-layout {
    grid-template-columns: minmax(92px, 108px) minmax(0, 1fr) auto;
  }

  .search-result-actions {
    grid-column: auto;
    justify-content: flex-end;
  }
}

/* additional-info pill — top-right (hidden until notes exist) */
.flyer-notes-hidden { display: none; }
.flyer-notes-pill {
  position: absolute;
  top: 3.5%;
  right: 3.5%;
  z-index: 10;
  background: var(--flyer-note-bg);
  color: #f8fafc;
  padding: 0.35em 0.6em;
  border-radius: 0.3rem;
  font-size: clamp(0.5rem, 1.4vw, 0.78rem);
  max-width: 32%;
  text-align: right;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

/* bottom gradient info overlay */
.flyer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: linear-gradient(
    to top,
    var(--flyer-overlay-bottom) 0%,
    rgba(15, 23, 42, 0.82) 38%,
    var(--flyer-overlay-top) 100%
  );
  padding: 7% 4.5% 3%;
}
.flyer-name {
  font-size: clamp(1.5rem, 6vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.88);
}
.flyer-meta {
  font-size: clamp(0.55rem, 1.8vw, 0.95rem);
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25em;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.88);
}
.flyer-last-seen {
  font-size: clamp(0.55rem, 1.6vw, 0.88rem);
  color: #e2e8f0;
  margin-top: 0.2em;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.88);
}
.flyer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem;
  margin-top: 0.6em;
  flex-wrap: wrap;
}
.flyer-urgency {
  font-size: clamp(0.5rem, 1.5vw, 0.82rem);
  font-weight: 700;
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 4px rgba(15, 23, 42, 0.88);
}

/* QR block on printed flyer */
.flyer-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
}
.flyer-qr-img {
  width: clamp(52px, 11vw, 96px);
  height: clamp(52px, 11vw, 96px);
  border-radius: 0.25rem;
  background: #ffffff;
  padding: 3px;
  display: block;
}
.flyer-qr-label {
  font-size: clamp(0.45rem, 1.3vw, 0.7rem);
  font-weight: 700;
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(15,23,42,0.88);
  text-align: center;
}

.photo-pos-preview {
  position: relative;
  width: 100%;
  max-width: 112px;
  aspect-ratio: 8.5 / 11;
  border-radius: 0.6rem;
  overflow: hidden;
  border: 1px solid rgba(71, 85, 105, 0.85);
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
  cursor: grab;
  touch-action: none;
}

.photo-pos-preview.is-landscape {
  max-width: 132px;
  aspect-ratio: 11 / 8.5;
}

.photo-pos-preview:active {
  cursor: grabbing;
}

.photo-pos-preview.is-drop-target {
  border-color: rgba(16, 185, 129, 0.95);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.28), inset 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.photo-pos-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.14s ease, object-position 0.14s ease;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.photo-pos-hint {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  font-size: 0.68rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.photo-pos-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.2;
  text-align: center;
  padding: 0.55rem;
  word-break: break-word;
}

.photo-preview-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.76) 0%, rgba(2, 6, 23, 0.7) 100%);
  padding: 0.7rem;
}

.photo-preview-caption {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.3;
  color: #94a3b8;
  text-align: center;
}

.photo-adjust-panel {
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.06);
}

.photo-adjust-card {
  display: grid;
  gap: 0.9rem;
  align-items: center;
}

.photo-adjust-copy {
  min-width: 0;
}

.photo-adjust-reset {
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(71, 85, 105, 0.9);
  background: rgba(15, 23, 42, 0.95);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
}

.photo-adjust-reset:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: #f8fafc;
}

.photo-zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.photo-zoom-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(71, 85, 105, 0.85);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
}

.photo-zoom-btn:hover {
  border-color: rgba(16, 185, 129, 0.8);
  color: #6ee7b7;
}

.photo-zoom-readout {
  min-width: 5.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  border: 1px solid rgba(71, 85, 105, 0.75);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.45rem 0.7rem;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .photo-preview-shell {
    padding: 0.6rem;
  }

  .photo-pos-preview {
    max-width: 104px;
  }

  .photo-pos-preview.is-landscape {
    max-width: 124px;
  }
}

@media (min-width: 640px) {
  .photo-adjust-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}
