/* ---------------------------------------------------------------
   space. — Syomka Mini App
   Qora fon, oq matn, bitta qizil. Qizil faqat: bugun, hozir, kechikish.
   --------------------------------------------------------------- */

:root {
  --bg: #0D0D0F;
  --card: #151519;
  --card-2: #1C1C21;
  --text: #F7F7F8;
  --hint: #8B8B93;
  --dim: #5A5A63;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --soft: rgba(255, 255, 255, 0.07);
  --softer: rgba(255, 255, 255, 0.04);

  --accent: #FF1A1A;
  --accent-soft: rgba(255, 26, 26, 0.11);
  --accent-line: rgba(255, 26, 26, 0.30);
  --accent-text: #FF8A80;

  --syomka-bg: rgba(255, 255, 255, 0.075);
  --syomka-line: rgba(255, 255, 255, 0.13);
  --syomka-text: #A6A6AF;

  --montaj: #BFB3A0;
  --montaj-bg: rgba(191, 179, 160, 0.07);
  --montaj-line: rgba(191, 179, 160, 0.28);

  --hour: 52px;
  --rail-w: 236px;
  --panel-w: 320px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--text); }

/* ---------- brand ---------- */

.mark {
  font-family: "Poppins", "Century Gothic", system-ui, sans-serif;
  font-weight: 700; font-size: 19px; letter-spacing: -0.035em; line-height: 1;
}
.mark i { color: var(--accent); font-style: normal; }
.role {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dim); font-weight: 600;
}

/* ---------- shell ---------- */

/* Fon chuqurligi: ekran tepasida zaif nur */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(115% 52% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 62%);
}

.shell { min-height: 100dvh; display: flex; flex-direction: column; position: relative; z-index: 1; }

.brandbar {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: calc(16px + var(--tg-viewport-content-safe-area-inset-top, 0px)) 18px 13px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 13, 15, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .brandbar { background: var(--bg); }
}

.rail { display: none; }

.content { padding: 18px; flex: 1; min-width: 0; }
.panel { padding: 0 18px 28px; display: flex; flex-direction: column; gap: 10px; }

@media (min-width: 900px) {
  .shell {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--panel-w);
    grid-template-rows: 100dvh;
  }
  .brandbar { display: none; }
  .rail {
    display: flex; flex-direction: column; gap: 26px;
    padding: calc(24px + var(--tg-viewport-content-safe-area-inset-top, 0px)) 16px 24px; border-right: 1px solid var(--line); overflow-y: auto;
  }
  .content { padding: calc(24px + var(--tg-viewport-content-safe-area-inset-top, 0px)) 26px 24px; overflow-y: auto; }
  .shell.no-panel { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .shell.no-panel .panel { display: none; }
  .shell.no-panel .content { max-width: 1040px; }
  .panel {
    padding: calc(24px + var(--tg-viewport-content-safe-area-inset-top, 0px)) 20px 24px;
    border-left: 1px solid var(--line);
    overflow-y: auto; gap: 12px;
  }
}

/* ---------- rail nav ---------- */

.rail-head {
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px; gap: 10px;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--hint);
}
.icon-btn:active { background: var(--softer); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; font-size: 14px; color: var(--hint); min-height: 42px;
  width: 100%; text-align: left;
}
.nav-item.on { background: rgba(255, 255, 255, 0.06); color: var(--text); font-weight: 600; }
.nav-item .badge { margin-left: auto; }
.rail-foot { margin-top: auto; }
.who { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.av {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.10);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex: none; overflow: hidden;
}
.av img { display: block; }
.who { cursor: pointer; border-radius: 10px; }
.who:active { background: var(--softer); }

/* ---------- type ---------- */

h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.12; margin: 0 0 18px; }
h2 { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin: 26px 0 10px; }
.sect-lbl { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin: 0 0 10px; }
p { margin: 0; }
.muted { color: var(--hint); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- cards ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 16px; margin-bottom: 8px;
}
.card:last-child { margin-bottom: 0; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-title { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.card-sub { font-size: 12px; color: var(--hint); margin-top: 3px; line-height: 1.45; }

.badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-2); color: var(--hint); background: transparent;
}
.badge-ok { border-color: var(--line-2); color: var(--text); }
.badge-warn { border-color: var(--montaj-line); color: var(--montaj); }
.badge-danger { border-color: var(--accent-line); color: var(--accent-text); }
.badge-info { border-color: var(--line-2); color: var(--text); }

.progress-bar { height: 7px; border-radius: 4px; background: var(--soft); overflow: hidden; margin-top: 10px; }
.progress-fill {
  height: 100%; background: var(--text);
  transform-origin: left; animation: grow 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- controls ---------- */

.btn {
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--text);
  background: var(--text); color: #0D0D0F;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; width: 100%;
}
.btn.secondary { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.danger { background: transparent; border-color: var(--accent-line); color: var(--accent-text); }
.btn:disabled { opacity: 0.45; }
.btn:active { transform: scale(0.99); }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }

.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab {
  flex: 1; font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: transparent; color: var(--hint);
  min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.tab.on { background: var(--text); border-color: var(--text); color: #0D0D0F; }

label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; display: block; margin-bottom: 7px; }

.field, input.field, select.field, textarea.field {
  width: 100%; font-size: 14px; padding: 10px 14px; border-radius: 11px;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  margin-bottom: 16px; min-height: 46px; display: flex; align-items: center;
  justify-content: space-between; gap: 8px;
}
textarea.field { min-height: 84px; line-height: 1.45; display: block; resize: vertical; }
select.field { appearance: none; }
input.field::placeholder, textarea.field::placeholder { color: var(--dim); }
input.field:focus, select.field:focus, textarea.field:focus { outline: none; border-color: var(--text); }

.chips { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.chip {
  flex: 1; min-width: 56px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13px; color: var(--hint);
  display: flex; align-items: center; justify-content: center; padding: 0 10px;
}
.chip.on { background: var(--text); border-color: var(--text); color: #0D0D0F; font-weight: 700; }

.cnt { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cnt-btn {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  border: 1px solid var(--line); background: var(--soft); color: var(--text);
  font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.cnt-btn:disabled { color: var(--dim); }
.cnt-num { min-width: 40px; text-align: center; font-size: 20px; font-weight: 700; }
.cnt-lbl { font-size: 13px; color: var(--hint); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 10px; }
.nav-title { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.nav-btn {
  width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.seg { display: none; }
@media (min-width: 900px) {
  .tabs { display: none; }
  /* Faol/Arxiv almashtirgichining kompyuterda boshqa varianti yo'q — ko'rinib tursin */
  .tabs.keep { display: flex; max-width: 340px; }
  .seg { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; }
  .seg button { padding: 7px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--hint); }
  .seg button.on { background: var(--text); color: #0D0D0F; }
}

.dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }

/* ---------- sekundomer ---------- */

.stopwatch {
  display: flex; align-items: center; gap: 11px; margin-top: 14px;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--accent-line); background: var(--accent-soft);
}
.stopwatch.montaj { border-color: var(--montaj-line); background: var(--montaj-bg); }
.sw-time {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sw-lbl {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-text); margin-left: auto;
}
.stopwatch.montaj .sw-lbl { color: var(--montaj); }
.dot-live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex: none; animation: livepulse 1.6s ease-in-out infinite;
}
.stopwatch.montaj .dot-live { background: var(--montaj); }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .dot-live { animation: none; } }

/* ---------- gorizontal chip qatori (menyu va filtr) ---------- */

.navrow {
  display: flex; gap: 6px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.navrow::-webkit-scrollbar { display: none; }
.navrow .chip { flex: none; padding: 0 14px; min-width: 0; }
@media (min-width: 900px) { .navrow.nav-mobile { display: none; } }

/* ---------- kalendar: oy ---------- */

.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mgrid .wd { font-size: 10px; color: var(--dim); text-align: center; padding-bottom: 8px; font-weight: 600; letter-spacing: 0.08em; }
.mday {
  min-height: 54px; border-radius: 9px; padding: 5px 0 4px; border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
}
.mday .n { font-size: 13px; }
.mday.out .n { color: #3A3A42; }
.mday.sel { border-color: var(--line-2); background: var(--softer); }
.mday.today { background: var(--accent); }
.mday.today .n { font-weight: 700; color: #fff; }
.mday .dots { display: flex; gap: 3px; }

/* ---------- kalendar: vaqt to'ri (kun/hafta) ---------- */

.tgrid { display: flex; border-top: 1px solid var(--line); }
.tgut { width: 46px; flex: none; position: sticky; left: 0; z-index: 2; background: var(--bg); }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.tgut .h { height: var(--hour); font-size: 10px; color: var(--dim); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tcols { flex: 1; min-width: 0; display: flex; }
.tcol {
  flex: 1; min-width: 0; position: relative; border-right: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hour));
}
.tcol:last-child { border-right: none; }
.thead { display: flex; padding-left: 46px; }
.thead .c { flex: 1; min-width: 0; padding: 0 3px 10px; text-align: center; }
.thead .d { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.thead .n { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.thead .c.today .n, .thead .c.today .d { color: var(--accent); }
.thead .c.past .n { color: var(--dim); }

.tallday { display: flex; padding-left: 46px; margin-bottom: 8px; min-height: 4px; }
.tallday .c { flex: 1; min-width: 0; padding: 0 3px; }
.band {
  min-height: 22px; border-radius: 6px; border: 1px solid var(--montaj-line);
  background: var(--montaj-bg); color: var(--montaj); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; padding: 3px 8px; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.band.late { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-text); }
/* Dam kuni — rangsiz, ish bloklari bilan aralashmasin */
.band.off {
  border-color: var(--line); background: var(--softer); color: var(--dim);
  letter-spacing: 0.06em; text-transform: uppercase;
}
/* Dam kunidagi ustun biroz xira — ish kuni emasligi darrov bilinadi */
.tcol.dayoff { background: var(--softer); }
.mday.dayoff .n { color: var(--dim); }

.ev {
  position: absolute; left: 2px; right: 2px; border-radius: 8px; padding: 6px 8px;
  overflow: hidden; background: var(--syomka-bg); border: 1px solid var(--syomka-line);
  text-align: left; display: block; min-height: 26px;
}
.ev.late { background: var(--accent-soft); border-color: var(--accent-line); }
/* Montaj va pravka bloklari — qumrang, syomkalardan ajralib turadi */
.ev.mont {
  background: var(--montaj-bg); border-color: var(--montaj-line); color: var(--montaj);
  border-style: dashed;
}
.ev.mont.live { border-style: solid; }
/* Muddat yashikchasi — hali boshlanmagan, lekin aniq ko'rinib tursin.
   Uzuq chegara "hali ish boshlanmagan" degani, to'q fon esa uni
   syomka bloklari orasida yo'qolib ketishdan saqlaydi. */
.ev.mont.plan {
  background: rgba(191, 179, 160, 0.13); opacity: 1;
  border-width: 2px; border-color: rgba(191, 179, 160, 0.45);
}
.ev.mont.plan .ev-n { color: var(--montaj); }
.ev.done { opacity: 0.55; }
/* Montaj bloklari endi tugma — matni chapda, ko'rinishi o'zgarmaydi */
button.ev { font: inherit; cursor: pointer; }
.band.tap { cursor: pointer; }
.ev.wait { border-style: dashed; }
.ev-t { font-size: 10px; color: var(--syomka-text); font-variant-numeric: tabular-nums; }
.ev.late .ev-t { color: var(--accent-text); }
.ev-n { font-size: 12px; font-weight: 600; margin-top: 1px; letter-spacing: -0.01em; line-height: 1.2; }
.ev-m { font-size: 10px; color: var(--hint); margin-top: 3px; }

.slot {
  position: absolute; left: 2px; right: 2px; border-radius: 8px;
  border: 1px dashed var(--line-2); background: transparent;
}
.nowline { position: absolute; left: 0; right: 0; border-top: 1.5px solid var(--accent); pointer-events: none; }
.nowline::before {
  content: ""; position: absolute; left: -3px; top: -4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* ---------- akkaunt: kun x videograf ---------- */

.vhead { display: flex; padding-left: 46px; }
.vhead .c { flex: 1; min-width: 0; padding: 0 3px 10px; }
.vhead .vn { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; text-align: center; }
.vhead .vs { font-size: 10px; color: var(--dim); text-align: center; margin-top: 1px; }

/* ---------- yuklama to'ri ---------- */

.load-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.load-who { width: 76px; flex: none; }
.load-sq { display: flex; gap: 3px; flex: 1; }
.load-sq div {
  flex: 1; height: 34px; border-radius: 6px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.03);
}

/* ---------- statistika ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .stat-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat-num { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat-num small { font-size: 12px; font-weight: 500; color: var(--dim); }
.stat-lbl { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-top: 6px; font-weight: 600; }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.r, td.r { text-align: right; padding-right: 0; }
td.name { font-weight: 600; letter-spacing: -0.01em; }
tr:last-child td { border-bottom: none; }

/* ---------- modal ---------- */

.sheet-bg {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: bg-in 0.16s ease;
}
/* Blur bo'lmasa qorayish kuchliroq — o'qish qulay qolsin */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sheet-bg { background: rgba(0, 0, 0, 0.68); }
}
@media (min-width: 900px) { .sheet-bg { align-items: center; } }
.sheet {
  background: var(--bg); border: 1px solid var(--line); width: 100%; max-width: 460px;
  border-radius: 20px 20px 0 0; padding: 8px 18px 24px; max-height: 92dvh; overflow-y: auto;
  animation: sheet-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Yopilish: closeSheet() shu klassni qo'yadi, keyin DOM dan olinadi */
.sheet-bg.closing { animation: bg-out 0.17s ease forwards; pointer-events: none; }
.sheet-bg.closing .sheet { animation: sheet-out 0.17s ease-in forwards; }

@keyframes bg-in { from { opacity: 0; } }
@keyframes bg-out { to { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(20px); opacity: 0; } }
@keyframes sheet-out { to { transform: translateY(14px); opacity: 0; } }
@media (min-width: 900px) {
  .sheet { border-radius: 18px; max-height: 88dvh; }
  @keyframes sheet-in { from { transform: scale(0.97); opacity: 0; } }
  @keyframes sheet-out { to { transform: scale(0.98); opacity: 0; } }
}
.sheet-grip { width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 6px auto 16px; }
.sheet h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }

/* ---------- boshqa ---------- */

.empty { color: var(--dim); font-size: 13px; text-align: center; padding: 26px 0; }
/* Bir qatorlik bo'sh holat — butun bo'lakni egallamasin */
.empty.slim { padding: 8px 0 14px; text-align: left; }
.err { color: var(--accent-text); font-size: 13px; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 12px; background: var(--accent-soft); }
.loading { color: var(--dim); text-align: center; padding: 40px 0; font-size: 13px; }
.id-box { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 0.06em; background: var(--card); border: 1px solid var(--line-2); padding: 16px; border-radius: 12px; text-align: center; margin: 12px 0; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: #0D0D0F; font-size: 13px; font-weight: 600;
  padding: 11px 18px; border-radius: 999px; z-index: 200; max-width: 88vw; text-align: center;
}
.toast.bad { background: var(--accent); color: #fff; }
.toast { animation: toast-in 0.24s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes toast-in { from { transform: translate(-50%, 14px); opacity: 0; } }

/* ---------- harakat ---------- */

/* Bo'limdan bo'limga o'tganda tarkib sakramasin */
.content, .panel { animation: rise 0.22s ease both; }
@keyframes rise { from { transform: translateY(7px); opacity: 0; } }

/* Kalendardagi syomkalar yumshoq paydo bo'ladi */
.ev { animation: fade 0.24s ease both; }
@keyframes fade { from { opacity: 0; } }

/* Bosiladigan narsalar barmoq ostida javob bersin */
.chip, .tab, .nav-item, .nav-btn, .icon-btn, .mday, .seg button {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* "Harakat kerak emas" deb sozlaganlarga — hech qanday harakat */
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-bg, .sheet-bg.closing, .sheet-bg.closing .sheet,
  .toast, .content, .panel, .ev, .progress-fill {
    animation: none !important;
  }
  .chip, .tab, .nav-item, .nav-btn, .icon-btn, .mday, .seg button {
    transition: none !important;
  }
}

.mobile-only { display: block; }
.desktop-only { display: none; }
@media (min-width: 900px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/* jadval katagidagi kichik izoh */
.cell-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: var(--hint);
  white-space: nowrap;
}

/* mijozlar dashboardi — bir qarashda hammasi */
.tiles {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.tiles .card { padding: 12px 13px; }
