/* Kassa kartasi — `js/shift_card.js` (egasi, 2026-10-02; namuna
 * `dizayn/bosh-andoza/namuna.html`).
 *
 * ⛔ HAMMA SINF `kc-` PREFIKSLI (DIZAYN.md 3): karta bosh sahifada ham,
 * keyin savdo ekranida ham turadi — yalang‘och sinf o‘sha ekranlarga oqardi.
 *
 * ⛔ RANG HOLATNI AYTADI, YOZUV EMAS: kulrang — yopiq, yashil — ochiq,
 * sariq — sanaldi. Tugma rangi esa KEYINGI ishni: ochish yashil, tasdiq
 * sariq; yopish — asosiy rang, qizil EMAS (egasi «Ha», 2026-11-21: yopish
 * odatiy ish, xato emas).
 *
 * ⛔ HARAKAT — faqat bezak: qadam almashsa yon tomondan siljib kiradi,
 * ochilganda va yopilganda yashil ✓. «Harakatni kamaytirish» yoqilgan
 * telefonda hammasi o‘chadi (pastda) — holat baribir rang bilan ko‘rinadi.
 */

.kc {
  /* ⛔ Tunda yorqin yashil/qizil ustida oq yozuv o‘qilmaydi — to‘q yozuv:
     `--deep` kunda oq, tunda to‘q (5.1 #134) */
  --kc-on: var(--deep);
  --kc-tone: var(--muted);
  --kc-btn: var(--ok);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px; border-radius: var(--card-r);
  border: 1px solid transparent;
  background: linear-gradient(var(--glass), var(--glass)) padding-box, var(--card-edge) border-box var(--glass);
  box-shadow: var(--card-sh);
  transition: box-shadow .3s ease;
}
/* ⛔ YANGI KO‘RINISH (rebrend b, egasi, 2026-11-07): karta HAMMA joyda
   chegarasiz; ramka joyi (1 px) qoladi, shaffof (DIZAYN «.nk-flat») */
.kc { --card-edge: linear-gradient(transparent, transparent); --card-sh: var(--flat-sh); --card-r: 24px; }
.kc[data-s="ochiq"] { --kc-tone: var(--ok); --kc-btn: var(--mid); --kc-on: var(--on); }
.kc[data-s="sanaldi"] { --kc-tone: var(--warn); --kc-btn: var(--warn); }
.kc[data-s="err"] { --kc-tone: var(--danger); }

.kc-head { display: flex; align-items: center; gap: 10px; min-height: 28px; }
/* «Diqqat» → tasdiq oynasi (#138): kassa nomi oyna sarlavhasida — kartaniki takror */
.kc[data-kc-fixed] .kc-head { display: none; }
.kc-dot {
  width: 10px; height: 10px; flex: none; border-radius: 50%;
  background: var(--kc-tone); transition: background .3s ease;
}
.kc[data-s="ochiq"] .kc-dot { box-shadow: 0 0 0 4px var(--tint-ok); animation: kc-pulse 1.8s ease-in-out infinite; }
.kc[data-s="sanaldi"] .kc-dot { box-shadow: 0 0 0 4px var(--tint-warn); }
.kc-title { flex: 1; min-width: 0; font-size: var(--t-4); font-weight: var(--w-bold); overflow-wrap: anywhere; }
/* Smena raqami — kichik va kulrang (chekdagidek, 2026-10-01): kassir
   uchun emas, «qaysi smena?» deb so‘ragan odam uchun */
.kc-id {
  flex: none; padding: 2px 8px; border-radius: 8px;
  background: var(--well); color: var(--muted);
  font-size: var(--t-1); font-weight: var(--w-mid);
  font-variant-numeric: tabular-nums; letter-spacing: .05em;
}
/* Faqat kassa shu kartada ochilganda (`shift_card.js` `pop`) */
.kc-id-new { animation: kc-pop .45s ease both; }

.kc-step { display: flex; flex-direction: column; gap: 10px; animation: kc-in .28s ease both; }
.kc-step[data-dir="back"] { animation-name: kc-back; }
.kc-step[data-dir=""] { animation: none; }
.kc-sub { font-size: var(--t-2); color: var(--muted); }
.kc-sub b, .kc-sum b { color: var(--ink); font-weight: var(--w-bold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kc-bad { color: var(--danger); }
.kc-warn { color: var(--warn); }
.kc-lbl { margin: 0; }
.kc-in { font-variant-numeric: tabular-nums; }

/* ── Tugmalar ─────────────────────────────────────────────── */
.kc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border: 0; border-radius: 14px;
  font-family: inherit; font-size: var(--t-3); font-weight: var(--w-mid);
  cursor: pointer; transition: transform .12s ease, background .3s ease, opacity .2s;
}
.kc-btn:active:not(:disabled) { transform: scale(.97); }
.kc-btn:disabled { cursor: not-allowed; opacity: .45; }
.kc-main { width: 100%; background: var(--kc-btn); color: var(--kc-on); }
/* ⛔ Yopish oynasida «Kassani yopish» — asosiy rang (2026-11-21), «Ochish» — yashil. */
.kc-next { background: var(--mid); color: var(--on); }
.kc-ok { background: var(--ok); }
.kc-ghost { background: var(--well); color: var(--ink); }
/* ⛔ Kassani qabul qilish (S2) — na ochish (yashil), na yopish (qizil): asosiy
   rang, «Davom etish» bilan bir; malina emas — u xarajat rangi (2026-11-07) */
.kc-accept { background: var(--mid); color: var(--on); }
.kc[data-s="begona"] { --kc-tone: var(--mid); }
/* ⛔ «tugadi» — sariq emas, «yopiq» rangi (2026-11-14, A (2)): 00:00 da o‘zi yopilishi odatiy */
/* Tasdiq kutayotgan eski sanoq — mudir kartasining tagida bitta qator */
.kc-waits { display: flex; flex-direction: column; margin-top: 4px; }
.kc-wait { align-items: center; font-size: var(--t-2); }
/* ⛔ 44 px — barmoq uchun eng kami (DIZAYN `--tap` ≥ 44), 52 emas: ro‘yxat cho‘zilmasin */
.kc-plain { border: 0; background: none; padding: 0; min-height: 44px; cursor: pointer; font-family: inherit; }
.kc-row { display: flex; gap: 8px; }
.kc-row .kc-btn { flex: 1; }
.kc-link { color: var(--link); font-size: var(--t-2); font-weight: var(--w-mid); text-decoration: none; }

/* Kassa tanlash */
.kc-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.kc-pick {
  min-height: var(--tap); padding: 0 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--glass); color: var(--ink);
  font-family: inherit; font-size: var(--t-3); font-weight: var(--w-mid); cursor: pointer;
}

/* ── Yopish — bitta oyna (`shift_close.js`, egasi «Ha», 2026-11-21) ── */
/* So‘m va dollar yonma-yon (namuna t-6): ustida yozuv, ostida maydon */
.kc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kc-pair-one { grid-template-columns: 1fr; }
.kc-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kc-fld .kc-in { width: 100%; min-width: 0; margin: 0; }
.kc-in[readonly] { background: var(--well); color: var(--ink); }
/* Dollar maydoni o‘ng chetida «$» — so‘m bilan adashmasin */
.kc-usd { position: relative; display: block; }
.kc-usd .kc-in { padding-right: 32px; }
.kc-usd i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-style: normal; color: var(--muted); font-weight: var(--w-mid); pointer-events: none; }
.kc-live { display: flex; flex-direction: column; gap: 10px; }
.kc-leave { align-self: flex-start; }
.kc-leave-box { display: flex; flex-direction: column; gap: 8px; }
/* Tugma nega o‘chiq — tugma ustida, kulrang (qizil emas: xato emas, keyingi ish) */
.kc-off { text-align: center; }
.kc-off[hidden] { display: none; }
.kc-res-wait { background: var(--well); color: var(--muted); }
/* «Xarajat yozilmagan» — shu joyda: tur, summa, izoh */
.kc-xp { display: flex; flex-direction: column; gap: 8px; }
.kc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kc-chip { min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--glass); color: var(--ink); font-family: inherit; font-size: var(--t-2);
  font-weight: var(--w-mid); cursor: pointer; }
.kc-chip.kc-on { border-color: var(--ink); background: var(--ink); color: var(--glass); }
.kc-sum { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-3); }
.kc-sum span:first-child { color: var(--muted); }

/* Yuklanmoqda — kulrang chiziq, karta joyi sakramasin */
.kc-skel { height: 52px; border-radius: 14px; background: var(--well); animation: kc-shine 1.2s ease-in-out infinite; }

/* ── Yashil ✓ ─────────────────────────────────────────────── */
.kc-check {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--glass); opacity: 0; pointer-events: none;
}
.kc-check svg { width: 72px; height: 72px; }
.kc-ring { fill: var(--tint-ok); }
.kc-tick { stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.kc-check.kc-go { animation: kc-flash 1.1s ease forwards; }
.kc-check.kc-go svg { animation: kc-pop .45s ease both; }
.kc-check.kc-go .kc-tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: kc-draw .45s .15s ease forwards; }

/* ── Kassa 3-qism (S6): panel bo‘laklari kartada ──────────── */
/* Sariq eslatma — 15 daqiqa qoldi, savat kutilmoqda, chegaradan oshdi.
   ⛔ Qizil emas: bu xato emas, oldindan aytish (`.cash-over` bilan bir rang) */
.kc-soon {
  display: block; padding: 10px 12px; border-radius: 12px;
  background: var(--tint-warn); color: var(--ink); font-size: var(--t-2);
}
.kc-soon[hidden] { display: none; }
.kc-soon b { font-weight: var(--w-bold); white-space: nowrap; }
/* Savdo ekranida — sarlavha kartasi ichida, qatorlar orasida */
.sale-soon { margin: 8px 0 0; }
/* «Boshqa kassani tanlash» — asosiy tugma eni, kulrang (egasi, 2026-10-17) */
.kc-switch { width: 100%; }
.kc-pick.kc-on { border-color: var(--mid); color: var(--mid); }
/* Kassa holati tanlovda — «ochiq · Aziz» / «yopiq» (X4), nom ostida */
.kc-pick { text-align: left; }
/* Xarajat va savdo ekranidagi tanlov (`register.js`) — o‘sha yozuv nom ostida */
.found .reg-state { display: block; }
.kc-pick-st { display: block; font-size: var(--t-1); font-weight: var(--w-text); color: var(--muted); }
.kc[data-s="yopildi"] { --kc-tone: var(--ok); }
.kc-lines { display: flex; flex-direction: column; gap: 6px; }
/* ⛔ So‘m va dollar — ikki blok, orasi bo‘shliq (chiziq emas, DIZAYN.md) */
.kc-cur + .kc-cur { margin-top: 6px; }
/* «So‘m dollarga almashdi» — farqlar ostida, yumshoq fon: tavsiya, ogohlantirish emas */
.kc-swap { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--soft); }
.kc-swap .kc-btn { background: var(--glass); }
.kc-swap .kc-link { align-self: flex-start; }
/* Smena cheki — oq qog‘oz, tunda ham (`.sh-paper` bilan bir xil sabab) */
.kc-paper {
  border-radius: 12px; background: var(--paper); box-shadow: var(--ctl-sh);
  overflow-x: auto; display: flex; justify-content: center;
}
.kc-paper[hidden] { display: none; }
/* Olinadi / qoladi — bosishdan OLDIN (N5). Ikki teng karta, ulush emas:
   tor bo‘lakda summa kesilardi (egasi «Tavsiya» = b, 2026-10-25) */
.kc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kc-split[hidden] { display: none; }
.kc-split > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; min-width: 0; }
.kc-split small { font-size: var(--t-1); font-weight: var(--w-mid); }
.kc-split b {
  font-size: var(--t-4); font-weight: var(--w-bold);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.kc-take { background: var(--soft); color: var(--link); }
.kc-keep { background: var(--tint-ok); color: var(--ok); }

/* Savdo ekranidagi oyna (`shift_sheet.js`): kompyuterda o‘ngdan, telefonda
   tepadan — chek oynasi naqshi (`sales.css` `.sale-card`) */
.kc-sheet { gap: 14px; }
.kc-sheet-head { display: flex; align-items: center; gap: 12px; }
.kc-sheet-head b { flex: 1; font-size: var(--t-5); font-weight: var(--w-head); }
.kc-sheet .kc { box-shadow: none; }
.kc-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.kc-act {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: var(--tap); padding: 10px 6px; border: 0; border-radius: 14px;
  background: var(--well); color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: var(--t-2); font-weight: var(--w-mid);
}
.kc-carts:empty { display: none; }

@keyframes kc-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes kc-back { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes kc-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: none; } }
@keyframes kc-draw { to { stroke-dashoffset: 0; } }
/* ⛔ So‘nmaydi: yangi holat chizilganda o‘rnini oladi (`shift_card.js` `send`) */
@keyframes kc-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 1; } }
@keyframes kc-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--tint-ok); } 50% { box-shadow: 0 0 0 7px var(--tint-ok); } }
@keyframes kc-shine { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .kc, .kc *, .kc-check.kc-go, .kc-check.kc-go svg, .kc-check.kc-go .kc-tick {
    animation: none !important; transition: none !important;
  }
}
/* ── Farq — «Nima bo‘ldi?» (egasi, 2026-10-24; `shift_gap.js`, namuna `dizayn/kassa-farq/`)
   Yumshoq fon — «Almashdi» bilan bir oila: savol, ogohlantirish emas */
.kc-ask { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.kc-ask[hidden] { display: none; }
.kc-q { font-weight: var(--w-bold); color: var(--ink); }
.kc-causes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kc-cause {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: var(--tap); padding: 8px 12px; border: 0; border-radius: 12px;
  background: var(--glass); color: var(--ink); text-align: left; cursor: pointer;
  font-family: inherit; font-size: var(--t-3); font-weight: var(--w-mid);
}
.kc-cause small { font-size: var(--t-1); font-weight: var(--w-text); color: var(--muted); }
.kc-cause.kc-on { box-shadow: inset 0 0 0 2px var(--mid); }
/* T13: oxiri farqqa mos to‘lovli chek — savoldan oldin, ogohlantirish rangi */
.kc-odd { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--tint-warn); }
.kc-checks { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.kc-check-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  min-height: var(--tap); padding: 8px 12px; border: 0; border-radius: 10px;
  background: var(--glass); color: var(--ink); text-align: left; cursor: pointer;
  font-family: inherit; font-size: var(--t-2); font-weight: var(--w-text);
}
.kc-check-row small { display: block; font-size: var(--t-1); color: var(--muted); }
.kc-check-row b { font-weight: var(--w-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* ── Bugungi kurs — ochish oynasida, sanashning tepasida (KK5 a; `shift_rate.js`,
   namuna `dizayn/kurs-kassa-ochish/` a1…a4). Yumshoq fon — savol, ogohlantirish emas */
.kr-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--soft); }
.kr-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kr-q { font-weight: var(--w-bold); color: var(--ink); }
.kr-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.kr-cur { margin: 0; color: var(--ink); font-size: var(--t-3); font-weight: var(--w-text); }
.kr-unit { color: var(--muted); font-size: var(--t-3); font-weight: var(--w-text); }
.kr-line .kc-in { margin: 0; min-width: 0; }
.kr-small { display: block; font-size: var(--t-1); color: var(--muted); font-weight: var(--w-text); }
.kr-small[hidden], .kr-warn[hidden] { display: none; }
.kr-warn {
  display: block; padding: 8px 10px; border-radius: 10px; background: var(--tint-warn);
  color: var(--ink); font-size: var(--t-1); font-weight: var(--w-text);
}
.kr-warn.kr-shake { box-shadow: inset 0 0 0 2px var(--warn); }
.kr-done { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--soft); }
.kr-done b { font-weight: var(--w-bold); color: var(--ink); font-variant-numeric: tabular-nums; }
.kr-done .kr-small, .kr-small.kr-was { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.kr-edit { font-size: var(--t-1); min-height: 32px; }

/* ── Tanlangani — QORA, tunda och (rebrend b, RB3 a): indigo halqa asosiy rangli
   «Davom etish» bilan bir xil o‘qilardi ── */
.kc-pick.kc-on, .kc-cause.kc-on { border-color: var(--ink); background: var(--ink); color: var(--glass); box-shadow: none; }
.kc-pick.kc-on .kc-pick-st, .kc-cause.kc-on small { color: inherit; opacity: .78; }

/* ── Kassa yopiq — savat o‘rnida (`shift_closed.js`, egasi 2026-11-21) ── */
.kz{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;
  max-width:420px;margin:24px auto;padding:28px 20px;border-radius:24px;border:1px solid transparent;
  background:linear-gradient(var(--glass),var(--glass)) padding-box,var(--card-edge) border-box var(--glass);
  box-shadow:var(--card-sh)}
.kz-ic{width:64px;height:64px;border-radius:50%;background:var(--soft);color:var(--mid);
  display:flex;align-items:center;justify-content:center;margin-bottom:6px}
.kz-t{font-size:var(--t-5);font-weight:var(--w-bold);color:var(--ink)}
.kz-was,.kz-sub{font-size:var(--t-2);color:var(--muted)}
.kz-go{margin-top:12px;width:100%}

/* ── Natija — tepada, katta (ochish; egasi «Ha», 2026-11-21) ── */
.kc-res { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 2px; padding: 14px 16px; border-radius: 20px; margin-bottom: 4px; }
.kc-res b { font-size: var(--t-6); font-weight: var(--w-head); line-height: var(--lh-tight); }
.kc-res small { font-size: var(--t-2); font-weight: var(--w-mid); }
.kc-res-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.kc-res-bad { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }
.kc-res-more { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.kc-causes-flat .kc-cause { align-items: center; text-align: center; }
.kc-causes-flat .kc-cause:last-child:nth-child(odd) { grid-column: span 2; }
/* ⛔ Kompyuterda bo‘sh savat joyi bilan BIR XIL bo‘y (`sale.css` `.lines:has(.cart-empty)`):
   kutish skeleti savatni shu o‘lchamda chizadi (`test_sale_wait_screen`). */
@media (min-width:820px) {
  [data-lines]:has(> .kz) { min-height: 460px; display: flex; align-items: center; justify-content: center; }
  [data-lines] > .kz { width: 100%; }
}

/* ── Ochiq kassa — bitta son va qanday yig‘ilgani (`shift_open.js`, 3-bo‘lak,
   egasi «Ha», 2026-11-21; namuna t-4, k-4) ── */
/* Binafsha karta — «Kassalarda hozir» (`.svn`) bilan bir uslub: katta pul — bir xil ko‘rinish */
.kc-hero {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  border-radius: 20px; background: var(--brand-grad); color: var(--on); box-shadow: var(--hero-sh);
}
:root[data-theme="tun"] .kc-hero { box-shadow: var(--glow); }
.kc-hero-who { font-size: var(--t-2); font-weight: var(--w-mid); color: var(--on-2); overflow-wrap: anywhere; }
.kc-hero-h { margin-top: 8px; font-size: var(--t-2); color: var(--on-2); }
.kc-hero-n {
  font-size: var(--nk-big); font-weight: var(--w-head); line-height: 1.15;
  font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.01em;
}
.kc-hero-split { font-size: var(--t-2); color: var(--on-2); font-variant-numeric: tabular-nums; }
/* «Bo‘lishi kerak qanday yig‘ildi» — yozuv chapda, son o‘ngda; oxirgi qator qalin */
.kc-how { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 18px; background: var(--well); }
.kc-how-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin-bottom: 4px; }
.kc-how-head b { font-size: var(--t-3); }
.kc-how-head .kc-link { flex: none; white-space: nowrap; }
.kc-how-l { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: var(--t-3); color: var(--muted); }
.kc-how-l b { color: var(--ink); font-weight: var(--w-bold); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* ⛔ Chiziq emas, bo‘shliq (DIZAYN): yakun qatori qalin va ajralgan */
.kc-how-end { margin-top: 8px; color: var(--ink); font-weight: var(--w-bold); }
/* ⛔ «Kassani yopish» — oq, ramkali (namuna t-4): binafsha karta ostida ikkinchi binafsha dog‘ yo‘q */
.kc[data-s="ochiq"] .kc-shut { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* «Kassa smenalari» kompyuterda — tanlangan kassa (`shift_tills.js`, konteyner `.svw-main`) */
/* Keng joyda ochiq kassa kartasi ikki ustun (namuna k-4): chapda son, tugmalar, yopish; o‘ngda
   «qanday yig‘ildi». `row-gap: 0` — bo‘sh qatorlar joy olmaydi; «qanday yig‘ildi» oxirgi `1fr`
   qatorgacha — chapdagilarni cho‘zmaydi. Yopish oynasi — bitta ustun, eni cheklangan */
@container (min-width: 640px) {
  [data-svw-card] .kc[data-s="ochiq"] .kc-step[data-kc-step="idle"] {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(12, auto) 1fr; row-gap: 0; column-gap: 24px; align-items: start;
  }
  [data-svw-card] .kc[data-s="ochiq"] .kc-step[data-kc-step="idle"] > * { grid-column: 1; margin-bottom: 10px; }
  [data-svw-card] .kc[data-s="ochiq"] .kc-step[data-kc-step="idle"] > .kc-how { grid-column: 2; grid-row: 1 / -1; margin-bottom: 0; }
}
