/* ==========================================================================
   Digital visiting card - stylesheet
   Mobile first. The public card is capped at 450px so it reads like a real
   card on a phone and stays card-shaped on a desktop.
   ========================================================================== */

:root {
  --brand-900: #0b3b2c;
  --brand-700: #146b4a;
  --brand-500: #1e9e68;
  --brand-100: #ddefe4;
  --brand-050: #f0f7f2;

  --ink: #0e1f19;
  --muted: #5a7268;
  --line: #d7e5dd;
  --paper: #f4f7f4;
  --white: #ffffff;
  --danger: #b3261e;
  --danger-soft: #fdecea;
  --warn: #8a6100;
  --warn-soft: #fff6e0;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 40px rgba(11, 59, 44, 0.12);
  --shadow-soft: 0 2px 10px rgba(11, 59, 44, 0.06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-700); }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  font-weight: 650;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }

p { margin: 0 0 14px; }

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

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

/* ------------------------------------------------------------- page frame */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  flex: 1;
}

.wrap-narrow { max-width: 460px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: var(--brand-900);
  text-decoration: none;
  font-size: 1.02rem;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-900));
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.site-footer {
  text-align: center;
  padding: 24px 20px 32px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 40px 0 8px;
}

.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 2.6rem);
  max-width: 15ch;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-preview {
  margin: 28px 0 8px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-preview .swatch {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 650;
}

.hero-preview .lines { flex: 1; min-width: 0; }
.hero-preview .lines strong { display: block; font-size: 1.05rem; }
.hero-preview .lines span { display: block; color: var(--muted); font-size: 0.9rem; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 13px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--brand-700); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: var(--brand-900); }

.btn-secondary { background: var(--white); color: var(--brand-900); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { border-color: var(--brand-500); }

.btn-quiet { background: transparent; color: var(--muted); padding: 10px 12px; }
.btn-quiet:hover:not(:disabled) { color: var(--brand-900); }

.btn-danger { background: var(--white); color: var(--danger); border-color: #efc9c6; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }

.btn-block { width: 100%; }

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.feature strong { display: block; margin-bottom: 2px; font-size: 0.98rem; }
.feature span { color: var(--muted); font-size: 0.86rem; }

/* ------------------------------------------------------------------ panels */

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
}

.panel h2 { margin-bottom: 4px; }
.panel .panel-note { color: var(--muted); font-size: 0.9rem; }

.step-label {
  color: var(--brand-700);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field .help {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 5px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="file"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

input:focus, textarea:focus {
  border-color: var(--brand-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 158, 104, 0.18);
}

input[readonly] { background: var(--brand-050); color: var(--muted); }

.mobile-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
}

.mobile-input span {
  padding: 12px 12px;
  background: var(--brand-050);
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-weight: 600;
}

.mobile-input input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.mobile-input input:focus { box-shadow: none; }

.otp-input {
  font-size: 1.6rem;
  letter-spacing: 0.5em;
  text-align: center;
  padding-left: 0.5em;
  font-variant-numeric: tabular-nums;
}

.form-grid { display: grid; gap: 0 14px; }

.fieldset-title {
  font-weight: 650;
  margin: 22px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.fieldset-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ----------------------------------------------------------------- alerts */

.alert {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 0.92rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f2cdca; }
.alert-info { background: var(--brand-050); color: var(--brand-900); border-color: var(--brand-100); }
.alert-success { background: var(--brand-100); color: var(--brand-900); border-color: #bfe0cd; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0dcae; }

.privacy-note {
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--brand-900);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

/* -------------------------------------------------------------- dashboard */

.link-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 16px;
  overflow: hidden;
}

.link-box code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--brand-900);
}

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

.media-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.media-item { text-align: center; }

.media-item .media-frame {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: var(--brand-050);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.media-item .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-item .media-frame.round { border-radius: 50%; }
.media-item label { font-size: 0.85rem; font-weight: 600; }

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-500); }
.dot-off { background: #c2ccc7; }

/* ------------------------------------------------------- public card page */

.card-page {
  background:
    radial-gradient(1100px 420px at 50% -180px, #e4f2ea 0%, rgba(228, 242, 234, 0) 70%),
    var(--paper);
  min-height: 100vh;
  padding: 0 16px 40px;
}

.card-shell {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

@media (min-width: 520px) {
  .card-page { padding-top: 32px; }
  .card-shell { border-radius: var(--radius-lg); }
}

.card-cover {
  position: relative;
  background: linear-gradient(155deg, var(--brand-700) 0%, var(--brand-900) 100%);
  padding: 26px 22px 68px;
  color: var(--white);
}

.card-logo {
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
}

.card-identity { padding: 0 22px 22px; margin-top: -52px; text-align: center; }

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 4px solid var(--white);
  background: var(--brand-100);
  box-shadow: var(--shadow-soft);
}

.avatar-fallback {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 4px solid var(--white);
  background: linear-gradient(150deg, var(--brand-500), var(--brand-900));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 650;
  box-shadow: var(--shadow-soft);
}

.card-name { font-size: 1.5rem; margin-bottom: 2px; }
.card-designation { color: var(--brand-700); font-weight: 600; margin: 0 0 2px; }
.card-company { color: var(--muted); margin: 0; }

.card-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px 12px 18px;
}

.card-actions.count-3 { grid-template-columns: repeat(3, 1fr); }
.card-actions.count-4 { grid-template-columns: repeat(4, 1fr); }

.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--brand-900);
  font-size: 0.72rem;
  font-weight: 600;
}

.action:hover { background: var(--brand-050); }

.action .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  display: grid;
  place-items: center;
  color: var(--brand-700);
}

.action svg { width: 20px; height: 20px; }

.card-primary {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.card-block {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.card-block h2 {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-block address {
  font-style: normal;
  line-height: 1.6;
}

.social-row {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  justify-content: center;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand-900);
}

.social:hover { background: var(--brand-050); border-color: var(--brand-500); }
.social svg { width: 20px; height: 20px; }

.qr-block {
  padding: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.qr-block img {
  width: 168px;
  height: 168px;
  margin: 0 auto 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
  background: var(--white);
}

.card-foot {
  padding: 16px 20px 22px;
  text-align: center;
  background: var(--brand-050);
  font-size: 0.85rem;
  color: var(--muted);
}

.card-message {
  max-width: 450px;
  margin: 60px auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* --------------------------------------------------------------- utilities */

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 560px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
  .action-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Colour themes
   The card carries data-theme on <body>; only the five brand variables change,
   so every component picks up the new palette without its own rule.
   ========================================================================== */

[data-theme="teal"] {
  --brand-900: #0b3c38; --brand-700: #0f766e; --brand-500: #14b8a6;
  --brand-100: #d5f0ec; --brand-050: #eefaf8;
}
[data-theme="navy"] {
  --brand-900: #16255c; --brand-700: #1d4ed8; --brand-500: #3b82f6;
  --brand-100: #dde7fd; --brand-050: #eff4ff;
}
[data-theme="indigo"] {
  --brand-900: #241c66; --brand-700: #4338ca; --brand-500: #6366f1;
  --brand-100: #e0defb; --brand-050: #f1f0fe;
}
[data-theme="plum"] {
  --brand-900: #3f1063; --brand-700: #7e22ce; --brand-500: #a855f7;
  --brand-100: #eddcfb; --brand-050: #f8f1fe;
}
[data-theme="rose"] {
  --brand-900: #5c0a24; --brand-700: #be123c; --brand-500: #f43f5e;
  --brand-100: #fbd9e1; --brand-050: #fef1f4;
}
[data-theme="amber"] {
  --brand-900: #5a2f05; --brand-700: #b45309; --brand-500: #f59e0b;
  --brand-100: #fbe6c4; --brand-050: #fef6e9;
}
[data-theme="slate"] {
  --brand-900: #1a2432; --brand-700: #334155; --brand-500: #64748b;
  --brand-100: #dfe4ea; --brand-050: #f1f4f7;
}

/* Themed page wash behind the card. */
.card-page {
  background:
    radial-gradient(1100px 420px at 50% -180px, var(--brand-100) 0%, rgba(255, 255, 255, 0) 70%),
    var(--paper);
}

/* ------------------------------------------------- public card additions */

/* With no logo the cover would otherwise reserve empty height. */
.card-cover.no-logo { padding: 0; height: 84px; }

.phone-list { list-style: none; margin: 0; padding: 0; }

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.phone-row:last-child { border-bottom: none; }

.phone-row .phone-text { flex: 1; min-width: 0; }
.phone-row .phone-label { display: block; font-size: 0.78rem; color: var(--muted); }
.phone-row .phone-number { display: block; font-weight: 600; }

.phone-row .phone-go {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--brand-100);
  background: var(--brand-050);
  color: var(--brand-700);
  display: grid; place-items: center;
  flex: 0 0 38px;
}

.phone-row .phone-go svg { width: 17px; height: 17px; }

/* Working hours */

.hours-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.open-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-900);
  white-space: nowrap;
}

.open-badge.is-closed { background: #f0eeee; color: #6b5f5f; }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today td { font-weight: 700; color: var(--brand-900); }
.hours-table tr.is-today td:last-child { color: var(--brand-700); }

.location-pair { display: grid; gap: 10px; }

.location-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.location-item .loc-icon {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  background: var(--brand-050);
  color: var(--brand-700);
  display: grid; place-items: center;
}

.location-item .loc-icon svg { width: 17px; height: 17px; }
.location-item .loc-body { flex: 1; min-width: 0; }
.location-item .loc-title { font-weight: 650; font-size: 0.92rem; margin-bottom: 2px; }
.location-item address { font-style: normal; font-size: 0.9rem; line-height: 1.5; }
.location-item .loc-link { font-size: 0.86rem; display: inline-block; margin-top: 6px; }

/* ------------------------------------------------------ dashboard controls */

.theme-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.theme-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.theme-dot[aria-pressed="true"] { border-color: var(--ink); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.switch-row:last-of-type { border-bottom: none; }
.switch-row .switch-text { flex: 1; }
.switch-row .switch-text strong { display: block; font-size: 0.95rem; }
.switch-row .switch-text span { color: var(--muted); font-size: 0.82rem; }

.switch { position: relative; width: 50px; height: 28px; flex: 0 0 50px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.switch .track {
  position: absolute; inset: 0;
  background: #cfd8d4;
  border-radius: 999px;
  transition: background-color 0.15s ease;
  pointer-events: none;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.switch input:checked + .track { background: var(--brand-500); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:focus-visible + .track { outline: 3px solid var(--brand-500); outline-offset: 2px; }

/* Alternate phone rows in the editor */

.phone-editor { display: grid; gap: 10px; }

.phone-edit-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 8px;
  align-items: center;
}

.phone-edit-row .wa-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.row-remove {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--danger);
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* Working hours editor */

.hours-editor { display: grid; gap: 8px; }

.hours-edit-row {
  display: grid;
  grid-template-columns: 92px auto 1fr;
  gap: 8px;
  align-items: center;
}

.hours-edit-row .day-name { font-size: 0.9rem; font-weight: 600; }
.hours-edit-row .times { display: flex; gap: 6px; align-items: center; }
.hours-edit-row input[type="time"] {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  min-width: 0;
}
.hours-edit-row.is-closed .times { opacity: 0.4; pointer-events: none; }

.copy-hours { justify-self: start; }

/* ---------------------------------------------------------------- modals */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow: auto;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-box h3 { margin: 0 0 4px; font-size: 1.1rem; }
.modal-box .modal-note { color: var(--muted); font-size: 0.86rem; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.modal-actions .btn { flex: 1; }

/* Image cropper */

.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 60vh;
  background: #10201b;
  border-radius: var(--radius-md);
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.crop-stage.is-wide { aspect-ratio: 16 / 9; }
.crop-stage canvas { width: 100%; height: 100%; display: block; }
.crop-stage:active { cursor: grabbing; }

.crop-zoom { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.crop-zoom input[type="range"] { flex: 1; accent-color: var(--brand-500); }
.crop-zoom .zoom-label { font-size: 0.82rem; color: var(--muted); }

.pick-row { display: flex; gap: 10px; margin-top: 8px; }
.pick-row .btn { flex: 1; padding: 10px 12px; font-size: 0.9rem; }

/* Map picker */

.map-stage {
  width: 100%;
  height: 320px;
  max-height: 55vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-search { display: flex; gap: 8px; margin-bottom: 10px; }
.map-search input { flex: 1; }
.map-coords {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Leaflet's own attribution is required by the OpenStreetMap licence. */
.leaflet-container { font: inherit; }
