/* ============================================================
   Sof tilim — Kitob rejasi (kutubxona va o'qigich)

   KLASS NOMI BUTUN SAYT BO'YICHA YAGONA BO'LISHI KERAK.

   Bu fayl `lugat.css` dan keyin yuklanadi, lekin faqat o'zi
   yozgan xossani bosib o'tadi. Hujjat tahlilida `.st-kirish`
   nomi lug'atlar bo'limidagi ekran qoplamasi bilan to'qnashib,
   butun bo'lim ishlamay qolgan edi. Shuning uchun bu yerdagi
   barcha nomlar `st-kt-` bilan boshlanadi.

   DIZAYN QARORI: BU BO'LIM QOLGANIDEK EMAS.

   Saytning boshqa bo'limlari — asboblar: hujjat kiritiladi,
   natija olinadi, ekran yopiladi. Kitob esa boshqacha: unga
   odam har kuni, bir necha hafta davomida qaytadi. Shuning
   uchun bu yerda javon, muqova va qog'oz bor — kutubxonaga
   kirgandek. Ranglar ham iliqroq: sovuq oq emas, qog'oz rangi.
   ============================================================ */

.st-work__body--taqvim {
  max-width: 1120px;
  padding-bottom: 90px;
}

/* ---------- Umumiy o'lchovlar --------------------------------- */

:root {
  --kt-qogoz:   #FBF8F2;   /* varaq */
  --kt-javon:   #E7DCC9;   /* javon taxtasi */
  --kt-siyoh:   #23303F;
  --kt-oltin:   #B08B45;
}

/* ---------- Bosh qism: javon ---------------------------------- */

.st-kt-bosh {
  display: grid; grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px; align-items: end;
  margin-bottom: 26px;
}
.st-kt-bosh h1 {
  margin: 0; font-size: 31px; line-height: 1.18; letter-spacing: -.02em;
  color: var(--st-navy);
}
.st-kt-bosh p {
  margin: 10px 0 0; font-size: 15.5px; line-height: 1.6;
  color: var(--st-ink-soft); max-width: 60ch;
}
.st-kt-vada {
  display: inline-block; margin-top: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: #EAF6EF; border: 1px solid #C6E6D3;
  font-size: 12.8px; color: #0E4B2C;
}

/* Bezak javon: kitob tanasi CSS bilan chiziladi, rasm yo'q —
   sahifa bir bayt ham og'irlashmaydi. */
.st-kt-bosh__javon {
  display: flex; align-items: flex-end; gap: 4px;
  height: 118px; padding: 0 6px 9px;
  border-bottom: 9px solid var(--kt-javon);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 10px 18px -14px rgba(35, 48, 63, .5);
}
.st-kt-kitobcha {
  flex: 1 1 auto; border-radius: 2px 2px 0 0;
  height: calc(60% + var(--i) * 5%);
  background: linear-gradient(180deg,
    hsl(calc(var(--i) * 47 + 200) 32% 42%),
    hsl(calc(var(--i) * 47 + 200) 34% 30%));
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, .16);
}
.st-kt-kitobcha:nth-child(3) { height: 74%; }
.st-kt-kitobcha:nth-child(6) { height: 66%; }

/* ---------- Javondagi kitoblar -------------------------------- */

.st-kt-javon {
  display: grid; gap: 26px 22px;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  padding: 0 0 26px;
}

.st-kt-kitob {
  display: block; width: 100%; text-align: left;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.st-kt-kitob:hover .st-kt-muqova { transform: translateY(-5px) rotate(-.6deg); }
.st-kt-kitob:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 4px; }

/* ---------- Muqova -------------------------------------------

   Muqova rasm emas, chizma: rang kitob nomidan hisoblanadi
   (`taqvim-ui.js`), qolganini CSS chizadi. Chap chetidagi
   yorug' yo'l — kitob tikuvi; pastdagi soya kitobni javonda
   turgandek ko'rsatadi. */

.st-kt-muqova {
  position: relative; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 3px 7px 7px 3px; overflow: hidden;
  background: linear-gradient(150deg, var(--m2), var(--m1) 70%);
  box-shadow: 0 12px 20px -12px rgba(20, 28, 40, .7),
              0 2px 5px rgba(20, 28, 40, .18);
  transition: transform .18s ease;
  display: flex; align-items: flex-end;
}
.st-kt-muqova::after {
  /* muqovaga tushgan yorug'lik */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255,255,255,.16), rgba(255,255,255,0) 42%);
  pointer-events: none;
}
.st-kt-muqova__qirra {
  position: absolute; left: 0; top: 0; bottom: 0; width: 11px;
  background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(255,255,255,.13) 62%,
                                     rgba(0,0,0,.16));
}
.st-kt-muqova__yozuv {
  position: relative; z-index: 1;
  padding: 16px 14px 18px 22px; width: 100%;
}
.st-kt-muqova__yozuv b {
  display: block;
  font: 600 15.5px/1.28 Georgia, 'Times New Roman', serif;
  color: #fff; letter-spacing: .005em;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-kt-muqova__yozuv i {
  display: block; margin-top: 7px; font-style: normal;
  font-size: 12.2px; color: rgba(255, 255, 255, .74);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-kt-muqova__yozuv::before {
  /* oltin chiziq — muqovaning an'anaviy bezagi */
  content: ''; display: block; width: 34px; height: 2px;
  background: var(--kt-oltin); margin-bottom: 12px; border-radius: 2px;
}
.st-kt-muqova__tur {
  position: absolute; z-index: 1; top: 12px; right: 12px;
  padding: 3px 7px; border-radius: 4px;
  background: rgba(255, 255, 255, .16);
  font-size: 9.6px; letter-spacing: .12em; color: rgba(255,255,255,.9);
}

.st-kt-muqova--katta {
  width: 168px; flex: 0 0 168px; border-radius: 3px 9px 9px 3px;
}
.st-kt-muqova--katta .st-kt-muqova__yozuv b { font-size: 18px; }

/* Kitob ostidagi tag: javon taxtasi, jarayon va bugungi holat.

   Taxta har bir kitobning tagida alohida chiziladi, lekin
   muqovalar bir xil balandlikda bo'lgani uchun ular qatorda
   bir chiziqqa tushadi — javon bo'lib ko'rinadi. */
.st-kt-kitob__tag { padding-top: 0; }
.st-kt-kitob__tag::before {
  content: ''; display: block; height: 6px; margin-bottom: 11px;
  background: linear-gradient(180deg, #F0E7D7, #DDD0B8);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 3px 7px -4px rgba(35, 48, 63, .55);
}
.st-kt-chiziq {
  height: 5px; border-radius: 99px; background: #E6E2D8; overflow: hidden;
}
.st-kt-chiziq i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #0F9D58, #34B77C);
}
.st-kt-kitob__foiz {
  display: inline-block; margin-top: 7px;
  font-size: 12.6px; font-weight: 600; color: var(--st-navy);
}
.st-kt-kitob__holat {
  display: block; margin-top: 2px; font-size: 12.4px; line-height: 1.45;
  color: var(--st-muted);
}
.st-kt-kitob__holat.is-kech { color: #A8590F; }

/* Kitob qo'shish — javondagi bo'sh joy */
.st-kt-qosh {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px;
  aspect-ratio: 2 / 3; width: 100%; cursor: pointer;
  border: 2px dashed #CFC6B4; border-radius: 3px 7px 7px 3px;
  background: rgba(255, 255, 255, .5); color: var(--st-ink-soft);
  font: inherit; padding: 12px; text-align: center;
  transition: border-color .16s ease, background .16s ease;
}
.st-kt-qosh:hover { border-color: var(--st-blue); background: #fff; }
.st-kt-qosh__belgi {
  font-size: 30px; line-height: 1; color: var(--st-blue); font-weight: 300;
}
.st-kt-qosh b { font-size: 14px; color: var(--st-navy); }
.st-kt-qosh i { font-style: normal; font-size: 11.6px; color: var(--st-muted); }
.st-kt-qosh.is-yopiq { border-style: solid; cursor: default; opacity: .75; }

/* Kutubxona bo'sh bo'lganda */
.st-kt-boshliq {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px; align-items: center;
  background: var(--kt-qogoz); border: 1px solid #EAE3D6;
  border-radius: 16px; padding: 30px;
}
.st-kt-belgi { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.st-kt-belgi li {
  position: relative; padding-left: 26px;
  font-size: 15px; line-height: 1.55; color: var(--st-ink);
}
.st-kt-belgi li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--kt-oltin);
}
.st-kt-iqtibos {
  grid-column: 1 / -1; margin: 4px 0 0; padding-top: 18px;
  border-top: 1px solid #EAE3D6;
  font: italic 15px/1.6 Georgia, 'Times New Roman', serif;
  color: var(--st-ink-soft);
}
.st-kt-iqtibos i {
  display: block; margin-top: 6px; font-style: normal;
  font-size: 12.8px; color: var(--st-muted);
}

/* ---------- Bosqichlar tasmasi -------------------------------- */

.st-kt-qadam {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 20px; padding: 0; list-style: none;
}
.st-kt-qadam li {
  flex: 1 1 190px; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border: 1px solid var(--st-line); border-radius: 12px;
  background: #fff; font-size: 13.6px; color: var(--st-muted);
}
.st-kt-qadam li i {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  background: var(--st-bg-tint); color: var(--st-muted);
  font: 600 12px/22px var(--st-font); font-style: normal; text-align: center;
}
.st-kt-qadam li.is-faol {
  border-color: #B9D0F2; background: var(--st-bg-tint);
  color: var(--st-navy); font-weight: 600;
}
.st-kt-qadam li.is-faol i { background: var(--st-blue); color: #fff; }
.st-kt-qadam li.is-tugagan i { background: #E9F7EF; color: #0F9D58; }

/* ---------- Varaq (oq karta) ---------------------------------- */

.st-kt-varaq {
  background: #fff; border: 1px solid var(--st-line);
  border-radius: 16px; padding: 24px 26px;
  box-shadow: 0 1px 2px rgba(16, 25, 43, .04);
}
.st-kt-varaq h2 {
  margin: 0 0 16px; font-size: 20px; color: var(--st-navy);
  letter-spacing: -.01em;
}
.st-kt-varaq--ikki {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 26px;
  align-items: start;
}
.st-kt-varaq--ikki h2 { margin-bottom: 4px; font-size: 22px; }

.st-kt-muallif { margin: 0 0 16px; font-size: 15px; color: var(--st-muted); }
.st-kt-kichik { font-size: 12.6px; color: var(--st-muted); }

/* Nom va muallifni tahrirlash — kitob javonga qanday nom bilan
   turishini odamning o'zi hal qiladi. */
.st-kt-tahrir { margin-bottom: 18px; }
.st-kt-tahrir label {
  display: block; margin: 0 0 5px;
  font-size: 12.2px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--st-muted);
}
.st-kt-tahrir label + input { margin-bottom: 12px; }
.st-kt-tahrir input {
  width: 100%; padding: 10px 13px;
  border: 1px solid var(--st-line); border-radius: 10px;
  background: #fff; color: var(--st-ink);
  font: 600 17px/1.35 Georgia, 'Times New Roman', serif;
}
.st-kt-tahrir input#stMuallif { font: 400 15px/1.4 var(--st-font); }
.st-kt-tahrir input:focus {
  outline: none; border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, .12);
}

.st-kt-rek {
  margin: 0 0 16px; display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 9px 16px;
}
.st-kt-rek dt {
  font-size: 12.4px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--st-muted); padding-top: 2px;
}
.st-kt-rek dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--st-ink); }

.st-kt-izoh {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 12px;
  background: #FFFBF2; border: 1px solid #F0DFB4;
  font-size: 13.6px; line-height: 1.6; color: #6B4C10;
}

.st-kt-amal {
  margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: space-between;
}
.st-kt-amal--markaz { justify-content: center; }
.st-kt-amal--past { justify-content: flex-end; margin-top: 26px; }
.st-kt-bugun .st-kt-amal { justify-content: flex-start; }

.st-kt-sarlavha {
  margin: 24px 0 10px; font-size: 12.6px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--st-muted);
}

/* ---------- Fayl yuklash -------------------------------------- */

.st-kt-yukla {
  border: 2px dashed #D6DEEA; border-radius: 14px;
  background: var(--kt-qogoz);
  padding: 42px 24px; text-align: center;
  transition: border-color .16s ease, background .16s ease;
}
.st-kt-yukla.is-tashlash { border-color: var(--st-blue); background: var(--st-bg-tint); }
.st-kt-yukla h2 { margin: 16px 0 6px; font-size: 20px; }
.st-kt-yukla p {
  margin: 0 auto; max-width: 46ch;
  font-size: 14.6px; line-height: 1.6; color: var(--st-ink-soft);
}

/* Uchta kitob tanasi — yuklash belgisi */
.st-kt-yukla__ikon {
  display: flex; align-items: flex-end; justify-content: center; gap: 5px;
  height: 46px;
}
.st-kt-yukla__ikon span {
  width: 13px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #4F79B8, #2A5490);
}
.st-kt-yukla__ikon span:nth-child(1) { height: 34px; }
.st-kt-yukla__ikon span:nth-child(2) { height: 46px; background: linear-gradient(180deg, #8E3247, #6B2233); }
.st-kt-yukla__ikon span:nth-child(3) { height: 28px; background: linear-gradient(180deg, #2E6A50, #1F4536); }

/* ---------- Sozlash maydonlari -------------------------------- */

.st-kt-maydon { margin-bottom: 22px; }
.st-kt-maydon > label {
  display: block; margin-bottom: 9px;
  font-size: 14.4px; font-weight: 600; color: var(--st-navy);
}
.st-kt-tanlov { display: flex; gap: 8px; flex-wrap: wrap; }
.st-kt-tanlov button {
  padding: 9px 15px; border: 1px solid var(--st-line); border-radius: 999px;
  background: #fff; font: 500 13.8px var(--st-font); color: var(--st-ink-soft);
  cursor: pointer; transition: border-color .14s ease, color .14s ease;
}
.st-kt-tanlov button:hover { border-color: #9FBCE4; }
.st-kt-tanlov button.is-faol {
  border-color: var(--st-blue); background: var(--st-bg-tint);
  color: var(--st-navy); font-weight: 600;
}

.st-kt-sana {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 11px;
}
.st-kt-sana label { font-size: 13.4px; color: var(--st-muted); }
.st-kt-sana input[type="date"] {
  padding: 8px 12px; border: 1px solid var(--st-line); border-radius: 10px;
  font: 14.6px var(--st-font); color: var(--st-ink); background: #fff;
}
.st-kt-sana input[type="date"]:focus {
  outline: none; border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, .12);
}

.st-kt-kunlar { display: flex; gap: 7px; flex-wrap: wrap; }
.st-kt-kun {
  position: relative; cursor: pointer;
  padding: 9px 13px; border: 1px solid var(--st-line); border-radius: 10px;
  background: #fff; font-size: 13.4px; color: var(--st-muted);
  transition: border-color .14s ease;
}
.st-kt-kun input { position: absolute; opacity: 0; pointer-events: none; }
.st-kt-kun.is-faol {
  border-color: var(--st-blue); background: var(--st-bg-tint);
  color: var(--st-navy); font-weight: 600;
}

/* ---------- Sanoqlar ------------------------------------------ */

.st-kt-oldin, .st-kt-sanoq {
  display: grid; gap: 10px; margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.st-kt-oldin > div, .st-kt-sanoq > div {
  padding: 14px; border-radius: 12px; background: var(--st-bg-tint);
  text-align: center;
}
.st-kt-oldin b, .st-kt-sanoq b {
  display: block; font-size: 21px; color: var(--st-navy); line-height: 1.15;
}
.st-kt-oldin span, .st-kt-sanoq span {
  font-size: 12.4px; color: var(--st-muted);
}
.st-kt-sanoq--kichik > div { background: none; padding: 0; text-align: left; }
.st-kt-sanoq--kichik b { font-size: 18px; }

/* ---------- Kunlar ro'yxati ----------------------------------- */

.st-kt-kunro { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.st-kt-kunro li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 15px; border: 1px solid var(--st-line); border-radius: 12px;
  background: #fff;
}
.st-kt-kunro li > b {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--st-bg-tint); color: var(--st-navy);
  font: 600 13px/28px var(--st-font); text-align: center;
}
.st-kt-kunro li > div { flex: 1 1 auto; min-width: 0; }
.st-kt-kunro__sana {
  display: block; font-size: 12.4px; color: var(--st-muted);
}
.st-kt-kunro__ish {
  display: block; font-size: 15px; color: var(--st-ink); line-height: 1.45;
}
.st-kt-kunro li i {
  display: block; font-style: normal; font-size: 12.6px;
  color: var(--st-muted); margin-top: 2px;
}
.st-kt-kunro li em {
  flex: 0 0 auto; font-style: normal; font-size: 12.6px; color: var(--st-muted);
}

/* ---------- Kitob sahifasi ------------------------------------ */

.st-kt-orqaga { margin-bottom: 16px; }

.st-kt-kitobbosh {
  display: grid; grid-template-columns: 168px minmax(0, 1fr);
  gap: 28px; align-items: start;
  padding: 26px; border-radius: 18px;
  background: var(--kt-qogoz); border: 1px solid #EAE3D6;
  margin-bottom: 20px;
}
.st-kt-kitobbosh h1 {
  margin: 0; font: 600 26px/1.22 Georgia, 'Times New Roman', serif;
  color: var(--kt-siyoh); letter-spacing: -.005em;
}
.st-kt-olcham {
  display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 18px;
  font-size: 13.2px; color: var(--st-muted);
}
.st-kt-holatlar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid #EAE3D6;
}
.st-kt-sanoq--kichik {
  grid-template-columns: repeat(3, auto); gap: 22px; margin: 0;
}

/* Jarayon halqasi */
.st-kt-halqaquti { position: relative; width: 60px; height: 60px; }
.st-kt-halqa { width: 60px; height: 60px; transform: rotate(-90deg); }
.st-kt-halqa circle {
  fill: none; stroke: #E6E2D8; stroke-width: 6;
}
.st-kt-halqa__yo {
  stroke: #0F9D58; stroke-linecap: round;
  transition: stroke-dashoffset .5s ease;
}
.st-kt-halqaquti b {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 15px; color: var(--st-navy);
}
.st-kt-halqaquti b i { font-style: normal; font-size: 10px; margin-left: 1px; }

/* ---------- Bugungi vazifa: xatcho'p --------------------------

   Karta xatcho'pga o'xshatilgan: chap chetida rangli lenta,
   tepasida yorliq. Sahifadagi eng muhim joy shu — odam sahifani
   ochganda birinchi shuni ko'rishi kerak. */

.st-kt-bugun {
  position: relative; overflow: hidden;
  padding: 22px 26px 22px 30px; margin-bottom: 20px;
  border-radius: 16px; background: #fff;
  border: 1px solid var(--st-line);
  box-shadow: 0 10px 24px -20px rgba(16, 25, 43, .55);
}
.st-kt-bugun::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--st-blue), #2A5490);
}
.st-kt-bugun--kech { background: #FFFBF2; border-color: #F0DFB4; }
.st-kt-bugun--kech::before { background: linear-gradient(180deg, #E0921F, #A8590F); }
.st-kt-bugun--tugadi { background: #F3FBF6; border-color: #C6E6D3; }
.st-kt-bugun--tugadi::before { background: linear-gradient(180deg, #34B77C, #0E6B3F); }

.st-kt-bugun__yorliq {
  display: inline-block; margin-bottom: 8px;
  font-size: 11.4px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--st-muted);
}
.st-kt-bugun h3 {
  margin: 0; font: 600 23px/1.25 Georgia, 'Times New Roman', serif;
  color: var(--kt-siyoh);
}
.st-kt-bugun__mavzu {
  margin: 8px 0 0; font-size: 14.6px; line-height: 1.5; color: var(--st-ink-soft);
}
.st-kt-bugun__olcham {
  margin: 8px 0 0; font-size: 13.4px; color: var(--st-muted);
}

.st-kt-ogoh {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
  padding: 14px 18px; border-radius: 14px;
  background: #FFFBF2; border: 1px solid #F0DFB4;
  font-size: 13.8px; line-height: 1.55; color: #6B4C10;
}

/* ---------- Kitob nomi ---------------------------------------

   Nomni kitobxonning o'zi yozadi (sabab `taqvim-ui.js` da).
   Fayldan topilgani pastda taklif bo'lib turadi — bosilsa
   maydonga tushadi, bosilmasa yo'q. */

.st-kt-tahrir__izoh {
  margin: 0 0 10px; font-size: 13.4px; line-height: 1.5;
  color: var(--st-ink-soft);
}

.st-kt-taklif {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  margin: -6px 0 12px; font-size: 13px; color: var(--st-muted);
}
.st-kt-taklif button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--st-blue);
  text-decoration: underline; text-underline-offset: 2px;
}
.st-kt-taklif button:hover { color: var(--st-navy); }

.st-kt-talab {
  margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: #B42318;
}

/* Kitob sahifasidagi sarlavha va uning yonidagi qalam */
/* Qalam sarlavhaning yonida turadi. `flex-wrap` yo'q va
   sarlavhaga `min-width: 0` berilgan — aks holda uzun nom butun
   enni egallab, tugma pastga tushib qolardi. */
.st-kt-nomqator {
  display: flex; align-items: flex-start; gap: 8px;
}
.st-kt-nomqator h1 { min-width: 0; }
.st-kt-qalam {
  flex: none; margin-top: 4px;
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--st-line); background: var(--st-panel);
  color: var(--st-muted); font-size: 14px; line-height: 1; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.st-kt-qalam:hover {
  color: var(--st-blue); border-color: #C7D8F0; background: var(--st-bg-tint);
}

.st-kt-nomtahrir { display: grid; gap: 8px; max-width: 420px; margin-bottom: 6px; }
.st-kt-nomtahrir input {
  width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--st-line); background: var(--st-panel);
  font: inherit; font-size: 15px; color: var(--st-ink);
}
.st-kt-nomtahrir input:focus {
  outline: none; border-color: var(--st-blue);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, .13);
}
.st-kt-nomtahrir .st-kt-amal { margin: 2px 0 0; }

/* Hisobga kirish eslatmasi — yo'lni to'smaydigan qatorcha */
.st-kt-eslatma {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--st-bg-tint); border: 1px solid #D9E5F6;
  font-size: 13.6px; line-height: 1.55; color: var(--st-ink-soft);
}

/* ---------- Bo'limlar ----------------------------------------- */

.st-kt-bolim { margin-bottom: 22px; }
.st-kt-bolim h3 {
  margin: 0 0 12px; font-size: 12.6px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--st-muted);
}

/* Haftalik reja */
.st-kt-hafta {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.st-kt-hafta__kun {
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  padding: 12px 6px; border-radius: 12px; border: 1px solid var(--st-line);
  background: #fff; font: inherit; color: var(--st-muted);
  text-align: center;
}
button.st-kt-hafta__kun { cursor: pointer; }
button.st-kt-hafta__kun:hover { border-color: #9FBCE4; }
.st-kt-hafta__nom {
  font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.st-kt-hafta__sana { font-size: 19px; font-weight: 600; color: var(--st-navy); }
.st-kt-hafta__ish { font-size: 11.6px; }
.st-kt-hafta__kun.is-reja { background: #EEF3FB; border-color: #D9E5F6; }
.st-kt-hafta__kun.is-bajarildi { background: #EDF9F2; border-color: #C6E6D3; color: #0E6B3F; }
.st-kt-hafta__kun.is-kech { background: #FDF2E7; border-color: #F0DFB4; color: #8A4B12; }
.st-kt-hafta__kun.is-bugun { outline: 2px solid var(--st-blue); outline-offset: -2px; }

/* Oylik taqvim */
.st-kt-oylar {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
}
.st-kt-oy h4 {
  margin: 0 0 8px; font-size: 14.4px; color: var(--st-navy); font-weight: 600;
}
.st-kt-haftanom, .st-kt-tor {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px;
}
.st-kt-haftanom span {
  text-align: center; font-size: 11px; color: var(--st-muted); padding: 2px 0;
}
.st-kt-katak {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; border: 0; border-radius: 8px; padding: 0;
  font: inherit; font-size: 12.8px; color: var(--st-muted);
  background: transparent;
}
.st-kt-bos { aspect-ratio: 1 / 1; }
button.st-kt-katak { cursor: pointer; }
.st-kt-katak.is-reja { background: #E8F0FB; color: var(--st-navy); font-weight: 600; }
button.st-kt-katak.is-reja:hover { background: #D6E5F8; }
.st-kt-katak.is-bajarildi { background: #DDF3E6; color: #0E6B3F; }
.st-kt-katak.is-kech { background: #FBE7D6; color: #8A4B12; }
.st-kt-katak.is-bugun { outline: 2px solid var(--st-blue); outline-offset: -2px; }

.st-kt-afsona {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px;
  font-size: 12.6px; color: var(--st-muted);
}
.st-kt-afsona i {
  display: inline-block; width: 12px; height: 12px; border-radius: 4px;
  vertical-align: -2px; margin-right: 5px;
}
.st-kt-afsona i.is-reja { background: #E8F0FB; }
.st-kt-afsona i.is-bajarildi { background: #DDF3E6; }
.st-kt-afsona i.is-kech { background: #FBE7D6; }

/* ============================================================
   O'QIGICH

   O'qish paytida saytdan boshqa hech narsa ko'rinmaydi: yon
   menyu ham, tepadagi tasma ham yashiriladi. Sababi oddiy —
   kitob o'qiyotgan odamga navigatsiya kerak emas, unga matn
   kerak.

   Uch xil yorug'lik: qog'oz (kunduzi), sepiya (kechqurun),
   tun (qorong'ida). Tanlov brauzerda saqlanadi.
   ============================================================ */

html[data-oqish] .st-side,
html[data-oqish] .st-work__bar { display: none; }
html[data-oqish] .st-app { grid-template-columns: minmax(0, 1fr); }
html[data-oqish] .st-work__body--taqvim { max-width: none; padding: 0; }

html[data-oqish="qogoz"] { --oq-fon: #FBF8F2; --oq-siyoh: #23303F;
  --oq-yumshoq: #6A6357; --oq-chet: #E8E1D4; --oq-varaq: #FFFDF8; }
html[data-oqish="sepiya"] { --oq-fon: #F2E7D3; --oq-siyoh: #4A3A28;
  --oq-yumshoq: #8A7358; --oq-chet: #E0D2B8; --oq-varaq: #F8F0E1; }
html[data-oqish="tun"] { --oq-fon: #14181D; --oq-siyoh: #D7DDE4;
  --oq-yumshoq: #8A96A3; --oq-chet: #262D35; --oq-varaq: #1B2026; }

html[data-oqish] body, html[data-oqish] .st-app {
  background: var(--oq-fon);
}

.st-kt-oqish { --oq-olcham: 19px; min-height: 100vh; }

.st-kt-oqish__bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; min-height: 58px;
  background: color-mix(in srgb, var(--oq-fon) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--oq-chet);
}
.st-kt-oqish__nom {
  flex: 1 1 auto; min-width: 0; line-height: 1.3;
}
.st-kt-oqish__nom b {
  display: block; font-size: 14.6px; color: var(--oq-siyoh);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-kt-oqish__nom span { font-size: 12.4px; color: var(--oq-yumshoq); }
.st-kt-oqish__asbob { display: flex; align-items: center; gap: 8px; }

.st-kt-yumaloq {
  width: 36px; height: 36px; flex: 0 0 auto;
  border: 1px solid var(--oq-chet); border-radius: 50%;
  background: var(--oq-varaq); color: var(--oq-siyoh);
  font: 500 14px var(--st-font); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.st-kt-yumaloq:hover { border-color: var(--oq-yumshoq); }

.st-kt-yoruglik {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: var(--oq-varaq); border: 1px solid var(--oq-chet);
}
.st-kt-yoruglik button {
  padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; font: 500 12.4px var(--st-font); color: var(--oq-yumshoq);
}
.st-kt-yoruglik button.is-faol {
  background: var(--oq-fon); color: var(--oq-siyoh); font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.st-kt-oqish__chiziq {
  position: sticky; top: 58px; z-index: 19; height: 2px;
  background: var(--oq-chet);
}
.st-kt-oqish__chiziq i {
  display: block; height: 100%; width: 0;
  background: var(--kt-oltin); transition: width .12s linear;
}

/* ---------- O'qish maydoni -----------------------------------

   Qator uzunligi 34em atrofida: bu ~62-68 belgi, ya'ni ko'z
   qatordan qatorga adashmasdan o'tadigan uzunlik. Shrift —
   serif: ekrandan uzoq o'qishda harflarning oyoqchasi ko'zni
   qatordan chiqarmaydi. */

.st-kt-matn {
  max-width: 34em; margin: 0 auto; padding: 46px 24px 90px;
  font: var(--oq-olcham)/1.78 Georgia, 'Times New Roman', 'Noto Serif', serif;
  color: var(--oq-siyoh);
}
/* MATN CHAP CHETIDAN TEKISLANADI, IKKI CHETIDAN EMAS.

   Kitobda matn ikki chetdan tekislanadi, lekin bunga so'z
   ko'chirish qoidasi kerak. Brauzerda o'zbek tili uchun bunday
   qoida yo'q: `justify` qo'yilganda so'zlar orasida katta
   bo'shliqlar — «daryolar» paydo bo'ldi. Chap chetidan
   tekislangan matn o'qishga qulayroq. */
.st-kt-matn p { margin: 0 0 1.05em; }
.st-kt-qism { position: relative; }
.st-kt-qism + .st-kt-qism { margin-top: 2.2em; }

.st-kt-matn h3 {
  margin: 1.8em 0 .9em;
  font: 600 1.06em/1.35 Georgia, 'Times New Roman', serif;
  color: var(--oq-siyoh); text-align: center;
  letter-spacing: .01em;
}
.st-kt-qism:first-child h3 { margin-top: 0; }
.st-kt-matn h3 i { font-style: normal; font-size: .82em; color: var(--oq-yumshoq); }
.st-kt-matn h3::after {
  content: ''; display: block; width: 42px; height: 1px;
  background: var(--kt-oltin); margin: .7em auto 0;
}

/* Bet raqami chekkada — chinakam kitobdagidek. Tor ekranda
   matnning ustida qatorcha bo'lib qoladi. */
.st-kt-betraqam {
  position: absolute; left: -4.2em; top: .35em;
  font: 500 .66em/1 var(--st-font); color: var(--oq-yumshoq);
  letter-spacing: .04em;
}
.st-kt-betraqam::after { content: '-bet'; }

.st-kt-oxir {
  margin-top: 3.4em; padding-top: 2.2em;
  border-top: 1px solid var(--oq-chet); text-align: center;
}
.st-kt-oxir__nishon {
  display: block; font-size: 18px; color: var(--kt-oltin); margin-bottom: 10px;
}
.st-kt-oxir p {
  margin: 0 0 16px; font-size: 14.6px; color: var(--oq-yumshoq);
  text-align: center;
}

/* ---------- Telefon ------------------------------------------- */

@media (max-width: 980px) {
  .st-kt-bosh { grid-template-columns: minmax(0, 1fr); }
  .st-kt-bosh__javon { display: none; }
  .st-kt-varaq--ikki, .st-kt-kitobbosh, .st-kt-boshliq {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-kt-muqova--katta { width: 132px; flex-basis: 132px; }
  .st-kt-boshliq .st-kt-qosh { max-width: 190px; }
}

@media (max-width: 720px) {
  .st-kt-javon { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 20px 14px; }
  .st-kt-qadam li { flex-basis: 100%; }
  .st-kt-varaq { padding: 18px; }
  .st-kt-rek { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .st-kt-rek dd { margin-bottom: 10px; }
  .st-kt-oylar { grid-template-columns: minmax(0, 1fr); }
  .st-kt-amal { flex-direction: column-reverse; }
  .st-kt-amal .st-mini { width: 100%; }
  .st-kt-bugun .st-kt-amal { flex-direction: column; }
  .st-kt-hafta { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .st-kt-matn { padding: 30px 18px 70px; font-size: calc(var(--oq-olcham) - 1px); }
  .st-kt-betraqam {
    position: static; display: block; margin-bottom: .5em;
    text-align: center; font-size: .7em;
  }
  /* Tor ekranda tasma ikki qatorga bo'linadi: birinchi qatorda
     qaytish tugmasi va kitob nomi, ikkinchisida asboblar. */
  .st-kt-oqish__bar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .st-kt-oqish__nom { flex-basis: calc(100% - 50px); }
  .st-kt-oqish__asbob { flex-basis: 100%; justify-content: space-between; }
  .st-kt-oqish__chiziq { top: 0; }
}
