/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --primary:       #3B7D5A;
  --primary-dark:  #2E6347;
  --primary-light: #D4EDE1;
  --gold:          #C4963C;
  --gold-light:    #F2E8D4;
  --header-bg:     #2D3E50;

  /* Neutrals */
  --bg:            #F0F2F4;
  --surface:       #FFFFFF;
  --surface-2:     #E6EBF0;
  --card:          #FFFFFF;
  --border:        #D4D9DE;
  --border-strong: #B8C4CC;

  /* Text */
  --text:          #111827;
  --text-secondary:#5A6A78;
  --text-hint:     #8E9BAA;

  /* Status palette */
  --s-raw:         #94A3B8;
  --s-ocr:         #F59E0B;
  --s-confirmed:   #10B981;
  --s-estimated:   #3B82F6;
  --s-matched:     #8B5CF6;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow:    0 2px 8px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1),  0 8px 24px rgba(0,0,0,.06);
  --shadow:    var(--shadow-sm);            /* default alias */

  /* Geometry */
  --r-xs:  6px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-full:999px;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp:    12px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI',
          'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

/* ── Dark theme ────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --header-bg:     #1A2530;
  --bg:            #0D1118;
  --surface:       #141C28;
  --surface-2:     #1A2530;
  --card:          #141C28;
  --border:        #1E2C40;
  --border-strong: #2A3A52;
  --text:          #EDF2F7;
  --text-secondary:#7A90A8;
  --text-hint:     #4A6070;
  --primary-light: #1A3328;
  --gold-light:    #2E2010;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --header-bg:     #1A2530;
    --bg:            #0D1118;
    --surface:       #141C28;
    --surface-2:     #1A2530;
    --card:          #141C28;
    --border:        #1E2C40;
    --border-strong: #2A3A52;
    --text:          #EDF2F7;
    --text-secondary:#7A90A8;
    --text-hint:     #4A6070;
    --primary-light: #1A3328;
    --gold-light:    #2E2010;
    --shadow-xs: 0 1px 2px rgba(0,0,0,.3);
    --shadow-sm: 0 1px 4px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  }
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── RTL support ─────────────────────────────────────────────────────────── */
[dir="rtl"] #header { flex-direction: row-reverse; }
[dir="rtl"] #back-btn { transform: scaleX(-1); }
[dir="rtl"] .card-row { flex-direction: row-reverse; }
[dir="rtl"] .chevron { transform: scaleX(-1); }

/* ── Header ─────────────────────────────────────────────────────────────── */
#header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  color: #fff;
  display: flex; align-items: center; gap: var(--sp-sm);
  padding: 0 var(--sp-md);
  height: 56px;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
#back-btn {
  background: none; border: none; color: #fff;
  width: 40px; height: 40px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background .15s;
}
#back-btn:active { background: rgba(255,255,255,.15); }
#back-btn svg { width: 22px; height: 22px; }
#page-title {
  font-size: 17px; font-weight: 600; flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -.01em;
}
#header-action {
  background: none; border: none; color: #fff;
  width: 40px; height: 40px;
  display: none; align-items: center; justify-content: center;
  border-radius: 50%; cursor: pointer; font-size: 22px;
  flex-shrink: 0;
}
/* Header chips (legacy — kept for compat, styled subtly) */
#vol-chip, #user-chip, #partner-chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-full);
  color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; cursor: pointer; white-space: nowrap;
  letter-spacing: .01em;
}
#theme-toggle {
  background: none; border: none; color: #fff;
  width: 40px; height: 40px; cursor: pointer;
  font-size: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#theme-toggle:active { background: rgba(255,255,255,.15); }

/* ── Main content ──────────────────────────────────────────────────────────── */
#main {
  padding: var(--sp-md);
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 88px;
  min-height: calc(100dvh - 56px - 64px);
}

/* ── Bottom navigation ─────────────────────────────────────────────────────── */
#bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 200;
  height: 64px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -1px 0 var(--border), 0 -4px 20px rgba(0,0,0,.06);
}
.nav-tab {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: none; border: none; cursor: pointer;
  color: var(--text-hint);
  padding: 8px 4px 6px;
  transition: color .2s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  outline: none;
}
.nav-tab svg {
  width: 24px; height: 24px;
  transition: transform .2s, color .2s;
  stroke: currentColor;
}
.nav-tab .tab-label {
  font-size: 10px; font-weight: 500; line-height: 1;
  letter-spacing: .02em;
}
.nav-tab.active { color: var(--primary); }
.nav-tab.active svg { transform: scale(1.05); }
.nav-tab:active { color: var(--primary); }
.nav-tab-badge {
  position: absolute; top: 8px;
  right: calc(50% - 16px);
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp);
  overflow: hidden;
  border: 1px solid var(--border);
}
.card-row {
  display: flex; align-items: center; gap: var(--sp);
  padding: 14px var(--sp-md);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.card-row:last-child { border-bottom: none; }
.card-row:active { background: var(--surface-2); }
.card-label { flex: 1; font-size: 15px; font-weight: 500; }
.card-sub { font-size: 12px; color: var(--text-secondary); margin-top: 2px; font-weight: 400; }
.chevron { color: var(--text-hint); font-size: 16px; font-weight: 300; }

/* ── Form card ───────────────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-md);
  margin-bottom: var(--sp-md);
  border: 1px solid var(--border);
}

/* ── Section divider ─────────────────────────────────────────────────────── */
.divider {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-hint);
  margin: var(--sp-md) 0 var(--sp-sm);
}
.divider:first-child { margin-top: 0; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px; margin-top: var(--sp);
  letter-spacing: .03em;
  text-transform: uppercase;
}
label:first-child { margin-top: 0; }
input[type=text], input[type=number], input[type=email],
input[type=tel], input[type=password], input[type=search],
select, textarea {
  width: 100%;
  padding: 11px var(--sp);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 15px; font-family: var(--font);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,125,90,.12);
  background: var(--surface);
}
textarea { min-height: 88px; resize: vertical; line-height: 1.5; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: block; width: 100%;
  padding: 13px var(--sp-md);
  border-radius: var(--r-sm);
  border: none;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer;
  margin-top: var(--sp-sm);
  transition: background .15s, transform .1s, box-shadow .15s;
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { background: var(--primary-dark); transform: scale(.98); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:active { background: var(--primary-light); }
.btn-danger { background: #EF4444; }
.btn-danger:active { background: #DC2626; }
.btn + .btn { margin-top: var(--sp-sm); }
.btn-sm { display: inline-block; width: auto; padding: 6px 14px; font-size: 13px; }
.btn-link {
  background: none; border: none; color: var(--primary);
  font-size: 14px; cursor: pointer; padding: 0;
  font-family: var(--font);
}

/* ── FAB ─────────────────────────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: 80px; right: 20px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; font-size: 26px;
  box-shadow: 0 4px 16px rgba(59,125,90,.35);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 50;
  transition: transform .15s, box-shadow .15s;
}
.fab:active { transform: scale(.93); box-shadow: 0 2px 8px rgba(59,125,90,.25); }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.empty {
  text-align: center; padding: 48px var(--sp-md);
  color: var(--text-secondary); font-size: 15px; line-height: 1.6;
}
.empty svg { width: 48px; height: 48px; margin-bottom: var(--sp); opacity: .3; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #1A2233; color: #fff;
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 500; z-index: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .22s;
  white-space: nowrap; max-width: calc(100vw - 32px);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 2.5px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .65s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Grave grid ──────────────────────────────────────────────────────────── */
.grave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 5px; margin-top: var(--sp-sm);
}
.grave-cell {
  aspect-ratio: 1; border-radius: var(--r-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  cursor: pointer;
  transition: transform .1s, opacity .1s;
  user-select: none;
}
.grave-cell:active { transform: scale(.90); }
.grave-cell.raw_photo   { background: var(--s-raw); }
.grave-cell.ocr_draft   { background: var(--s-ocr); }
.grave-cell.confirmed   { background: var(--s-confirmed); }
.grave-cell.estimated   { background: var(--s-estimated); }
.grave-cell.matched     { background: var(--s-matched); }
.grave-cell .pos { font-size: 15px; }

/* ── Status badge ─────────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; color: #fff; margin-left: var(--sp-sm);
}
.badge.raw_photo   { background: var(--s-raw); }
.badge.ocr_draft   { background: var(--s-ocr); }
.badge.confirmed   { background: var(--s-confirmed); }
.badge.estimated   { background: var(--s-estimated); }
.badge.matched     { background: var(--s-matched); }

/* ── Stats bar ─────────────────────────────────────────────────────────────── */
.stats-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: var(--sp-sm) 0 var(--sp-md); }
.stat-chip {
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: 12px; color: #fff; font-weight: 700;
}

/* ── Photo area ────────────────────────────────────────────────────────────── */
.photo-area {
  border: 2px dashed var(--border); border-radius: var(--r);
  min-height: 140px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  cursor: pointer; margin-top: 4px; overflow: hidden;
  transition: border-color .15s;
}
.photo-area:hover { border-color: var(--primary); }
.photo-area img { width: 100%; height: auto; display: block; }
.photo-hint { color: var(--text-secondary); font-size: 14px; margin-top: var(--sp-sm); }

/* ── Match candidates ──────────────────────────────────────────────────────── */
.match-card {
  background: var(--surface); border-radius: var(--r);
  padding: 14px; margin-bottom: 10px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.match-score { float: right; font-weight: 800; font-size: 17px; color: var(--primary); }

/* ── XP progress bars ──────────────────────────────────────────────────────── */
.xp-bar-wrap {
  background: rgba(255,255,255,.22); border-radius: var(--r-full);
  height: 5px; overflow: hidden; margin-top: 3px; width: 64px;
}
.xp-bar-fill { height: 100%; background: #fff; border-radius: var(--r-full); transition: width .4s; }
.sub-bar-wrap { background: var(--border); border-radius: var(--r-full); height: 5px; margin: 5px 0 2px; }
.sub-bar-fill { height: 100%; border-radius: var(--r-full); background: var(--primary); transition: width .4s; }

/* ── Level hero ────────────────────────────────────────────────────────────── */
.level-hero {
  text-align: center; padding: 28px var(--sp-md) 20px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--r-lg); margin-bottom: var(--sp-md);
  box-shadow: 0 4px 20px rgba(29,158,117,.35);
}
.level-num  { font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.level-name { font-size: 18px; font-weight: 600; margin-top: 4px; opacity: .95; }
.level-xp   { font-size: 13px; opacity: .75; margin-top: 8px; }
.xp-bar-big-wrap {
  background: rgba(255,255,255,.22); border-radius: var(--r-full);
  height: 10px; overflow: hidden; margin: 12px 24px 0;
}
.xp-bar-big-fill {
  height: 100%; background: #fff; border-radius: var(--r-full); transition: width .6s ease;
}
.vol-avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,255,255,.7); margin: 0 auto 10px; display: block;
}
.vol-avatar-placeholder {
  width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.25);
  border: 3px solid rgba(255,255,255,.5); margin: 0 auto 10px; display: flex;
  align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: #fff;
}
.vol-bio {
  font-size: 13px; opacity: .85; margin: 10px 24px 0; font-style: italic;
  line-height: 1.4; word-break: break-word;
}

/* ── Stats grid ────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-sm); margin-bottom: var(--sp-md);
}
@media (max-width: 360px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 14px 8px; text-align: center;
  border: 1px solid var(--border);
}
.stat-card .stat-val   { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.stat-card .stat-label { font-size: 10px; color: var(--text-secondary); margin-top: 3px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; }

/* ── Achievement grid ──────────────────────────────────────────────────────── */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); }
.ach-card {
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 12px 8px; text-align: center;
  transition: transform .15s; border: 1px solid var(--border);
}
.ach-card.locked { opacity: .35; filter: grayscale(1); }
.ach-card:active  { transform: scale(.95); }
.ach-card .ach-icon  { font-size: 26px; }
.ach-card .ach-name  { font-size: 11px; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.ach-card .ach-bonus { font-size: 10px; color: var(--primary); margin-top: 2px; font-weight: 700; }

/* ── Achievement toast ─────────────────────────────────────────────────────── */
.ach-toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #1A2233; color: #fff;
  border-radius: var(--r-lg); padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  min-width: 300px; max-width: calc(100vw - 32px);
  box-shadow: var(--shadow-md); z-index: 400;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.ach-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.ach-toast-icon  { font-size: 32px; flex-shrink: 0; }
.ach-toast-body  { flex: 1; }
.ach-toast-new   { font-size: 10px; opacity: .65; text-transform: uppercase; letter-spacing: .06em; }
.ach-toast-title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.ach-toast-desc  { font-size: 12px; opacity: .75; margin-top: 2px; }
.ach-toast-xp    { font-size: 17px; font-weight: 800; color: #FCD34D; flex-shrink: 0; }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 300; padding: var(--sp-md);
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 28px var(--sp-lg); width: 100%; max-width: 360px;
  text-align: center; box-shadow: var(--shadow-md);
}
.modal-card h2 { font-size: 20px; font-weight: 700; margin: 8px 0 6px; }
.modal-card p  { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }

/* ── Category tabs ─────────────────────────────────────────────────────────── */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cat-tab {
  padding: 6px 14px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); background: var(--surface-2);
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: background .15s; color: var(--text-secondary);
}
.cat-tab.active { background: var(--primary); color: #fff; border-color: transparent; }

/* ── Product scroll ────────────────────────────────────────────────────────── */
.product-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
@keyframes prod-enter { from { opacity:0; transform:translateY(12px) scale(.95); } to { opacity:1; transform:none; } }
@keyframes floral-sway { 0%,100%{transform:rotate(-4deg) scale(1.04)} 50%{transform:rotate(4deg) scale(1.04)} }

.product-card {
  flex-shrink: 0; width: 108px; scroll-snap-align: start;
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-sm); padding: 12px 8px; text-align: center;
  cursor: pointer; border: 2px solid var(--border);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.product-card.selected { border-color: var(--primary); background: var(--primary-light); }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.product-card:active { transform: scale(.95); }
.product-card-enter { animation: prod-enter .35s ease both; }
.product-card .prod-emoji { font-size: 28px; transition: transform .2s; }
.product-card:hover .prod-emoji { transform: scale(1.15); }
.product-floral:hover .prod-emoji { animation: floral-sway .6s ease-in-out infinite; }
.product-card .prod-name  { font-size: 11px; font-weight: 600; margin-top: 6px; line-height: 1.3; }
.product-card .prod-price { font-size: 14px; color: var(--primary); font-weight: 800; margin-top: 4px; }
.order-summary-bar {
  background: var(--primary); color: #fff; border-radius: var(--r);
  padding: 12px var(--sp-md);
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; cursor: pointer;
  box-shadow: 0 4px 16px rgba(29,158,117,.3);
}
.order-summary-bar .order-name  { font-size: 14px; font-weight: 600; }
.order-summary-bar .order-price { font-size: 18px; font-weight: 800; }

/* ── Memorial header gradient ──────────────────────────────────────────────── */
#memorial-header-card {
  background: linear-gradient(145deg, var(--primary-light), var(--surface));
  border: 1px solid rgba(29,158,117,.2);
}

/* ── Orders ────────────────────────────────────────────────────────────────── */
.order-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.order-chip:last-child { border-bottom: none; }
.order-chip .o-emoji { font-size: 24px; flex-shrink: 0; }
.order-chip .o-info  { flex: 1; }
.order-chip .o-name  { font-size: 14px; font-weight: 600; }
.order-chip .o-meta  { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.order-status { padding: 3px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }
.order-status.pending        { background: #FFF3CD; color: #92400E; }
.order-status.accepted       { background: #DBEAFE; color: #1E40AF; }
.order-status.in_progress    { background: #EDE9FE; color: #5B21B6; }
.order-status.awaiting_photo { background: #FEF3C7; color: #92400E; }
.order-status.completed      { background: #D1FAE5; color: #065F46; }
.order-status.cancelled      { background: #FEE2E2; color: #991B1B; }

/* ── Biography ─────────────────────────────────────────────────────────────── */
.bio-source {
  display: inline-block; padding: 2px 8px; border-radius: var(--r-full);
  font-size: 11px; font-weight: 700; margin-bottom: var(--sp-sm);
}
.bio-source.relatives    { background: #D1FAE5; color: #065F46; }
.bio-source.wikipedia    { background: #DBEAFE; color: #1E40AF; }
.bio-source.ai_generated { background: #EDE9FE; color: #5B21B6; }
.bio-source.manual       { background: var(--surface-2); color: var(--text-secondary); }
.bio-text { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }
.notable-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #FEF3C7; color: #92400E; border-radius: var(--r-full);
  padding: 3px 10px; font-size: 12px; font-weight: 700; margin-bottom: 12px;
}

/* ── Tradition icon in lists ───────────────────────────────────────────────── */
.trad-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.trad-icon svg { width: 22px; height: 22px; }
/* Tradition color dots */
.trad-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}
.trad-badge.orthodox     { background: #EBF4FC; color: #4A90D9; }
.trad-badge.old_believer { background: #F5EDE6; color: #5C3317; }
.trad-badge.armenian     { background: #FDECEA; color: #B22222; }
.trad-badge.catholic     { background: #F5EDE0; color: #7B4B2A; }
.trad-badge.muslim_sunni,
.trad-badge.muslim_shia  { background: #D1FAE5; color: #2E8B57; }
.trad-badge.jewish       { background: #DBEAFE; color: #3366CC; }
.trad-badge.buddhist     { background: #FEF3C7; color: #E08B00; }
.trad-badge.traditional  { background: var(--surface-2); color: #7B7B7B; }
.trad-badge.mixed        { background: #F3E8FF; color: #9B59B6; }
.trad-badge.secular      { background: var(--surface-2); color: var(--text-secondary); }

/* Tradition color accent for calendar dividers */
.divider.trad-orthodox     { color: #4A90D9; }
.divider.trad-old_believer { color: #5C3317; }
.divider.trad-armenian     { color: #B22222; }
.divider.trad-muslim_sunni { color: #2E8B57; }
.divider.trad-jewish       { color: #3366CC; }
.divider.trad-buddhist     { color: #E08B00; }

/* ── Memorial calendar ─────────────────────────────────────────────────────── */
.cal-day-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--sp-md);
  border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .12s;
}
.cal-day-chip:last-child { border-bottom: none; }
.cal-day-chip:active { background: var(--surface-2); }
.cal-date-box {
  width: 44px; flex-shrink: 0; text-align: center;
  background: var(--surface-2); border-radius: var(--r-sm);
  padding: 5px 0; border: 1px solid var(--border);
}
.cal-date-day   { font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.cal-date-month { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-top: 2px; }
.cal-event-name { font-size: 14px; font-weight: 600; }
.cal-event-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.cal-today .cal-date-box { background: var(--primary); border-color: var(--primary); }
.cal-today .cal-date-day, .cal-today .cal-date-month { color: #fff; }
.cal-urgent .cal-event-name { color: var(--primary); }

/* ── Leaderboard ───────────────────────────────────────────────────────────── */
.leader-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--sp-md); border-bottom: 1px solid var(--border);
}
.leader-rank { font-size: 16px; font-weight: 800; color: var(--text-hint); min-width: 26px; }
.leader-rank.top3 { color: #F59E0B; }
.leader-name { flex: 1; font-size: 15px; font-weight: 600; }
.leader-xp   { font-size: 13px; color: var(--primary); font-weight: 700; }

/* ── Virtual candle ────────────────────────────────────────────────────────── */
.candle-wrap { display: flex; flex-direction: column; align-items: center; padding: 12px 0 4px; }
.candle-svg  { position: relative; width: 40px; margin-bottom: 10px; }
.candle-body-shape {
  width: 20px; height: 56px; margin: 0 auto;
  background: linear-gradient(180deg, #f9e4a0 0%, #e8c84a 40%, #d4a800 100%);
  border-radius: 3px 3px 2px 2px;
  position: relative; box-shadow: inset -3px 0 6px rgba(0,0,0,.15);
}
.candle-wick {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 8px; background: #333; border-radius: 1px;
}
.flame {
  position: absolute; top: -44px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 36px;
  animation: flicker 1.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.flame::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, #fff 0%, #ffe066 20%, #ff9900 55%, #ff4400 80%, transparent 100%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
  filter: blur(1px);
}
.flame-inner {
  position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 16px;
  background: radial-gradient(ellipse at 50% 100%, #fff 0%, #ffe8a0 60%, transparent 100%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%; opacity: .85;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) rotate(-2deg) scaleY(1); }
  25%  { transform: translateX(-50%) rotate(1.5deg) scaleY(.96); }
  50%  { transform: translateX(-50%) rotate(-1deg) scaleY(1.03); }
  75%  { transform: translateX(-50%) rotate(2deg) scaleY(.97); }
  100% { transform: translateX(-50%) rotate(-1.5deg) scaleY(1.02); }
}
.candle-count { font-size: 13px; color: var(--text-secondary); text-align: center; }
.candle-lit .candle-body-shape { box-shadow: inset -3px 0 6px rgba(0,0,0,.15), 0 0 12px rgba(255,160,0,.4); }

/* ── Neighbor compass ──────────────────────────────────────────────────────── */
.nb-compass { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.nb-compass-row { display: flex; gap: 4px; justify-content: center; align-items: stretch; }
.nb-compass-spacer { flex: 1; max-width: 60px; }
.nb-slot {
  flex: 1; max-width: 120px; min-width: 80px;
  border: 1.5px dashed var(--border); border-radius: var(--r-sm);
  padding: 8px 6px; text-align: center;
}
.nb-slot.nb-filled { border-style: solid; border-color: var(--primary); background: var(--primary-light); }
.nb-grave-center {
  flex: 1; max-width: 80px; min-width: 60px;
  border: 2px solid var(--primary); border-radius: var(--r-sm);
  padding: 8px 4px; text-align: center;
  background: var(--primary-light); font-size: 20px;
}
.nb-dir-label  { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-hint); margin-bottom: 4px; font-weight: 600; }
.nb-slot-name  { font-size: 12px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.nb-unknown    { color: var(--text-hint); font-weight: 400; }
.nb-slot-years { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.nb-slot-footer { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; }
.nb-badge-ok      { font-size: 11px; color: var(--s-confirmed); }
.nb-badge-pending { font-size: 11px; color: var(--s-ocr); }
.nb-del { background: none; border: none; cursor: pointer; font-size: 14px; color: var(--text-hint); line-height: 1; padding: 0 2px; }

/* ── AI cards ──────────────────────────────────────────────────────────────── */
#ai-song-card   { background: linear-gradient(145deg, rgba(109,40,217,.05), var(--surface)); border: 1px solid rgba(109,40,217,.15); }
#ai-avatar-card { background: linear-gradient(145deg, rgba(5,150,105,.05), var(--surface));  border: 1px solid rgba(5,150,105,.15); }
.ai-gen-pulse { padding: 8px 0; }
.ai-progress-bar  { width: 100%; height: 3px; background: var(--border); border-radius: var(--r-full); margin-top: 12px; overflow: hidden; }
.ai-progress-fill { height: 100%; width: 5%; background: var(--primary); border-radius: var(--r-full); transition: width 1s ease; }

/* ── KPI mini ──────────────────────────────────────────────────────────────── */
.kpi-mini       { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 6px; text-align: center; border: 1px solid var(--border); }
.kpi-mini-val   { font-size: 18px; font-weight: 700; color: var(--primary); }
.kpi-mini-label { font-size: 10px; color: var(--text-secondary); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }

/* ── Action grid (guardian / cabinet quick actions) ────────────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: var(--sp-md);
}
.action-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 18px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.action-card:hover  { border-color: var(--primary); color: var(--primary); }
.action-card:active { opacity: .8; transform: scale(.98); }
.action-card svg    { color: var(--primary); flex-shrink: 0; }

/* ── Cabinet hero (team / biz login) ───────────────────────────────────────── */
.cab-hero {
  text-align: center;
  padding: 36px var(--sp-md) 24px;
}
.cab-hero-icon {
  width: 72px; height: 72px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cab-hero-title {
  font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.cab-hero-sub {
  font-size: 14px; color: var(--text-secondary);
}

/* ── Status banner ──────────────────────────────────────────────────────────── */
.status-info  { background: #fffbea; border-left: 3px solid #f59e0b; border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.status-error { background: #fdecea; border-left: 3px solid #dc2626; border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; color: var(--text); margin-bottom: 8px; }

/* ── Global search ─────────────────────────────────────────────────────────── */
.search-wrap { position: relative; margin-bottom: 12px; }
.search-wrap input[type="search"] {
  width: 100%; padding: 11px var(--sp-md) 11px 44px;
  border-radius: var(--r); border: 1.5px solid var(--border);
  background: var(--surface); font-size: 15px;
  box-shadow: var(--shadow-sm); outline: none;
  color: var(--text); font-family: var(--font);
}
.search-wrap::before {
  content: '';
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  background: var(--text-hint);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center/contain no-repeat;
}
.search-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,158,117,.1); }
.suggest-drop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-md); z-index: 100; overflow: hidden;
  border: 1px solid var(--border);
}
.suggest-item { padding: 12px var(--sp-md); cursor: pointer; border-bottom: 1px solid var(--border); transition: background .1s; }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:active { background: var(--surface-2); }
.suggest-name { font-size: 14px; font-weight: 600; }
.suggest-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ── Route steps ───────────────────────────────────────────────────────────── */
.route-step { display: flex; align-items: flex-start; gap: 10px; padding: 12px var(--sp-md); border-bottom: 1px solid var(--border); }
.route-step:last-child { border-bottom: none; }
.route-step-end { background: var(--surface-2); }
.route-step-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.route-step-body { flex: 1; min-width: 0; }
.route-step-loc  { font-weight: 600; font-size: 14px; }
.route-step-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.route-step-num  { font-size: 11px; color: var(--text-secondary); background: var(--surface-2); border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--border); }

/* ── Subscription tiers ────────────────────────────────────────────────────── */
.tier-free    { background: var(--surface-2); color: var(--text-secondary); padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }
.tier-archive { background: #FEF3C7; color: #92400E; padding: 2px 8px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; }

/* ── Family tree ───────────────────────────────────────────────────────────── */
.ft-clickable rect { transition: opacity .15s; }
.ft-clickable:hover rect { opacity: .82; }
.ft-clickable:active rect { opacity: .65; }

/* ── Login screen ──────────────────────────────────────────────────────────── */
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px var(--sp-lg) 20px;
  text-align: center;
}
.login-logo {
  width: 64px; height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.login-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 4px;
}
.login-greeting {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 4px;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  width: 100%;
  max-width: 300px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.4;
}

/* ── Onboarding overlay ────────────────────────────────────────────────────── */
.onb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: opacity .3s;
}
.onb-skip {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; padding: 6px 10px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.onb-slides { flex: 1; overflow: hidden; position: relative; }
.onb-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 32px; text-align: center;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.onb-slide.active { opacity: 1; pointer-events: auto; }
.onb-icon { font-size: 72px; margin-bottom: 24px; line-height: 1; }
.onb-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.onb-text { font-size: 14px; color: var(--text-secondary); line-height: 1.75; max-width: 290px; }
.onb-dots { display: flex; justify-content: center; gap: 8px; padding: 16px 0; }
.onb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .25s, width .25s; }
.onb-dot.active { background: var(--primary); width: 20px; border-radius: 4px; }
.onb-footer { padding: 0 20px 48px; }

/* ── FAQ accordion ─────────────────────────────────────────────────────────── */
.faq-item { cursor: pointer; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  font-size: 14px; font-weight: 500; color: var(--text);
  user-select: none;
}
.faq-arrow { flex-shrink: 0; color: var(--text-secondary); transition: transform .2s; }
.faq-a {
  padding: 0 16px 14px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.7;
}

/* Password field toggle */
.pwd-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
  transition: color .15s;
  border-radius: var(--r-xs);
}
.pwd-toggle:hover { color: var(--text); }
.pwd-toggle:active { opacity: .7; }

/* ── Language switcher ─────────────────────────────────────────────────────── */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.lang-btn {
  padding: 10px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
}
.lang-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
}
.lang-btn:active { opacity: .8; }

audio { border-radius: var(--r-sm); }

/* ── Role switcher (Guardian ↔ User mode) ────────────────────────────────── */
.role-switcher {
  display: flex;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  margin: 0 var(--sp-md) var(--sp-md);
  padding: 4px;
  gap: 4px;
}
.role-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  border: none;
  border-radius: calc(var(--r) - 2px);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.role-tab:hover { color: var(--text); }
.role-tab-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.role-tab-active:hover { background: var(--primary-dark); color: #fff; }

/* ── Historical figure panel ─────────────────────────────────────────────── */
.hist-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 16px;
}
.hist-hero-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f59e0b22, #f59e0b44);
  border: 2px solid #f59e0b55;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d97706;
}
.hist-hero-info { flex: 1; min-width: 0; }
.hist-hero-name { font-size: 16px; font-weight: 700; color: var(--text); }
.hist-hero-cat  { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.notable-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fffbea;
  border: 1px solid #f59e0b55;
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  margin-bottom: 10px;
}

.hist-fact { font-size: 13px; color: var(--text); line-height: 1.55; margin-bottom: 8px; }
.hist-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  margin-top: 4px;
}
.hist-link:hover { text-decoration: underline; }

.notable-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.notable-list-item:last-child { border-bottom: none; }

/* Сегодня в истории */
.today-hist-list { display: flex; flex-direction: column; gap: 12px; }
.today-hist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: box-shadow .15s;
}
.today-hist-card:hover { box-shadow: 0 2px 12px #0001; }
.notable-list-icon {
  width: 36px;
  height: 36px;
  background: #f59e0b22;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #d97706;
}
.notable-list-name { font-size: 14px; font-weight: 600; color: var(--text); }
.notable-list-meta { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notable-list-chevron { margin-left: auto; color: var(--text-hint); }

/* ── Cemetery entry navigation ───────────────────────────────────────────── */
.entry-route {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
  margin-left: 6px;
}
.entry-step {
  font-size: 14px;
  padding: 6px 0;
  color: var(--text);
  position: relative;
}
.entry-step::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.entry-step-2 { padding-left: 14px; font-size: 13px; }
.entry-step-3 { padding-left: 28px; font-size: 13px; color: var(--text-secondary); }

/* Zone polygon tooltip on map */
.zone-tooltip {
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  padding: 2px 6px;
  white-space: nowrap;
  box-shadow: none;
}
.zone-tooltip::before { display: none; }
