/* ============================================================
   Sudga murojaat yoʻriqnomasi (#sud, #sud/<qadam>) — js/org-sud.js, v96 (Pro+)
   v93 tizimi: tokenlar body.org-mode da (style.css): --g1/--g2 shisha, --op-* ranglar va radiuslar, body.dark — tun.
   Umumiy koʻrinish: sarlavha · nizo turlari (4 karta) · qadamlar (8 + «Tashkilotga daʼvo kelsa») · rasmiy xizmatlar.
   Qadam sahifasi: chap qadamlar roʻyxati (kompyuter; telefonda — gorizontal chiplar) · asosiy ustun (qoidalar, roʻyxat, shablonlar).
   Bepul / Pro: tanishtiruv paneli (oltin) va qulfli qadamlar.
   ============================================================ */
.osd { display: flex; flex-direction: column; gap: 18px; container: osd / inline-size; }
.osd-in { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.osd [hidden] { display: none !important; }
.osd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.osd :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.osd :where(ul, ol) { list-style: none; }
.osd a { -webkit-tap-highlight-color: transparent; }
.osd :focus-visible { outline: 3px solid rgba(47, 84, 168, .6); outline-offset: 2px; }
.osd h1:focus, .osd h1:focus-visible { outline: none; }

/* --- Sarlavha --- */
.osd-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.osd-head-ic { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; color: var(--gold-soft);
  background: linear-gradient(150deg, #142a52, #2f54a8); box-shadow: 0 10px 22px rgba(20, 42, 82, .24), inset 0 1px 0 rgba(255, 255, 255, .18); }
.osd-head-ic svg { width: 30px; height: 30px; }
.osd-head-t { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.osd-eyebrow { display: flex; align-items: center; gap: 8px; font: 800 11.5px/1.3 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.osd-head h1 { font: 800 28px/1.15 'Manrope', 'Inter', sans-serif; letter-spacing: -.015em; color: var(--op-ink); text-wrap: balance; }
.osd-head-t > p { max-width: 74ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
.osd-statew:empty { display: none; }
.osd-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 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); }
.osd-state svg { width: 15px; height: 15px; flex: 0 0 auto; }
.osd-state b { color: var(--op-ink); }
.osd-state.ok svg { color: #1f7a4d; }
.osd-state.lk { background: rgba(251, 243, 214, .8); border-color: rgba(201, 162, 39, .45); }
.osd-state.lk svg { color: #86650c; }
.osd-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;
  text-transform: none; color: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45); }

/* --- Boʻlim kartalari (umumiy koʻrinish) --- */
.osd-sec { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; 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)); }
.osd-sec-h { display: flex; align-items: flex-start; gap: 12px; }
.osd-n { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font: 800 14px/1 'Inter', sans-serif; color: #142a52; background: #e9d28a; }
.osd-sec-h h2, .osd-off h2 { font: 800 18px/1.3 'Manrope', 'Inter', sans-serif; color: var(--op-ink); }
.osd-sec-h p { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* nizo turlari */
.osd-tgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@container osd (min-width: 560px) { .osd-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container osd (min-width: 1120px) { .osd-tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.osd-track { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; cursor: pointer;
  text-align: left; font: inherit; color: var(--text); background: var(--op-tint); border: 1.5px solid transparent;
  transition: background-color var(--m1, .15s), border-color var(--m1, .15s), box-shadow var(--m1, .15s); }
.osd-track:hover { background: var(--op-tint-h); border-color: rgba(47, 84, 168, .22); }
.osd-track.on { background: var(--op-card); border-color: #2f54a8; box-shadow: 0 6px 18px rgba(31, 59, 115, .14), inset 3px 0 0 #c9a227; }
.osd-track-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--gold-soft); background: linear-gradient(150deg, #142a52, #2f54a8); }
.osd-track-ic svg { width: 20px; height: 20px; }
.osd-track-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.osd-track-t b { font: 800 15.5px/1.3 'Manrope', 'Inter', sans-serif; color: var(--op-ink); }
.osd-track-t small { font-size: 13px; line-height: 1.4; color: var(--text); }
.osd-track-t em { font-style: normal; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.osd-track-c { margin-top: auto; display: flex; align-items: flex-start; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--navy-light); }
.osd-track-c svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.osd-track-ok { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; display: none; place-items: center; border-radius: 50%; color: #fff; background: #2f54a8; }
.osd-track-ok svg { width: 13px; height: 13px; }
.osd-track.on .osd-track-ok { display: grid; }
.osd-help { border-radius: 14px; background: var(--op-tint); }
.osd-help summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px; cursor: pointer; list-style: none;
  font: 700 14px/1.3 'Inter', sans-serif; color: var(--op-ink); }
.osd-help summary::-webkit-details-marker { display: none; }
.osd-help summary > svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--navy-light); }
.osd-help summary > svg:last-child { margin-left: auto; color: var(--muted); transition: transform var(--m1, .15s); }
.osd-help[open] summary > svg:last-child { transform: rotate(90deg); }
.osd-help ul { display: flex; flex-direction: column; gap: 4px; padding: 0 8px 10px; }
.osd-help li button { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px; min-height: 48px; padding: 8px 10px; border: 0;
  border-radius: 12px; cursor: pointer; text-align: left; font: 400 13.5px/1.4 'Inter', sans-serif; color: var(--text); background: transparent; }
.osd-help li button:hover { background: var(--op-tint-h); }
.osd-help li b { font-size: 12.5px; font-weight: 700; color: var(--navy-light); white-space: nowrap; }
.osd-help li svg { width: 14px; height: 14px; color: var(--muted); }
@container osd (max-width: 559.98px) {
  .osd-help li button { grid-template-columns: minmax(0, 1fr) auto; }
  .osd-help li b { grid-column: 1; grid-row: 2; }
  .osd-help li svg { grid-row: 1 / span 2; grid-column: 2; }
}

/* qadamlar */
.osd-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; counter-reset: none; }
@container osd (min-width: 640px) { .osd-steps:not(.one) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container osd (min-width: 1120px) { .osd-steps:not(.one) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.osd-stepc { width: 100%; height: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; text-decoration: none;
  font: inherit; text-align: left; cursor: pointer; color: var(--text); background: var(--op-tint); border: 1px solid transparent;
  transition: background-color var(--m1, .15s), border-color var(--m1, .15s); }
.osd-stepc:hover { background: var(--op-tint-h); border-color: rgba(47, 84, 168, .22); }
.osd-step-n { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; font: 800 14px/1 'Inter', sans-serif;
  color: var(--navy); background: var(--op-card); border: 1px solid var(--op-card-b); box-shadow: 0 1px 2px rgba(20, 42, 82, .06); }
.osd-step-n svg { width: 16px; height: 16px; }
.osd-step-n.done { color: #fff; border-color: transparent; background: #1f7a4d; }
.osd-step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.osd-step-t b { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--op-ink); }
.osd-step-t small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.osd-go { display: grid; color: var(--muted); opacity: .7; transition: transform var(--m1, .15s), opacity var(--m1, .15s); }
.osd-go svg { width: 16px; height: 16px; }
.osd-stepc:hover .osd-go { opacity: 1; transform: translateX(2px); }
.osd-steps.one .osd-stepc { background: rgba(31, 59, 115, .07); border: 1px dashed rgba(47, 84, 168, .35); }
.osd-steps.one .osd-step-n { color: var(--gold-soft); border-color: transparent; background: linear-gradient(150deg, #142a52, #2f54a8); }
.osd-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: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); }
.osd-lk svg { width: 12px; height: 12px; }
.osd-stepc.is-lk .osd-step-n { color: var(--muted); }

/* tanishtiruv (Bepul / Pro) */
.osd-teaser { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 20px; padding: 20px; border-radius: var(--op-r-card, 20px);
  background: linear-gradient(150deg, rgba(251, 243, 214, .92), rgba(255, 255, 255, .82)); border: 1px solid rgba(201, 162, 39, .45);
  box-shadow: 0 10px 28px rgba(134, 101, 12, .12); }
.osd-teaser img { width: 88px; height: 88px; flex: 0 0 auto; filter: drop-shadow(0 10px 16px rgba(20, 42, 82, .2)); }
.osd-teaser > div { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.osd-teaser h2 { font: 800 19px/1.3 'Manrope', 'Inter', sans-serif; color: var(--op-ink); text-wrap: balance; }
.osd-teaser ul { display: flex; flex-direction: column; gap: 6px; }
.osd-teaser li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.osd-teaser li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: #86650c; }
.osd-cta { min-height: 46px; padding: 0 20px; border-radius: 13px; font-size: 14.5px; }
.osd-cta svg { width: 18px; height: 18px; }

/* rasmiy xizmatlar va izoh */
.osd-exts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@container osd (min-width: 640px) { .osd-exts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container osd (min-width: 1120px) { .osd-off .osd-exts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.osd-ext { display: flex; align-items: flex-start; gap: 10px; min-height: 56px; padding: 10px 12px; 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); }
.osd-ext:hover { background: var(--op-tint-h); border-color: rgba(47, 84, 168, .22); }
.osd-ext > svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; color: var(--navy-light); }
.osd-ext > span:not(.osd-sr) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.osd-ext b { font-size: 14px; font-weight: 700; color: var(--op-ink); overflow-wrap: anywhere; }
.osd-ext small { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.osd-disc { display: flex; align-items: flex-start; gap: 8px; max-width: 90ch; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.osd-disc svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }

/* --- Qadam sahifasi --- */
.osd-crumb a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px 0 6px; border-radius: 10px; text-decoration: none;
  font: 700 13.5px/1 'Inter', sans-serif; color: var(--navy-light); }
.osd-crumb a:hover { background: var(--op-tint-h); }
.osd-crumb svg { width: 16px; height: 16px; }
.osd-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@container osd (min-width: 960px) { .osd-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 20px; } }
.osd-rail { min-width: 0; }
.osd-rail ol, .osd-rail ul { display: flex; flex-direction: column; gap: 2px; }
.osd-rail ul { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--op-line); }
.osd-rail a { position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 10px; border-radius: 10px; text-decoration: none;
  font: 600 13.5px/1.3 'Inter', sans-serif; color: var(--text); transition: background-color var(--m1, .15s), color var(--m1, .15s); }
.osd-rail a:hover { background: var(--op-tint-h); }
.osd-rail a[aria-current="step"] { color: var(--op-ink); font-weight: 700; background: var(--g1-bg); box-shadow: var(--g1-hi), var(--g1-shadow); }
.osd-rail a[aria-current="step"]::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #c9a227; }
.osd-rn { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; font: 800 12px/1 'Inter', sans-serif;
  color: var(--navy); background: var(--op-tint-h); }
.osd-rn svg { width: 13px; height: 13px; }
.osd-rn.done { color: #fff; background: #1f7a4d; }
.osd-rail a[aria-current="step"] .osd-rn:not(.done) { color: #fff; background: linear-gradient(150deg, #1f3b73, #2f54a8); }
@container osd (min-width: 960px) { .osd-rail { position: sticky; top: 84px; } }
/* telefon / planshet: qadamlar — gorizontal chiplar (faqat qator aylanadi), chetgacha */
@container osd (max-width: 959.98px) {
  .osd-rail { display: flex; margin: 0 calc(-1 * var(--op-pad, 24px)); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    scroll-snap-type: x proximity; padding: 2px var(--op-pad, 24px) 4px; scroll-padding: 0 var(--op-pad, 24px); }
  .osd-rail::-webkit-scrollbar { display: none; }
  .osd-rail ol, .osd-rail ul { flex-direction: row; gap: 6px; }
  .osd-rail ul { margin: 0 0 0 6px; padding: 0; border: 0; }
  .osd-rail li { flex: 0 0 auto; scroll-snap-align: start; }
  .osd-rail a { min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px; white-space: nowrap; background: var(--g1-bg); border: var(--g1-border); box-shadow: var(--g1-hi); }
  .osd-rail a[aria-current="step"] { color: #fff; border-color: transparent; background: linear-gradient(150deg, #1f3b73, #2f54a8); box-shadow: 0 4px 12px rgba(31, 59, 115, .2); }
  .osd-rail a[aria-current="step"]::before { display: none; }
  .osd-rail a[aria-current="step"] .osd-rn:not(.done) { color: #142a52; background: #e9d28a; }
  .osd-rn { border-radius: 50%; }
}
@media (pointer: coarse) { .osd-rail a { min-height: 44px; } }

.osd-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.osd-sh { display: flex; flex-direction: column; gap: 8px; }
.osd-kicker { font: 800 11.5px/1.3 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.osd-sh h1 { font: 800 26px/1.2 'Manrope', 'Inter', sans-serif; letter-spacing: -.015em; color: var(--op-ink); text-wrap: balance; }
.osd-lead { max-width: 74ch; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.osd-seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; gap: 4px; margin-top: 4px; padding: 4px; border-radius: 14px;
  background: var(--g1-bg); border: var(--g1-border); box-shadow: var(--g1-hi); }
.osd-seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; cursor: pointer;
  font: 700 13px/1 'Inter', sans-serif; color: var(--op-ink); background: transparent; transition: background-color var(--m1, .15s), color var(--m1, .15s); }
.osd-seg button svg { width: 16px; height: 16px; color: var(--navy-light); }
.osd-seg button:hover { background: var(--op-tint-h); }
.osd-seg button.on { color: #fff; background: linear-gradient(150deg, #1f3b73, #2f54a8); box-shadow: 0 3px 10px rgba(31, 59, 115, .2); }
.osd-seg button.on svg { color: var(--gold-soft); }
@media (pointer: coarse) { .osd-seg button { min-height: 44px; } }
@container osd (max-width: 559.98px) {
  .osd-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: stretch; }
  .osd-seg button { justify-content: center; padding: 0 8px; }
}
.osd-court { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.osd-court svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--navy-light); }
.osd-court b { color: var(--op-ink); }

.osd-card { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; 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)); }
.osd-card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.osd-card-h h2 { font: 800 17px/1.3 'Manrope', 'Inter', sans-serif; color: var(--op-ink); }
.osd-card-s { font-size: 12.5px; color: var(--muted); }
.osd-rules { display: flex; flex-direction: column; gap: 10px; }
.osd-rules li { display: flex; gap: 10px; }
.osd-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 8px; border-radius: 50%; background: #c9a227; }
.osd-rules p { font-size: 14px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.osd-rules li > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.osd-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 18px; margin: 0; padding: 0; counter-reset: osdsub; }
@container osd (min-width: 760px) { .osd-sub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.osd-sub li { position: relative; padding: 5px 8px 5px 30px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: var(--text); background: var(--op-tint); counter-increment: osdsub; }
.osd-sub li::before { content: counter(osdsub); position: absolute; left: 8px; top: 6px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%;
  font: 800 10px/1 'Inter', sans-serif; color: #142a52; background: #e9d28a; }
.osd-rules li.tip .osd-dot { background: var(--navy-light); }
.osd-ref { display: inline-flex; align-items: center; height: 22px; margin: 0 2px 0 0; padding: 0 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; text-decoration: none;
  font: 700 11.5px/1 'Inter', sans-serif; color: var(--navy); background: rgba(31, 59, 115, .07); border: 1px solid rgba(47, 84, 168, .25);
  transition: background-color var(--m1, .15s), border-color var(--m1, .15s); }
.osd-ref:hover { background: rgba(31, 59, 115, .13); border-color: rgba(47, 84, 168, .5); }
.osd-tipc { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap;
  font: 700 11.5px/1 'Inter', sans-serif; color: var(--muted); background: var(--op-tint-h); }
.osd-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--op-r-panel, 16px); background: rgba(251, 243, 214, .8); border: 1px solid rgba(201, 162, 39, .45); }
.osd-warn svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: #86650c; }
.osd-warn p { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.osd-calcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@container osd (min-width: 760px) { .osd-calcs { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.osd-calc { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 16px; text-decoration: none; color: #e6ecf9;
  background: linear-gradient(150deg, #142a52, #2f54a8); box-shadow: 0 8px 20px rgba(20, 42, 82, .2); transition: transform var(--m1, .15s), box-shadow var(--m1, .15s); }
.osd-calc:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(20, 42, 82, .26); }
.osd-calc-ic { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #142a52; background: linear-gradient(135deg, #f3e3a6, #c9a227); }
.osd-calc-ic svg { width: 21px; height: 21px; }
.osd-calc > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.osd-calc b { font-size: 14.5px; font-weight: 700; color: #fff; }
.osd-calc small { font-size: 12.5px; line-height: 1.35; color: #c9d6f2; }
.osd-calc > svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold-soft); }
.osd-calc:focus-visible { outline-color: #e9d28a; }
.osd-prog { min-width: 52px; height: 24px; display: inline-grid; place-items: center; padding: 0 9px; border-radius: 999px; font: 700 12px/1 'Inter', sans-serif;
  font-variant-numeric: tabular-nums; color: var(--navy); background: rgba(31, 59, 115, .08); }
.osd-check { display: flex; flex-direction: column; gap: 2px; }
.osd-check li { position: relative; display: flex; align-items: flex-start; }
.osd-check input { position: absolute; left: 10px; top: 12px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.osd-check label { position: relative; flex: 1; min-height: 44px; display: flex; align-items: center; padding: 9px 10px 9px 42px; border-radius: 12px; cursor: pointer;
  font-size: 14px; line-height: 1.45; color: var(--text); transition: background-color var(--m1, .15s); }
.osd-check label:hover { background: var(--op-tint); }
.osd-check label::before { content: ''; position: absolute; left: 10px; top: 12px; width: 20px; height: 20px; border-radius: 6px; background: var(--op-field);
  border: 1.5px solid rgba(47, 84, 168, .45); transition: background-color var(--m1, .15s), border-color var(--m1, .15s); }
.osd-check label::after { content: ''; position: absolute; left: 17px; top: 15px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; }
.osd-check input:checked + label::before { background: #1f7a4d; border-color: #1f7a4d; }
.osd-check input:checked + label::after { opacity: 1; }
.osd-check input:checked + label { color: var(--muted); }
.osd-check input:focus-visible + label { outline: 3px solid rgba(47, 84, 168, .6); outline-offset: 1px; }
.osd-note { font-size: 12px; color: var(--muted); }
.osd-tpls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@container osd (min-width: 1100px) { .osd-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.osd-tpl { height: 100%; min-height: 58px; 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); }
.osd-tpl:hover { background: var(--op-tint-h); border-color: rgba(47, 84, 168, .22); }
.osd-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); }
.osd-doc svg { width: 18px; height: 18px; }
.osd-tpl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.osd-tpl-t b { font-size: 13.5px; 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; }
.osd-tpl-t small { font-size: 12px; color: var(--muted); }
.osd-word { flex: 0 0 auto; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 800 10.5px/1 'Inter', sans-serif; letter-spacing: .04em;
  color: #fff; background: #2b579a; }
.osd-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 2px; }
.osd-pg { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--g1-bg); border: var(--g1-border); box-shadow: var(--g1-hi), var(--g1-shadow); transition: background-color var(--m1, .15s); }
.osd-pg:hover { background: var(--op-tint-h); }
.osd-pg svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--navy-light); }
.osd-pg span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.osd-pg small { font: 700 11px/1.2 'Inter', sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.osd-pg b { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--op-ink); overflow-wrap: anywhere; }
.osd-pg.next { justify-content: flex-end; text-align: right; grid-column: 2; }
.osd-pg.next:first-child { grid-column: 2; }

/* --- Telefon / tor ekran --- */
@container osd (max-width: 559.98px) {
  .osd-head { grid-template-columns: minmax(0, 1fr); }
  .osd-head-ic { display: none; }
  .osd-head h1 { font-size: 23px; }
  .osd-sh h1 { font-size: 21px; }
  /* nizo turi kartasi ixcham: belgi chapda, matn oʻngda */
  .osd-track { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 6px 12px; padding: 12px 40px 12px 12px; }
  .osd-track-c { grid-column: 2; margin-top: 2px; }
  .osd-sec, .osd-card { padding: 14px 12px; }
  .osd-teaser { padding: 16px 14px; }
  .osd-teaser img { width: 64px; height: 64px; }
  .osd-pager { grid-template-columns: minmax(0, 1fr); }
  .osd-pg.next, .osd-pg.next:first-child { grid-column: 1; }
  .osd-rules p { font-size: 13.5px; }
}

/* --- Tun rejimi --- */
body.dark .osd-state.ok svg { color: #8fdcb4; }
body.dark .osd-state.lk { background: rgba(201, 162, 39, .12); border-color: rgba(233, 210, 138, .38); }
body.dark .osd-state.lk svg, body.dark .osd-warn svg, body.dark .osd-teaser li svg { color: #e9d28a; }
body.dark .osd-track.on { background: rgba(28, 47, 88, .95); border-color: #9db9ff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35), inset 3px 0 0 #e9d28a; }
body.dark .osd-track-ok { color: #142a52; background: #9db9ff; }
body.dark .osd-track-c, body.dark .osd-help li b, body.dark .osd-crumb a, body.dark .osd-court svg, body.dark .osd-ext > svg,
body.dark .osd-help summary > svg:first-child, body.dark .osd-pg svg, body.dark .osd-seg button svg { color: #9db9ff; }
body.dark .osd-seg button.on svg { color: #e9d28a; }
body.dark .osd-step-n { color: #c9d6f2; }
body.dark .osd-step-n.done, body.dark .osd-rn.done { color: #0f2a1c; background: #8fdcb4; }
body.dark .osd-steps.one .osd-stepc { background: rgba(120, 145, 195, .1); border-color: rgba(157, 185, 255, .35); }
body.dark .osd-teaser { background: linear-gradient(150deg, rgba(201, 162, 39, .14), rgba(28, 47, 88, .85)); border-color: rgba(233, 210, 138, .35); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
body.dark .osd-rn { color: #c9d6f2; }
body.dark .osd-ref { color: #c9d6f2; background: rgba(120, 145, 195, .14); border-color: rgba(157, 185, 255, .3); }
body.dark .osd-ref:hover { background: rgba(120, 145, 195, .26); border-color: rgba(157, 185, 255, .55); }
body.dark .osd-rules li.tip .osd-dot { background: #9db9ff; }
body.dark .osd-warn { background: rgba(201, 162, 39, .1); border-color: rgba(233, 210, 138, .35); }
body.dark .osd-calc { background: linear-gradient(150deg, #1b356b, #2c4f9c); box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(157, 185, 255, .22); }
body.dark .osd-prog { color: #c9d6f2; background: rgba(120, 145, 195, .2); }
body.dark .osd-check label::before { border-color: rgba(157, 185, 255, .5); }
body.dark .osd-check input:checked + label::before { background: #2e9d66; border-color: #2e9d66; }
body.dark .osd-doc { color: #9db9ff; }
body.dark .osd :focus-visible { outline-color: rgba(157, 185, 255, .8); }

/* --- Harakat va chop etish --- */
@media (prefers-reduced-motion: reduce) {
  .osd-stepc:hover .osd-go, .osd-calc:hover { transform: none; }
  .osd-help summary > svg:last-child { transition: none; }
}
@media print {
  .osd-rail, .osd-seg, .osd-pager, .osd-calcs, .osd-crumb, .osd-help, .osd-teaser .op-btn, .osd-note { display: none !important; }
  .osd-layout { display: block; }
  .osd-sec, .osd-card { box-shadow: none; border: 1px solid #ccd; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; break-inside: avoid; }
  .osd-ref::after { content: ' (' attr(href) ')'; font-weight: 400; }
}
