/* ═══════════════════════════════════════════════════════════
   Tokenlar
   Ranglar Telegram mavzusidan olinadi. Sirtlar secondary-bg dan emas, matn rangini
   fonga aralashtirib chiqariladi: ba'zi tungi mavzularda secondary-bg fondan quyuqroq
   bo'lib, kartalar "cho'kib" ketadi. Aralashtirish esa ikkala mavzuda ham bir xil ishlaydi.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: var(--tg-theme-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #0d0d0f);
  --accent: var(--tg-theme-button-color, #2f80ed);
  --on-accent: var(--tg-theme-button-text-color, #ffffff);
  --danger: var(--tg-theme-destructive-text-color, #e0483d);

  --muted: #6f7280;
  --muted: color-mix(in srgb, var(--text) 52%, var(--bg));

  --surface: #f4f4f7;
  --surface: color-mix(in srgb, var(--text) 5%, var(--bg));

  --surface-strong: #ebebf0;
  --surface-strong: color-mix(in srgb, var(--text) 9%, var(--bg));

  --border: rgba(0, 0, 0, .08);
  --border: color-mix(in srgb, var(--text) 12%, transparent);

  --accent-soft: rgba(47, 128, 237, .12);
  --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);

  --danger-soft: rgba(224, 72, 61, .12);
  --danger-soft: color-mix(in srgb, var(--danger) 14%, transparent);

  /* 4 ga karrali bo'shliq shkalasi — ko'zga ko'rinmas, lekin butun ritmni ushlab turadi */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;

  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 26px; --r-full: 999px;

  --shadow-sheet: 0 -2px 40px rgba(0, 0, 0, .22);
  --shadow-bar: 0 -1px 0 var(--border);

  --ease: cubic-bezier(.32, .72, 0, 1);

  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* display bergan har qanday qoida hidden atributini bekor qilib yuboradi, shuning uchun !important */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

h1, h2, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ═══════════ Ekranlar ═══════════ */

.screen { display: none; }
.screen.active { display: block; animation: fade .22s ease both; }

.screen--center.active {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--s6);
}

/* Forma ekrani: kontent skroll bo'ladi, tugma pastda yopishib turadi */
.screen--stack.active {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--s4) var(--s4) var(--s7);
}

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* ═══════════ Splash ═══════════ */

.splash { text-align: center; }

.splash-mark {
  font-size: 46px;
  line-height: 1;
  margin-bottom: var(--s4);
  animation: breathe 1.6s ease-in-out infinite;
}

.splash-text { color: var(--muted); font-size: 14px; }

@keyframes breathe {
  0%, 100% { transform: scale(1);    opacity: .75 }
  50%      { transform: scale(1.09); opacity: 1 }
}

/* ═══════════ Hero / holat ═══════════ */

.hero { text-align: center; padding: var(--s7) 0 var(--s6); }

.hero-mark {
  width: 76px; height: 76px;
  margin: 0 auto var(--s4);
  display: grid; place-items: center;
  font-size: 38px;
  border-radius: var(--r-xl);
  background: var(--accent-soft);
}

.hero-title { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin-bottom: var(--s2); }
.hero-text { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 0 auto; }

.state { text-align: center; max-width: 340px; }
.state-mark { font-size: 50px; line-height: 1; margin-bottom: var(--s3); }
.state-title { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-bottom: var(--s2); }
.state-text { color: var(--muted); margin-bottom: var(--s6); }

/* ═══════════ Forma ═══════════ */

.fieldset { margin-bottom: var(--s6); }

.fieldset-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s3) var(--s1);
}

.field { display: block; margin-bottom: var(--s4); }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: var(--s2); }
.req { color: var(--danger); }

.input {
  width: 100%;
  min-height: 50px;
  padding: 13px var(--s4);
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  /* 16px dan kichik bo'lsa iOS fokusda sahifani kattalashtiradi */
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color .16s ease, background .16s ease;
}

.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--accent); background: var(--bg); }
.input:disabled { opacity: .5; }

.field[data-invalid] .input { border-color: var(--danger); background: var(--danger-soft); }

.select-wrap { position: relative; display: block; }

.select-wrap::after {
  content: "";
  position: absolute;
  right: var(--s4);
  top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select.input { appearance: none; -webkit-appearance: none; padding-right: var(--s8); }

.field-hint { display: block; font-size: 13px; color: var(--muted); margin-top: var(--s2); }

.field-error {
  display: none;
  font-size: 13px;
  color: var(--danger);
  margin-top: var(--s2);
  animation: nudge .22s ease;
}
.field-error:not(:empty) { display: block; }

@keyframes nudge {
  0%, 100% { transform: translateX(0) }
  25%      { transform: translateX(-3px) }
  75%      { transform: translateX(3px) }
}

.alert {
  background: var(--danger-soft);
  color: var(--danger);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: var(--s4);
}

/* ═══════════ Tugmalar ═══════════ */

.btn {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: var(--r-md);
  padding: var(--s3) var(--s5);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s var(--ease), opacity .14s ease, background .14s ease;
}

.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--quiet { background: transparent; color: var(--muted); font-weight: 500; min-height: 44px; }
.btn--quiet:active { background: var(--surface); }

/* Pastki yopishqoq panel: tugma doim barmoq yetadigan joyda turadi */
.actionbar {
  position: sticky;
  bottom: 0;
  padding: var(--s3) var(--s4) calc(var(--s3) + var(--safe-b));
  background: var(--bg);
  box-shadow: var(--shadow-bar);
}

/* ═══════════ Appbar ═══════════ */

.appbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s4) var(--s4) var(--s3);
  background: var(--bg);
}

.appbar-eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1px;
  /* Uzun ism sarlavhani pastga surib yubormasin */
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.appbar-title { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }

.iconbtn {
  position: relative;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none;
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 19px;
  cursor: pointer;
  transition: transform .14s var(--ease), background .14s ease;
}
.iconbtn:active { transform: scale(.92); background: var(--surface-strong); }

.badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  border: 2px solid var(--bg);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  animation: pop-in .2s var(--ease);
}

@keyframes pop-in { from { transform: scale(.4); opacity: 0 } to { transform: scale(1); opacity: 1 } }

/* ═══════════ Profil ═══════════ */

.appbar-actions { display: flex; gap: var(--s2); flex: 0 0 auto; }

.profile-head { text-align: center; padding: var(--s4) 0 var(--s7); }

.profile-avatar {
  width: 88px; height: 88px;
  margin: 0 auto var(--s4);
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--accent-soft);
  font-size: 40px;
  font-weight: 600;
  color: var(--accent);
  overflow: hidden;
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.profile-name { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.profile-username { color: var(--muted); font-size: 15px; margin-top: 2px; }

.infogroup { margin-bottom: var(--s6); }

.rows {
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}

.row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 50px;
  padding: var(--s3) var(--s4);
}

/* Ajratgich faqat qatorlar orasida — ro'yxat chetlarida chiziq qolib ketmasin */
.row + .row { box-shadow: inset 0 1px 0 var(--border); }

.row-label { flex: 0 0 auto; color: var(--muted); font-size: 14px; }

.row-value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.row-value:empty::after {
  content: "";
  display: inline-block;
  width: 96px; height: 13px;
  border-radius: var(--r-sm);
  background: var(--surface-strong);
  animation: shimmer 1.3s ease-in-out infinite;
}

@keyframes shimmer { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }

.pill {
  display: inline-block;
  padding: 3px var(--s3);
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

/* ═══════════ Kategoriyalar ═══════════ */

.chipbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  scrollbar-width: none;
  padding: var(--s2) var(--s4) var(--s3);
  background: var(--bg);
  scroll-snap-type: x proximity;
}
.chipbar::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 38px;
  padding: 0 var(--s4);
  border: none;
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform .14s var(--ease), background .16s ease, color .16s ease;
}
.chip:active { transform: scale(.94); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ═══════════ Mahsulotlar ═══════════ */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: 0 0 var(--s3);
  border: none;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .14s var(--ease), opacity .14s ease;
  animation: rise .3s var(--ease) both;
}
.card:active { transform: scale(.965); opacity: .9; }

/* Rasm o'rnida — kategoriya rangidagi yumshoq maydon. Haqiqiy rasm kelganda shu blok almashadi */
.card-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .82;
  font-size: 42px;
  background: var(--tone, var(--surface-strong));
}

.card-rating {
  position: absolute;
  top: var(--s2); right: var(--s2);
  padding: 3px 7px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
}

.card-body { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--s3); }

.card-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.card-price { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-stock { font-size: 12px; color: var(--muted); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: none }
}

/* Kategoriya ohanglari. Yarim shaffof, shuning uchun yorug' va tungi mavzuda ham
   kartaning sirtiga to'g'ri o'tiradi va alohida rang ro'yxati kerak bo'lmaydi */
[data-tone="1"] { --tone: linear-gradient(150deg, rgba( 82, 158, 255, .22), rgba( 82, 158, 255, .05)); }
[data-tone="2"] { --tone: linear-gradient(150deg, rgba(255, 146,  94, .22), rgba(255, 146,  94, .05)); }
[data-tone="3"] { --tone: linear-gradient(150deg, rgba( 90, 199, 140, .22), rgba( 90, 199, 140, .05)); }
[data-tone="4"] { --tone: linear-gradient(150deg, rgba(178, 132, 255, .22), rgba(178, 132, 255, .05)); }

.foot-hint {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: var(--s6);
}

/* ═══════════ Pastki oynalar ═══════════ */

.scrim {
  position: fixed; inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  max-height: 88dvh;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg);
  box-shadow: var(--shadow-sheet);
  transform: translateY(101%);
  transition: transform .3s var(--ease);
  visibility: hidden;
}
.sheet.open { transform: none; visibility: visible; }

.sheet-grab {
  flex: 0 0 auto;
  width: 38px; height: 4px;
  margin: var(--s3) auto var(--s1);
  border-radius: var(--r-full);
  background: var(--muted);
  opacity: .35;
}

.sheet-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s3) var(--s5) var(--s4);
}

.sheet-hero {
  display: grid;
  place-items: center;
  height: 128px;
  margin-bottom: var(--s4);
  border-radius: var(--r-lg);
  background: var(--tone, var(--surface));
  font-size: 58px;
}

.sheet-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.sheet-title--left { text-align: left; margin-bottom: var(--s4); }

.sheet-price {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-top: var(--s1);
}

.sheet-desc {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: var(--s3);
}

.specs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.specs li {
  padding: 6px var(--s3);
  border-radius: var(--r-full);
  background: var(--surface);
  font-size: 13px;
}

.sheet-actions {
  flex: 0 0 auto;
  display: grid;
  gap: var(--s2);
  padding: var(--s3) var(--s5) calc(var(--s4) + var(--safe-b));
  box-shadow: var(--shadow-bar);
}

/* ═══════════ Savat ═══════════ */

.cartlist { display: grid; gap: var(--s2); }

.cartitem {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2);
  border-radius: var(--r-md);
  background: var(--surface);
}

.cartitem-thumb {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--tone, var(--surface-strong));
  font-size: 23px;
}

.cartitem-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cartitem-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cartitem-meta { font-size: 13px; color: var(--muted); }

.cartitem-remove {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.cartitem-remove:active { background: var(--danger-soft); color: var(--danger); }

.cart-empty { text-align: center; color: var(--muted); padding: var(--s7) 0; }

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 var(--s1) var(--s1);
}

.total-label { color: var(--muted); font-size: 14px; }
.total-value { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

/* ═══════════ E'lon formasi ═══════════ */

/* Fayl tanlash inputi ko'rinmaydi — uni "Rasm qo'shish" plitkasi bosadi.
   display:none ATAYLAB emas: yashirin input ba'zi brauzerlarda .click() ga javob bermaydi */
.vhidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.input--area {
  min-height: 112px;
  padding-top: var(--s3);
  line-height: 1.45;
  resize: vertical;
}

/* Summa keng, valyuta tor — ikkalasi bitta qatorda turadi */
.pricerow { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: var(--s3); }

@media (max-width: 360px) {
  .pricerow { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

.photogrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s2);
  margin-top: var(--s3);
}

.photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--surface-strong);
  overflow: hidden;
}

.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Yuklanayotgan rasm xiralashadi: kaliti yo'q rasmni saqlab bo'lmasligi ko'rinib tursin */
.photo[data-uploading] img { opacity: .4; }

.photo[data-uploading]::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  border: 2px solid var(--accent);
  border-top-color: transparent;
  border-radius: var(--r-full);
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg) } }

.photo-order {
  position: absolute;
  top: var(--s1); left: var(--s1);
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.photo-remove {
  position: absolute;
  top: var(--s1); right: var(--s1);
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: none;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.photo-moves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(transparent, rgba(0, 0, 0, .5));
}

.photo-move {
  width: 34px; height: 30px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.photo-move:disabled { opacity: .3; cursor: default; }

.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  aspect-ratio: 1;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 22px;
  cursor: pointer;
}
.photo-add:active { background: var(--surface-strong); }
.photo-add-text { font-size: 12px; }

/* ═══════════ E'lonlar ro'yxati ═══════════ */

.postlist { display: grid; gap: var(--s3); }

.postitem {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.postitem-thumb {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--surface-strong);
  font-size: 28px;
  overflow: hidden;
}
.postitem-thumb img { width: 100%; height: 100%; object-fit: cover; }

.postitem-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.postitem-name {
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.postitem-price { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

.postitem-meta { display: flex; align-items: center; gap: var(--s2); }

.postitem-count { font-size: 12px; color: var(--muted); }

/* Amal tugmasi ikkala ustun ostida: uzun matn kartani siqib qo'ymasin */
.postitem-action {
  grid-column: 1 / -1;
  min-height: 40px;
  border: none;
  border-radius: var(--r-md);
  background: var(--surface-strong);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .14s var(--ease), opacity .14s ease;
}
.postitem-action:active { transform: scale(.98); }
.postitem-action:disabled { opacity: .45; transform: none; }

/* Status ohanglari: e'lon qilingan — asosiy rang (.pill ning o'zi), qoralama va arxiv
   neytral, rad etilgan — xavf rangi */
.pill[data-status="CREATED"],
.pill[data-status="ARCHIVED"] { background: var(--surface-strong); color: var(--muted); }

.pill[data-status="REJECTED"] { background: var(--danger-soft); color: var(--danger); }

/* ═══════════ Toast ═══════════ */

.toast {
  position: fixed;
  left: 50%; bottom: calc(var(--s6) + var(--safe-b));
  z-index: 20;
  max-width: calc(100vw - var(--s8));
  padding: var(--s3) var(--s5);
  border-radius: var(--r-full);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s var(--ease);
}
.toast.show { opacity: .96; transform: translate(-50%, 0); }
