/* Бөх Таавар — дизайны өнгө, фонт, хэмжээсийг дагасан нийтлэг загвар */
:root {
  --bg: #131110; --deep: #0C0A09; --card: #1D1A18; --card2: #262220; --card3: #2A2522;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #F2EDE5; --muted: rgba(242,237,229,.48); --faint: rgba(242,237,229,.32);
  --gold: oklch(0.80 0.14 82); --gold-h: oklch(0.86 0.14 82); --gold-ink: #1A1206;
  --gold-bg: rgba(230,170,60,.13); --gold-line: rgba(230,170,60,.32);
  --red: oklch(0.72 0.16 30); --red-t: oklch(0.80 0.13 40); --red-bg: rgba(215,80,60,.11); --red-line: rgba(215,80,60,.32);
  --green: oklch(0.72 0.16 145); --green-t: oklch(0.80 0.12 150); --green-bg: rgba(70,180,110,.14); --green-line: rgba(70,180,110,.38);
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--deep); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
::-webkit-scrollbar { width: 0; height: 0; }

@keyframes popIn { from { transform: scale(.88); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes slideUp { from { transform: translateY(14px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(230,170,60,.45) } 70% { box-shadow: 0 0 0 12px rgba(230,170,60,0) } 100% { box-shadow: 0 0 0 0 rgba(230,170,60,0) } }

#app { height: 100dvh; display: flex; justify-content: center; background: radial-gradient(1200px 600px at 20% -10%, #221C16 0%, var(--deep) 60%); }
.app { position: relative; width: 100%; max-width: 480px; height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }
@media (min-width: 520px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

.splash { margin: auto; width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--bg); background: linear-gradient(145deg, oklch(0.80 0.14 82), oklch(0.62 0.19 25)); animation: popIn .4s ease both; }
.splash.admin { background: linear-gradient(145deg, oklch(0.70 0.17 35), oklch(0.50 0.17 25)); }

/* ── текст ── */
.muted { color: var(--muted); } .faint { color: var(--faint); } .text { color: var(--text); } .gold { color: var(--gold); }
.xs { font-size: 11.5px; } .xxs { font-size: 10px; } .sm { font-size: 12.5px; line-height: 1.6; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.center { text-align: center; } .mt { margin-top: 8px; } .pad-y { padding: 24px 0; }
.num { font-family: var(--display); font-weight: 600; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--gold); }
.h2 { font-family: var(--display); font-weight: 600; font-size: 17px; }

/* ── толгой ба доод цэс ── */
.hdr { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 20px 12px; padding-top: max(16px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--bg); }
.hdr-text { flex: 1; min-width: 0; }
.hdr-title { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-back { width: 34px; height: 34px; margin-left: -8px; border-radius: 10px; font-size: 26px; line-height: 1; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.hdr-back:hover { background: rgba(255,255,255,.06); color: var(--text); }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(145deg, #3A2A16, #241C14); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gold); }
.admin-pill { padding: 5px 10px; border-radius: 7px; background: rgba(215,80,60,.16); border: 1px solid rgba(215,80,60,.35); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--red); }

.main { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; }
.tabbar { flex: none; display: flex; padding: 8px 10px 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 6px 0; font-size: 11px; font-weight: 600; color: rgba(242,237,229,.4); text-align: center; }
.tab-ind { width: 34px; height: 4px; border-radius: 2px; background: transparent; }
.tab.on { color: var(--text); }
.tab.on .tab-ind { background: var(--gold); animation: popIn .25s ease both; }
.tab-label { position: relative; }
.tab-badge { position: absolute; top: -9px; right: -14px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: oklch(0.62 0.19 25); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 16px; text-align: center; animation: popIn .25s ease both; }

/* ── блок ── */
.pad { padding: 16px 20px 32px; display: flex; flex-direction: column; gap: 14px; }
.pad.pb0 { padding-bottom: 0; }
.pad.px0 { padding-left: 0; padding-right: 0; }
.px { padding-left: 20px; padding-right: 20px; }
.card { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-title { font-size: 13px; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.empty { text-align: center; padding: 22px 18px; }
.empty-title { font-size: 13.5px; font-weight: 600; }
.empty-text { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.warn { padding: 14px 16px; border-radius: 14px; background: var(--red-bg); border: 1px solid var(--red-line); font-size: 12.5px; line-height: 1.6; color: var(--red-t); }
.info { padding: 14px 16px; border-radius: 14px; background: rgba(230,170,60,.09); border: 1px solid rgba(230,170,60,.25); font-size: 12.5px; line-height: 1.6; color: rgba(242,237,229,.72); }
.pop { animation: popIn .4s ease both; }

/* ── товч ── */
.btn { display: block; width: 100%; padding: 16px; border-radius: 14px; text-align: center; font-size: 15px; font-weight: 700; transition: background .15s; }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.gold:hover:not(:disabled) { background: var(--gold-h); }
.btn.gold:disabled { opacity: .55; }
.btn.gold.dim { opacity: .55; }
.btn.gold.sm { width: auto; flex: none; padding: 12px 16px; font-size: 13.5px; border-radius: 11px; }
.btn.ghost { background: rgba(255,255,255,.07); border: 1px solid var(--line2); font-weight: 600; }
.btn.ghost:hover:not(:disabled) { background: rgba(255,255,255,.11); }
.btn.ghost:disabled { opacity: .55; }
.btn.link { padding: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.btn.link:hover { color: var(--text); }
.btn.link.xs { font-size: 12px; padding: 4px; }
.btn.link.danger { color: oklch(0.65 0.17 28); }
.btn.mt { margin-top: 13px; }
.btn.edit-btn { padding: 13px; font-size: 14px; }
.pulse { animation: pulseRing 2.4s infinite; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.chips.sel { margin-top: 12px; }
.chip { flex: none; padding: 7px 11px; border-radius: 9px; background: var(--card2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
button.chip:hover { border-color: var(--line2); }
.chip.gold { background: var(--gold-bg); border-color: var(--gold-line); color: var(--gold); font-weight: 600; }
.chip.green { background: rgba(70,180,110,.13); border-color: rgba(70,180,110,.32); color: var(--green-t); font-weight: 600; }

.seg { display: flex; gap: 6px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.seg-btn { flex: 1; text-align: center; padding: 9px 4px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; color: var(--muted); }
.seg-btn.on { background: rgba(230,170,60,.16); border-color: var(--gold-line); color: var(--text); }
.card .seg { background: var(--card2); }

/* ── маягт ── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.dashed { border-style: dashed; border-color: rgba(255,255,255,.15); background: transparent; }
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: rgba(242,237,229,.42); }
.input { width: 100%; min-width: 0; padding: 13px 14px; border-radius: 12px; background: var(--card2); border: 1px solid rgba(255,255,255,.09); font-size: 15px; outline: none; }
.input:focus, .input:focus-within { border-color: var(--gold-line); }
.input::placeholder, .input input::placeholder { color: rgba(242,237,229,.3); }
.input.phone { display: flex; align-items: center; gap: 10px; }
.input.phone input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 0; font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.prefix { color: rgba(242,237,229,.4); }
.input.search { padding: 11px 14px; font-size: 14px; margin-top: 12px; }
.input.area { margin-top: 10px; margin-bottom: 10px; resize: vertical; font-size: 13.5px; line-height: 1.5; }
.input.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
.input[type="date"], .input[type="datetime-local"] { font-size: 13.5px; padding: 12px 10px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px; font-size: 14px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, rgba(242,237,229,.5) 50%), linear-gradient(135deg, rgba(242,237,229,.5) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--card2); color: var(--text); }
.inline { display: flex; gap: 9px; align-items: center; }
.form-err { font-size: 12.5px; color: var(--red-t); }
details > summary { cursor: pointer; list-style: none; }
details > summary::after { content: ' ▾'; color: var(--muted); }
details[open] > summary::after { content: ' ▴'; }

/* ── нэвтрэх ── */
.login { flex: 1; overflow-y: auto; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 56px 28px 32px; background: radial-gradient(420px 320px at 50% 8%, #3A2A16 0%, var(--bg) 70%); }
.login-top { animation: slideUp .5s ease both; }
.logo { width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, oklch(0.80 0.14 82), oklch(0.62 0.19 25)); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--bg); }
.logo.admin { background: linear-gradient(145deg, oklch(0.70 0.17 35), oklch(0.50 0.17 25)); color: var(--text); }
.login-title { margin: 26px 0 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.login-lead { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(242,237,229,.55); max-width: 300px; text-wrap: pretty; }
.demo-hint { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--gold-bg); border: 1px solid var(--gold-line); font-size: 12px; line-height: 1.5; color: var(--gold); }
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-form .btn.gold { margin-top: 6px; padding: 17px; font-size: 15.5px; }

/* ── нүүр ── */
.hero { position: relative; padding: 20px; border-radius: 18px; background: linear-gradient(150deg, #2A2015 0%, #1A1512 60%); border-color: rgba(230,170,60,.22); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-name { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.25; }
.hero-group { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 7px; background: var(--gold-bg); border: 1px solid var(--gold-line); font-size: 12px; font-weight: 600; color: var(--gold); }
.hero-rank { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; }
.rank-num { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--gold); }
.hero-meta { margin-top: 10px; display: flex; gap: 10px; font-size: 12px; color: rgba(242,237,229,.55); }
.hero-cta { margin-top: 18px; }
.cd { text-align: right; flex: none; }
.cd-label { font-size: 10.5px; color: rgba(242,237,229,.4); }
.cd-val { margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--gold); }
.cd-val.sm { font-size: 14px; }
.cd-unit { font-size: 10px; color: rgba(242,237,229,.35); }
.stat-val { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 26px; }
.badges { margin-top: 14px; display: flex; gap: 10px; }
.badge { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.badge-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 15px; color: rgba(242,237,229,.28); }
.badge-ico.got { background: linear-gradient(145deg, oklch(0.80 0.14 82), oklch(0.66 0.16 55)); color: var(--gold-ink); border-color: transparent; animation: popIn .35s ease both; }
.badge-name { font-size: 9.5px; text-align: center; line-height: 1.3; color: rgba(242,237,229,.4); }
.hist { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.hist-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.hist-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hist-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.hist-pts { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--gold); }

/* ── сонгогч ── */
.picker { display: flex; flex-direction: column; min-height: 100%; }
.picker .wlist { flex: 1; }
.picker-head { position: sticky; top: 0; z-index: 5; padding: 14px 20px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.steps { display: flex; gap: 6px; }
.step { flex: 1; min-width: 0; }
.step-bar { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.step-bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s; }
.step-bar span.fill { width: 100%; }
.step-label { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 600; color: rgba(242,237,229,.35); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.active .step-label { color: var(--gold); }
.picker-title { margin-top: 14px; display: flex; align-items: baseline; justify-content: space-between; }
.picker-count { font-size: 12px; color: var(--muted); }
.picker-count b { color: var(--gold); }
.picker-hint { margin-top: 5px; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.wlist { padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.wrow { display: flex; align-items: center; gap: 13px; padding: 12px 14px; min-height: 64px; border-radius: 15px; background: var(--card); border: 1.5px solid var(--line); text-align: left; transition: background .12s; }
.wrow:hover { background: #232019; }
.wrow.sel { border-color: var(--gold); background: rgba(230,170,60,.09); }
.wavatar { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--card3); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 600; font-size: 14px; color: rgba(242,237,229,.55); }
.wmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wname { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wmeta { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.tag { padding: 2px 7px; border-radius: 5px; background: var(--gold-bg); color: var(--gold); font-weight: 600; }
.order { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; animation: popIn .25s ease both; }
.picker-foot { position: sticky; bottom: 0; padding: 14px 20px 16px; background: linear-gradient(180deg, rgba(19,17,16,0), var(--bg) 30%); }

/* ── олон таамаг ── */
.btn.link.add-more { margin-top: 6px; padding: 10px; color: var(--gold); font-weight: 600; }
.chip.dashed { background: transparent; border-style: dashed; border-color: rgba(255,255,255,.2); color: var(--muted); }
.chips.slots { margin-top: 0; }
.entries { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--card2); border: 1px solid rgba(255,255,255,.06); }
.entry-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.entry-name { font-size: 13px; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-when { font-size: 11px; }
.entry.locked { opacity: .75; }
.entry-slots { display: flex; gap: 5px; flex: none; }
.slot-btn { width: 30px; height: 30px; border-radius: 8px; background: #1A1715; border: 1px solid rgba(255,255,255,.1); font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; }
.slot-btn.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.slot-btn:hover:not(.on):not(:disabled) { border-color: var(--gold-line); color: var(--text); }
.entry .chip { margin: 0; }
.entry .btn.gold.sm { padding: 9px 12px; font-size: 12.5px; }
.gpicks .entries { margin-top: 10px; }
.gpicks.hl { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,170,60,.12); }
.joined-banner { padding: 12px 14px; border-radius: 13px; background: var(--gold-bg); border: 1px solid var(--gold-line); font-size: 12.5px; line-height: 1.55; color: var(--text); animation: popIn .3s ease both; }
.joined-banner b { color: var(--gold); }

/* ── миний таавар ── */
.items { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.item { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 11px; background: var(--card2); border: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 500; }
.item > span:first-child { flex: 1; }
.item.ok { background: var(--green-bg); border-color: var(--green-line); }
.plus { font-size: 11.5px; font-weight: 700; color: var(--green); }
.zero { font-size: 11.5px; color: rgba(242,237,229,.28); }
.big-score { margin-top: 8px; font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; letter-spacing: -.03em; }
.bar { margin-top: 16px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.09); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, oklch(0.72 0.16 145), oklch(0.80 0.14 82)); transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* ── чансаа ── */
.lb-row { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 15px; background: var(--card); border: 1.5px solid var(--line); }
.lb-row.me { border-color: var(--gold); background: rgba(230,170,60,.08); }
.lb-row.sm { padding: 11px 14px; border-radius: 14px; }
.lb-rank { width: 28px; flex: none; text-align: center; font-family: var(--display); font-weight: 600; font-size: 15px; color: rgba(242,237,229,.4); }
.lb-ava { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--card3); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: rgba(242,237,229,.55); }
.lb-main { flex: 1; min-width: 0; }
.lb-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.lb-pts { text-align: right; }
.lb-num { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--gold); }

/* ── групп ── */
.group { display: flex; flex-direction: column; gap: 8px; }
.group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: linear-gradient(150deg, #22201A, #1A1512); border-color: rgba(255,255,255,.08); }
.group-name { font-family: var(--display); font-weight: 600; font-size: 16px; margin-bottom: 5px; }
.code { padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.07); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: .1em; }
.code:hover { background: rgba(255,255,255,.12); }

/* ── админ ── */
.tlist { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.trow { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: var(--card2); border: 1.5px solid transparent; }
.trow.on { border-color: var(--gold); background: rgba(230,170,60,.08); }
.tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tname { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { flex: none; padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.status.draft { background: rgba(255,255,255,.07); color: var(--muted); }
.status.open { background: var(--gold-bg); color: var(--gold); }
.status.finished { background: rgba(70,180,110,.13); color: var(--green-t); }
.status.pending { background: var(--gold-bg); color: var(--gold); }
.status.rejected { background: var(--red-bg); color: var(--red-t); }

/* админ: групп */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 4px 4px 0; }
.sec-empty { padding: 0 4px; margin-top: -6px; }
.gcard.pending { border-color: var(--gold-line); background: linear-gradient(150deg, #2A2015 0%, #1A1512 70%); }
.gmain { min-width: 0; }
.gname { font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtours { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.gtour { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: var(--card2); border: 1px solid rgba(255,255,255,.06); }
.gtour-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gtour-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.link.sync { width: auto; align-self: flex-start; padding: 2px 0; color: var(--gold); text-align: left; }
.gdel { display: block; width: auto; margin: 8px 0 -6px auto; }
.mgroup-label.muted { color: var(--muted); }
.scoring { padding-top: 4px; display: flex; flex-direction: column; gap: 9px; }
.card.scoring { padding-top: 16px; }
.card.scoring .card-title { margin-bottom: 3px; }
.score-row { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(242,237,229,.65); }
.score-row .mono { font-size: 11.5px; }
.score-total { margin-top: 2px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.score-total .num { font-size: 19px; }
.bulk-del { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; margin-top: -4px; }
.chip.danger { color: oklch(0.70 0.17 28); border-color: rgba(215,80,60,.3); background: rgba(215,80,60,.08); }
.bulk-preview { margin: -2px 0 10px; padding: 10px 12px; border-radius: 11px; background: var(--card2); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 8px; }
.bp-list { display: flex; flex-direction: column; gap: 4px; }
.bp-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.bp-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.count-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 2px; }
.count-row.px { padding: 0 20px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); }
.ano { width: 26px; flex: none; font-size: 11px; color: rgba(242,237,229,.3); }
.x { width: 28px; height: 28px; flex: none; border-radius: 8px; font-size: 17px; color: rgba(242,237,229,.3); display: flex; align-items: center; justify-content: center; }
.x:hover { color: oklch(0.62 0.19 25); background: rgba(215,80,60,.1); }
.done { background: rgba(70,180,110,.1); border-color: rgba(70,180,110,.3); }
.done-title { font-size: 13.5px; font-weight: 700; color: var(--green-t); }

/* бодит үр дүн: эвхэгддэг картууд */
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.acc-meta { display: flex; align-items: center; gap: 9px; }
.check { width: 18px; height: 18px; border-radius: 50%; background: rgba(70,180,110,.2); border: 1px solid rgba(70,180,110,.45); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--green-t); }
.acc-body { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.acc-body .input.search { margin-top: 0; background: #1A1715; border-color: rgba(255,255,255,.1); font-size: 13px; }
.addnew { display: block; width: 100%; margin-top: 8px; padding: 10px 13px; border-radius: 11px; background: var(--gold-bg); border: 1px solid var(--gold-line); font-size: 12.5px; font-weight: 600; color: var(--gold); }
.pool { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; max-height: 230px; overflow-y: auto; }
.pool.static { margin-top: 0; max-height: none; overflow: visible; }
.pcell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 11px; border-radius: 10px; background: #1A1715; border: 1px solid rgba(255,255,255,.06); text-align: left; }
button.pcell:hover { border-color: rgba(230,170,60,.4); }
.pcell.on { background: rgba(70,180,110,.16); border-color: rgba(70,180,110,.45); }
.pname { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psub { font-size: 10.5px; color: rgba(242,237,229,.42); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-row { margin-top: 13px; display: flex; gap: 8px; }
.btn-row .btn { padding: 12px 8px; font-size: 13px; font-weight: 600; border-radius: 11px; }
.btn.ghost.soft { background: rgba(255,255,255,.04); color: rgba(242,237,229,.65); }

/* хураадаг карт */
.collapse-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
.collapse-head.inner { padding-bottom: 12px; margin-bottom: -2px; border-bottom: 1px solid var(--line); }
.ch-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chev { flex: none; width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--muted); transition: transform .2s; }
.chev.up { transform: rotate(180deg); }
.card.collapse-head:hover { border-color: var(--line2); }

/* Тэмцээн дэлгэц дээрх "Бүх таавар" хэсэг */
.msec { display: flex; flex-direction: column; gap: 8px; }
.msec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 0; }
.msec-hint, .msec-empty { padding: 0 4px; }

/* бүх таавар: группээр жагсаалт */
.mgroup { display: flex; flex-direction: column; gap: 6px; }
.mgroup + .mgroup { margin-top: 6px; }
.mgroup-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 12px 2px; }
.mgroup-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.mrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: left; }
.mrow:hover, .mrow.on { border-color: rgba(230,170,60,.45); }
.mrank { width: 30px; flex: none; font-family: var(--display); font-size: 14px; font-weight: 600; color: rgba(242,237,229,.5); }
.mmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mname { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-total { flex: none; min-width: 48px; padding: 6px 8px; border-radius: 9px; background: var(--gold-bg); border: 1px solid rgba(230,170,60,.28); font-family: var(--display); font-weight: 600; font-size: 14px; text-align: center; color: var(--gold); }
.detail { margin-top: 6px; border-color: rgba(255,255,255,.09); }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-name { font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.detail-right { display: flex; align-items: center; gap: 10px; }
.xbtn { width: 30px; height: 30px; flex: none; border-radius: 9px; background: rgba(255,255,255,.07); font-size: 15px; color: rgba(242,237,229,.6); display: flex; align-items: center; justify-content: center; }
.dgroup { margin-top: 16px; }
.dlabel { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: rgba(242,237,229,.5); text-transform: uppercase; }
.dlabel .faint { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* ── toast ── */
.toast { position: absolute; left: 20px; right: 20px; bottom: 86px; z-index: 30; padding: 14px 16px; border-radius: 13px; background: #2E2A26; border: 1px solid var(--line2); box-shadow: 0 12px 32px rgba(0,0,0,.5); font-size: 13px; font-weight: 500; line-height: 1.5; animation: slideUp .3s ease both; }
