/* ============================================================
   Hujjat shablonlari (#shablonlar) — js/org-docs.js, v95
   v93 tizimi: tokenlar body.org-mode da (style.css): --g1/--g2/--g3 shisha, --op-* ranglar va radiuslar, body.dark — tun.
   Katalog: sarlavha · qidiruv + toifa chiplari · toifa kartalari (2-daraja shisha) · qatorlar (1-daraja rang).
   Namuna oynasi (.odc-modal) body ga qoʻshiladi: kompyuterda markazda (≤ 760px), telefonda pastdan varaq (tutqich bilan).
   Qatlam: oyna 128 — ProSheet (130) undan yuqorida ochiladi.
   ============================================================ */
.odc { display: flex; flex-direction: column; gap: 18px; container: odc / inline-size; }
.odc [hidden], .odc-modal [hidden] { display: none !important; }
.odc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.odc :where(h1, h2, h3, p, ul, ol, dl, dd, figure), .odc-modal :where(h2, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.odc ul, .odc ol, .odc-modal ul { list-style: none; }

/* --- Sarlavha --- */
.odc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "art t" "steps steps"; gap: 14px 16px; align-items: center; }
.odc-head-art { grid-area: art; width: 64px; height: 64px; align-self: start; filter: drop-shadow(0 10px 16px rgba(20, 42, 82, .22)); }
.odc-head-t { grid-area: t; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.odc-head h1 { font: 800 28px/1.15 'Manrope', 'Inter', sans-serif; letter-spacing: -.015em; color: var(--op-ink); text-wrap: balance; }
.odc-head h1:focus { outline: none; }
.odc-head-t > p { max-width: 70ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.odc-planw:empty { display: none; }
.odc-plan { justify-self: start; align-self: flex-start; display: inline-grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 8px;
  margin-top: 2px; padding: 6px 8px 6px 12px; border-radius: 999px;
  font-size: 13px; line-height: 1.35; color: var(--text); background: var(--g1-bg); border: var(--g1-border); box-shadow: var(--g1-hi); }
@container odc (max-width: 559.98px) {
  .odc-plan { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 9px 12px 6px; border-radius: 14px; }
  .odc-plan > svg { margin-top: 2px; }
  .odc-plan > .odc-tlink { grid-column: 2; justify-self: start; padding: 0; }
}
.odc-plan > svg { width: 15px; height: 15px; flex: 0 0 auto; color: #1f7a4d; }
.odc-plan b { color: var(--op-ink); }
.odc-plan.free { background: rgba(251, 243, 214, .8); border-color: rgba(201, 162, 39, .45); }
.odc-plan.free > svg { color: #86650c; }
.odc-steps { grid-area: steps; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: none; }
.odc-steps li { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 6px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--op-ink); background: var(--op-tint); }
.odc-steps li span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 800 12px/1 'Inter', sans-serif; color: #142a52; background: #e9d28a; }
@container odc (min-width: 980px) {
  .odc-head { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art t steps"; align-items: end; }
  .odc-steps { flex-direction: column; gap: 6px; }
}

/* --- Qidiruv va toifalar --- */
.odc-tools { display: flex; flex-direction: column; gap: 12px; }
.odc-search { position: relative; display: flex; align-items: center; max-width: 640px; }
.odc-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); pointer-events: none; }
.odc-search-ic svg { width: 18px; height: 18px; }
.odc-search input { width: 100%; min-height: 48px; padding: 0 48px 0 44px; border-radius: 14px; font: 400 15px/1.3 'Inter', sans-serif; color: var(--text);
  background: var(--op-field); border: 1px solid rgba(31, 59, 115, .2); box-shadow: 0 1px 2px rgba(20, 42, 82, .04); outline: none; -webkit-appearance: none; appearance: none; }
.odc-search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.odc-search input::placeholder { color: #5d6b85; opacity: 1; }
.odc-search input:focus { border-color: var(--navy-light); box-shadow: 0 0 0 3px rgba(47, 84, 168, .16); }
.odc-qx { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px;
  color: var(--muted); background: transparent; cursor: pointer; }
.odc-qx:hover { color: var(--op-ink); background: var(--op-tint-h); }
.odc-qx svg { width: 16px; height: 16px; }
.odc-catsw { min-width: 0; }
.odc-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.odc-cat { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 14px; border-radius: 999px; white-space: nowrap; text-decoration: none;
  font: 600 13.5px/1 'Inter', sans-serif; color: var(--op-ink); background: var(--g1-bg); border: var(--g1-border); box-shadow: var(--g1-hi), 0 1px 2px rgba(20, 42, 82, .05);
  transition: background-color var(--m1, .15s), border-color var(--m1, .15s), color var(--m1, .15s); }
.odc-cat:hover { background: var(--op-tint-h); }
.odc-cat[aria-current="page"] { color: #fff; border-color: transparent; background: linear-gradient(150deg, #1f3b73, #2f54a8); box-shadow: 0 4px 12px rgba(31, 59, 115, .2); }
.odc-n { min-width: 24px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 999px; font: 700 12px/1 'Inter', sans-serif;
  font-variant-numeric: tabular-nums; color: var(--navy); background: rgba(31, 59, 115, .08); }
.odc-cat[aria-current="page"] .odc-n { color: #fff; background: rgba(255, 255, 255, .18); }
.odc-cat:not(:has(.odc-n)) { padding-right: 14px; }
.odc-plus { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font: 800 10.5px/1 'Inter', sans-serif; letter-spacing: .04em;
  color: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); vertical-align: middle; }
@media (pointer: coarse) { .odc-cat { min-height: 44px; } }

/* --- Natijalar va toifa kartalari --- */
.odc-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.odc-secs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container odc (min-width: 900px) { .odc-secs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.odc-sec { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--op-r-card, 20px);
  background: var(--g2-bg); border: var(--g2-border); box-shadow: var(--g2-hi), var(--g2-shadow);
  -webkit-backdrop-filter: saturate(var(--g2-sat)) blur(var(--g2-blur)); backdrop-filter: saturate(var(--g2-sat)) blur(var(--g2-blur)); }
.odc-sec-h { display: flex; align-items: flex-start; gap: 12px; }
.odc-sec-ic { width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--gold-soft);
  background: linear-gradient(150deg, #142a52, #2f54a8); box-shadow: 0 6px 14px rgba(20, 42, 82, .2); }
.odc-sec-ic svg { width: 20px; height: 20px; }
.odc-sec-h > div { min-width: 0; padding-top: 1px; }
.odc-sec-h :is(h2, h3) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 800 17px/1.3 'Manrope', 'Inter', sans-serif; color: var(--op-ink); }
.odc-sec-h p { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.odc-sec.is-cat { padding: 18px; }
.odc-sec.is-cat .odc-sec-h :is(h2, h3) { font-size: 20px; }
.odc-grp { display: flex; flex-direction: column; gap: 8px; }
.odc-grp + .odc-grp { margin-top: 6px; }
.odc-grp h3 { display: flex; align-items: center; gap: 8px; padding: 4px 2px 0; font: 800 11.5px/1.3 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.odc-grp h3 span { font-weight: 700; letter-spacing: 0; color: var(--muted); opacity: .85; }
.odc-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@container odc (min-width: 760px) { .odc-sec.is-cat .odc-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.odc-row { min-height: 58px; height: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 9px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: var(--op-tint); border: 1px solid transparent; transition: background-color var(--m1, .15s), border-color var(--m1, .15s); }
.odc-row:hover { background: var(--op-tint-h); border-color: rgba(47, 84, 168, .22); }
.odc-doc { width: 36px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--navy-light);
  background: var(--op-card); border: 1px solid var(--op-card-b); box-shadow: 0 1px 2px rgba(20, 42, 82, .06); }
.odc-doc svg { width: 18px; height: 18px; }
.odc-row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.odc-row-n { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--op-ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.odc-row-m { font-size: 12.5px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odc-row mark { padding: 0 1px; border-radius: 3px; color: inherit; background: rgba(233, 210, 138, .7); }
.odc-go { flex: 0 0 auto; display: grid; color: var(--muted); opacity: .7; transition: transform var(--m1, .15s), opacity var(--m1, .15s); }
.odc-go svg { width: 16px; height: 16px; }
.odc-row:hover .odc-go { opacity: 1; transform: translateX(2px); }
.odc-lk { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 999px; font: 800 11px/1 'Inter', sans-serif;
  letter-spacing: .03em; color: var(--op-gold-ink); background: rgba(251, 243, 214, .7); border: 1px solid rgba(201, 162, 39, .5); }
.odc-lk svg { width: 12px; height: 12px; }
.odc-lk.plus { color: #142a52; border-color: transparent; background: linear-gradient(135deg, #f3e3a6, #c9a227); }
.odc-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px; border-radius: 10px; text-decoration: none;
  font: 700 13.5px/1 'Inter', sans-serif; color: var(--navy-light); }
.odc-more svg { width: 15px; height: 15px; transition: transform var(--m1, .15s); }
.odc-more:hover svg { transform: translateX(3px); }
.odc-tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 4px; border: 0; background: none; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; font: 700 13px/1.3 'Inter', sans-serif; color: var(--navy-light); }
.odc-tlink svg { width: 15px; height: 15px; flex: 0 0 auto; }
.odc-note-plus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: var(--op-r-panel, 16px);
  background: rgba(251, 243, 214, .75); border: 1px solid rgba(201, 162, 39, .45); }
.odc-note-plus > svg { width: 20px; height: 20px; flex: 0 0 auto; color: #86650c; }
.odc-note-plus > div { flex: 1 1 260px; min-width: 0; }
.odc-note-plus b { color: var(--op-ink); font-size: 14px; }
.odc-note-plus p { margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--text); }
.odc-res { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.odc-res b { color: var(--op-ink); }
.odc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px 30px; text-align: center; border-radius: var(--op-r-card, 20px);
  background: var(--g2-bg); border: var(--g2-border); box-shadow: var(--g2-hi), var(--g2-shadow); }
.odc-empty img { width: 96px; height: 96px; margin-bottom: 4px; filter: drop-shadow(0 10px 18px rgba(20, 42, 82, .2)); }
.odc-empty b { font: 800 17px/1.3 'Manrope', 'Inter', sans-serif; color: var(--op-ink); }
.odc-empty > span { max-width: 44ch; font-size: 13.5px; color: var(--muted); }
.odc-empty .op-btn { margin-top: 10px; }
.odc-err { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px; border-radius: var(--op-r-panel, 16px); font-size: 14px; color: #8c1d16;
  background: rgba(179, 38, 30, .06); border: 1px solid rgba(179, 38, 30, .28); }
.odc-err > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.odc-err > span { flex: 1 1 240px; }
.odc-skel { gap: 10px; }
.odc-sk { display: block; border-radius: 12px; background: linear-gradient(90deg, var(--op-tint) 25%, var(--op-tint-h) 50%, var(--op-tint) 75%); background-size: 200% 100%;
  animation: odcSk 1.3s linear infinite; }
.odc-sk.h { width: 46%; height: 26px; margin-bottom: 4px; }
.odc-sk.r { height: 52px; }
.odc-sk.r.s { width: 64%; }
@keyframes odcSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* --- Tun rejimi (katalog) --- */
body.dark .odc-plan.free { background: rgba(201, 162, 39, .12); border-color: rgba(233, 210, 138, .38); }
body.dark .odc-plan.free > svg, body.dark .odc-note-plus > svg { color: #e9d28a; }
body.dark .odc-plan > svg { color: #8fdcb4; }
body.dark .odc-search input { color: #e3ebfb; border-color: rgba(120, 145, 195, .35); color-scheme: dark; }
body.dark .odc-search input::placeholder { color: #8395b8; }
body.dark .odc-n { color: #c9d6f2; background: rgba(120, 145, 195, .2); }
body.dark .odc-doc { color: #9db9ff; }
body.dark .odc-row mark { color: #142a52; background: #e9d28a; }
body.dark .odc-lk { background: rgba(201, 162, 39, .14); border-color: rgba(233, 210, 138, .45); }
body.dark .odc-lk.plus { color: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); }
body.dark .odc-more, body.dark .odc-tlink { color: #9db9ff; }
body.dark .odc-note-plus { background: rgba(201, 162, 39, .1); border-color: rgba(233, 210, 138, .35); }
body.dark .odc-err { color: #ffb4ab; background: rgba(255, 155, 143, .08); border-color: rgba(255, 155, 143, .3); }

/* --- Namuna oynasi --- */
html.odc-lock { overflow: hidden; }
.odc-modal { position: fixed; inset: 0; z-index: 128; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: rgba(10, 20, 40, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: odcFade var(--m2, .22s) ease;
  font: 400 14px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); text-align: left; }
body.dark .odc-modal { background: rgba(2, 6, 18, .66); }
.odc-modal *, .odc-modal *::before, .odc-modal *::after { box-sizing: border-box; }
.odc-sheet { position: relative; width: min(760px, 100%); max-height: min(90vh, 100%); max-height: min(90dvh, 100%); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: var(--g3-bg, #fff); border: var(--g3-border, 1px solid #fff); box-shadow: var(--g3-hi, none), var(--g3-shadow, 0 30px 80px rgba(5, 12, 30, .3));
  -webkit-backdrop-filter: saturate(var(--g3-sat, 1.4)) blur(var(--g3-blur, 24px)); backdrop-filter: saturate(var(--g3-sat, 1.4)) blur(var(--g3-blur, 24px));
  animation: odcIn var(--m3, .3s) var(--m-spring, cubic-bezier(.2, .8, .2, 1)); }
@keyframes odcIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes odcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes odcUp { from { transform: translateY(100%); } to { transform: none; } }
.odc-grab { display: none; }
.odc-sh-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 20px 14px 24px; border-bottom: 1px solid var(--op-line); }
.odc-sh-ic { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: var(--gold-soft);
  background: linear-gradient(150deg, #142a52, #2f54a8); box-shadow: 0 6px 14px rgba(20, 42, 82, .22); }
.odc-sh-ic svg { width: 21px; height: 21px; }
.odc-sh-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.odc-sh-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 800 11.5px/1.35 'Inter', sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.odc-sh-cat:empty { display: none; }
.odc-sh-t h2 { font: 800 21px/1.3 'Manrope', 'Inter', sans-serif; letter-spacing: -.01em; color: var(--op-ink); overflow-wrap: anywhere; text-wrap: balance; }
.odc-sh-t h2:focus { outline: none; }
.odc-x { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; margin: -4px -4px 0 0; border-radius: 12px; cursor: pointer;
  color: var(--op-ink); background: var(--op-tile); border: 1px solid var(--op-line); }
.odc-x:hover { background: var(--op-tint-h); }
.odc-x svg { width: 18px; height: 18px; }
.odc-sh-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 16px 24px 18px; }
.odc-auto { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--text);
  background: rgba(31, 122, 77, .07); border: 1px solid rgba(31, 122, 77, .26); }
.odc-auto > svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: #1f7a4d; }
.odc-auto > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.odc-auto b { color: var(--op-ink); }
.odc-auto dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.odc-auto dl > div { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 13px; }
.odc-auto dt { color: var(--muted); }
.odc-auto dt::after { content: ':'; }
.odc-auto dd { font-weight: 600; color: var(--op-ink); overflow-wrap: anywhere; }
.odc-auto.none { background: var(--op-tint); border-color: var(--op-line); }
.odc-auto.none > svg { color: var(--navy-light); }
.odc-auto-miss { font-size: 12.5px; color: #86650c; }
.odc-fields { display: flex; flex-direction: column; gap: 8px; }
.odc-fields > p { font-size: 13px; color: var(--muted); }
.odc-fields > p b { color: var(--op-ink); }
.odc-fields ul { display: flex; flex-wrap: wrap; gap: 6px; }
.odc-fields li { max-width: min(100%, 300px); padding: 3px 9px; border-radius: 7px; font-size: 12.5px; line-height: 1.4; color: #4a3505;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #fff1a8; border: 1px solid rgba(201, 162, 39, .45); }
.odc-fields li.more { color: var(--muted); background: var(--op-tint); border-color: var(--op-line); }
.odc-paperw { position: relative; margin: 2px 0 0; }
.odc-paper { position: relative; max-height: 52vh; overflow: hidden; padding: 26px 30px 40px; border-radius: 6px;
  font: 400 15px/1.6 'Times New Roman', Tinos, 'Liberation Serif', Georgia, serif; color: #1b2433; background: #fff;
  border: 1px solid rgba(20, 42, 82, .12); box-shadow: 0 1px 2px rgba(20, 42, 82, .06), 0 10px 26px rgba(20, 42, 82, .10); }
.odc-paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%); }
.odc-paper:focus-visible { outline: 3px solid rgba(47, 84, 168, .6); outline-offset: 2px; }
.odc-paper p { text-align: justify; hyphens: manual; overflow-wrap: anywhere; }
.odc-paper p + p { margin-top: 3px; }
.odc-paper p.h { margin: 6px 0; text-align: center; font-weight: 700; letter-spacing: .02em; }
.odc-paper p.gap { height: 8px; }
.odc-ph { padding: 0 2px; border-radius: 2px; color: #1b2433; background: #fff176; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.odc-ph.auto { background: rgba(31, 122, 77, .14); box-shadow: inset 0 -1.5px 0 rgba(31, 122, 77, .55); }
.odc-paper.is-load { display: flex; flex-direction: column; gap: 10px; min-height: 220px; font: inherit; }
.odc-paper.is-load .odc-sk.r { height: 16px; border-radius: 6px; }
.odc-paper.is-load::after { display: none; }
.odc-paper-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.odc-paper-note svg { width: 14px; height: 14px; flex: 0 0 auto; }
.odc-sh-err { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 18px 16px; border-radius: 14px; font-size: 14px; color: var(--text);
  background: var(--op-tint); border: 1px solid var(--op-line); }
.odc-sh-err > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--navy-light); }
.odc-sh-err p { flex: 1 1 220px; }
.odc-sh-foot { display: flex; flex-direction: column; gap: 10px; padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--op-line);
  background: rgba(250, 251, 254, .72); }
body.dark .odc-sh-foot { background: rgba(14, 23, 48, .5); }
.odc-sh-lk { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--op-gold-ink); }
.odc-sh-lk svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.odc-msg.err { padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; color: #8c1d16; background: rgba(179, 38, 30, .06); border: 1px solid rgba(179, 38, 30, .28); }
.odc-msg.ok { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45;
  background: rgba(31, 122, 77, .07); border: 1px solid rgba(31, 122, 77, .28); }
.odc-msg.ok > p { display: flex; gap: 8px; }
.odc-msg.ok > p svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #1f7a4d; }
.odc-msg.ok b { color: var(--op-ink); }
.odc-msg.err:empty, .odc-msg.ok:empty { display: none; }
/* «Yopish» chapda, asosiy tugma oʻngda; sigʻmasa (tor telefon) asosiy tugma yuqori qatorga oʻtadi (wrap-reverse) */
.odc-sh-act { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: 10px; }
.odc-sh-act .op-btn { min-height: 46px; padding: 0 18px; border-radius: 13px; font-size: 14.5px; }
.odc-sh-act .op-btn svg { width: 18px; height: 18px; }
.odc-dl { min-width: 248px; }
.odc-dl.is-lk { color: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); box-shadow: 0 4px 12px rgba(201, 162, 39, .28); }
.odc-dl.is-lk:hover { background: linear-gradient(135deg, #f6e9b8, #d1ab35); }
body.dark .odc-dl.is-lk { color: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); }
body.dark .odc-dl.is-lk:hover { background: linear-gradient(135deg, #f6e9b8, #d1ab35); }
.odc-dl[aria-busy] { cursor: progress; opacity: .85 !important; }
.odc-spin { width: 17px; height: 17px; flex: 0 0 auto; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: odcSpin .7s linear infinite; }
@keyframes odcSpin { to { transform: rotate(360deg); } }
.odc-tg { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.odc-tg svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; }
.odc-modal :focus-visible { outline: 3px solid rgba(47, 84, 168, .6); outline-offset: 2px; }

/* tun: qogʻoz — xira, koʻzni qamashtirmaydi; sariq maydonlar Word dagidek ajralib turadi */
body.dark .odc-auto { background: rgba(143, 220, 179, .08); border-color: rgba(143, 220, 179, .28); }
body.dark .odc-auto > svg, body.dark .odc-msg.ok > p svg { color: #8fdcb4; }
body.dark .odc-auto-miss, body.dark .odc-sh-lk { color: #e9d28a; }
body.dark .odc-fields li { color: #2e2203; background: #f3dc94; border-color: transparent; }
body.dark .odc-fields li.more { color: #c9d6f2; background: rgba(120, 145, 195, .16); }
body.dark .odc-paper { color: #dbe4f6; background: #101a33; border-color: rgba(140, 165, 215, .24); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
body.dark .odc-paper::after { background: linear-gradient(rgba(16, 26, 51, 0), #101a33 85%); }
body.dark .odc-ph { color: #1b1403; background: #f3dc94; }
body.dark .odc-ph.auto { color: #d9f5e6; background: rgba(143, 220, 179, .16); box-shadow: inset 0 -1.5px 0 rgba(143, 220, 179, .6); }
body.dark .odc-msg.err { color: #ffb4ab; background: rgba(255, 155, 143, .08); border-color: rgba(255, 155, 143, .3); }
body.dark .odc-msg.ok { background: rgba(143, 220, 179, .08); border-color: rgba(143, 220, 179, .28); }
body.dark .odc-modal :focus-visible { outline-color: rgba(157, 185, 255, .8); }

/* --- Telefon / tor ekran --- */
@container odc (max-width: 559.98px) {
  .odc-head { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "steps"; }
  .odc-head-art { display: none; }
  .odc-head h1 { font-size: 23px; }
  .odc-steps { display: none; }
  .odc-sec { padding: 12px; }
  .odc-sec.is-cat { padding: 14px 12px; }
  .odc-sec-ic { width: 36px; height: 36px; border-radius: 11px; }
  .odc-sec-h :is(h2, h3) { font-size: 16px; }
  .odc-sec.is-cat .odc-sec-h :is(h2, h3) { font-size: 18px; }
  /* umumiy koʻrinish: har toifadan 3 ta qator (qolgani — «Barcha N ta shablon»); qidiruv natijalari toʻliq */
  .odc-secs.is-ov .odc-rows > li:nth-child(n+4) { display: none; }
}
@media (max-width: 1023.98px) {
  /* chiplar bir qatorda gorizontal aylanadi (sahifa emas — faqat qator), chetgacha */
  .odc-catsw { margin: 0 calc(-1 * var(--op-pad, 24px)); }
  .odc-cats { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    padding: 2px var(--op-pad, 24px) 4px; scroll-padding: 0 var(--op-pad, 24px); }
  .odc-cats::-webkit-scrollbar { display: none; }
  .odc-cats li { flex: 0 0 auto; scroll-snap-align: start; }
  .odc-search { max-width: none; }
}
@media (max-width: 639.98px) {
  .odc-modal { align-items: flex-end; padding: 0; }
  .odc-sheet { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 22px 22px 0 0; border-bottom: 0; animation: odcUp var(--m3, .3s) var(--m-spring, cubic-bezier(.2, .8, .2, 1)); }
  .odc-grab { display: flex; justify-content: center; padding: 8px 0 0; touch-action: none; cursor: grab; }
  .odc-grab span { width: 40px; height: 5px; border-radius: 3px; background: rgba(31, 59, 115, .25); }
  body.dark .odc-grab span { background: rgba(200, 215, 245, .3); }
  .odc-sh-head { gap: 12px; padding: 8px 12px 12px 16px; }
  .odc-sh-ic { width: 40px; height: 40px; border-radius: 12px; }
  .odc-sh-t h2 { font-size: 18px; }
  .odc-sh-body { padding: 14px 16px 16px; }
  .odc-paper { padding: 18px 16px 36px; font-size: 14.5px; max-height: none; }
  .odc-paper p { text-align: left; }
  .odc-sh-foot { gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* ixcham: qiymatlar namunada yashil belgi bilan koʻrinadi — roʻyxat yashiriladi */
  .odc-auto { padding: 10px 12px; }
  .odc-auto dl, .odc-fields ul { display: none; }   /* maydonlar namunada sariq belgi bilan koʻrinadi — telefonda faqat soni */
  .odc-sh-lk { font-size: 12.5px; }
  .odc-sh-act .op-btn { padding: 0 14px; }
  .odc-sh-act .op-btn { flex: 1 0 auto; }
  .odc-sh-act .odc-dl { flex: 999 1 auto; min-width: 0; }
}
@media (max-width: 1023.98px) and (max-height: 520px) {
  .odc-sheet { max-height: 100vh; max-height: 100dvh; }
  .odc-paper { max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .odc-sheet, .odc-modal { animation: none; }
  .odc-sk { animation: none; }
  .odc-row:hover .odc-go, .odc-more:hover svg { transform: none; }
}
@media print { .odc-tools, .odc-planw, .odc-steps { display: none !important; } }
