/* ==========================================================================
   YuriAI.space — Design System
   Light "royal" theme. Warm ivory surfaces, deep royal blue, restrained gold.
   ========================================================================== */

:root {
  --bg: #f6f4ee;
  --bg-raise: #efece3;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --border: rgba(28, 32, 56, 0.1);
  --border-strong: rgba(28, 32, 56, 0.18);
  --text: #1a1d2e;
  --text-2: #4c5169;
  --text-3: #82879c;
  --accent: #2e49c9;
  --accent-strong: #243aa8;
  --accent-dim: rgba(46, 73, 201, 0.09);
  --accent-text: #ffffff;
  --gold: #b98a2f;
  --gold-dim: rgba(185, 138, 47, 0.12);
  --success: #177a52;
  --success-dim: rgba(23, 122, 82, 0.1);
  --error: #c93f3f;
  --error-dim: rgba(201, 63, 63, 0.1);
  --warn: #a06a10;
  --warn-dim: rgba(160, 106, 16, 0.12);
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 50px rgba(35, 40, 90, 0.12);
  --shadow-sm: 0 6px 20px rgba(35, 40, 90, 0.08);
  --font: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, Menlo, monospace;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E"),
    radial-gradient(1100px 560px at 82% -12%, rgba(46, 73, 201, 0.07), transparent 62%),
    radial-gradient(820px 480px at -12% 32%, rgba(185, 138, 47, 0.05), transparent 55%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(46, 73, 201, 0.18);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img,
svg,
canvas {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
h3 {
  font-size: 1.1rem;
}
p {
  margin: 0 0 1em;
  color: var(--text-2);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

main {
  flex: 1;
  padding: 48px 0 80px;
}

.section {
  padding: 56px 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head p {
  font-size: 1.02rem;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(246, 244, 238, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img,
.brand svg {
  width: 30px;
  height: 30px;
  display: block;
}
.brand .brand-tld {
  color: var(--text-3);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    background: rgba(246, 244, 238, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    padding: 12px 14px;
    font-size: 1rem;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 88px 0 64px;
  text-align: center;
}
.hero h1 {
  max-width: 780px;
  margin: 0 auto 18px;
  letter-spacing: -0.035em;
}
.hero h1 .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.hero .lede {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.12rem;
  color: var(--text-2);
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Crafted product-preview mock for the hero */
.hero-mock {
  width: min(460px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mock { animation: none; }
}
.hero-mock.hm-swap {
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.hm-size, .hm-tag, .hm-stat-label, .hm-badge, .hm-file span, .hm-fill {
  transition: opacity 0.25s ease;
}

/* "yuri" keystroke easter egg toast */
.yuri-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(20, 24, 48, 0.25);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 200;
  pointer-events: none;
}
.yuri-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.hm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.hm-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}
.hm-file svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}
.hm-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm-size {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-3);
  white-space: nowrap;
}
.hm-size b {
  color: var(--success);
  font-weight: 600;
}
.hm-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.hm-preview {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hm-preview-a {
  background:
    radial-gradient(120% 90% at 20% 15%, rgba(46, 73, 201, 0.28), transparent 55%),
    linear-gradient(160deg, #dfe3f5, #c9cdea 70%);
}
.hm-preview-b {
  background:
    radial-gradient(120% 90% at 80% 85%, rgba(23, 122, 82, 0.22), transparent 55%),
    linear-gradient(200deg, #dcebdd, #c3dcc9 70%);
}
.hm-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hm-tag {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 99px;
  backdrop-filter: blur(6px);
}
.hm-foot {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hm-stat {
  flex: 1;
  min-width: 0;
}
.hm-stat .hm-stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 7px;
}
.hm-track {
  height: 5px;
  border-radius: 99px;
  background: var(--surface-2);
  overflow: hidden;
}
.hm-fill {
  height: 100%;
  width: 72%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), #6d84e8);
}
.hm-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-dim);
  border: 1px solid rgba(23, 122, 82, 0.3);
  padding: 6px 12px;
  border-radius: 99px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    transform 0.18s var(--ease), opacity 0.18s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover {
  background: rgba(28, 32, 56, 0.06);
  border-color: rgba(28, 32, 56, 0.3);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-text);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-2);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}
.btn-danger {
  color: var(--error);
  border-color: rgba(242, 109, 109, 0.3);
}
.btn-danger:hover {
  background: var(--error-dim);
  border-color: var(--error);
  color: var(--error);
}
.btn-sm {
  padding: 7px 14px;
  font-size: 0.82rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}
.btn.is-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-ghost.is-loading::after {
  border-color: rgba(28, 32, 56, 0.2);
  border-top-color: var(--text);
}

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

/* --------------------------------------------------------------------------
   Cards & panels
   -------------------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.card + .card {
  margin-top: 18px;
}

.panel {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* Tool card grid (homepage + related tools) */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  text-decoration: none;
}
.tool-card .tc-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 4px;
}
.tool-card .tc-icon svg {
  width: 22px;
  height: 22px;
}
.tool-card .tc-name {
  font-weight: 650;
  font-size: 1rem;
}
.tool-card .tc-desc {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.5;
  flex: 1;
}
.tool-card .tc-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.tool-card .tc-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}
.tool-card:hover .tc-link svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Dropzone / upload
   -------------------------------------------------------------------------- */

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  color: var(--text-2);
}
.dropzone svg {
  width: 34px;
  height: 34px;
  color: var(--text-3);
  transition: color 0.2s;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.dropzone:hover svg,
.dropzone.dragover svg {
  color: var(--accent);
}
.dropzone .dz-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.98rem;
}
.dropzone .dz-hint {
  font-size: 0.82rem;
  color: var(--text-3);
}
.dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* File list (multi-file tools) */
.file-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.file-item .fi-icon {
  color: var(--accent);
  flex-shrink: 0;
}
.file-item .fi-icon svg {
  width: 18px;
  height: 18px;
}
.file-item .fi-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.file-item .fi-meta {
  color: var(--text-3);
  font-size: 0.8rem;
  white-space: nowrap;
}
.file-item .fi-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Forms / controls
   -------------------------------------------------------------------------- */

.field {
  margin-bottom: 18px;
}
.field label,
.field .field-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field .field-hint {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 6px;
}

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color 0.18s var(--ease), background 0.18s;
}
.input::placeholder {
  color: var(--text-3);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(46, 73, 201, 0.05);
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2382879c' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
textarea.input {
  resize: vertical;
  min-height: 110px;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.range-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
}
.range-row .range-val {
  min-width: 58px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}

input[type="color"] {
  width: 48px;
  height: 40px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.checkbox-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Stats / results */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.stat .stat-value {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text);
}
.stat .stat-value.good {
  color: var(--success);
}
.stat .stat-value.bad {
  color: var(--error);
}

/* Preview area */
.preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
}
.preview-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    repeating-conic-gradient(#e6e3da 0% 25%, #d9d5c9 0% 50%) 0 0 / 20px 20px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.preview-box img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 6px;
}
.preview-box .pb-label {
  position: absolute;
}
.preview-fig {
  margin: 0;
}
.preview-fig figcaption {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.preview-fig { position: relative; }

/* Progress bar */
.progress {
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 14px 0;
}
.progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #6d84e8);
  border-radius: 99px;
  transition: width 0.3s var(--ease);
}

/* Status / alerts */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  margin: 14px 0;
}
.alert svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}
.alert-info {
  background: var(--accent-dim);
  border-color: rgba(46, 73, 201, 0.25);
  color: var(--accent-strong);
}
.alert-success {
  background: var(--success-dim);
  border-color: rgba(23, 122, 82, 0.3);
  color: var(--success);
}
.alert-error {
  background: var(--error-dim);
  border-color: rgba(201, 63, 63, 0.3);
  color: var(--error);
}
.alert-warn {
  background: var(--warn-dim);
  border-color: rgba(160, 106, 16, 0.3);
  color: var(--warn);
}
.alert[hidden] {
  display: none;
}

/* Tool layout */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}
.tool-main {
  min-width: 0;
}
.tool-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
@media (max-width: 900px) {
  .tool-side {
    position: static;
  }
}

.page-head {
  margin-bottom: 32px;
}
.page-head p {
  max-width: 640px;
  font-size: 1.02rem;
}

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.step .step-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1rem;
}
.step p {
  font-size: 0.88rem;
  color: var(--text-3);
  margin: 0;
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary svg {
  transform: rotate(180deg);
}
.faq .faq-body {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--text-2);
}

/* Privacy band */
.privacy-band {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  background: linear-gradient(135deg, rgba(46, 73, 201, 0.07), rgba(185, 138, 47, 0.06));
  border: 1px solid rgba(46, 73, 201, 0.18);
  border-radius: var(--radius-lg);
}
.privacy-band svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.privacy-band h3 {
  margin-bottom: 6px;
}
.privacy-band p {
  margin: 0;
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 280px;
  margin-top: 12px;
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li {
  margin-bottom: 9px;
}
.footer-col a {
  color: var(--text-2);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* Ad placeholder (enabled after AdSense approval) */
.ad-slot {
  margin: 32px 0;
  padding: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-3);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.ad-slot::before {
  content: "Advertisement";
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Utility */
.muted {
  color: var(--text-3);
}
.small {
  font-size: 0.85rem;
}
.mono {
  font-family: var(--mono);
}
.hidden {
  display: none !important;
}
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* Legal / prose pages */
.prose {
  max-width: 720px;
}
.prose h2 {
  margin-top: 2em;
  font-size: 1.3rem;
}
.prose h3 {
  margin-top: 1.6em;
  font-size: 1.05rem;
}
.prose ul,
.prose ol {
  color: var(--text-2);
  padding-left: 1.4em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose strong {
  color: var(--text);
}
.updated {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* Contact form */
.contact-form .btn {
  margin-top: 6px;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 100px 0;
}
.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #6d84e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}

/* ==========================================================================
   Auth / account
   ========================================================================== */

.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
}
.auth-card {
  padding: 34px;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.auth-sub {
  color: var(--text-3);
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-3);
}
.auth-switch a {
  font-weight: 600;
}

.channel-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.channel-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s;
}
.channel-opt svg {
  width: 20px;
  height: 20px;
}
.channel-opt:hover {
  border-color: var(--accent);
}
.channel-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-strong);
}
.channel-opt .co-hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
}
.channel-opt.selected .co-hint {
  color: var(--accent-strong);
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 6px;
}
.otp-inputs input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: var(--mono);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-solid);
  color: var(--text);
}
.otp-inputs input:focus {
  outline: none;
  border-color: var(--accent);
}

.turnstile-box {
  margin: 16px 0;
  min-height: 65px;
  display: flex;
  justify-content: center;
}

/* Turnstile-gated action buttons */
.ts-gate {
  margin: 14px 0 4px;
}
.ts-gate-widget {
  min-height: 65px;
  display: flex;
  justify-content: center;
}
.ts-gate-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.ts-gate-hint-err {
  color: var(--error, #c93f3f);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.user-chip .uc-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Account menu (nav) */
.acct-menu {
  position: relative;
}
.acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.acct-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim, rgba(46, 73, 201, 0.08));
}
.acct-btn .uc-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex: none;
}
.acct-btn svg { width: 18px; height: 18px; }
.acct-btn .acct-caret { width: 12px; height: 12px; opacity: 0.6; }
.acct-menu.open .acct-btn { border-color: var(--accent); }

.acct-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(20, 24, 48, 0.14), 0 2px 8px rgba(20, 24, 48, 0.08);
  z-index: 60;
  animation: acct-in 0.14s ease-out;
}
@keyframes acct-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.acct-dropdown .acct-head {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.acct-dropdown .acct-head .ah-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-dropdown .acct-head .ah-sub {
  font-size: 0.75rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.acct-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}
.acct-item:hover { background: var(--surface-2); }
.acct-item svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.acct-item.acct-danger { color: var(--error, #c93f3f); }
.acct-item.acct-danger svg { color: var(--error, #c93f3f); }
.acct-item.acct-danger:hover { background: var(--error-dim); }
.acct-sep {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.danger-zone {
  border: 1px solid rgba(201, 63, 63, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--error-dim);
}
.danger-zone h3 {
  color: var(--error);
  margin-top: 0;
}

/* ==========================================================================
   PDF page thumbnails / editor
   ========================================================================== */

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.page-thumb {
  position: relative;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.page-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.page-thumb.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.page-thumb canvas {
  display: block;
  width: 100%;
  height: auto;
}
.page-thumb .pt-num {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(20, 22, 40, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.page-thumb .pt-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.page-thumb .pt-actions .icon-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  color: var(--text-2);
  width: 28px;
  height: 28px;
}
.page-thumb .pt-actions .icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.page-thumb .pt-actions .icon-btn svg {
  width: 14px;
  height: 14px;
}
.page-thumb .pt-rotated {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(46, 73, 201, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
}

/* ==========================================================================
   Video / misc tool UI
   ========================================================================== */

.video-preview {
  width: 100%;
  max-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
}
.engine-note {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 8px;
}
.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.preset-chip {
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.preset-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.preset-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
@media (max-width: 560px) {
  .slider-grid { grid-template-columns: 1fr; }
}

/* Page picker dimming (splitter) + editor drag states */
#page-picker .page-thumb:not(.selected) {
  opacity: 0.4;
}
#page-picker .page-thumb.selected {
  opacity: 1;
}
.page-thumb.dragging {
  opacity: 0.5;
}
.page-thumb.thumb-failed canvas {
  min-height: 120px;
  background: repeating-conic-gradient(#e6e3da 0% 25%, #d9d5c9 0% 50%) 0 0 / 16px 16px;
}

/* ==========================================================================
   Docs page
   ========================================================================== */
.docs-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 40px;
  align-items: start;
}
.docs-toc {
  position: sticky; top: 90px;
  display: flex; flex-direction: column; gap: 18px;
}
.docs-toc-group h4 {
  margin: 0 0 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted, #8a8574);
}
.docs-toc a {
  display: block; font-size: 13px; color: var(--ink-soft, #4a4f66);
  padding: 3px 0; text-decoration: none;
}
.docs-toc a:hover { color: var(--accent, #2e49c9); }
.docs-body h3 { margin-top: 34px; scroll-margin-top: 90px; }
.docs-body h4 { margin-top: 20px; font-size: 15px; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .docs-toc-group { display: contents; }
  .docs-toc-group h4 { width: 100%; }
}


/* ==========================================================================
   UI polish — scroll reveal + back-to-top
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease, ease), transform 0.6s var(--ease, ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

#to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-solid, #fff);
  color: var(--text-2);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm, 0 6px 20px rgba(35,40,90,.08));
}
#to-top.show { opacity: 1; transform: none; pointer-events: auto; }
#to-top:hover { color: var(--accent); }
@media (max-width: 640px) { #to-top { right: 14px; bottom: 14px; } }

/* 404 page */
.error-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Mobile app polish — tap feel, safe areas, install banner
   -------------------------------------------------------------------------- */

html {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Hard guarantee: nothing may ever make the page draggable sideways.
   `clip` doesn't create a scroll container, so position:sticky stays intact;
   `hidden` is the fallback for older browsers. */
html,
body {
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* iOS Safari auto-zooms on inputs under 16px — bump them on phones. */
@media (max-width: 760px) {
  .input,
  select.input,
  textarea.input {
    font-size: 16px;
  }
  .nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Notched phones: keep header content, footer and floating buttons clear
   of the status bar / home indicator. */
@supports (padding: env(safe-area-inset-top)) {
  .site-header {
    height: calc(var(--header-h) + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }
  .site-footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }
  #to-top {
    bottom: calc(18px + env(safe-area-inset-bottom));
    right: calc(18px + env(safe-area-inset-right));
  }
  @media (max-width: 760px) {
    .nav-links {
      top: calc(var(--header-h) + env(safe-area-inset-top));
    }
  }
}

/* Install banner — shown when the browser offers PWA install. */
.install-banner {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 24px);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  padding: 10px 10px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.install-banner.show {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.install-banner img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
}
.install-banner .ib-text {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.35;
  min-width: 0;
}
.install-banner .ib-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
}
.install-banner .ib-actions {
  display: flex;
  gap: 6px;
  flex: none;
}
.install-banner .btn {
  padding: 8px 14px;
  font-size: 0.82rem;
}
@media (max-width: 480px) {
  .install-banner .ib-text {
    display: none;
  }
  .install-banner {
    gap: 8px;
  }
}

/* Searchable format dropdown (file converter) */
.fc-select {
  position: relative;
}
.fc-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}
.fc-select-btn .fc-caret {
  flex: none;
  color: var(--text-3);
  transition: transform 0.18s var(--ease);
}
.fc-select-btn[aria-expanded="true"] .fc-caret {
  transform: rotate(180deg);
}
.fc-select-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(20, 24, 50, 0.16);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-select-panel[hidden] {
  display: none;
}
.fc-select-panel .input {
  padding: 9px 12px;
  font-size: 0.88rem;
}
.fc-select-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.fc-opt-group {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 10px 4px;
}
.fc-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
}
.fc-opt:hover,
.fc-opt:focus-visible {
  background: var(--accent-dim);
  outline: none;
}
.fc-opt[aria-selected="true"] {
  background: var(--accent-dim);
  color: var(--accent-strong);
  font-weight: 600;
}
.fc-opt-note {
  display: block;
  font-size: 0.74rem;
  color: var(--text-3);
  font-weight: 400;
}
.fc-opt-empty {
  padding: 14px 10px;
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
}

/* Photo Map metadata table */
.meta-row{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px solid var(--border);}
.meta-row:last-child{border-bottom:0;}
.meta-k{color:#8a8574;font-size:13px;flex-shrink:0;}
.meta-v{font-size:13px;font-weight:600;text-align:right;word-break:break-word;}
