/* AFSOVA SHOES — xodimlar davomati, mobil admin panel */
:root {
  --bg: #f4f4f3;
  --surface: #ffffff;
  --surface-2: #f1f0ee;
  --text: #1a1715;
  --muted: #74706b;
  --border: #e6e4e1;
  --primary: #1f1a17;
  --primary-ink: #ffffff;
  --primary-soft: #efedea;
  --gold: #a8843f;
  --hero-bg: #1f1a17;
  --hero-text: #f4f1ec;
  --hero-accent: #d9bc7a;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #1d4ed8;
  --info-soft: #dbeafe;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --radius: 14px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0d; --surface: #1a1816; --surface-2: #24211f; --text: #f2f0ed; --muted: #9c968f;
    --border: #2d2a27; --primary: #e9e4dc; --primary-ink: #1a1715; --primary-soft: #2a2724;
    --gold: #cfb06d; --hero-bg: #1f1c19; --hero-text: #f2f0ed; --hero-accent: #d9bc7a;
    --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2c0b;
    --danger: #f87171; --danger-soft: #3b1515; --info: #60a5fa; --info-soft: #132a4a;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e0d; --surface: #1a1816; --surface-2: #24211f; --text: #f2f0ed; --muted: #9c968f;
    --border: #2d2a27; --primary: #e9e4dc; --primary-ink: #1a1715; --primary-soft: #2a2724;
    --gold: #cfb06d; --hero-bg: #1f1c19; --hero-text: #f2f0ed; --hero-accent: #d9bc7a;
  --ok: #4ade80; --ok-soft: #12321f; --warn: #fbbf24; --warn-soft: #3a2c0b;
  --danger: #f87171; --danger-soft: #3b1515; --info: #60a5fa; --info-soft: #132a4a;
  --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; min-height: 100dvh;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
svg.i { width: 22px; height: 22px; flex: none; fill: currentColor; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; vertical-align: -2px; }
.card-h h2 { display: flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Sarlavha ---------- */
.hdr {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--sat) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  display: flex; align-items: center; gap: 8px; min-height: 56px;
}
.hdr h1 { font-size: 20px; line-height: 1.2; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr .sub { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.hdr.emp-hdr { position: static; align-items: flex-start; }
.hdr.emp-hdr .who { flex: 1; min-width: 0; padding-top: 2px; }
.hdr.emp-hdr h1 { white-space: normal; overflow-wrap: anywhere; }
.hdr.emp-hdr .sub { font-size: 13px; }
.hdr.emp-hdr .tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 3px; }
.hdr.emp-hdr .badge { padding: 1px 6px; font-size: 10.5px; }
.emp-acts { display: flex; gap: 10px; margin: 0 0 14px; }
.emp-acts .icon-btn { flex: 1; width: auto; height: 46px; }
.icon-btn {
  padding: 0; cursor: pointer;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); flex: none;
}
.tg .hdr-back { display: none; }

.page { padding: 4px 16px calc(var(--sab) + 28px); max-width: 560px; margin: 0 auto; }

/* ---------- Kartalar ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 14px; overflow: hidden; }
.card-pad { padding: 14px 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 6px; }
.card-h h2 { font-size: 15px; margin: 0; }
.card-h a { color: var(--gold); font-weight: 600; font-size: 14px; }
.section-t { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 20px 4px 8px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 14px; display: block; }
.stat b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat b { color: var(--text); }
.stat.danger b { color: var(--danger); }
.stat .dot-k { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--muted); }
.stat.ok .dot-k { background: var(--ok); } .stat.danger .dot-k { background: var(--danger); } .stat.warn .dot-k { background: var(--warn); } .stat.info .dot-k { background: var(--info); }

.hero { background: var(--hero-bg); color: var(--hero-text); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 14px; border: 1px solid var(--border); }
.hero .label { opacity: .7; font-size: 13px; }
.hero .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--hero-accent); }
.hero .row2 { display: flex; gap: 6px 18px; margin-top: 8px; font-size: 13px; opacity: .75; flex-wrap: wrap; }

/* ---------- Ro'yxatlar ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 60px; position: relative; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; border-top: 1px solid var(--border); }
.item.plain + .item.plain::before { left: 16px; }
a.item:active { background: var(--surface-2); }
.item .main { flex: 1; min-width: 0; }
.item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .side { text-align: right; flex: none; font-variant-numeric: tabular-nums; }
.item .side .s { white-space: nowrap; }
.chev { color: var(--muted); opacity: .6; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-variant-numeric: tabular-nums; }
.kv + .kv { border-top: 1px solid var(--border); }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; text-align: right; }
.kv.total { background: var(--surface-2); }
.kv.total .v { font-size: 17px; color: var(--primary); }

/* ---------- Belgilar ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.mute { background: var(--surface-2); color: var(--muted); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .n { opacity: .6; margin-left: 4px; font-weight: 500; }

.daychips { display: flex; gap: 6px; flex-wrap: wrap; }
.daychip { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--primary); color: var(--primary-ink); }
.daychip.rest { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }

/* ---------- Oy/kun tanlash ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 2px; margin-bottom: 8px; }
.pager .lbl { font-weight: 600; font-size: 14px; text-align: center; min-width: 96px; }
.pager .lbl small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.pager button.lbl { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 8px; background: none; border: 0; color: inherit; font-family: inherit; cursor: pointer; }
.pager button.lbl::after { content: ""; border: 4px solid transparent; border-top-color: var(--muted); border-bottom-width: 0; }
.month-dlg { width: min(300px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 16px 48px rgba(0, 0, 0, .22); }
.month-dlg::backdrop { background: rgba(15, 14, 13, .4); }
.month-dlg .box { padding: 12px; }
.month-dlg .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.month-dlg .head button { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); }
.month-dlg .head button:disabled { opacity: .3; }
.month-dlg .head span:only-child { flex: 1; padding: 8px 4px 4px; text-align: center; }
.month-dlg .opts { display: grid; gap: 6px; }
.month-dlg .opts a { display: grid; place-items: center; height: 48px; border-radius: 10px; background: var(--surface-2); font-weight: 600; }
.month-dlg .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.month-dlg .grid button { height: 44px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; }
.month-dlg .grid button.on { background: var(--text); color: var(--bg); }
.month-dlg .grid button:disabled { background: none; color: var(--muted); opacity: .45; }
.pager .icon-btn { width: 36px; height: 36px; background: none; border: 0; color: var(--muted); }
.pager .icon-btn .i { width: 16px; height: 16px; }
.pager .icon-btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; text-align: center;
  background: var(--primary); color: var(--primary-ink);
}
.btn:active { transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.soft { background: var(--primary-soft); color: var(--primary); }
.btn.ok { background: var(--primary); color: var(--primary-ink); }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > * { flex: 1; }
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.action { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; text-align: center; }
.action .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.action .ic svg.i { width: 26px; height: 26px; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--sab) + 16px); z-index: 25;
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.fab svg.i { width: 26px; height: 26px; }

/* ---------- Formalar ---------- */
.form .field { padding: 12px 16px; }
.form .field + .field { border-top: 1px solid var(--border); }
.form label.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form input[type=text], .form input[type=tel], .form input[type=number], .form input[type=password],
.form input[type=date], .form input[type=time], .form input[type=datetime-local], .form input[type=search],
.form select, .form textarea, .input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 16px; /* iOS zoom bo'lmasligi uchun */
  -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 80px; resize: vertical; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { outline: 2px solid var(--primary); outline-offset: -1px; background: var(--surface); }
.form .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form .err { font-size: 13px; color: var(--danger); margin-top: 6px; font-weight: 600; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-actions { padding: 4px 0 16px; display: grid; gap: 10px; }

/* Segment (radio) */
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); }

/* Hafta kunlari tanlash */
.weekpick { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.weekpick label { position: relative; }
.weekpick input { position: absolute; opacity: 0; pointer-events: none; }
.weekpick span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-weight: 700; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.weekpick input:checked + span { background: var(--primary); color: var(--primary-ink); }
.weekpick input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch input { width: 50px; height: 30px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--border); position: relative; -webkit-appearance: none; appearance: none; transition: .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: .2s; }
.switch input:checked { background: var(--ok); border-color: var(--ok); }
.switch input:checked::after { left: 22px; }

.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 40px !important; }

/* ---------- Xabarlar ---------- */
.toasts { position: fixed; left: 12px; right: 12px; top: calc(var(--sat) + 10px); z-index: 50; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; margin: 0 auto; max-width: 480px; width: 100%; padding: 12px 14px; border-radius: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); background: var(--text); color: var(--bg); animation: toast-in .25s ease-out; }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--ok); color: #fff; }
.toast.hide { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .ic { margin: 0 auto 8px; width: 56px; height: 56px; border-radius: 18px; background: var(--surface-2); color: var(--muted); display: grid; place-items: center; }
.empty .ic svg.i { width: 30px; height: 30px; }


.leave-card .item { align-items: flex-start; }
.leave-card form { padding: 0 16px 14px; display: grid; gap: 8px; }

/* Kirish sahifasi */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--sat) + 24px) 20px calc(var(--sab) + 24px); max-width: 420px; margin: 0 auto; }
.login .logo { width: 112px; height: 112px; border-radius: 24px; margin: 0 auto 16px; display: block; object-fit: cover; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.login .brand { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .24em; color: var(--gold); margin-bottom: 6px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; }
.login h1 { text-align: center; font-size: 24px; margin: 0 0 4px; }
.login .lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
.code-input { text-align: center; letter-spacing: .4em; font-size: 26px !important; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.tg-wait { text-align: center; padding: 40px 0; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 1s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.banner { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-weight: 600; }
.banner.mute { background: var(--surface-2); color: var(--muted); }
details.more-actions summary { list-style: none; cursor: pointer; }
details.more-actions summary::-webkit-details-marker { display: none; }

/* Filial xaritasi */
.map-wrap { position: relative; }
#map { height: 320px; width: 100%; background: var(--surface-2); z-index: 0; }
.map-locate { position: absolute; right: 12px; bottom: 12px; z-index: 500; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface); color: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); display: grid; place-items: center; }
.map-search { display: flex; gap: 8px; }
.map-search .input { flex: 1; }
.map-results { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.map-results li { padding: 10px 12px; font-size: 14px; cursor: pointer; }
.map-results li + li { border-top: 1px solid var(--border); }
.map-results li:active { background: var(--surface-2); }
.leaflet-container { font: inherit; }


/* Pastga tortib yangilash */
.ptr {
  position: fixed; left: 50%; top: calc(var(--sat) + 56px); z-index: 15;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  transform: translate(-50%, -56px); opacity: 0; pointer-events: none;
}
.ptr svg.i { width: 22px; height: 22px; }
.ptr.ready { color: var(--text); }
.ptr.anim { transition: transform .2s ease, opacity .2s ease; }
.ptr.loading svg.i { animation: spin .7s linear infinite; }

/* Kunlik hisobot qatorlari */
.dayrow { padding: 10px 16px; }
.dayrow + .dayrow { border-top: 1px solid var(--border); }
.dayhead { display: flex; align-items: baseline; gap: 6px; }
.subrow { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; font-size: 14px; }

/* Bosh sahifa */
.home { min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(var(--sat) + 24px) 16px calc(var(--sab) + 16px); }
.home-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.home-brand img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.home-brand b { font-size: 15px; letter-spacing: .14em; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1 / .82;
  padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 17px; font-weight: 600; transition: transform .16s cubic-bezier(.2, .8, .2, 1);
}
.tile:active { transform: scale(.97); }
.tile svg.i { width: 30px; height: 30px; color: var(--gold); }
.notice {
  display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.notice span { flex: 1; }
.notice b { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); color: var(--text); font-size: 14px; }
.home-foot { margin-top: auto; padding-top: 32px; text-align: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Odamlar ro'yxati */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: person; }
.person {
  counter-increment: person; display: flex;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-weight: 600;
}
.person.hidden { display: none; }
.person:active { background: var(--surface-2); }
.person a { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 64px; padding: 12px 16px; }
.person a::before { content: counter(person) "."; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.person .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .sum { flex: none; font-variant-numeric: tabular-nums; color: var(--muted); }
.person .sum.plus { color: var(--ok); }
.person .sum.minus { color: var(--danger); }
.plus-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); flex: none; }
.bare-btn { width: 44px; height: 44px; border: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.spacer { flex: 1; }
.search-bar { margin-bottom: 12px; }
.sums { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; }
.totals { display: grid; gap: 4px; padding: 0 4px 12px; color: var(--muted); font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals b { font-variant-numeric: tabular-nums; }
.totals .plus { color: var(--ok); }
.totals .minus { color: var(--danger); }

/* Sozlamalar va Holat tugmalari */
.tile-wide {
  display: flex; align-items: center; gap: 14px; padding: 22px 18px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 17px; font-weight: 600;
}
.tile-wide svg.i { width: 28px; height: 28px; color: var(--gold); flex: none; }
.tile-wide span { flex: 1; }
.tile-wide:active { background: var(--surface-2); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.tile-grid .tile { aspect-ratio: auto; min-height: 118px; gap: 14px; font-size: 16px; line-height: 1.25; }
.status-now { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 22px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 17px; font-weight: 600; }
.status-now b { font-size: 30px; font-variant-numeric: tabular-nums; }
::selection { background: var(--gold); color: #fff; }
.home-wide { margin-top: 12px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bar-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14px; }
.bar-head span { min-width: 0; overflow-wrap: anywhere; }
.bar-head b { flex: none; font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; }
.bar-track i { display: block; height: 100%; min-width: 4px; background: var(--gold); border-radius: 0 4px 4px 0; }
