/* ============================================================
   Sof tilim — ichki ilova qobig'i va Lug'atlar bo'limi
   Chap tomonda navigatsiya, o'ng tomonda ishchi panel.
   ============================================================ */

.st-app {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--st-bg);
}

/* ---------- Chap panel --------------------------------------- */

.st-side {
  background: var(--st-panel);
  border-right: 1px solid var(--st-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
/* Yon menyuning boshi: logotip va uning YONIDA yig'ish tugmasi.
   Menyu faqat shu tugma bilan yig'iladi va ochiladi — boshqa hech
   qanday sichqoncha harakati menyuni o'zgartirmaydi. Tanlov
   `localStorage` da saqlanadi (assets/js/yon-menyu.js), shuning
   uchun platformaning hamma bo'limida bir xil turadi. */
.st-side__bosh {
  display: flex; align-items: center; gap: 8px;
  padding: 20px 14px 16px 22px;
  border-bottom: 1px solid var(--st-line-soft);
}
.st-side__logo { display: block; }
.st-side__logo img { width: 150px; display: block; }
/* Tor holat uchun mo'ljallangan belgi keng menyuda ko'rinmaydi */
.st-side__logo .tor { display: none; }

.st-side__yig {
  flex: none; margin-left: auto;
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--st-line); background: #fff;
  color: var(--st-muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.st-side__yig:hover { color: var(--st-blue); border-color: #C3D7F5; background: var(--st-bg-tint); }
.st-side__yig:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
.st-side__yig svg { width: 19px; height: 19px; }

.st-side__group { padding: 20px 14px 6px; }
.st-side__title {
  padding: 0 8px 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--st-muted);
}
.st-side__link {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 11px; margin-bottom: 3px;
  font-size: 14.4px; line-height: 1.4; color: var(--st-ink-soft);
  cursor: pointer; border: 0; background: none; width: 100%; text-align: left;
  font-family: var(--st-font);
}
.st-side__link:hover { background: var(--st-bg-tint); color: var(--st-navy); text-decoration: none; }
.st-side__link.is-active { background: var(--st-bg-tint); color: var(--st-blue); font-weight: 600; }
.st-side__link .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; opacity: .85; }
.st-side__link .n { flex: none; margin-left: auto; font-size: 12px; color: var(--st-muted); padding-top: 2px; }
.st-side__link.is-active .n { color: var(--st-blue); }

.st-side__foot { margin-top: auto; padding: 16px 22px 22px; }
.st-side__foot a { font-size: 13.5px; color: var(--st-muted); }
.st-side__foot a:hover { color: var(--st-blue); }

/* ---------- Yig'ilgan yon menyu ------------------------------ */

/* Yig'ilgan holat `<html>` tegidagi `.st-tor` sinfi bilan
   boshqariladi: uni yon-menyu.js sahifa chizilishidan OLDIN
   qo'yadi, shuning uchun menyu ochilganda kengdan torga
   «sakramaydi». */
.st-tor .st-app { grid-template-columns: 78px minmax(0, 1fr); }

.st-tor .st-side { overflow: visible; }
.st-tor .st-side__bosh {
  flex-direction: column; gap: 10px; padding: 14px 0 12px;
}
.st-tor .st-side__logo .keng { display: none; }
.st-tor .st-side__logo .tor { width: 38px; margin: 0 auto; display: block; }
.st-tor .st-side__yig { margin-left: 0; }
/* Ochish tugmasi ko'rsatkichi teskari qaraydi */
.st-tor .st-side__yig svg { transform: scaleX(-1); }
.st-tor .st-side__title { display: none; }
.st-tor .st-side__group { padding: 14px 10px 4px; }
.st-tor .st-side__group + .st-side__group {
  border-top: 1px solid var(--st-line-soft); margin-top: 4px; padding-top: 14px;
}
.st-tor .st-side__link {
  position: relative; justify-content: center; padding: 12px 0;
  font-size: 0; gap: 0; border-radius: 12px;
}
.st-tor .st-side__link .ic { width: 21px; height: 21px; margin: 0; opacity: 1; }
.st-tor .st-side__link::after {
  content: attr(data-nom);
  position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--st-navy); color: #fff; border-radius: 8px;
  padding: 7px 12px; font-size: 13px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .14s; z-index: 40;
}
.st-tor .st-side__link:hover::after { opacity: 1; }
.st-tor .st-side__foot { display: none; }

/* ---------- O'ng panel --------------------------------------- */

.st-work { min-width: 0; display: flex; flex-direction: column; }
.st-work__bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--st-line);
  padding: 0 30px; height: 60px;
  display: flex; align-items: center; gap: 14px;
}
.st-work__bar b {
  font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--st-navy); font-weight: 700;
}

/* Hisob tugmasi — panelning o'ng chetida. hisob.js qo'yadi. */
.st-bar-hisob {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--st-line); background: #fff;
  font: 600 13.5px/1 var(--st-font); color: var(--st-ink-soft);
  transition: border-color .15s, color .15s, background .15s;
}
.st-bar-hisob[hidden] { display: none; }
.st-bar-hisob svg { width: 17px; height: 17px; flex: none; opacity: .75; }
.st-bar-hisob:hover {
  border-color: var(--st-blue); color: var(--st-blue); background: var(--st-bg-tint);
}
.st-bar-hisob:hover svg { opacity: 1; }
.st-bar-hisob.is-kirgan { color: var(--st-navy); border-color: var(--st-blue-soft, #C3D7F5); }
.st-bar-hisob.is-kirgan svg { color: var(--st-blue); opacity: 1; }

@media (max-width: 620px) {
  .st-bar-hisob { padding: 7px 11px; }
  .st-bar-hisob span { display: none; }
}
.st-work__body { padding: 34px 30px 70px; max-width: 980px; }

.st-h1 { font-size: 30px; color: var(--st-navy); letter-spacing: -.02em; }
.st-sub { margin: 10px 0 0; color: var(--st-muted); font-size: 15.5px; }

/* ---------- Lug'atni tanlash --------------------------------- */

.st-tanlov {
  margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px;
}
.st-tanlov__btn {
  flex: 1 1 190px; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 15px; text-align: left; cursor: pointer;
  border: 1px solid var(--st-line); border-radius: 13px; background: #fff;
  font-family: var(--st-font);
  transition: border-color .14s, background .14s, box-shadow .14s;
}
.st-tanlov__btn b {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--st-muted);
}
.st-tanlov__btn span {
  font-size: 15px; font-weight: 600; color: var(--st-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Yozuvlar soni faqat shu yerda — alifbo harflarida ko'rsatilmaydi */
.st-tanlov__btn em {
  font-style: normal; font-size: 12px; font-weight: 500;
  color: var(--st-muted); font-variant-numeric: tabular-nums;
}
.st-tanlov__btn:hover { border-color: var(--st-blue); }
.st-tanlov__btn.is-active {
  border-color: var(--st-blue); background: var(--st-blue);
  box-shadow: 0 2px 10px rgba(11, 87, 208, .22);
}
.st-tanlov__btn.is-active b { color: rgba(255, 255, 255, .72); }
.st-tanlov__btn.is-active span { color: #fff; }
.st-tanlov__btn.is-active em { color: rgba(255, 255, 255, .8); }

@media (max-width: 640px) {
  .st-tanlov__btn { flex-basis: 100%; }
}

/* AI ogohlantirishi */
.st-notice {
  position: relative;
  margin-top: 20px; padding: 13px 44px 13px 16px;
  border-radius: 12px; border: 1px solid #F3D2CE;
  background: #FDF3F2; color: #9F2F26; font-size: 13.8px; line-height: 1.55;
}
.st-notice b { color: #7E241D; }
.st-notice--soft { border-color: #D8E4F5; background: #F2F7FE; color: #2C4E7C; }
.st-notice--soft b { color: #16365F; }

/* Ogohlantirishni yopish — bir marta ko'rsatiladi */
.st-notice__yop {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: transparent;
  color: inherit; opacity: .55; cursor: pointer;
  font: 400 18px/1 var(--st-font);
  transition: opacity .14s, background .14s;
}
.st-notice__yop:hover { opacity: 1; background: rgba(0, 0, 0, .06); }

/* ---------- Qidiruv ------------------------------------------ */

.st-search { margin-top: 24px; display: flex; gap: 10px; }
.st-search input {
  flex: 1; min-width: 0;
  padding: 14px 16px; border-radius: 13px;
  border: 1px solid var(--st-line); background: #fff;
  font: 400 15.5px/1.3 var(--st-font); color: var(--st-ink);
}
.st-search input::placeholder { color: #9AAABF; }
.st-search input:focus {
  outline: 0; border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, .14);
}

.st-block { margin-top: 26px; }
.st-block__lbl {
  font-size: 11.5px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--st-muted); margin-bottom: 10px;
}

/* ---------- Alifbo ------------------------------------------- */

.st-alpha { display: flex; flex-wrap: wrap; gap: 7px; }
.st-alpha button {
  min-width: 44px; padding: 9px 10px;
  border: 1px solid var(--st-line); background: #fff; border-radius: 10px;
  font: 600 14.5px/1 var(--st-font); color: var(--st-ink); cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.st-alpha button:hover:not(:disabled) { border-color: var(--st-blue); color: var(--st-blue); }
.st-alpha button.is-active {
  background: var(--st-blue); border-color: var(--st-blue); color: #fff;
}
.st-alpha button:disabled { opacity: .38; cursor: not-allowed; }
.st-alpha button i { font-style: normal; font-size: 10.5px; opacity: .6; margin-left: 3px; font-weight: 500; }
.st-alpha button.is-active i { opacity: .8; }
.st-alpha .all { min-width: auto; padding-inline: 15px; }

/* ---------- Filtrlar ----------------------------------------- */

.st-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.st-filters button {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--st-line); background: #fff;
  font: 500 13.6px/1 var(--st-font); color: var(--st-ink-soft); cursor: pointer;
}
.st-filters button:hover { border-color: #BFD2EC; color: var(--st-navy); }
.st-filters button.is-active {
  background: var(--st-bg-tint); border-color: var(--st-blue); color: var(--st-blue); font-weight: 600;
}
.st-filters button i { font-style: normal; opacity: .6; margin-left: 5px; font-size: 12px; }

/* ---------- Natijalar ---------------------------------------- */

.st-count {
  margin-top: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--st-line);
  font-size: 13.8px; color: var(--st-muted);
}
.st-count b { color: var(--st-navy); font-variant-numeric: tabular-nums; }

.st-list { margin-top: 4px; }
.st-item {
  border-bottom: 1px solid var(--st-line-soft);
  padding: 16px 4px 16px 0;
}
.st-item__head {
  display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap;
  cursor: pointer; background: none; border: 0; padding: 0; width: 100%;
  text-align: left; font-family: var(--st-font);
}
.st-item__word {
  font-size: 17px; font-weight: 700; color: var(--st-navy); letter-spacing: -.01em;
}
.st-item:hover .st-item__word { color: var(--st-blue); }
.st-tag {
  font-size: 12.2px; padding: 3px 10px; border-radius: 999px;
  background: var(--st-bg-tint); color: var(--st-ink-soft);
  /* NEGA `nowrap` EMAS. 1-ilovaga qo'shilgan yangi atamalar orasida
     juda uzunlari bor — masalan «EHNAT (Energiya hisobi va
     nazoratining avtomatlashtirilgan tizimi)». `nowrap` bilan
     bunday yorliq 409 px ga cho'zilib, 375 px li telefonda butun
     sahifani yonga siljitib yuborardi. Qisqa yorliqlar baribir bir
     qatorda qoladi — ularga joy yetadi. */
  white-space: normal;
  max-width: 100%;
  overflow-wrap: break-word;
}
.st-tag--green { background: #E7F6ED; color: #0A6C2E; font-weight: 600; }
/* Ikkinchi yorliq — hududi yoki qo'llanish sohasi. Bir xil nomli
   yozuvlarni ro'yxatni ochmasdan farqlash uchun. */
.st-tag--yon {
  background: transparent; color: var(--st-muted);
  border: 1px solid var(--st-line); font-size: 11.8px;
  white-space: normal;
}
.st-item__brief { margin: 7px 0 0; color: var(--st-ink-soft); font-size: 14.6px; }
.st-item__more { margin-left: auto; color: var(--st-muted); font-size: 19px; line-height: 1; padding-left: 8px; }

.st-detail { margin: 14px 0 2px; display: none; }
.st-item.is-open .st-detail { display: block; }
.st-item.is-open .st-item__brief { display: none; }
.st-field { margin-top: 13px; }
.st-field:first-child { margin-top: 0; }
.st-field dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--st-muted); margin-bottom: 4px;
}
.st-field dd { margin: 0; font-size: 15.2px; color: var(--st-ink); line-height: 1.66; }
.st-field dd.en { color: var(--st-ink-soft); }
.st-rasmiy {
  display: inline-block; padding: 9px 16px; border-radius: 11px;
  background: #E7F6ED; border: 1px solid #B9E3C8;
  font-size: 18px; font-weight: 700; color: #0A6C2E; letter-spacing: -.01em;
}

/* ---------- Sahifalash --------------------------------------- */

.st-pager { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-pager button {
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--st-line);
  background: #fff; font: 600 14px/1 var(--st-font); color: var(--st-navy); cursor: pointer;
}
.st-pager button:disabled { opacity: .4; cursor: not-allowed; }
.st-pager span { font-size: 13.8px; color: var(--st-muted); font-variant-numeric: tabular-nums; }

/* Sahifadagi yozuvlar soni — 100 dan 500 gacha */
.st-pager__hajm {
  display: inline-flex; align-items: center; gap: 7px;
  margin-right: auto;
  font-size: 13.8px; color: var(--st-muted);
}
.st-pager__hajm select {
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--st-line);
  background: #fff; font: 600 14px/1 var(--st-font); color: var(--st-navy);
  cursor: pointer;
}
.st-pager__hajm select:focus { outline: none; border-color: var(--st-blue); }

/* ---------- Holatlar ----------------------------------------- */

.st-state { padding: 46px 0; text-align: center; color: var(--st-muted); font-size: 15px; }
.st-state b { display: block; color: var(--st-ink); font-size: 16.5px; margin-bottom: 6px; }
.st-spin {
  width: 22px; height: 22px; margin: 0 auto 14px;
  border: 2.5px solid var(--st-line); border-top-color: var(--st-blue);
  border-radius: 50%; animation: st-turn .7s linear infinite;
}
@keyframes st-turn { to { transform: rotate(360deg); } }

mark { background: #FFF2AE; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- Mobil -------------------------------------------- */

.st-side__toggle {
  display: none; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--st-line); background: #fff; border-radius: 10px;
  cursor: pointer; align-items: center; justify-content: center;
}
.st-side__toggle span { display: block; width: 17px; height: 2px; background: var(--st-ink); border-radius: 2px; position: relative; }
.st-side__toggle span::before, .st-side__toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 2px;
  background: var(--st-ink); border-radius: 2px;
}
.st-side__toggle span::before { top: -5.5px; }
.st-side__toggle span::after { top: 5.5px; }

@media (max-width: 900px) {
  .st-app { grid-template-columns: 1fr; }
  .st-side {
    position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px;
    transform: translateX(-101%); transition: transform .25s ease;
    box-shadow: var(--st-shadow-3);
  }
  .st-side.is-open { transform: none; }
  .st-side__toggle { display: inline-flex; }
  .st-work__bar { padding: 0 16px; }
  .st-work__body { padding: 24px 16px 60px; }
  .st-h1 { font-size: 24px; }
  .st-veil {
    position: fixed; inset: 0; z-index: 50; background: rgba(3, 22, 52, .45);
    display: none;
  }
  .st-veil.is-open { display: block; }

  /* Telefonda yig'ilgan menyu ham to'liq ko'rinishga qaytadi:
     u yerda menyu chetdan surilib chiqadi, ikonalar kifoya qilmaydi.
     Yig'ish tugmasi ham yashiriladi — uning o'rnida panjara
     tugmasi (.st-side__toggle) ishlaydi. */
  .st-tor .st-app { grid-template-columns: 1fr; }
  .st-tor .st-side { width: 280px; }
  .st-tor .st-side__bosh {
    flex-direction: row; padding: 20px 14px 16px 22px; text-align: left;
  }
  .st-tor .st-side__logo .keng { display: block; width: 150px; margin: 0; }
  .st-tor .st-side__logo .tor { display: none; }
  .st-tor .st-side__group { padding: 20px 14px 6px; }
  .st-tor .st-side__link {
    justify-content: flex-start; padding: 10px 12px; font-size: 14.4px; gap: 10px;
  }
  .st-tor .st-side__link::after { display: none; }
  .st-tor .st-side__title { display: block; }
  .st-tor .st-side__foot { display: block; }
  .st-side__yig { display: none; }
}

/* ============================================================
   Tahrirchi — Kirill ↔ Lotin
   ============================================================ */

.st-yonalish { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.st-yonalish button {
  padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--st-line); background: #fff;
  font: 600 14.5px/1 var(--st-font); color: var(--st-ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.st-yonalish button:hover { border-color: #BFD2EC; color: var(--st-navy); }
.st-yonalish button.is-active {
  background: var(--st-blue); border-color: var(--st-blue); color: #fff;
}
/* «Yangi alifbo» — ikki qatorli kartochka-tugma: tepada nomi,
   ostida juda mayda eslatma. Eslatma ikkilamchi axborot, shuning
   uchun u dizaynni egallab olmaydi. */
.st-yonalish .st-ya {
  flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 16px 8px; line-height: 1.2;
}
.st-yonalish .st-ya b { font-size: 14.5px; font-weight: 600; }
.st-yonalish .st-ya i {
  font-style: normal; font-size: 10px; font-weight: 500;
  letter-spacing: .01em; color: var(--st-muted);
}
.st-yonalish .st-ya.is-active i { color: rgba(255, 255, 255, .82); }

.st-almash {
  margin-left: auto; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--st-line); background: #fff; cursor: pointer;
  color: var(--st-ink-soft); font: 500 14px/1 var(--st-font);
}
.st-almash:hover { border-color: #BFD2EC; color: var(--st-navy); }
/* `hidden` atributi kuchga kirsin: tugmalarda `display` yozilgan */
.st-almash[hidden], .st-chuqur[hidden] { display: none !important; }

.st-tahrir {
  margin-top: 18px; display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.st-quti {
  background: var(--st-panel); border: 1px solid var(--st-line);
  border-radius: var(--st-r-lg); overflow: hidden; display: flex; flex-direction: column;
}
.st-quti__bosh {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--st-line-soft);
  background: #FBFCFE;
}
.st-quti__bosh b { font-size: 14.5px; color: var(--st-navy); }
.st-quti__bosh span {
  margin-left: auto; font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--st-muted); font-weight: 600;
}
.st-quti textarea {
  border: 0; resize: vertical; width: 100%; min-height: 340px;
  padding: 18px; font: 400 15.5px/1.7 var(--st-font); color: var(--st-ink);
  background: transparent;
}
.st-quti textarea:focus { outline: 0; }

/* ---------- Manba oynasidagi belgi qatlami --------------------
   Textarea ichida so'zni bo'yash imkoni yo'q. Shuning uchun uning
   TAGIGA aynan shu matnning nusxasi qo'yiladi: harflari ko'rinmas,
   faqat to'lqinli chiziqlari ko'rinadi. Ikkala qatlamning shrifti,
   ichki bo'shlig'i va qator balandligi bir xil bo'lishi shart —
   aks holda chiziq so'zdan siljib qoladi. */
.st-manba { position: relative; display: flex; min-height: 0; }
/* Aylantirish tasmasi uchun joy IKKALA qatlamda ham doim ajratiladi.
   Busiz matn textarea'da tasma chiqishi bilan 15 nuqta torayib,
   belgi qatlamidan boshqacha qatorlanib ketardi. */
.st-manba textarea { position: relative; z-index: 1; scrollbar-gutter: stable; }
.st-manba__belgi {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  box-sizing: border-box; padding: 18px; margin: 0;
  font: 400 15.5px/1.7 var(--st-font);
  white-space: pre-wrap; overflow-wrap: break-word; word-break: normal;
  overflow: hidden; scrollbar-gutter: stable;
  color: transparent; pointer-events: none;
}
.st-manba__belgi .im { cursor: default; }
.st-quti textarea::placeholder { color: #9AAABF; }
.st-quti textarea[readonly] { background: #FCFDFE; }
.st-quti__oyoq {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--st-line-soft);
}
.st-quti__oyoq .hisob {
  margin-left: auto; font-size: 12.8px; color: var(--st-muted);
  font-variant-numeric: tabular-nums;
}
.st-mini {
  padding: 8px 13px; border-radius: 9px; border: 1px solid var(--st-line);
  background: #fff; font: 600 13.2px/1 var(--st-font); color: var(--st-navy);
  cursor: pointer;
}
.st-mini:hover { border-color: #BFD2EC; background: #FBFCFE; }
.st-mini:disabled { opacity: .45; cursor: not-allowed; }
.st-mini--asosiy { background: var(--st-blue); border-color: var(--st-blue); color: #fff; }
.st-mini--asosiy:hover { background: #0a4cb8; border-color: #0a4cb8; }

/* ---------- Fayldan matn yuklash ------------------------------ */

.st-mini--fayl { display: inline-flex; align-items: center; gap: 7px; }
.st-mini--fayl svg { width: 15px; height: 15px; flex: none; opacity: .9; }

/* Holat qatori: yuklanmoqda · yuklandi · xato */
.st-fayl-holat {
  padding: 0 16px 12px; font-size: 13px; color: var(--st-ink-soft);
  line-height: 1.5;
}
/* Shablonda holat qatori maydon ostida turadi — chetki bo'shliqsiz */
.st-maydon .st-fayl-holat { padding: 6px 0 0; }
.st-fayl-holat[hidden] { display: none; }
.st-fayl-holat.is-xato { color: #B3261E; }

/* Fayl sudrab kelinganda quti belgilanadi */
.st-quti.is-tashlash, .st-maydon.is-tashlash {
  outline: 2px dashed var(--st-blue); outline-offset: 2px;
}

.st-qoida {
  margin-top: 26px; background: var(--st-panel);
  border: 1px solid var(--st-line); border-radius: var(--st-r-lg); padding: 22px 24px;
}
.st-qoida h3 { font-size: 15.5px; color: var(--st-navy); }
.st-qoida ul { margin: 12px 0 0; padding-left: 18px; }
.st-qoida li { margin-bottom: 7px; font-size: 14.5px; color: var(--st-ink-soft); }
.st-qoida code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .93em;
  background: var(--st-bg-tint); padding: 2px 6px; border-radius: 5px; color: var(--st-navy);
}
.st-qoida .ok { color: var(--st-green); font-weight: 700; }

.st-locked::after { content: " 🔒"; font-size: 12px; }

/* ---------- Keng o'girish maydoni -----------------------------
   Tahrirchida asosiy e'tibor matn maydonlariga qaratiladi: yon menyu
   yig'iladi (.st-app--tor), ish maydoni kengaytiriladi va ikkala quti
   ekran balandligini to'ldiradi. Qoidalar ro'yxati pastda qoladi.
   ------------------------------------------------------------- */

/* Taklif ro'yxati shu qutiga nisbatan joylashadi */
.st-work__body--tahrir { max-width: none; padding: 22px 28px 60px; position: relative; }

/* Sarlavha ixcham: yo'nalish tugmalari bilan bir qatorda turadi */
.st-tahrir-bosh {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px;
}
.st-tahrir-bosh .st-h1 { font-size: 23px; }
.st-tahrir-bosh .st-sub { margin: 0; font-size: 14.5px; }

.st-work__body--tahrir #stKonvertor.is-open {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 170px);
}
.st-work__body--tahrir .st-yonalish { margin-top: 16px; }
.st-work__body--tahrir .st-tahrir { flex: 1 1 auto; min-height: 380px; }
.st-work__body--tahrir .st-quti { min-height: 0; }
.st-work__body--tahrir .st-manba,
.st-work__body--tahrir .st-quti textarea,
.st-work__body--tahrir .st-chiqish {
  flex: 1 1 auto; min-height: 0; height: auto; overflow-y: auto;
}
.st-work__body--tahrir .st-manba { overflow: hidden; }
.st-work__body--tahrir .st-quti textarea { resize: none; }

@media (max-width: 900px) {
  .st-tahrir { grid-template-columns: 1fr; }
  .st-quti textarea { min-height: 220px; }
  .st-almash { margin-left: 0; }

  /* Telefonda balandlikni majburlamaymiz — quti oqim bo'yicha o'sadi */
  .st-work__body--tahrir { padding: 24px 16px 60px; }
  .st-work__body--tahrir #stKonvertor.is-open { display: block; min-height: 0; }
  .st-work__body--tahrir .st-tahrir { min-height: 0; }
  .st-work__body--tahrir .st-manba,
  .st-work__body--tahrir .st-quti textarea,
  .st-work__body--tahrir .st-chiqish { min-height: 220px; }
  .st-work__body--tahrir .st-quti textarea { resize: vertical; }
}


/* ---------- Kirish oynasi (Diqqat) ---------------------------- */

.st-kirish {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center; padding: 20px;
  background: rgba(4, 26, 58, .48);
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
}
.st-kirish.is-yopiq { display: none; }

.st-kirish__oyna {
  width: min(540px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--st-panel); border-radius: 22px;
  padding: 30px 32px 28px; text-align: center;
  box-shadow: 0 28px 70px rgba(2, 20, 50, .35);
  animation: st-rise .35s cubic-bezier(.2, .7, .3, 1) both;
}
.st-kirish__nishon {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--st-navy); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.st-kirish__oyna h2 {
  margin-top: 16px; font-size: 22px; color: var(--st-navy); letter-spacing: -.02em;
}
.st-kirish__oyna p {
  margin: 12px 0 0; font-size: 15.2px; line-height: 1.65; color: var(--st-ink-soft);
}
.st-kirish__oyna p b { color: var(--st-ink); }
.st-kirish__oyna .kichik { font-size: 13.8px; color: var(--st-muted); margin-top: 14px; }

.st-taqqos {
  margin-top: 18px; text-align: left;
  border-radius: 14px; border: 1px solid var(--st-line); overflow-x: auto;
}
.st-taqqos table { border-collapse: collapse; width: 100%; font-size: 14px; }
.st-taqqos th, .st-taqqos td {
  padding: 9px 13px; text-align: left;
  border-bottom: 1px solid var(--st-line-soft); white-space: nowrap;
}
.st-taqqos thead th {
  background: var(--st-bg-tint); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--st-navy); font-weight: 700;
}
.st-taqqos tbody tr:last-child td { border-bottom: 0; }
.st-taqqos .yomon { color: #B3261E; }
.st-taqqos .yaxshi { color: #0A6C2E; font-weight: 700; }
.st-taqqos .manba { color: var(--st-ink-soft); }

/* Kirish oynasidagi imkoniyatlar ro'yxati */
.st-kirish__royxat {
  margin: 16px 0 0; padding: 0; list-style: none; text-align: left;
}
.st-kirish__royxat li {
  position: relative; padding-left: 26px; margin-top: 10px;
  font-size: 14.8px; line-height: 1.6; color: var(--st-ink-soft);
}
.st-kirish__royxat li::before {
  content: ''; position: absolute; left: 6px; top: 9px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--st-sky);
}
.st-kirish__royxat li b { color: var(--st-navy); }
.st-kirish__ogoh {
  margin-top: 16px; padding: 12px 14px; text-align: left;
  border-radius: 12px; border: 1px solid #F0D9A8; background: #FFF9EC;
  font-size: 14px; line-height: 1.6; color: #7A5A18;
}
.st-kirish__ogoh b { color: #6A4A10; }

.st-kirish__tugma {
  margin-top: 22px; width: 100%;
  padding: 15px 24px; border-radius: 14px; border: 0;
  background: var(--st-blue); color: #fff; cursor: pointer;
  font: 700 16px/1 var(--st-font);
  box-shadow: 0 6px 18px rgba(11, 87, 208, .26);
  transition: background .15s, transform .15s;
}
.st-kirish__tugma:hover { background: #0a4cb8; transform: translateY(-1px); }

.st-farq {
  margin-left: auto; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--st-line); background: #fff; cursor: pointer;
  font: 600 13px/1 var(--st-font); color: var(--st-ink-soft);
}
.st-farq:hover { border-color: var(--st-blue); color: var(--st-blue); }

/* ---------- Imloviy tekshiruv -------------------------------- */

/* Natija endi oddiy maydon emas: ichida belgilangan so'zlar bo'ladi */
.st-chiqish {
  flex: 1 1 auto; min-height: 340px; padding: 18px;
  font: 400 15.5px/1.7 var(--st-font); color: var(--st-ink);
  background: #FCFDFE; white-space: pre-wrap; word-break: break-word;
  overflow-y: auto;
}
.st-chiqish:empty::before { content: attr(data-bosh); color: #9AAABF; }
.st-chiqish:focus { outline: 0; }

/* Uch xil belgi. Chiziq to'lqinsimon va yumshoq — matn o'qilishiga
   xalaqit bermaydi. */
.im {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1.1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: none;
  cursor: pointer; border-radius: 3px;
}
/* Aniq xato — to'q qizil va qalinroq chiziq */
.im--qizil {
  text-decoration-color: #D92D20;
  text-decoration-thickness: 2px;
}
.im--sariq { text-decoration-color: #E08A00; text-decoration-thickness: 1.7px; }
/* Rasmiy muqobili bor atama. Rangi QIZIL: egasining ko'rsatmasi —
   1-ilova rasmiy hujjat, undagi atamani ishlatmaslik kamchilik deb
   qaraladi. Xato belgisidan farqi — chiziq to'lqinli emas, IKKI
   QATOR: shu bilan «boshqa turdagi belgi» ekani bilinib turadi. */
.im--atama {
  text-decoration-color: #D92D20;
  text-decoration-style: double;
  text-decoration-thickness: 1px;
}
/* SON — xato emas, taklif. Texnik topshiriqning 12-bandi:
   «tizim shu son yoki yilning tagiga ikki chiziqcha YASHIL rangda
   chizadi». Rasmiy atama belgisi qizil ikki chiziqqa o'tgani uchun
   yashil ikki chiziq bo'shab qoldi va aynan shu yerga to'g'ri
   keldi: ikkalasi ham «xato emas, e'tibor bering» degani. */
.im--son {
  text-decoration-color: #1F9D55;
  text-decoration-style: double;
  text-decoration-thickness: 1px;
}

/* Chuqur tekshiruv topilmasi — qizil, lekin tekis chiziq bilan:
   avtomatik tekshiruvning to'lqinli belgisidan ajralib tursin.
   Ikkalasi bir matnda ko'rinadi, shuning uchun farqi bilinishi
   kerak: to'lqinli — tizim bazasi, tekis — sun'iy intellekt. */
.im--chuqur {
  text-decoration-style: solid;
  text-decoration-color: #D92D20;
  text-decoration-thickness: 2px;
  background: #FFF1F0;
}
.im--chuqur.is-faol { background: #FFE0DE; }

.im.is-faol { background: #EAF2FF; }
.im:focus { outline: 2px solid var(--st-blue); outline-offset: 1px; }

.st-imlo__yoq {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.8px; color: var(--st-ink-soft); cursor: pointer;
}
.st-imlo__yoq input { accent-color: var(--st-blue); }

.st-imlo {
  margin-top: 14px; padding: 12px 16px;
  border-radius: var(--st-r); border: 1px solid var(--st-line);
  background: var(--st-panel);
}
.st-imlo__hisob {
  display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap;
  font-size: 13.4px; color: var(--st-muted);
}
.st-imlo__holat { margin-right: auto; }
.st-imlo__son b { color: var(--st-ink); font-variant-numeric: tabular-nums; }
.st-imlo__son i {
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 5px; vertical-align: -1px;
}
.st-imlo__son .n-qizil { background: #E08A8A; }
.st-imlo__son .n-sariq { background: #E08A00; }
.st-imlo__son .n-atama { background: #D92D20; }
.st-imlo__son .n-son { background: #1F9D55; }

/* «Chuqur tekshirish» tugmasi. Ilgari bu tugmaga hech qanday uslub
   yozilmagan edi: ichidagi SVG o'lchamsiz qolib, brauzerning
   standart 300×150 nuqtasini egallardi va panelni yorib chiqardi. */
.st-chuqur {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--st-line); background: #fff;
  font: 600 12.8px/1 var(--st-font); color: var(--st-navy);
  cursor: pointer; white-space: nowrap;
}
.st-chuqur svg { width: 15px; height: 15px; flex: none; color: var(--st-blue); }
.st-chuqur:hover { border-color: #BFD2EC; background: var(--st-bg-tint); }
.st-chuqur:disabled { opacity: .55; cursor: default; }

/* Chuqur tekshiruv natijasi */
.st-chuqur__natija {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--st-line-soft); font-size: 13.6px;
}
.st-chuqur__natija[hidden] { display: none; }
.st-chuqur__xabar { margin: 0; color: var(--st-ink-soft); }
.st-chuqur__natija.is-ok .st-chuqur__xabar { color: #0A6C2E; }
.st-chuqur__natija.is-xato .st-chuqur__xabar { color: #B3261E; }
.st-chuqur__bosh { font-weight: 700; color: var(--st-navy); margin-bottom: 8px; }
.st-chuqur__ro { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.st-chuqur__ro li {
  padding: 9px 12px; border: 1px solid var(--st-line-soft);
  border-radius: 10px; background: #fff;
}
.st-chuqur__ro b { color: #B3261E; }
.st-chuqur__ro .tur {
  margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--st-bg-tint); color: var(--st-muted); font-size: 11.6px;
}
.st-chuqur__ro .izoh { margin-top: 3px; color: var(--st-ink-soft); line-height: 1.5; }
.st-chuqur__almash {
  margin-top: 7px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--st-line); background: #fff;
  font: 600 12.4px/1.5 var(--st-font); color: var(--st-navy); cursor: pointer;
}
.st-chuqur__almash:hover { border-color: #BFD2EC; background: var(--st-bg-tint); }
.st-chuqur__almash:disabled { opacity: .55; cursor: default; }
/* Sinov rejimi ogohlantirishi */
.st-ogoh {
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid #F0D48A;
  border-left: 4px solid #E0A800;
  border-radius: 10px;
  background: #FFF9E8;
  color: #6B4E00;
  font-size: 13.4px;
  line-height: 1.5;
}
.st-ogoh b { color: #5A3F00; }
.st-ogoh[hidden] { display: none; }
.st-ogoh p { margin: 0; }
/* «Tushunarli» — e'lon bir marta ko'rinadi, javob eslab qolinadi */
.st-ogoh__ok {
  margin-top: 9px;
  padding: 6px 14px;
  border: 1px solid #E0A800;
  border-radius: 8px;
  background: #fff;
  color: #6B4E00;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.st-ogoh__ok:hover { background: #FFF3CF; }

.st-imlo__izoh {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--st-line-soft);
  font-size: 14px; color: var(--st-ink-soft); line-height: 1.6;
}
.st-imlo__izoh b { color: var(--st-navy); }
.st-imlo__taklif {
  display: inline-block; margin-left: 6px; padding: 2px 10px;
  border-radius: 999px; background: #E7F6ED; color: #0A6C2E; font-weight: 700;
}

/* ---------- «Tez orada» paneli -------------------------------
   Hali ishga tushirilmagan bo'limlar shu ko'rinishni ko'rsatadi. */

.st-soon {
  max-width: 520px; margin: 60px auto; padding: 0 20px; text-align: center;
}
.st-soon__nishon {
  width: 62px; height: 62px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--st-bg-tint); color: var(--st-blue);
}
.st-soon__nishon svg { width: 30px; height: 30px; }
.st-soon .st-h1 { margin-bottom: 10px; }
.st-soon__ortga {
  display: inline-block; margin-top: 22px; padding: 10px 20px;
  border: 1px solid var(--st-line); border-radius: 11px;
  font-size: 14.4px; color: var(--st-navy);
}
.st-soon__ortga:hover { border-color: var(--st-blue); color: var(--st-blue); text-decoration: none; }

/* ---------- Tuzatma ro'yxati ---------------------------------
   Belgilangan so'z bosilganda uning ostida ochiladi. Joyi JS bilan
   qo'yiladi, shuning uchun `position: absolute` — eng yaqin
   `position: relative` bo'lgan ota element ish maydoni bo'ladi. */

.st-taklif {
  position: absolute; z-index: 60; min-width: 190px; max-width: 300px;
  background: var(--st-panel); border: 1px solid var(--st-line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(10, 23, 48, .14);
  overflow: hidden;
}
.st-taklif__ro { padding: 5px; }

/* Son taklifi: uchta natija, har birining yonida nusxalash tugmasi */
.st-taklif--son { max-width: 420px; }
.st-taklif__son { padding: 6px 5px; }
.st-taklif__qator {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 7px 9px; border-radius: 8px;
}
.st-taklif__qator + .st-taklif__qator { border-top: 1px solid var(--st-line-soft); }
.st-taklif__qator:hover { background: var(--st-bg-tint); }
.st-taklif__nom {
  flex: none; width: 92px; padding-top: 2px;
  font: 700 10.6px/1.3 var(--st-font); letter-spacing: .04em;
  text-transform: uppercase; color: var(--st-muted);
}
.st-taklif__qiy {
  flex: 1 1 auto; border: 0; background: none; padding: 0; text-align: left;
  font: 400 14.2px/1.45 var(--st-font); color: var(--st-ink); cursor: pointer;
}
.st-taklif__qiy:hover { color: var(--st-blue); }
.st-taklif__nusxa {
  flex: none; width: 26px; height: 26px; padding: 0;
  border: 1px solid var(--st-line); border-radius: 7px; background: #fff;
  color: var(--st-muted); cursor: pointer;
}
.st-taklif__nusxa:hover { border-color: #BFD2EC; color: var(--st-blue); }
.st-taklif__nusxa svg { width: 13px; height: 13px; }
.st-taklif__nusxa.is-oldi { color: #1F9D55; border-color: #A9DCC0; }
.st-taklif__band {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 8px; background: none;
  font-family: var(--st-font); font-size: 14.6px; color: var(--st-ink);
  text-align: left; cursor: pointer;
}
.st-taklif__band:hover, .st-taklif__band:focus-visible {
  background: var(--st-bg-tint); color: var(--st-blue);
}
.st-taklif__band .oq { color: var(--st-muted); font-size: 13px; }
.st-taklif__band:hover .oq { color: var(--st-blue); }
.st-taklif__kut, .st-taklif__yoq {
  padding: 12px 14px; font-size: 13.6px; color: var(--st-muted);
}
.st-taklif__oyoq {
  padding: 8px 12px; border-top: 1px solid var(--st-line-soft);
  background: var(--st-bg-tint); font-size: 12.6px; color: var(--st-muted);
  line-height: 1.45;
}
.st-taklif__oyoq b { color: var(--st-navy); }

body.st-qulf { overflow: hidden; }

/* Taklif ro'yxati shu qutiga nisbatan joylashadi */
#stKonvertor { display: none; position: relative; }
#stKonvertor.is-open { display: block; }

@media (max-width: 560px) {
  .st-kirish__oyna { padding: 24px 20px 22px; border-radius: 18px; }
  .st-kirish__oyna h2 { font-size: 19px; }
  .st-taqqos table { font-size: 12.5px; }
  .st-taqqos th, .st-taqqos td { padding: 8px 9px; }
  .st-kirish__oyna p { font-size: 14.4px; }
}

/* ---------- So'z chegarasi ------------------------------------ */

.st-limit {
  margin-top: 14px; display: none;
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid #F0D3A8; background: #FDF6EA; color: #8A5A12; font-size: 14px;
}
.st-limit.is-open { display: block; }

/* Yozuv o'zi aniqlanib, yo'nalish almashganda chiqadigan eslatma */
.st-yozuv {
  margin-top: 14px;
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid #C7DBF5; background: #F1F6FD; color: #1F4E85; font-size: 14px;
}
.st-yozuv[hidden] { display: none; }
.hisob.is-limit { color: #B3261E; font-weight: 600; }

/* ---------- Qoidalar ro'yxati --------------------------------- */

.st-qoidalar { margin-top: 30px; }
.st-qoidalar > h2 { font-size: 21px; color: var(--st-navy); }
.st-qoidalar > p { margin: 10px 0 0; color: var(--st-muted); font-size: 15px; max-width: 66ch; }
.st-qoida-karta {
  margin-top: 14px; background: var(--st-panel);
  border: 1px solid var(--st-line); border-radius: 16px; padding: 18px 22px;
}
.st-qoida-karta h3 { font-size: 15.5px; color: var(--st-navy); }
.st-qoida-karta p { margin: 7px 0 0; font-size: 14.6px; color: var(--st-ink-soft); }
.st-misol { margin-top: 11px; display: flex; flex-wrap: wrap; gap: 8px; }
.st-misol code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--st-bg-tint); color: var(--st-navy);
  padding: 5px 11px; border-radius: 8px; white-space: nowrap;
}
.st-misol code.x { background: #FCEEED; color: #B3261E; }
.st-misol code.v { background: #EAF6EE; color: #0A6C2E; }
