/* =====================================================================================
   Ирээрэй — апп хуудсуудын нийтлэг загвар. DESIGN-C (эзэмшигчийн баталсан, 2026-10-02): зааны ясан цайвар дэвсгэр,
   гүн хөх «pill» товч, алтлаг нарийн чимэглэл, Playfair гарчиг + Montserrat бие, маш зөөлөн сүүдэр, чөлөөтэй зай.
   Хэрэглэдэг хуудас: index, login, register, dashboard, admin, 404, editor (editor.css-тэй хамт), demo (зөвхөн CTA биш).

   Токен   :root доор (--bg --surface --band --ink --text --muted --navy --gold --gold-ink --gold-line …; хуучин нэрс alias)
   Байршил .container (1120px) .container-wide (1240px) .container-narrow (760px) .stack(.stack-xs/-sm/-lg) .row .cluster
           .between .grow .grid .grid-2 .grid-3 .center .right .muted .small .tiny .strong .nowrap .truncate .sr-only
           .only-mobile .only-desktop .kicker .orn (✦ зураас) .divider (нарийн шугам)
   Товч    .btn + .btn-primary (гүн хөх) .btn-gold (= primary) .btn-secondary (нарийн хүрээ) .btn-outline (цагаан) .btn-ghost
           .btn-quiet .btn-on-dark (= outline) .btn-danger .btn-danger-ghost .btn-light .btn-glass; .btn-sm .btn-lg .btn-block
           .btn-icon .is-busy — бүгд «pill», том үсэг, үсэг хоорондын зайтай
   Форм    .field > label + .input/.select/.textarea (+ .hint .field-error) .input-wrap .input-btn .input-search .check — 16px
   Бусад   .card .card-pad .badge(-success/-muted/-danger/-gold/-navy/-dot) .alert(-error/-success/-info/-warn) .chip
           .tabs > .tab[aria-selected] (алтлаг доогуур зураас) .segmented .modal .toast .menu .stats .table(.table-cards)
           .empty .spinner .loading-block .skeleton
   Толгой  .site-header .brand .brand-mark .brand-name .nav .hd-links .hd-link .hd-login .hd-cta .hd-menu-btn .hd-sheet
           .acct-btn .avatar; хөл .site-footer (цайвар) .ft-*
   Загвар  .tg (templates.js галерей: .tg-controls .tg-tabs .tg-search .tg-chips .tg-status .tpl-grid .tpl-card .tpl-thumb …)
   Хуудас  .lp-* (нүүр) .auth-* (нэвтрэх) .dash-* (самбар) .rsvp-* (хариу) .adm-* (админ) .nf-* (404)
           .pv-* (жишээ цонх) .qs-* (хурдан эхлэл) .sh-* (хуваалцах)
   ===================================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair:ital,wght@0,400;0,500;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

/* DESIGN-C токенууд (эзэмшигчийн баталсан «цагаан/зааны ясан + гүн хөх + алтлаг нарийн чимэглэл»).
   Шинэ нэрс: --bg --surface --surface-2 --band --band-2 --ink --text --muted --navy --navy-hover --navy-50/100/200
              --gold (зөвхөн чимэглэл) --gold-ink (алтлаг ТЕКСТ) --gold-ink-strong (--band дээрх алтлаг текст)
              --gold-line (нарийн хүрээ) --line --line-strong (input хүрээ) --line-btn (2-р товчны хүрээ)
              --danger --success --warn (+ -50 / -bg) --serif --sans --focus-ring --sh-card --sh-card-hover --sh-modal
   Хуучин нэрс (editor.css / payment.css / admin эвдрэхгүй) шинэ палитр руу заалттай:
              --clay* → navy, --khadag* → navy, --saffron → gold, --paper → bg, --sand → band, --sand-2 → band-2,
              --gold-50…700 → алтлаг шат (700 = gold-ink), --navy-50…950 → хөх шат, --font → Montserrat,
              --font-display → Playfair, --font-hand → Playfair (Caveat хасагдсан). */
:root {
  /* ground */
  --bg: #fcfbf9; --surface: #ffffff; --surface-2: #f8f6f2;
  --band: #eef1f6; --band-2: #e3e8f0;
  /* ink */
  --ink: #1a1a1a; --text: #4a4a4a; --muted: #6b6b6b;
  /* brand: гүн хөх (үндсэн) */
  --navy: #1d2a44; --navy-hover: #141e33;
  --navy-950: #0e1524; --navy-900: #141e33; --navy-800: #1d2a44; --navy-700: #1d2a44; --navy-600: #2d3e60;
  --navy-200: #c9d1df; --navy-100: #dfe4ee; --navy-50: #eef1f6;
  /* brand: алт — --gold зөвхөн зураас/чимэглэл; текстэд --gold-ink */
  --gold: #d4af37; --gold-ink: #8a6a1c; --gold-ink-strong: #7a5c17; --gold-line: #f0e6d2;
  --gold-700: #8a6a1c; --gold-600: #a8862a; --gold-500: #d4af37; --gold-400: #d9bb5c; --gold-300: #e8d49a;
  --gold-100: #f5ecd3; --gold-50: #fbf7ec;
  /* lines */
  --line: #f0e6d2; --line-strong: #e2dccf; --line-btn: #d9cfbb; --hair: #f0e6d2;
  /* states (хуучин хүртээмжтэй утгууд) */
  --danger: #B3261E; --danger-50: #FBEAEA; --warn: #875800; --warn-50: #FFF3D9;
  --sage: #4F7050; --sage-50: #EAF1E8;
  --success: var(--sage); --success-bg: var(--sage-50); --danger-bg: var(--danger-50); --warn-bg: var(--warn-50); --info-bg: var(--navy-50);

  /* хуучин брэнд нэрс → шинэ палитр */
  --paper: var(--bg); --sand: var(--band); --sand-2: var(--band-2);
  --clay: var(--navy); --clay-700: var(--navy-hover); --clay-100: var(--navy-100); --clay-50: var(--navy-50);
  --khadag: var(--navy); --khadag-100: var(--navy-100); --khadag-50: var(--navy-50);
  --saffron: var(--gold); --night: var(--navy);

  /* shape & depth */
  --r-xs: 6px; --r-sm: 12px; --r: 16px; --r-lg: 20px;
  --radius-sm: var(--r-sm); --radius: 14px; --radius-lg: var(--r);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04);
  --sh-2: 0 15px 35px rgba(0, 0, 0, .04);
  --sh-3: 0 22px 40px rgba(0, 0, 0, .06);
  --sh-card: var(--sh-2); --sh-card-hover: var(--sh-3);
  --sh-soft: var(--sh-2); --sh-soft-hover: var(--sh-3);
  --sh-modal: 0 30px 70px -20px rgba(20, 30, 51, .28), 0 4px 14px rgba(20, 30, 51, .06);
  --sh-btn: 0 6px 18px rgba(29, 42, 68, .25);
  --shadow-sm: var(--sh-1); --shadow: var(--sh-2); --shadow-lg: var(--sh-modal);
  --ring: 0 0 0 3px rgba(29, 42, 68, .12);
  --focus-ring: 2px solid var(--navy);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* type */
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Playfair', Georgia, 'Times New Roman', serif;
  --font: var(--sans); --font-display: var(--serif); --font-hand: var(--serif);
  --header-h: 72px;
  --gutter: 24px;
  color-scheme: light;
}
@media (max-width: 359.98px) { :root { --gutter: 18px; } }

/* ------------------------------------------------------------------ суурь */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--text); background: var(--bg);
  font: 300 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
html.modal-open, html.modal-open body { overflow: hidden; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
p { margin: 0; }
b, strong { font-weight: 500; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
::selection { background: var(--navy-100); color: var(--ink); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------------------ байршлын туслахууд */
.container, .container-wide, .container-narrow { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.container { max-width: 1120px; } /* макеттай адил: 1120px (дотор нь 2 × 24px зай) */
.container-wide { max-width: calc(1240px + 2 * var(--gutter)); }
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-xs { gap: 6px; } .stack-sm { gap: 10px; } .stack-lg { gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.center { text-align: center; } .right { text-align: right; }
.muted { color: var(--muted); }
.small { font-size: 14px; } .tiny { font-size: 13px; }
.strong { font-weight: 500; color: var(--ink); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.only-desktop { display: none !important; }
@media (min-width: 768px) { .only-desktop { display: revert !important; } .only-mobile { display: none !important; } }
.divider { height: 1px; background: var(--gold-line); border: 0; margin: 0; }
.link {
  display: inline; padding: 0; border: 0; background: none; color: var(--navy); font-family: var(--sans); font-size: inherit;
  line-height: inherit; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer;
}
.link:hover { color: var(--navy-hover); }
.kbd { font: 500 12px/1 var(--sans); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-btn); background: var(--surface); color: var(--ink); }
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 26px; height: 26px; }
.hand { font: italic 400 22px/1.3 var(--serif); color: var(--gold-ink); }

/* Жижиг гарчиг (kicker): том үсэг, өргөн зай, алтлаг текст */
.kicker { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); }
/* ✦ чимэглэлтэй зураас (хоёр талдаа 72px алтан шугам) */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.orn::before, .orn::after { content: ''; width: 72px; height: 1px; background: currentColor; opacity: .7; }
.orn svg { display: block; width: 11px; height: 11px; flex: none; }

/* ------------------------------------------------------------------ товч (DESIGN-C: pill, гүн хөх, алтлаг hover хүрээ) */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--ink); --btn-bd: var(--line-btn);
  --btn-hover-bg: var(--btn-bg); --btn-hover-fg: var(--btn-fg); --btn-hover-bd: var(--gold);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; max-width: 100%; padding: 0 30px;
  border: 1px solid var(--btn-bd); border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg);
  font: 500 13px/1.25 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-align: center; text-decoration: none;
  white-space: normal; text-wrap: balance; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn:hover { background: var(--btn-hover-bg); border-color: var(--btn-hover-bd); color: var(--btn-hover-fg); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn > span { min-width: 0; }
.btn-primary, .btn-gold {
  --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy);
  --btn-hover-bg: var(--navy-hover); --btn-hover-fg: #fff; --btn-hover-bd: var(--navy-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-secondary { --btn-bg: transparent; }
.btn-outline, .btn-on-dark { --btn-bg: var(--surface); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-hover-bg: var(--navy-50); --btn-hover-bd: transparent; }
.btn-quiet {
  --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: transparent; --btn-hover-bd: transparent;
  min-height: 44px; padding: 0 6px; letter-spacing: .12em;
}
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 5px; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); --btn-hover-bg: #9a1f18; --btn-hover-fg: #fff; --btn-hover-bd: #9a1f18; }
.btn-danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: transparent; --btn-hover-bg: var(--danger-50); --btn-hover-bd: transparent; }
.btn-light { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .5); --btn-hover-bg: rgba(255, 255, 255, .2); --btn-hover-bd: #fff; }
.btn-glass {
  --btn-bg: rgba(255, 255, 255, .2); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .7); --btn-hover-bg: rgba(255, 255, 255, .32); --btn-hover-bd: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-sm { min-height: 40px; padding: 0 20px; gap: 8px; font-size: 12px; letter-spacing: .12em; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-lg { min-height: 54px; padding: 0 36px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 48px; padding: 0; flex: none; }
.btn-icon.btn-sm { width: 40px; }
@media (pointer: coarse) { .btn-sm { min-height: 44px; } .btn-icon.btn-sm { width: 44px; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:not(.btn-ghost):not(.btn-quiet):not(.btn-danger-ghost):not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-2px); }
  .btn-primary:not(:disabled):hover, .btn-gold:not(:disabled):hover { box-shadow: var(--sh-btn); }
  .btn-danger:not(:disabled):hover { box-shadow: 0 6px 18px rgba(179, 38, 30, .22); }
  .btn:not(:disabled):active { transform: translateY(0) !important; }
}
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy > * { opacity: 0; } /* (visibility:hidden биш — товчны нэр дэлгэц уншигчид хэвээр) */
.btn.is-busy::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 379.98px) { .btn:not(.btn-icon) { padding: 0 22px; letter-spacing: .1em; } .btn-lg:not(.btn-icon) { padding: 0 26px; } .btn-sm:not(.btn-icon) { padding: 0 16px; } }

/* ------------------------------------------------------------------ форм */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font: 500 14px/1.45 var(--sans); color: var(--ink); }
.field .hint { font: 400 13px/1.5 var(--sans); color: var(--muted); }
.field-error { font: 500 13.5px/1.45 var(--sans); color: var(--danger); }
.input, .select, .textarea,
.field input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.textarea, .field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.select, .field select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2a44' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.input::placeholder, .textarea::placeholder, .field input::placeholder, .field textarea::placeholder { color: #767676; opacity: 1; }
.input:hover, .select:hover, .textarea:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: #cdc3ae; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: var(--ring);
}
.field [aria-invalid="true"], .input[aria-invalid="true"] { border-color: var(--danger); }
.input:disabled, .field input:disabled { background: var(--surface-2); color: var(--muted); }
.input-wrap { position: relative; display: flex; }
.input-wrap > .input, .input-wrap > input { padding-right: 54px; }
.input-wrap > .input-btn {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted);
}
.input-wrap > .input-btn:hover { background: var(--navy-50); color: var(--ink); }
.input-search {
  padding-left: 44px !important;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") no-repeat 16px center / 18px;
}
.check { display: flex; align-items: flex-start; gap: 10px; font: 400 15px/1.5 var(--sans); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }

/* ------------------------------------------------------------------ карт, тэмдэг, сэрэмжлүүлэг */
.card { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r); box-shadow: var(--sh-card); }
.card-pad { padding: 24px; }
@media (min-width: 768px) { .card-pad { padding: 32px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-title { font: 400 20px/1.3 var(--serif); color: var(--ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--navy-100); background: var(--navy-50); color: var(--navy);
  font: 500 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.badge .ico { width: 13px; height: 13px; }
.badge-success { background: var(--sage-50); color: #3a5a3c; border-color: #d6e5d3; }
.badge-muted { background: #f4f2ee; color: #555555; border-color: #e6e1d6; }
.badge-danger { background: var(--danger-50); color: #9b211a; border-color: #f2cfcc; }
.badge-gold { background: var(--gold-50); color: var(--gold-ink-strong); border-color: var(--gold-100); }
.badge-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.badge-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid transparent;
  font: 400 14.5px/1.55 var(--sans);
}
.alert > .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.alert strong { font-weight: 500; }
.alert-error { background: var(--danger-50); color: #8c1d17; border-color: #f2cfcc; }
.alert-success { background: var(--sage-50); color: #34503a; border-color: #cfe0cc; }
.alert-info { background: var(--navy-50); color: var(--navy); border-color: var(--navy-100); }
.alert-warn { background: var(--warn-50); color: #6d4700; border-color: #f1dca6; }
.alert a { color: inherit; font-weight: 500; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--gold-line); font: 400 13px/1.3 var(--sans); color: var(--text);
}

/* ------------------------------------------------------------------ таб (том үсэг, алтлаг доогуур зураас), segmented */
.tabs {
  display: flex; gap: 0 28px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--gold-line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 1px;
  border: 0; border-bottom: 1px solid transparent; margin-bottom: -1px; border-radius: 0; background: none; color: var(--muted);
  font: 500 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab.is-active { color: var(--ink); border-bottom-color: var(--gold); }
.tab .count { font: 400 11px/1 var(--sans); letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }

.segmented {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--gold-line);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented > button {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 13.5px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.segmented > button:hover { color: var(--ink); }
.segmented > button[aria-pressed="true"] { background: var(--navy-50); color: var(--navy); }

/* ------------------------------------------------------------------ модал (утсан дээр доороос гарах) */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20, 30, 51, .42); animation: fade-in .2s ease-out; }
.modal-dialog {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: calc(100% - 24px);
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-modal);
  animation: sheet-up .28s var(--ease); padding-bottom: env(safe-area-inset-bottom);
}
.modal-dialog.modal-full { height: calc(100% - 24px); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 14px 16px 24px; border-bottom: 1px solid var(--gold-line); }
.modal-head h2 { flex: 1; min-width: 0; padding-top: 7px; font: 400 22px/1.25 var(--serif); color: var(--ink); letter-spacing: -.005em; }
.modal-head .modal-sub { display: block; margin-top: 4px; font: 300 14px/1.5 var(--sans); color: var(--muted); letter-spacing: 0; }
.modal-close { flex: none; margin: -2px 0 0; color: var(--ink); }
.modal-body { padding: 20px 24px 24px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px;
  border-top: 1px solid var(--gold-line); background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.modal-foot .btn { flex: 1 1 auto; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-dialog { border-radius: var(--r-lg); max-height: calc(100vh - 48px); max-width: 520px; animation: pop-in .22s var(--ease); padding-bottom: 0; }
  .modal-dialog.modal-sm { max-width: 440px; }
  .modal-dialog.modal-lg { max-width: 880px; }
  .modal-dialog.modal-xl { max-width: 1160px; }
  .modal-dialog.modal-full { height: auto; max-height: calc(100vh - 48px); }
  .modal-dialog.modal-lg.modal-full, .modal-dialog.modal-xl.modal-full { height: calc(100vh - 48px); }
  .modal-head { padding: 26px 20px 18px 32px; }
  .modal-body { padding: 24px 32px 32px; }
  .modal-foot { padding: 18px 32px; }
  .modal-foot .btn { flex: 0 0 auto; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop-in { from { transform: translateY(10px) scale(.985); opacity: 0; } }

/* ------------------------------------------------------------------ toast (цагаан, нарийн хүрээ) */
.toast-stack {
  position: fixed; z-index: 1100; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top));
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none;
}
.toast-stack .toast {
  display: flex; align-items: center; gap: 12px; width: max-content; max-width: min(460px, 100%);
  padding: 14px 20px; border-radius: 16px; border: 1px solid var(--gold-line); background: var(--surface); color: var(--ink);
  font: 400 15px/1.45 var(--sans); box-shadow: var(--sh-modal); pointer-events: auto;
  animation: toast-in .24s var(--ease);
}
.toast-stack .toast .ico { width: 20px; height: 20px; color: var(--navy); }
.toast-stack .toast-success .ico { color: var(--sage); }
.toast-stack .toast-error { border-color: #f2cfcc; background: #fffafa; }
.toast-stack .toast-error .ico { color: var(--danger); }
.toast-stack .toast.is-leaving { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }
@media (min-width: 640px) {
  .toast-stack { top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); }
  .toast-stack .toast { animation-name: toast-in-up; }
  .toast-stack .toast.is-leaving { transform: translateY(8px); }
}
@keyframes toast-in-up { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------ цэс */
.menu { position: relative; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 200; min-width: 250px; max-width: calc(100vw - 32px);
  padding: 8px; background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r); box-shadow: var(--sh-modal);
  animation: pop-in .16s ease-out;
}
.menu-head { padding: 10px 12px; }
.menu-head .strong { display: block; font-weight: 500; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: 400 15px/1.2 var(--sans); text-align: left; text-decoration: none;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--navy-50); color: var(--ink); }
.menu-item .ico { color: var(--navy); width: 18px; height: 18px; }
.menu-item.is-danger, .menu-item.is-danger .ico { color: var(--danger); }
.menu-sep { height: 1px; background: var(--gold-line); margin: 6px 4px; }

/* ------------------------------------------------------------------ статистик */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stat { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.stat-label { font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-value { margin-top: 6px; font: 400 30px/1.15 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.stat.is-success .stat-value { color: var(--sage); }
.stat.is-danger .stat-value { color: var(--danger); }
.stat.is-gold .stat-value { color: var(--gold-ink); }

/* ------------------------------------------------------------------ хүснэгт */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--gold-line); border-radius: var(--r); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.5 var(--sans); }
.table th {
  text-align: left; font: 500 11px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 13px 16px; background: var(--surface-2); border-bottom: 1px solid var(--gold-line); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--gold-line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fdfcfa; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table td.cell-empty { text-align: center; color: var(--muted); padding: 32px 16px; }
@media (max-width: 719.98px) {
  .table-wrap.table-cards { border: 0; background: none; overflow: visible; }
  .table-cards .table, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards thead { display: none; }
  .table-cards tr { background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--sh-card); }
  .table-cards td { border: 0; padding: 4px 0; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; text-align: right; }
  .table-cards td::before { content: attr(data-label); flex: none; font: 500 11px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; }
  .table-cards td[data-label=""]::before, .table-cards td:not([data-label])::before { content: none; }
  .table-cards td.cell-main { display: block; text-align: left; font-size: 16px; padding-bottom: 6px; }
  .table-cards td.actions { justify-content: flex-end; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--gold-line); }
  .table-cards tbody tr:hover td { background: none; }
  .table-cards td.cell-empty { display: block; text-align: center; padding: 16px 0; }
}

/* ------------------------------------------------------------------ хоосон төлөв, ачаалал */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; }
.empty-icon {
  width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-line); background: var(--surface); color: var(--navy); box-shadow: var(--sh-card);
}
.empty-icon .ico { width: 30px; height: 30px; }
.empty h3 { font: 400 24px/1.25 var(--serif); }
.empty p { color: var(--muted); max-width: 440px; }
.empty .btn { margin-top: 10px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--band-2); border-top-color: var(--navy); animation: spin .8s linear infinite; }
.loading-block { display: grid; place-items: center; padding: 56px 0; }
.skeleton { background: linear-gradient(90deg, var(--band) 25%, #f5f7fa 50%, var(--band) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ толгой (цайвар, 72px, алтлаг доод зураас) */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(252, 251, 249, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(20, 30, 51, .18); }
.site-header > .container, .site-header > .container-wide { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none; margin-right: auto; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 26px; height: 26px; flex: none; color: var(--gold); }
.brand-name { font: 500 24px/1 var(--serif); letter-spacing: .01em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hd-links { display: none; }
.hd-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none;
  font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; transition: color .2s;
}
.hd-link:hover { color: var(--ink); }
.hd-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--ink); font: 500 13px/1 var(--sans); text-decoration: none; }
.hd-login:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.site-header .btn-sm { min-height: 42px; padding: 0 22px; font-size: 11px; letter-spacing: .14em; white-space: nowrap; }
.hd-menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--gold-line); background: var(--surface); color: var(--ink); transition: border-color .2s;
}
.hd-menu-btn:hover { border-color: var(--gold); }
.hd-menu-btn .ico { width: 20px; height: 20px; }
.hd-sheet {
  position: fixed; z-index: 99; left: 0; right: 0; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  display: flex; flex-direction: column; padding: 8px var(--gutter) 24px;
  background: var(--bg); border-bottom: 1px solid var(--gold-line); box-shadow: 0 24px 40px -24px rgba(20, 30, 51, .25);
  animation: sheet-down .26s var(--ease);
}
.hd-sheet a.hd-sheet-link {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--gold-line);
  color: var(--ink); text-decoration: none; font: 400 21px/1.2 var(--serif);
}
.hd-sheet a.hd-sheet-link:hover { color: var(--navy); }
.hd-sheet .btn { margin-top: 20px; }
.hd-sheet-account { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; padding-top: 4px; }
.hd-sheet-account .btn { margin-top: 0; gap: 10px; }
.hd-sheet-account .btn[hidden], .hd-sheet-account [hidden] { display: none; }
.hd-sheet-reg { margin: 2px 0 0; text-align: center; font: 400 14px/1.5 var(--sans); color: var(--muted); }
.hd-sheet-reg a { color: var(--navy); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hd-sheet a.hd-sheet-admin { border-bottom: 0; justify-content: center; min-height: 44px; font-size: 16px; }
@keyframes sheet-down { from { transform: translateY(-8px); opacity: 0; } }
.nav .only-wide, .nav .only-xwide { display: none; }
@media (min-width: 1200px) { .nav .only-xwide { display: inline-flex; } }
@media (min-width: 960px) {
  .hd-links { display: flex; align-items: center; gap: 36px; margin: 0 auto; }
  .hd-menu-btn, .hd-sheet { display: none !important; }
  .brand { margin-right: 0; }
  .site-header > .container, .site-header > .container-wide { gap: 24px; }
  .site-header .nav { margin-left: auto; gap: 18px; }
  .hd-links + .nav { margin-left: 0; }
  .nav .only-wide { display: inline-flex; }
}
.acct-btn, .site-header .acct-btn { gap: 6px; padding: 0 10px 0 5px; min-height: 44px; letter-spacing: 0; text-transform: none; }
.acct-btn .ico { color: var(--muted); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--navy-50); color: var(--navy); font: 500 14px/1 var(--sans); border: 1px solid var(--gold-line);
}
@media (max-width: 389.98px) { .brand-name { font-size: 22px; } .brand-mark { width: 24px; height: 24px; } .brand { gap: 8px; } }
@media (max-width: 369.98px) { .site-header .hd-cta { display: none; } }
/* Утсан дээр доод наалттай товч гарсан үед толгойн товчийг нууна (хоёр том товч зэрэг харагдахгүй) */
@media (max-width: 767.98px) {
  .site-header .hd-cta { transition: opacity .3s ease, visibility 0s linear 0s; }
  .site-header.sticky-on .hd-cta { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
}
@media (max-width: 339.98px) { .nav { gap: 6px; } }

/* ------------------------------------------------------------------ хөл (цайвар, дээр нь алтлаг нарийн зураас) */
.site-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gold-line);
  background: var(--bg); color: var(--muted); font: 300 13px/1.7 var(--sans); text-align: center;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.ft { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ft .brand { margin: 0; }
.ft .brand, .ft .brand:hover { text-decoration: none; }
.ft-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.ft-links a { display: inline-flex; align-items: center; min-height: 44px; font: 500 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ft-bottom { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.ft-note { color: var(--muted); }
.site-footer.is-plain { padding: 32px 0; }

/* ------------------------------------------------------------------ загварын галерей (templates.js) */
.tg-controls { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 32px; }
.tg-controls.no-tabs { align-items: stretch; gap: 12px; margin-bottom: 20px; }
.tg-row { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.tabs.tg-tabs { justify-content: center; flex-wrap: wrap; overflow: visible; border-bottom: 0; gap: 0 26px; max-width: 100%; }
.tg-tabs .tab { min-height: 44px; }
.tg-search { position: relative; width: 100%; max-width: 380px; }
.tg-search .input { min-height: 46px; border-radius: 999px; padding-right: 44px; border-color: var(--line-strong); }
.tg-search-clear {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: none; color: var(--muted);
}
.tg-search-clear:hover { background: var(--navy-50); color: var(--ink); }
.tg-chips {
  display: flex; gap: 8px; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
  overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--gutter);
}
.tg-chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tg-chips { flex-wrap: wrap; justify-content: center; overflow: visible; width: auto; margin: 0; padding: 0; } }
.tg-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: var(--surface); color: var(--text); font: 400 13.5px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tg-chip:hover { border-color: var(--gold); color: var(--ink); }
.tg-chip[aria-pressed="true"] { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy); font-weight: 500; }
.tg-chip[aria-pressed="true"]::before { content: ''; width: 9px; height: 5px; margin: -3px 1px 0 0; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.tg-chip.is-new { color: var(--gold-ink-strong); border-color: var(--gold-100); background: var(--gold-50); font-weight: 500; }
.tg-chip.is-new[aria-pressed="true"] { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy); }
/* «Бусад арга хэмжээ»-ний төрөл: эрэлттэй 3 нь том товч (дүрс + тоо), «Бусад төрөл» дарвал үлдсэн нь нээгдэнэ */
.tg-events { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.tg-ev-top, .tg-ev-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tg-ev-rest[hidden] { display: none; }
.tg-ev {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-btn); background: var(--surface); color: var(--text); font: 400 14px/1 var(--sans); white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tg-ev:hover { border-color: var(--gold); color: var(--ink); }
.tg-ev .count { font-size: 12px; color: var(--muted); }
.tg-ev.is-top { min-height: 46px; padding: 0 18px 0 8px; font-weight: 500; color: var(--ink); border-color: var(--gold-line); box-shadow: var(--sh-card); }
.tg-ev-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-ink-strong); }
.tg-ev[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tg-ev[aria-pressed="true"] .count { color: rgba(255, 255, 255, .78); }
.tg-ev[aria-pressed="true"] .tg-ev-ico { background: rgba(255, 255, 255, .16); color: #fff; }
.tg-ev-more { border-style: dashed; color: var(--muted); }
.tg-ev-more .ico { transition: transform .2s; }
.tg-ev-more[aria-expanded="true"] .ico { transform: rotate(180deg); }
.tg-controls.no-tabs .tg-events, .tg-controls.no-tabs .tg-ev-top, .tg-controls.no-tabs .tg-ev-rest { align-items: flex-start; justify-content: flex-start; }
@media (max-width: 479.98px) {
  .tg-ev-top { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .tg-ev.is-top, .tg-ev-top .tg-ev { justify-content: flex-start; }
}
.tg-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; min-height: 24px; font: 400 14px/1.5 var(--sans); color: var(--muted); }
.tg-controls.no-tabs .tg-status { justify-content: flex-start; }
.tg-status strong { color: var(--ink); font-weight: 500; }
.tg-status .link { min-height: 32px; font-size: 14px; }
.tg-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 56px 16px; text-align: center;
  color: var(--muted); border: 1px dashed var(--line-btn); border-radius: var(--r); background: var(--surface);
}
.tg-empty-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-line); color: var(--navy); }
.tg-empty .strong { font: 400 20px/1.3 var(--serif); }
.tg-more { display: flex; justify-content: center; margin-top: 40px; }
.tg-more .btn { min-width: 240px; }

.tpl-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .tpl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.modal .tpl-grid { gap: 14px; }
@media (min-width: 768px) { .modal .tpl-grid { gap: 20px; } }
@media (min-width: 1024px) { .modal .tpl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tpl-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 14px;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r); box-shadow: var(--sh-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
/* Дэлгэцээс хол картын layout/paint-ийг алгасна (116+ загвар сул утсан дээр); «auto» бодит өндрийг санана */
.tpl-grid > .tpl-card { content-visibility: auto; contain-intrinsic-size: auto 420px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tpl-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); }
}
.tpl-media { position: relative; border-radius: 10px; }
.tpl-thumb {
  position: relative; display: block; aspect-ratio: 390 / 680; border-radius: 12px; overflow: hidden;
  background: var(--band); isolation: isolate; text-decoration: none; border: 1px solid var(--gold-line);
  /* thumb бүр тусдаа layout хил: renderer-ийн хэмжилт (clientWidth) бүх хуудсыг дахин байрлуулахгүй */
  contain: strict;
}
.tpl-card .tpl-thumb, .tpl-grid .tpl-thumb { aspect-ratio: 4 / 5; border: 0; border-radius: 10px; }
.tpl-thumb > .tpl-render { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tpl-new {
  flex: none; padding: 1px 8px; border-radius: 999px; background: var(--gold-50); border: 1px solid var(--gold-100);
  color: var(--gold-ink-strong); font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.tpl-thumb .tpl-badge { position: absolute; z-index: 2; left: 8px; top: 8px; }
.tpl-bar {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: none; gap: 8px; padding: 14px 12px 12px;
  background: linear-gradient(0deg, rgba(20, 30, 51, .62), rgba(20, 30, 51, 0)); border-radius: 0 0 10px 10px;
}
.tpl-bar .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.tpl-bar .btn .ico { width: 16px; height: 16px; }
.tpl-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 4px 0; flex: 1 1 auto; }
.tpl-name { font: 400 18px/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.tpl-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; font: 500 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tpl-sub > span:first-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpl-pick {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 2px 0 -10px; padding: 0 4px;
  border: 0; background: none; color: var(--navy); font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.tpl-pick .ico { width: 15px; height: 15px; }
.tpl-pick:hover { text-decoration: underline; text-underline-offset: 4px; }
.tpl-pick.is-busy { opacity: .6; pointer-events: none; }
.tpl-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } /* хуучин нэр */
@media (hover: hover) and (pointer: fine) {
  .tpl-bar { display: flex; transform: translateY(8px); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
  .tpl-media:hover .tpl-bar, .tpl-media:focus-within .tpl-bar { transform: none; opacity: 1; }
  .tpl-pick { display: none; }
}
a.tpl-thumb:hover { box-shadow: none; }
@media (max-width: 389.98px) { .tpl-name { font-size: 16.5px; } .tpl-card { padding: 8px 8px 12px; } .tpl-meta { padding-top: 12px; } }

/* ------------------------------------------------------------------ нүүр хуудас (index) — DESIGN-C «Landing structure» */
.lp-section { padding: 80px 0; }
@media (min-width: 960px) { .lp-section { padding: 104px 0; } }
.lp-head { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 720px; margin: 0 auto 44px; text-align: center; }
.lp-head.is-center { align-items: center; }
.lp-kicker { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-ink); }
.lp-h2 { font: 400 clamp(32px, 6vw, 46px)/1.15 var(--serif); color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
.lp-h2 em { font-style: italic; color: var(--gold-ink); }
.lp-head p { max-width: 36em; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero: голлосон гарчиг, эзэмшигчийн жишээ карт + хоёр хажуугийн загвар */
.lp-hero { padding: 64px 0 8px; text-align: center; overflow: hidden; }
.lp-title { margin: 22px auto 0; max-width: 14ch; font: 400 clamp(40px, 9vw, 72px)/1.08 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.lp-title em { font-style: italic; color: var(--gold-ink); }
.lp-price-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px 8px 16px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: var(--surface); color: var(--text); text-decoration: none; font: 400 14px/1.2 var(--sans);
}
.lp-price-pill[hidden] { display: none; }
.lp-price-pill s { color: var(--muted); }
.lp-price-pill strong { font: 500 18px/1 var(--serif); color: var(--ink); }
.lp-price-label { color: var(--muted); }
.lp-lead { max-width: 34em; margin: 24px auto 0; color: var(--muted); font-size: 16px; }
.lp-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.lp-show { position: relative; display: grid; justify-items: center; gap: 28px; margin: 48px 0 0; }
.lp-sample {
  display: flex; flex-direction: column; align-items: center; width: min(380px, 100%); padding: 50px 30px;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r); box-shadow: var(--sh-card);
  color: inherit; text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.lp-sample:hover { color: inherit; }
.lp-sample-date { font: 500 12px/1.4 var(--sans); letter-spacing: 3px; text-transform: uppercase; color: var(--gold-ink); }
.lp-sample-type { margin-top: 14px; font: 300 14px/1.4 var(--sans); color: var(--muted); }
.lp-sample-names { margin: 16px 0 20px; font: 400 42px/1.15 var(--serif); color: var(--ink); }
.lp-sample-names i { font-size: 36px; color: var(--gold-ink); }
.lp-sample-msg { margin: 0 0 34px; font: 300 14px/1.8 var(--sans); color: var(--text); }
.lp-sample .btn { pointer-events: none; }
.lp-side { display: none; }
.lp-side-card {
  display: block; padding: 10px; background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r);
  box-shadow: var(--sh-card); text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
}
.lp-side-card .tpl-thumb { aspect-ratio: 4 / 5; border: 0; border-radius: 10px; }
.lp-hero .orn { margin: 56px auto 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lp-sample:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); }
  .lp-side-card:hover { box-shadow: var(--sh-card-hover); }
}
@media (min-width: 900px) {
  .lp-hero { padding-top: 96px; }
  .lp-show { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
  .lp-side { display: block; width: 250px; }
  .lp-side.is-l { justify-self: end; transform: rotate(-4deg); }
  .lp-side.is-r { justify-self: start; transform: rotate(4deg); }
}
@media (max-width: 379.98px) { .lp-sample { padding: 40px 20px; } .lp-sample-names { font-size: 36px; } .lp-sample-names i { font-size: 31px; } }

/* Загварын хэсэг */
.lp-templates { padding-top: 72px; }
@media (min-width: 960px) { .lp-templates { padding-top: 88px; } }

/* Гурван алхам (--band дэвсгэр) */
.lp-how { background: var(--band); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); }
.lp-how .lp-kicker, .lp-how .kicker { color: var(--gold-ink-strong); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; text-align: center; }
.lp-step-num { display: block; font: italic 400 44px/1 var(--serif); color: var(--gold-ink-strong); }
.lp-step h3 { margin: 14px 0 8px; font: 400 22px/1.25 var(--serif); }
.lp-step p { max-width: 22em; margin: 0 auto; color: var(--muted); font-size: 15px; }
.lp-how-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 52px; }
.lp-how-note { font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .lp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* Боломжууд — цөөн үг, нарийн дүрс */
.lp-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
.lp-feat { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: start; align-content: start; }
.lp-feat-ico {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-line); background: var(--surface); color: var(--navy);
}
.lp-feat-ico .ico { width: 22px; height: 22px; }
.lp-feat h3 { padding-top: 4px; font: 400 19px/1.3 var(--serif); }
.lp-feat p { color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (min-width: 600px) { .lp-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; } }
@media (min-width: 1000px) {
  .lp-feats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 36px; }
  .lp-feat { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 6px; }
  .lp-feat-ico { grid-row: auto; margin-bottom: 12px; }
  .lp-feat h3 { padding-top: 0; }
}

/* Үнэ */
.lp-plan {
  position: relative; display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 0 auto; padding: 48px 24px 40px;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r-lg); box-shadow: var(--sh-card); text-align: center;
}
.lp-plan-amount { font: 400 clamp(46px, 9vw, 64px)/1.05 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; white-space: nowrap; }
.lp-plan-was { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; font: 400 18px/1.2 var(--sans); color: var(--muted); }
.lp-plan-was[hidden] { display: none; }
.lp-plan-was s { text-decoration-thickness: 1.5px; }
.lp-plan-off { padding: 4px 10px; border-radius: 999px; background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-ink-strong); font: 500 12px/1.2 var(--sans); letter-spacing: .04em; }
.lp-plan-amount.is-free { font-size: clamp(34px, 6vw, 46px); white-space: normal; }
.lp-plan-per { margin-top: 12px; font: 500 12px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.lp-plan .orn { margin: 26px 0 0; }
.lp-plan-lead { max-width: 26em; margin: 22px auto 0; color: var(--text); }
.lp-plan-list { list-style: none; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 360px; margin: 26px auto 34px; padding: 0; text-align: left; }
.lp-plan-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 15.5px; font-weight: 400; }
.lp-plan-list .ico { width: 18px; height: 18px; margin-top: 4px; color: var(--gold-ink); }
@media (max-width: 559.98px) { .lp-plan .btn { width: 100%; } }
@media (min-width: 640px) { .lp-plan { padding: 56px 56px 48px; } }

/* Асуулт */
.lp-faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--gold-line); }
.lp-faq details { border-bottom: 1px solid var(--gold-line); }
.lp-faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 18px 2px;
  font: 400 19px/1.4 var(--serif); color: var(--ink); cursor: pointer;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d2a44' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform .3s var(--ease), border-color .2s;
}
.lp-faq details[open] summary::after { transform: rotate(45deg); border-color: var(--gold); }
.lp-faq summary:hover { color: var(--navy); }
.lp-faq summary:hover::after { border-color: var(--gold); }
.lp-faq details p { padding: 0 56px 24px 2px; color: var(--text); font-size: 15.5px; }

/* Төгсгөлийн уриалга */
.lp-final { padding: 0 0 88px; }
@media (min-width: 960px) { .lp-final { padding-bottom: 112px; } }
.lp-final-box {
  display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 56px 24px; text-align: center;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r-lg); box-shadow: var(--sh-card);
}
.lp-final-box .orn { margin-bottom: 4px; }
.lp-final-box p { max-width: 30em; color: var(--muted); }
.lp-final-box .btn { margin-top: 12px; }
@media (min-width: 900px) { .lp-final-box { padding: 72px 48px; } }

/* Утсан дээр наалттай доод товч (hero-гийн товч харагдахаа больсны дараа) */
.lp-sticky {
  position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; gap: 10px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(252, 251, 249, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--gold-line); box-shadow: 0 -12px 30px -18px rgba(20, 30, 51, .25);
  transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
}
.lp-sticky.is-on { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.lp-sticky .btn-primary { flex: 1 1 auto; min-width: 0; }
@media (min-width: 768px) { .lp-sticky { display: none; } }
html.modal-open .lp-sticky, html.sheet-open .lp-sticky { visibility: hidden; }
.hd-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 9px; pointer-events: none; }

/* ------------------------------------------------------------------ нэвтрэх / бүртгүүлэх */
.auth-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.auth-top { height: var(--header-h); border-bottom: 1px solid var(--gold-line); background: rgba(252, 251, 249, .9); }
.auth-top .container, .auth-top .container-narrow { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .brand { margin-right: 0; }
.auth-shell { flex: 1; display: flex; flex-direction: column; }
.auth-aside { display: none; }
.auth-strip { display: flex; gap: 12px; justify-content: center; height: 132px; overflow: hidden; padding: 28px 16px 0; }
.auth-strip .tpl-thumb { height: 100%; width: auto; flex: none; border-radius: 10px; box-shadow: var(--sh-card); }
.auth-strip .tpl-thumb:nth-child(1) { transform: rotate(-4deg) translateY(6px); }
.auth-strip .tpl-thumb:nth-child(3) { transform: rotate(4deg) translateY(6px); }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 28px 16px 56px; }
.auth-card {
  width: 100%; max-width: 440px; padding: 36px 24px 32px;
  background: var(--surface); border: 1px solid var(--gold-line); border-radius: var(--r-lg); box-shadow: var(--sh-card);
}
.auth-card h1 { margin-bottom: 10px; font: 400 clamp(32px, 4vw, 40px)/1.12 var(--serif); }
.auth-card .auth-sub { margin-bottom: 28px; color: var(--muted); }
.auth-alt { margin-top: 24px; text-align: center; font-size: 15px; color: var(--muted); }
.auth-alt a { font-weight: 500; }
.auth-help { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.auth-help summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--navy); font-weight: 500; }
.auth-help p { margin-top: 6px; text-align: left; }
p.auth-help a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 500; }
.auth-card .alert-success { margin-top: 4px; }
@media (min-width: 480px) { .auth-card { padding: 44px 40px 36px; } }
@media (min-width: 960px) {
  .auth-shell { flex-direction: row; }
  .auth-strip { display: none; }
  .auth-aside {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; flex: 0 0 45%;
    padding: 56px 32px; background: var(--band); border-right: 1px solid var(--gold-line);
  }
  .auth-aside .tpl-thumb {
    width: min(300px, 70%); aspect-ratio: 4 / 5; border: 10px solid var(--surface); border-radius: var(--r);
    box-shadow: 0 0 0 1px var(--gold-line), var(--sh-card-hover); transform: rotate(-3deg);
  }
  .auth-aside .hand { font-size: 26px; color: var(--gold-ink-strong); }
  .auth-aside .kicker { color: var(--gold-ink-strong); }
  .auth-main { align-items: center; padding: 56px 32px; }
}

/* ------------------------------------------------------------------ хяналтын самбар (dashboard) */
.app-main { padding: 36px 0 80px; }
@media (min-width: 768px) { .app-main { padding: 56px 0 112px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.page-head h1 { font: 400 clamp(32px, 4vw, 44px)/1.12 var(--serif); }
.page-head p { margin-top: 8px; color: var(--muted); }
.page-head .kicker { margin-bottom: 12px; }
.dash-list { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .dash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.dash-card { display: flex; flex-direction: column; overflow: hidden; }
.dash-card-body { display: flex; gap: 16px; padding: 18px; }
@media (min-width: 480px) { .dash-card-body { gap: 22px; padding: 24px; } }
.dash-thumb { flex: none; width: 96px; align-self: flex-start; border-radius: 10px !important; }
@media (max-width: 479.98px) { .dash-thumb { width: 84px; } }
.dash-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.dash-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.dash-title { font: 400 22px/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.dash-title a { color: inherit; text-decoration: none; }
.dash-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dash-names { color: var(--text); font-size: 15px; overflow-wrap: anywhere; }
.dash-meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.dash-meta > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash-meta .ico { width: 16px; height: 16px; flex: none; color: var(--gold-ink); }
.dash-link { color: var(--navy); font-weight: 500; overflow-wrap: anywhere; min-width: 0; text-decoration: none; }
.dash-link:hover { text-decoration: underline; }
.dash-upd { margin-top: 4px; }
.dash-counts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 4px; }
.dash-num { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: var(--muted); }
.dash-num strong { font: 400 26px/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.dash-rsvp {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 20px;
  border: 0; border-top: 1px solid var(--gold-line); background: var(--surface-2); color: var(--ink); text-align: left;
  transition: background-color .2s;
}
.dash-rsvp:hover { background: var(--navy-50); }
.dash-rsvp > .ico { flex: none; color: var(--gold-ink); }
.dash-rsvp-nums { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; flex: 1; min-width: 0; }
.dash-rsvp-empty { font-size: 14px; color: var(--muted); }
.dash-rsvp-go { flex: none; display: inline-flex; align-items: center; gap: 4px; font: 500 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.dash-pending {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--warn-50); color: var(--warn);
  font: 500 12.5px/1.5 var(--sans); white-space: nowrap;
}
.dash-next { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 14px; padding: 16px 20px; border-top: 1px solid var(--gold-line); }
.dash-next .btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 480px) { .dash-next { grid-template-columns: auto minmax(0, 1fr) auto; } .dash-next .btn { grid-column: auto; width: auto; } }
.dash-next-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); border: 1px solid currentColor; }
.dash-next-ico .ico { width: 18px; height: 18px; }
.dash-next-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dash-next-text strong { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.dash-next-text span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.dash-next.is-todo { background: var(--navy-50); }
.dash-next.is-todo .dash-next-ico { color: var(--navy); border-color: var(--navy-100); }
.dash-next.is-done { background: var(--sage-50); }
.dash-next.is-done .dash-next-ico { color: #3a5a3c; border-color: #cfe0cc; }
.dash-next.is-wait { background: var(--warn-50); }
.dash-next.is-wait .dash-next-ico { color: var(--warn); border-color: #f1dca6; }
.dash-next.is-bad { background: var(--danger-50); }
.dash-next.is-bad .dash-next-ico { color: var(--danger); border-color: #f2cfcc; }
.dash-next.is-wait .dash-next-text span, .dash-next.is-bad .dash-next-text span, .dash-next.is-done .dash-next-text span { color: #555555; }
.dash-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--gold-line); margin-top: auto; }
.dash-act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; padding: 10px 2px;
  border: 0; border-right: 1px solid var(--gold-line); background: none; color: var(--ink); text-decoration: none; text-align: center;
  font: 500 13px/1.15 var(--sans); transition: background-color .2s, color .2s;
}
.dash-act:last-child { border-right: 0; }
/* Утсан дээр 2 мөр (3 + 2): шошго 13px-ээс жижгэрэхгүй, үг тасрахгүй */
@media (max-width: 479.98px) {
  .dash-actions { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dash-act { grid-column: span 2; min-height: 62px; }
  .dash-act:nth-child(3) { border-right: 0; }
  .dash-act:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--gold-line); }
}
.dash-act:hover { background: var(--navy-50); color: var(--ink); }
.dash-act .ico { width: 20px; height: 20px; color: var(--navy); }
.dash-act.is-primary { color: #fff; background: var(--navy); }
.dash-act.is-primary .ico { color: #fff; }
.dash-act.is-primary:hover { background: var(--navy-hover); color: #fff; }
.dash-act.is-danger, .dash-act.is-danger .ico { color: var(--danger); }
.dash-act.is-danger:hover { background: var(--danger-50); }
.dash-act:disabled, .dash-act[aria-disabled="true"] { color: #8a8a8a; cursor: not-allowed; background: none; }
.dash-act[aria-disabled="true"] .ico { color: #a0a0a0; }
.dash-limit { margin-top: 18px; }
.dash-new {
  display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 120px; padding: 24px; width: 100%;
  border: 1px dashed var(--line-btn); border-radius: var(--r); background: transparent; color: var(--ink);
  font: 400 21px/1.3 var(--serif); text-align: left; transition: border-color .2s, background-color .2s;
}
.dash-new:hover { border-color: var(--gold); background: var(--surface); }
.dash-new-plus { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; flex: none; }
.dash-new-plus .ico { width: 24px; height: 24px; }
.dash-new small { display: block; margin-top: 4px; font: 300 14px/1.5 var(--sans); color: var(--muted); }
@media (min-width: 900px) { .dash-new { min-height: 100%; flex-direction: column; text-align: center; } }
.dash-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px; text-align: center; }
.dash-empty-art {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  border: 1px solid var(--gold-line); color: var(--navy); background: var(--surface); box-shadow: var(--sh-card);
}
.dash-empty-art svg { width: 34px; height: 34px; }
.dash-empty h2 { font: 400 clamp(26px, 3vw, 32px)/1.2 var(--serif); }
.dash-empty p { max-width: 460px; }
.dash-empty-steps { list-style: none; display: grid; gap: 10px; width: 100%; max-width: 440px; margin: 8px 0 10px; padding: 0; text-align: left; }
.dash-empty-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--gold-line); border-radius: 14px; background: var(--surface); }
.dash-empty-steps strong { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.dash-empty-steps span:not(.dash-empty-num) { display: block; font-size: 13.5px; color: var(--muted); }
.dash-empty-num { flex: none; width: 34px; font: italic 400 26px/1 var(--serif); color: var(--gold-ink); text-align: center; }

/* Өгөгдлийн самбар (хариу, хүснэгт, админ): товч жижиг үсгээр — нягт мөрөнд уншигдахуйц, багтана */
.rsvp-panel .btn, .table .btn, .table-cards .btn, .adm-root .btn-sm, .adm-toolbar .btn {
  text-transform: none; letter-spacing: .01em; font-size: 14px; padding-left: 16px; padding-right: 16px;
}
.rsvp-panel .btn-sm, .table .btn-sm, .table-cards .btn-sm { font-size: 13.5px; padding-left: 14px; padding-right: 14px; }

/* ------------------------------------------------------------------ хариунууд (RSVP) + ерөөлийн ханын удирдлага */
.rsvp-toolbar { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 14px; }
@media (min-width: 720px) { .rsvp-toolbar { flex-direction: row; align-items: center; } .rsvp-toolbar .input { max-width: 300px; } }
.rsvp-name { font-weight: 500; color: var(--ink); }
.rsvp-wish { white-space: pre-wrap; color: var(--text); }
.table td.rsvp-wish-cell { min-width: 200px; }
.table td.cell-main { min-width: 150px; max-width: 260px; }
.table .rsvp-name { overflow-wrap: anywhere; }
@media (max-width: 719.98px) { .table-cards td.cell-main { min-width: 0; max-width: none; } }
.table-cards .rsvp-wish { max-width: none; text-align: left; }
.rsvp-date { white-space: nowrap; color: var(--muted); font-size: 13.5px; }
@media (max-width: 719.98px) {
  .table-cards td.rsvp-wish-cell { width: 100%; min-width: 0; }
  .table-cards td.rsvp-wish-cell:not(.is-empty) { display: block; text-align: left; }
  .table-cards td.rsvp-wish-cell:not(.is-empty)::before { display: block; margin-bottom: 2px; }
  .table-cards td .cluster { justify-content: flex-end; }
}
.rsvp-countrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; min-height: 32px; margin: -2px 0 10px; }
.rsvp-countrow .check { font-size: 14px; align-items: center; white-space: nowrap; }
.rsvp-countrow .check input { margin: 0; }
.rsvp-toolbar-acts { display: flex; flex-wrap: wrap; gap: 10px; order: -1; flex: 1 1 100%; }
.rsvp-toolbar-acts .btn { flex: 1 1 auto; min-width: 0; padding: 0 16px; }
.btn.rsvp-del-all { --btn-fg: var(--danger); --btn-bd: #e9bdb9; --btn-hover-bg: var(--danger-50); --btn-hover-bd: var(--danger); }
@media (min-width: 720px) {
  .rsvp-selall-m { display: none; }
  .rsvp-toolbar-acts { order: 0; flex: none; margin-left: auto; }
  .rsvp-toolbar-acts .btn { flex: 0 0 auto; }
}
.table th.cell-check, .table td.cell-check { width: 44px; padding-right: 0; }
.rsvp-pick { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: -8px -8px -8px -10px; border-radius: 10px; cursor: pointer; }
.rsvp-pick:hover { background: var(--navy-50); }
.rsvp-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.table tbody tr.is-selected td { background: var(--navy-50); }
.rsvp-selbar {
  position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  margin: 12px 0 0; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: var(--sh-modal);
}
.rsvp-selbar-count { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.rsvp-selbar-acts { display: flex; gap: 8px; margin-left: auto; }
.rsvp-selbar .btn-ghost { --btn-fg: #fff; --btn-hover-bg: rgba(255, 255, 255, .12); --btn-hover-fg: #fff; }
.rsvp-selbar .btn-danger { --btn-bd: #e0675f; }
@media (max-width: 719.98px) {
  .table-cards tr { position: relative; }
  .table-cards td.cell-check { position: absolute; top: 4px; right: 4px; width: auto; padding: 0; display: block; }
  .table-cards td.cell-check .rsvp-pick { width: 44px; height: 44px; margin: 0; }
  .table-cards td.cell-check .rsvp-pick input { width: 20px; height: 20px; }
  .table-cards td.cell-main { padding-right: 44px; }
  .table-cards tr.is-selected { background: var(--navy-50); border-color: var(--navy-200); }
  .table-cards tbody tr.is-selected td { background: none; }
  .rsvp-selbar { padding: 10px 12px; border-radius: 18px; }
  .rsvp-selbar-acts { flex: 1 1 100%; }
  .rsvp-selbar-acts .btn { flex: 1 1 0; min-height: 44px; }
}
.rsvp-banner { margin: 16px 0 0; }
.rsvp-wallnote { align-items: center; flex-wrap: wrap; }
.rsvp-wallnote > span { flex: 1 1 220px; }
.rsvp-wallnote .btn { flex: none; }
.rsvp-wallhint { margin: 0; }
.rsvp-pending {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: var(--navy); color: #fff; font: 500 12px/1 var(--sans); font-variant-numeric: tabular-nums;
}
@media (max-width: 479.98px) {
  .rsvp-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .rsvp-seg > button { min-height: 42px; border-radius: 14px; padding: 0 10px; }
}
.rsvp-wchips { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 14px; }
.rsvp-wchip {
  min-height: 36px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--surface);
  color: var(--text); font: 400 14px/1 var(--sans); transition: background-color .2s, color .2s, border-color .2s;
}
.rsvp-wchip:hover { border-color: var(--gold); color: var(--ink); }
.rsvp-wchip[aria-pressed="true"] { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy); font-weight: 500; }
@media (pointer: coarse) { .rsvp-wchip { min-height: 44px; } }
.rsvp-mod { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.rsvp-state { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font: 500 13px/1.4 var(--sans); white-space: nowrap; }
.rsvp-state-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.rsvp-state.is-shown { color: #3a5a3c; }
.rsvp-state.is-hidden { color: var(--muted); }
.rsvp-state.is-pending { color: var(--warn); }
/* Ханыг асаахаас өмнө бичсэн ерөөл: зөвхөн эзэнд харагдана (урт шошго — мөр шилжинэ) */
.rsvp-state.is-legacy { color: var(--muted); font-weight: 400; white-space: normal; align-items: flex-start; }
.rsvp-state.is-legacy .rsvp-state-dot { background: transparent; border: 1.5px solid currentColor; margin-top: .45em; }
.rsvp-mod-btn { min-height: 36px; padding: 0 14px; }
.rsvp-mod-btn .ico { width: 16px; height: 16px; }
.table tr.is-hidden .rsvp-wish { color: var(--muted); }
.table tr.is-pending td { background: #fffbf1; }
@media (max-width: 719.98px) {
  .table-cards td.rsvp-wish-cell .rsvp-mod { padding-top: 10px; border-top: 1px dashed var(--gold-line); }
  .table-cards .rsvp-mod-btn { min-height: 44px; flex: 1 1 0; }
  .table-cards .rsvp-state { flex: 1 1 100%; }
  .table-cards tr.is-pending { border-color: #f1dca6; background: #fffbf1; box-shadow: inset 3px 0 0 var(--gold), var(--sh-card); }
  .table-cards tr.is-pending td { background: none; }
}

/* ------------------------------------------------------------------ админ */
.adm-tabs { margin: 32px 0 18px; scroll-margin-top: calc(var(--header-h) + 12px); }
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.adm-toolbar .input { max-width: 340px; }
.adm-email { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.temp-pass {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: var(--navy-50); border: 1px dashed var(--navy-200); font: 600 22px/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: .06em; color: var(--ink); overflow-wrap: anywhere;
}
.adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .adm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .adm-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stat-sub { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.stat.is-money .stat-value { font-size: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-stat-btn { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.adm-stat-btn:hover { border-color: var(--gold); background: var(--surface); }
.adm-stat-btn .stat-sub { justify-content: space-between; }
.adm-stat-btn .stat-sub .ico { flex: none; }
.adm-stat-btn.is-attention { background: var(--gold-50); border-color: var(--gold-300); }
.adm-stat-btn.is-attention .stat-value { color: var(--gold-ink-strong); }
.adm-stat-btn.is-attention .stat-sub { color: var(--gold-ink-strong); font-weight: 500; }
.adm-tab-badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--navy); color: #fff; font: 500 12px/1 var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.adm-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.adm-acts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
@media (min-width: 720px) {
  .table .adm-acts { flex-direction: column; align-items: flex-end; flex-wrap: nowrap; }
  .adm-pay .adm-acts { flex-direction: column-reverse; }
  .adm-inv-table td.adm-email { min-width: 214px; }
}
.adm-paid-badge > span { font-weight: 600; }
.adm-notice { margin-bottom: 14px; }
.adm-notice .link { font-size: inherit; }
.adm-pnote { margin: -2px 0 10px; }
.adm-loading { display: inline-flex; padding: 6px 0; }
@media (min-width: 720px) { .adm-show-m { display: none !important; } }
@media (max-width: 719.98px) { .table-cards td.adm-hide-m { display: none; } }
.adm-pay tr.is-claimed td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.adm-pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm-code {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: -4px 0 -2px -8px; padding: 0 8px; border: 0; border-radius: 9px;
  background: none; color: var(--ink); font: 600 16px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .06em;
}
.adm-code .ico { color: var(--muted); }
.adm-code:hover { background: var(--navy-50); }
.adm-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 4px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-method { font-size: 13px; font-weight: 400; color: var(--muted); }
.adm-inv { display: flex; flex-direction: column; gap: 1px; min-width: 140px; max-width: 210px; overflow-wrap: anywhere; }
.adm-email-cell { overflow-wrap: anywhere; min-width: 214px; }
.adm-pnote-text { margin-top: 6px; max-width: 190px; font-size: 13px; color: var(--danger); white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-dates { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 719.98px) {
  .table-cards.adm-pay td { align-items: flex-start; }
  .table-cards.adm-pay td.cell-main { padding-bottom: 8px; padding-right: 0; }
  .table-cards.adm-pay tr.is-claimed { border-color: var(--gold-300); box-shadow: inset 3px 0 0 var(--gold), var(--sh-card); }
  .table-cards.adm-pay tr.is-claimed td:first-child { box-shadow: none; }
  .table-cards .adm-inv { align-items: flex-end; text-align: right; min-width: 0; max-width: none; }
  .table-cards .adm-dates { align-items: flex-end; }
  .table-cards .adm-email-cell { min-width: 0; }
  .table-cards .adm-pnote-text { max-width: none; text-align: left; }
  .table-cards.adm-pay td.actions .adm-acts { display: flex; width: 100%; flex-wrap: nowrap; gap: 8px; }
  .table-cards.adm-pay td.actions .btn { flex: 1 1 0; min-height: 44px; }
  .table-cards td.actions:empty { display: none; }
}
.adm-psum { border: 1px solid var(--gold-line); border-radius: 14px; background: var(--surface-2); padding: 14px 16px; }
.adm-psum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.adm-psum-label { font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.adm-psum-code { font: 600 24px/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .08em; color: var(--ink); }
.adm-psum-amount { font: 400 26px/1.2 var(--serif); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.adm-psum-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-btn); font-size: 14px; }
.adm-psum-meta dt { color: var(--muted); }
.adm-psum-meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.adm-chips { gap: 6px; }
.adm-chip { cursor: pointer; font: 400 13px/1.3 var(--sans); color: var(--navy); min-height: 34px; }
.adm-chip:hover { background: var(--navy-50); border-color: var(--navy-100); }
.adm-counter { flex: none; font-variant-numeric: tabular-nums; }
.adm-settings { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .adm-settings { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } }
.adm-set-form { display: flex; flex-direction: column; }
.adm-set-sec { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-bottom: 1px solid var(--gold-line); }
@media (min-width: 768px) { .adm-set-sec { padding: 28px 32px; } }
.adm-set-head { display: flex; flex-direction: column; gap: 4px; }
.adm-set-title { font: 400 20px/1.3 var(--serif); color: var(--ink); }
.adm-switch { position: relative; display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.adm-switch-input { position: absolute; left: 0; top: 0; width: 48px; height: 28px; margin: 0; opacity: 0; cursor: pointer; }
.adm-switch-track { position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: #cfcabd; transition: background-color .2s; }
.adm-switch-track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.adm-switch-input:checked + .adm-switch-track { background: var(--navy); }
.adm-switch-input:checked + .adm-switch-track::after { transform: translateX(20px); }
.adm-switch-input:focus-visible + .adm-switch-track { outline: var(--focus-ring); outline-offset: 2px; }
.adm-switch-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; color: var(--muted); }
.adm-switch-text strong { font-size: 16px; color: var(--ink); }
.adm-money { position: relative; max-width: 260px; }
.adm-money .adm-money-input { padding-right: 40px !important; font-weight: 500 !important; font-variant-numeric: tabular-nums; }
.adm-money-suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; pointer-events: none; }
.field .hint.adm-price-note { color: var(--warn); }
.adm-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-fieldset legend { padding: 0; margin-bottom: 8px; font: 500 14px/1.45 var(--sans); color: var(--ink); }
.adm-radios { display: grid; gap: 10px; }
@media (min-width: 640px) { .adm-radios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-radio {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.adm-radio:hover { border-color: var(--gold); }
.adm-radio.is-checked { border-color: var(--navy); background: var(--navy-50); box-shadow: 0 0 0 1px var(--navy) inset; }
.adm-radio input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.adm-radio.is-disabled { cursor: not-allowed; background: var(--surface-2); border-style: dashed; }
.adm-radio.is-disabled:hover { border-color: var(--line-strong); }
.adm-radio.is-disabled .adm-radio-text strong { color: var(--muted); }
.adm-radio-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.adm-radio-text strong { font-size: 15px; color: var(--ink); }
.adm-radio.is-wide { grid-column: 1 / -1; }
.adm-radio-text strong { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.adm-radio-badge {
  display: inline-block; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--muted); font: 500 11px/1.6 var(--sans); letter-spacing: .08em; white-space: nowrap;
}
.adm-mstatus { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 500; line-height: 1.45; }
.adm-mstatus .ico { flex: none; margin-top: 2px; }
.adm-mstatus.is-ok { color: var(--success); }
.adm-mstatus.is-warn { color: var(--warn); }
.adm-pv-kicker2 { align-self: center; font: 500 11px/1.35 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.adm-pv-warn { font-size: 12.5px; line-height: 1.45; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 8px 10px; text-align: center; }
.adm-radio-why { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--info-bg); color: var(--navy); font-size: 13px; line-height: 1.5; }
.adm-radio-why .ico { margin-top: 2px; }
.adm-radio-why code { font: 600 12px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .75); overflow-wrap: anywhere; }
.adm-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.adm-qr.is-uploading { opacity: .55; pointer-events: none; }
.adm-qr-img { flex: none; width: 148px; height: 148px; padding: 8px; border: 1px solid var(--gold-line); border-radius: 14px; background: #fff; }
.adm-qr-img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.adm-qr-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.adm-qr-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 132px; padding: 16px;
  border: 1px dashed var(--line-btn); border-radius: 14px; background: var(--surface-2); color: var(--navy); text-align: center;
  transition: border-color .2s, background-color .2s;
}
.adm-qr-drop:hover, .adm-qr-drop.is-over { border-color: var(--gold); background: var(--gold-50); }
.adm-qr-drop .ico-lg { width: 30px; height: 30px; color: var(--gold-ink); margin-bottom: 4px; }
.adm-savebar {
  position: relative; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 0 0 var(--r) var(--r);
}
.adm-savebar.is-dirty { position: sticky; bottom: 0; box-shadow: 0 -10px 24px rgba(20, 30, 51, .08); }
.adm-pv-jump { align-self: flex-start; }
@media (min-width: 1000px) { .adm-pv-jump { display: none !important; } }
.adm-savebar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm-save-state { font-size: 14px; color: var(--success); }
.adm-save-state.is-dirty { color: var(--warn); font-weight: 500; }
.adm-save { min-width: 150px; }
@media (max-width: 479.98px) { .adm-savebar-row { flex-direction: column-reverse; align-items: stretch; gap: 6px; } .adm-save-state { text-align: center; } }
.adm-pv { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: calc(var(--header-h) + 12px); }
@media (min-width: 1000px) { .adm-pv { position: sticky; top: calc(var(--header-h) + 16px); } }
.adm-pv-head { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.adm-pv-title { font-weight: 500; color: var(--ink); }
.adm-pv-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 26px; background: linear-gradient(160deg, var(--band), var(--band-2)); border: 1px solid var(--gold-line); }
.adm-pv-landing { padding: 10px 14px; border-radius: 14px; background: var(--navy); color: #fff; }
.adm-pv-landing p { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.adm-pv-kicker { display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.adm-pv-sheet { border-radius: 20px; background: var(--surface); box-shadow: var(--sh-card); overflow: hidden; user-select: none; }
.adm-pv-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 10px 16px; border-bottom: 1px solid var(--gold-line); }
.adm-pv-h { font: 400 17px/1.3 var(--serif); color: var(--ink); }
.adm-pv-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.adm-pv-content { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px 16px; }
.adm-pv-amount { display: flex; flex-direction: column; align-items: center; }
.adm-pv-amount strong { font: 400 32px/1.15 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.adm-pv-qr { align-self: center; display: grid; place-items: center; width: 168px; height: 168px; padding: 8px; border: 1px solid var(--gold-line); border-radius: 14px; background: #fff; }
.adm-pv-qr img { width: 100%; height: 100%; object-fit: contain; }
.adm-pv-qr.is-empty, .adm-pv-qr.is-qpay { gap: 6px; align-content: center; background: var(--surface-2); border-style: dashed; color: var(--muted); font-size: 13px; text-align: center; }
.adm-pv-qr.is-empty { border-color: #e0b85a; color: var(--warn); background: var(--warn-bg); }
.adm-pv-qr .ico { width: 34px; height: 34px; }
.adm-pv-dl { align-self: center; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.adm-pv-hint { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.45; }
.adm-pv-rows { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--gold-line); border-radius: 12px; }
.adm-pv-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--gold-line); }
.adm-pv-rows > div:last-child { border-bottom: 0; }
.adm-pv-rows dt { font-size: 13px; color: var(--muted); flex: none; }
.adm-pv-rows dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; text-align: right; }
.adm-pv-val { font-weight: 500; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.adm-pv-val.is-missing { color: var(--warn); font-weight: 400; font-style: italic; font-size: 13px; }
.adm-pv-copy { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--navy-50); color: var(--navy); flex: none; }
.adm-pv-code { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 14px; background: var(--gold-50); border: 1px dashed var(--gold-400); text-align: center; }
.adm-pv-codeval { display: inline-flex; align-items: center; gap: 8px; }
.adm-pv-codeval strong { font: 600 24px/1.1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .1em; color: var(--ink); }
.adm-pv-rule { font-size: 12.5px; font-weight: 500; color: var(--gold-ink-strong); }
.adm-pv-note { font-size: 13px; color: var(--text); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-pv-btn { display: grid; place-items: center; min-height: 44px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.adm-pv-btn.is-outline { background: var(--surface); color: var(--ink); border: 1px solid var(--line-btn); }
.adm-pv-foot { font-size: 12px; color: var(--muted); text-align: center; }
.adm-pv-apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adm-pv-app { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--gold-line); border-radius: 10px; font-size: 11.5px; color: var(--text); text-align: center; }
.adm-pv-applogo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--navy-100), var(--gold-100)); }
.adm-pv-off { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; text-align: center; }
.adm-pv-off .empty-icon { width: 56px; height: 56px; color: var(--success); margin-bottom: 4px; }
.adm-pv-off .empty-icon .ico { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ 404 */
.nf-main { flex: 1; display: grid; place-items: center; padding: 64px 20px 88px; text-align: center; }
.nf-box { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf-code { font: italic 400 64px/1 var(--serif); color: var(--gold-ink); }
.nf-box h1 { font: 400 clamp(34px, 5vw, 48px)/1.12 var(--serif); text-wrap: balance; }
.nf-box p:not(.kicker) { color: var(--muted); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; width: 100%; }
.nf-actions .btn { flex: 1 1 240px; max-width: 300px; }
.nf-orn { display: none; }

/* ------------------------------------------------------------------ жишээ цонх (site-preview.js) — утас: бүтэн дэлгэц; компьютер: утасны хүрээ + мэдээлэл */
.modal.pv-modal { padding: 0; align-items: stretch; }
.modal.pv-modal .modal-backdrop { background: rgba(20, 30, 51, .55); }
.modal-dialog.pv-dialog {
  width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; padding-bottom: 0;
  background: var(--bg); animation: fade-in .2s ease-out;
}
.pv-dialog .modal-body { padding: 0; overflow: hidden; display: flex; }
.pv { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; }
.pv-top {
  display: flex; align-items: center; gap: 8px; min-height: 64px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px 8px;
  background: var(--bg); border-bottom: 1px solid var(--gold-line);
}
.pv-close { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.pv-close:hover { background: var(--navy-50); }
.pv-close .ico { width: 22px; height: 22px; }
.pv-head { flex: 1; min-width: 0; }
.pv-kicker { display: flex; align-items: center; gap: 8px; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.pv-new { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--gold-100); background: var(--gold-50); color: var(--gold-ink-strong); font: 500 11px/1.4 var(--sans); letter-spacing: .12em; }
.pv-name { font: 400 19px/1.25 var(--serif); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-tags { display: none; }
.pv-count { flex: none; font: 400 13px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; }
.pv-nav { display: none; }
.pv-phone { flex: 1; display: flex; min-height: 0; min-width: 0; }
.pv-screen { position: relative; flex: 1; min-height: 0; min-width: 0; overflow: hidden; background: var(--band); }
.pv-frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .3s; }
.pv-screen.is-ready .pv-frame { opacity: 1; }
.pv-loading { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: var(--band); }
.pv-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--gold-line);
}
.pv-choose { flex: 1 1 auto; min-width: 0; padding: 0 18px; line-height: 1.25; }
.pv-choose span { overflow: visible; white-space: normal; }
@media (max-width: 399.98px) { .pv-choose { padding: 0 12px; font-size: 12px; letter-spacing: .08em; } .pv-nav-sm { width: 46px; height: 46px; } }
.pv-nav-sm {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--line-btn); border-radius: 50%;
  background: var(--surface); color: var(--ink);
}
.pv-nav-sm:hover { border-color: var(--gold); }
.pv-note, .pv-open, .pv-keys { display: none; }
@media (min-width: 900px) {
  .modal.pv-modal .modal-backdrop { background: rgba(252, 251, 249, .97); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .modal-dialog.pv-dialog { background: transparent; box-shadow: none; }
  .pv {
    display: grid; grid-template-columns: auto minmax(260px, 340px); grid-template-rows: 1fr repeat(6, auto) 1fr;
    column-gap: 64px; justify-content: center; align-items: center; padding: 32px 96px 32px 32px; color: var(--ink);
  }
  .pv-top, .pv-bar { display: contents; }
  .pv-close { position: absolute; top: 22px; right: 22px; border: 1px solid var(--line-btn); background: var(--surface); }
  .pv-close:hover { border-color: var(--gold); background: var(--surface); }
  .pv-stage { grid-column: 1; grid-row: 1 / -1; display: flex; align-items: center; gap: 24px; flex: none; }
  .pv-nav {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; flex: none;
    border: 1px solid var(--line-btn); background: var(--surface); color: var(--ink); transition: border-color .2s;
  }
  .pv-nav:hover { border-color: var(--gold); }
  .pv-nav[hidden] { display: none; }
  .pv-phone {
    flex: none; width: calc(var(--pv-w, 390px) + 20px); height: calc(var(--pv-h, 760px) + 20px); padding: 10px;
    border-radius: 46px; background: var(--navy-hover); box-shadow: 0 40px 80px -30px rgba(20, 30, 51, .45), 0 0 0 1px rgba(20, 30, 51, .25);
  }
  .pv-screen { flex: none; width: var(--pv-w, 390px); height: var(--pv-h, 760px); border-radius: 36px; }
  .pv-frame { transform-origin: 0 0; }
  .pv-count { grid-column: 2; grid-row: 2; font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--muted); }
  .pv-head { grid-column: 2; grid-row: 3; }
  .pv-kicker { margin-top: 14px; font-size: 12px; letter-spacing: .32em; }
  .pv-name { margin-top: 14px; font: 400 clamp(32px, 3vw, 44px)/1.12 var(--serif); white-space: normal; overflow-wrap: anywhere; }
  .pv-tags { display: block; margin-top: 12px; color: var(--muted); font-size: 14.5px; }
  .pv-choose { grid-column: 2; grid-row: 4; width: 100%; margin-top: 32px; }
  .pv-note { display: block; grid-column: 2; grid-row: 5; margin-top: 14px; color: var(--muted); font-size: 14px; }
  .pv-open { display: inline-flex; align-items: center; gap: 8px; grid-column: 2; grid-row: 6; justify-self: start; min-height: 44px; margin-top: 10px; color: var(--navy); font-size: 14.5px; font-weight: 400; }
  .pv-keys { display: flex; align-items: center; gap: 6px; grid-column: 2; grid-row: 7; margin-top: 4px; font-size: 13px; color: var(--muted); }
  .pv-keys[hidden] { display: none; }
  .pv-nav-sm { display: none; }
}

/* ------------------------------------------------------------------ хурдан эхлэл (site-quickstart.js) */
.modal-dialog.qs-dialog { max-width: 980px; }
.qs-dialog .modal-body { padding-top: 0; }
.qs-progress {
  list-style: none; position: sticky; top: 0; z-index: 25; display: flex; gap: 10px; margin: 0 -24px 22px; padding: 10px 24px 0;
  background: var(--surface); border-bottom: 1px solid var(--gold-line);
}
@media (min-width: 640px) { .qs-progress { margin: 0 -32px 26px; padding: 12px 32px 0; } }
.qs-step { flex: 1 1 0; min-width: 0; }
.qs-step-label {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 0 8px; border-bottom: 1px solid transparent; margin-bottom: -1px;
  font: 500 11.5px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.qs-step-num {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-btn); color: var(--ink); font: italic 400 14px/1 var(--serif); letter-spacing: 0;
}
@media (max-width: 439.98px) { .qs-step-label { gap: 8px; font-size: 11px; letter-spacing: .06em; } .qs-progress { gap: 6px; } }
.qs-step.is-current .qs-step-label { color: var(--ink); border-bottom-color: var(--gold); }
.qs-step.is-current .qs-step-num { background: var(--navy); border-color: var(--navy); color: #fff; }
.qs-step.is-done .qs-step-label { color: var(--navy); }
.qs-step.is-done .qs-step-num { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy); }
.qs-step-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.qs-step-btn:hover .qs-step-label { color: var(--ink); }

.qs-types { display: grid; gap: 12px; grid-template-columns: 1fr; }
.qs-type {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 16px; width: 100%; min-height: 92px;
  padding: 16px 16px 16px 18px; border: 1px solid var(--gold-line); border-radius: var(--r); background: var(--surface);
  color: var(--ink); text-align: left; box-shadow: var(--sh-card); transition: border-color .3s, box-shadow .3s, transform .3s;
}
.qs-type:hover { border-color: var(--gold); box-shadow: var(--sh-card-hover); }
.qs-type[aria-pressed="true"] { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }
.qs-type-art {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid var(--gold-line); background: var(--bg); color: var(--navy);
}
.qs-type-art .ico { width: 26px; height: 26px; }
.qs-type-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qs-type-text strong { font: 400 21px/1.2 var(--serif); color: var(--ink); }
.qs-type-text span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.qs-type-text small { margin-top: 4px; font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.qs-type-go { color: var(--muted); }
.qs-type.is-event { position: relative; }
.qs-type-badge {
  position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; vertical-align: middle;
  background: var(--gold-50); border: 1px solid var(--gold-100); color: var(--gold-ink-strong); font: 500 10.5px/1.2 var(--sans); letter-spacing: .06em;
}
.qs-type-text .qs-type-badge { font-size: 10.5px; line-height: 1.2; color: var(--gold-ink-strong); }
@media (min-width: 640px) {
  .qs-types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .qs-type { grid-template-columns: 1fr; justify-items: center; align-content: start; text-align: center; padding: 28px 20px 26px; }
  .qs-type-text { align-items: center; }
  .qs-type-go { display: none; }
}
@media (min-width: 1000px) { .qs-types { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .qs-type:hover { transform: translateY(-3px); } }

.qs-details { display: grid; gap: 20px; }
.qs-side { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--gold-line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-card); }
.qs-thumb { flex: none; width: 76px; border-radius: 10px; }
.qs-chosen { min-width: 0; flex: 1; }
.qs-chosen-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.qs-chosen-k { font: 500 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.qs-chosen-text strong { font: 400 21px/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.qs-change { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; }
.qs-form { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.qs-row { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 400px) { .qs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.qs-opt { font-weight: 300; color: var(--muted); }
.qs-later { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); }
.qs-later .ico { margin-top: 3px; color: var(--gold-ink); }
.qs-form input[type="date"], .qs-form input[type="time"] { min-width: 0; }
@media (min-width: 820px) {
  .qs-details { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
  .qs-side { position: sticky; top: 84px; flex-direction: column; align-items: stretch; padding: 12px 12px 18px; }
  .qs-thumb { width: 100%; aspect-ratio: 4 / 5; border: 0; }
  .qs-chosen-text { padding: 4px 6px 0; }
}
.qs-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.qs-foot-btns { display: flex; gap: 10px; }
.modal-foot .qs-foot-btns .qs-back { flex: 0 0 auto; }
.modal-foot .qs-foot-btns .qs-go { flex: 1 1 auto; }
.qs-go .ico { width: 18px; height: 18px; }
.qs-note { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
@media (min-width: 640px) {
  .qs-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
  .qs-foot-btns { margin-left: auto; }
  .modal-foot .qs-foot-btns .qs-go { min-width: 240px; }
  .qs-note { text-align: left; max-width: 440px; }
}
.qs-assure { list-style: none; display: grid; gap: 10px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--gold-line); }
.qs-assure li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.qs-assure .ico { flex: none; margin-top: 3px; color: var(--gold-ink); }
@media (min-width: 720px) { .qs-assure { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; padding-top: 24px; } }
.qs-making { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 4px; text-align: center; }
.qs-making strong { color: var(--ink); }
.qs .tg-chips { width: calc(100% + 48px); margin: 0 -24px; padding: 2px 24px; }
@media (min-width: 640px) { .qs .tg-chips { width: calc(100% + 64px); margin: 0 -32px; padding: 2px 32px; } }
@media (min-width: 768px) { .qs .tg-chips { width: auto; margin: 0; padding: 0; justify-content: flex-start; } }
@media (max-width: 399.98px) {
  .modal-foot .qs-foot-btns .qs-back { width: 52px; padding: 0; }
  .qs-back span { display: none; }
}

/* ------------------------------------------------------------------ хуваалцах цонх (site-share.js) */
.sh { display: flex; flex-direction: column; gap: 26px; }
.sh-sec { display: flex; flex-direction: column; gap: 12px; }
.sh-h { font: 500 11.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.sh-link { display: flex; gap: 10px; align-items: stretch; }
.sh-url {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 52px; padding: 8px 18px;
  border: 1px dashed var(--line-btn); border-radius: var(--r-sm); background: var(--surface-2);
  font: 500 16px/1.3 var(--sans); color: var(--navy); text-decoration: none; overflow-wrap: anywhere;
}
.sh-url:hover { border-color: var(--gold); color: var(--navy); }
.sh-copy { flex: none; min-height: 52px; }
.sh-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sh-act {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border: 1px solid var(--gold-line);
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 400 15px/1.2 var(--sans); text-align: left; text-decoration: none;
  transition: border-color .2s, background-color .2s;
}
.sh-act:hover { border-color: var(--gold); color: var(--ink); }
.sh-act .ico { flex: none; color: var(--navy); }
.sh-act.is-main { background: var(--navy); border-color: var(--navy); color: #fff; }
.sh-act.is-main .ico { color: #fff; }
.sh-act.is-main:hover { background: var(--navy-hover); color: #fff; }
.sh-msg summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--navy); font-weight: 500; font-size: 14.5px; }
.sh-msg[open] summary { margin-bottom: 4px; }
.sh-text { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.sh-qr { flex-direction: row; align-items: center; gap: 20px; padding: 18px; border: 1px solid var(--gold-line); border-radius: var(--r); background: var(--surface-2); }
.sh-qr-img { flex: none; width: 140px; height: 140px; padding: 6px; border: 1px solid var(--gold-line); border-radius: 12px; background: #fff; }
.qr-svg { display: block; width: 100%; height: 100%; }
.sh-qr-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sh-qr-text p { font-size: 14px; color: var(--muted); }
@media (max-width: 459.98px) {
  .sh-qr { flex-direction: column; align-items: stretch; text-align: center; }
  .sh-qr-img { align-self: center; width: 180px; height: 180px; }
  .sh-qr-text { align-items: stretch; }
  .sh-qr-text .sh-h { text-align: center; }
  .sh-link { flex-direction: column; }
  .sh-acts { grid-template-columns: 1fr; }
}
.sh-warn { align-items: flex-start; flex-wrap: wrap; }
.sh-warn-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.sh-warn .btn { flex: none; }
.sh-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0; text-align: center; }
.sh-empty h3 { font: 400 22px/1.25 var(--serif); }
.sh-empty p { color: var(--muted); max-width: 400px; }

/* ------------------------------------------------------------------ нэвтрэх: хадгалагдсан урилга */
.auth-pending-slot { margin: -8px 0 24px; }
.auth-pending { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #cfe0cc; border-radius: var(--r); background: var(--sage-50); }
.auth-pending-thumb { flex: none; width: 64px; border-radius: 10px; }
.auth-pending-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--text); }
.auth-pending-k { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #3a5a3c; }
.auth-pending-text strong { font: 400 20px/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ хүрэх талбай (утас): дор хаяж 44px; 320px */
@media (pointer: coarse) {
  .tg-chip { min-height: 40px; padding: 0 16px; }
  .tg-status .link { min-height: 44px; display: inline-flex; align-items: center; }
  .tg-search-clear { width: 40px; height: 40px; }
}
@media (max-width: 359.98px) {
  .dash-rsvp-go-t { display: none; }
  .modal-body { padding: 16px 16px 20px; }
  .modal-head { padding: 18px 10px 14px 16px; }
  .modal-foot { padding: 14px 16px; }
  .qs-progress { margin: 0 -16px 18px; padding: 8px 16px 0; gap: 6px; }
  .qs-step-label { font-size: 11px; gap: 4px; letter-spacing: .04em; }
  .qs-step-num { width: 22px; height: 22px; font-size: 12px; }
  .qs .tg-chips { width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px; }
  .qs-type { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .qs-type-art { width: 52px; height: 52px; }
  .qs-type-go { display: none; }
  .dash-card-body { gap: 12px; padding: 14px; }
  .dash-thumb { width: 80px; }
  .dash-rsvp, .dash-next { padding-left: 14px; padding-right: 14px; }
  .auth-card { padding: 32px 18px 28px; }
}

/* Самбар: имэйл баталгаажуулах сануулга (dashboard.js) */
.dash-verify { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-verify-text { flex: 1 1 240px; min-width: 0; }
