.ot {
	--ot-navy: #0b2a4a;
	--ot-green: #1e9e57;
	--ot-text: #1a1a1a;
	--ot-muted: #5c667d;
	--ot-line: #e3e8ef;
	--ot-soft: #f4f6f9;
	--ot-focus: #1a73e8;
	--ot-radius: 14px;
	--ot-gap: clamp(10px, 1.2vw, 16px);
	color: var(--ot-text);
	overflow-wrap: anywhere;
}
.ot *, .ot *::before, .ot *::after { box-sizing: border-box; }
.ot ul { margin: 0; padding: 0; list-style: none; }
.ot li { margin: 0; padding: 0; }
.ot li::before { content: none; display: none; }
.ot a:focus-visible,
.ot button:focus-visible,
.ot .ot-unit:focus-visible { outline: 2px solid var(--ot-focus); outline-offset: 2px; }

/* Ekran oʻquvchi uchun yashirin matn */
.ot .ot-sr {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Sarlavha ---------- */
.ot .ot-head { margin-bottom: clamp(18px, 2vw, 26px); }
.ot .ot-title {
	margin: 0 0 6px; color: var(--ot-navy);
	font-size: clamp(24px, 2.2vw + 14px, 32px); font-weight: 800; line-height: 1.2;
}
.ot .ot-lead { margin: 0 0 14px; color: var(--ot-muted); font-size: 16px; line-height: 1.5; }
.ot .ot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ot .ot-links a {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px;
	border: 1px solid var(--ot-line); border-radius: 999px; background: #fff;
	color: var(--ot-navy); font-size: 13px; font-weight: 700; text-decoration: none;
	transition: border-color .15s, color .15s, background-color .15s;
}
.ot .ot-links a:hover { border-color: var(--ot-green); color: var(--ot-green); }
.ot .ot-links a:active { background: var(--ot-soft); }

/* ---------- Koʻrsatkichlar ---------- */
.ot .ot-stats {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--ot-gap); margin-bottom: clamp(22px, 2.4vw, 32px);
}
.ot .ot-stat {
	padding: 16px 18px; border: 1px solid var(--ot-line); border-radius: var(--ot-radius);
	background: #fff; border-top: 3px solid var(--ot-green);
}
.ot .ot-stat b {
	display: block; color: var(--ot-green); font-size: clamp(26px, 1.6vw + 16px, 36px);
	font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
}
.ot .ot-stat span { display: block; margin-top: 6px; color: var(--ot-muted); font-size: 13px; font-weight: 600; line-height: 1.35; }

/* ---------- Sarlavha (h2) ---------- */
.ot .ot-h { margin: clamp(24px, 2.4vw, 32px) 0 14px; color: var(--ot-navy); font-size: clamp(18px, .6vw + 14px, 21px); font-weight: 700; line-height: 1.3; }
.ot .ot-dist .ot-h, .ot .ot-panel > .ot-h:first-child, .ot .ot-units-head .ot-h { margin-top: 0; }

/* ---------- Taqsimot chizigʻi va izoh ---------- */
.ot .ot-dist {
	margin-bottom: clamp(22px, 2.4vw, 32px); padding: clamp(16px, 2vw, 22px);
	border: 1px solid var(--ot-line); border-radius: var(--ot-radius); background: #fff;
}
.ot .ot-bar { display: flex; gap: 2px; height: 16px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
.ot .ot-bar__seg { flex: 0 0 calc(var(--w) - 2px); min-width: 4px; background: var(--c); transition: opacity .2s; }
.ot.ot--focus .ot-bar__seg:not(.is-active) { opacity: .22; }

.ot .ot-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; margin-top: 14px; }
.ot .ot-legend a {
	display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 6px 8px; margin: 0 -8px;
	border-radius: 8px; color: var(--ot-text); font-size: 13px; line-height: 1.4; text-decoration: none;
	transition: background-color .15s;
}
.ot .ot-legend a:hover, .ot .ot-legend a.is-active { background: var(--ot-soft); }
.ot .ot-legend i { flex: 0 0 10px; height: 10px; margin-top: 4px; border-radius: 3px; background: var(--c); }
.ot .ot-legend span { flex: 1; min-width: 0; }
.ot .ot-legend b { color: var(--ot-navy); font-variant-numeric: tabular-nums; }

/* ---------- Tugmalar: mavzuning umumiy button stili (yashil fon, 40px) bekor qilinadi.
   :not(#ot-x) — !important oʻrniga ID darajasidagi aniqlik beradi. ---------- */
.ot .ot-tab:not(#ot-x), .ot .ot-chip:not(#ot-x) {
	display: inline-flex; align-items: center; justify-content: center; height: auto;
	margin: 0; border-radius: 999px; box-shadow: none; font: inherit; font-weight: 600;
	line-height: 1.25; text-align: center; white-space: normal; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

/* ---------- Koʻrinish tablari ---------- */
.ot .ot-tabs {
	display: inline-flex; gap: 4px; margin-bottom: clamp(18px, 2vw, 24px); padding: 4px;
	border: 1px solid var(--ot-line); border-radius: 12px; background: var(--ot-soft);
}
.ot .ot-tabs[hidden] { display: none; }
.ot .ot-tab:not(#ot-x) {
	min-height: 40px; padding: 6px 18px; border: 0; border-radius: 9px;
	background: transparent; color: var(--ot-muted); font-size: 14px; font-weight: 700;
}
.ot .ot-tab:not(#ot-x):hover { background: rgba(255, 255, 255, .6); color: var(--ot-navy); }
.ot .ot-tab:not(#ot-x)[aria-selected="true"] { background: #fff; color: var(--ot-navy); box-shadow: 0 1px 3px rgba(11, 42, 74, .12); }
.ot .ot-panel[hidden] { display: none; }
.ot .ot-panel + .ot-panel { margin-top: clamp(24px, 2.4vw, 32px); } /* JS oʻchiq boʻlsa ikkala panel ketma-ket */

/* ---------- Filtr ---------- */
.ot .ot-units-head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 10px 16px; margin: clamp(24px, 2.4vw, 32px) 0 14px;
}
.ot .ot-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.ot .ot-filter[hidden] { display: none; }
.ot .ot-chip:not(#ot-x) {
	min-height: 36px; padding: 6px 14px; border: 1px solid var(--ot-line);
	background: #fff; color: var(--ot-navy); font-size: 13px;
}
.ot .ot-chip:not(#ot-x):hover { border-color: var(--ot-navy); background: #fff; color: var(--ot-navy); }
.ot .ot-chip:not(#ot-x)[aria-pressed="true"] { border-color: var(--ot-navy); background: var(--ot-navy); color: #fff; }

/* ---------- Kartochkalar toʻri ---------- */
.ot .ot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ot-gap); }
.ot .ot-grid--single { grid-template-columns: minmax(0, 1fr); }

/* ---------- Boʻlinma kartochkasi ---------- */
.ot .ot-unit {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--ot-line); border-radius: var(--ot-radius); background: #fff;
	scroll-margin: 90px; transition: box-shadow .2s, border-color .2s;
}
.ot .ot-unit[hidden] { display: none; }
.ot .ot-unit::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--ot-c, var(--ot-navy)); }
.ot .ot-unit:hover { border-color: #d3dbe6; box-shadow: 0 8px 20px rgba(11, 42, 74, .07); }
.ot .ot-unit:focus { outline: none; }
.ot .ot-unit.is-flash { animation: otFlash 1.6s ease-out; }
@keyframes otFlash {
	0%, 35% { border-color: var(--ot-c, var(--ot-navy)); box-shadow: 0 0 0 3px rgba(26, 115, 232, .22); }
	100% { border-color: var(--ot-line); box-shadow: none; }
}

.ot .ot-unit__head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 12px 20px; }
.ot .ot-unit__num {
	display: flex; flex: 0 0 36px; align-items: center; justify-content: center; height: 36px;
	border-radius: 10px; background: var(--ot-c, var(--ot-navy)); color: #fff; font-size: 15px; font-weight: 800;
}
.ot .ot-unit__titles { flex: 1; min-width: 0; }
.ot .ot-tag {
	display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 999px;
	background: #eefaf3; color: #157a43; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.ot .ot-unit__title { margin: 0; color: var(--ot-navy); font-size: 15px; font-weight: 700; line-height: 1.35; }
.ot .ot-unit__count {
	flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--ot-soft);
	color: var(--ot-muted); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.ot .ot-unit__count b { color: var(--ot-navy); font-size: 14px; }

/* Lavozimlar roʻyxati (kartochka va lavozim guruhi uchun umumiy) */
.ot .ot-unit__list, .ot .ot-role__list { padding: 0 16px 14px 20px; }
.ot .ot-unit__list li, .ot .ot-role__list li {
	display: flex; align-items: center; gap: 10px; padding: 8px 0;
	border-top: 1px dashed var(--ot-line); font-size: 14px;
}
.ot .ot-pos { flex: 1; min-width: 0; line-height: 1.35; }
.ot .ot-unit__list b, .ot .ot-role__list b { min-width: 18px; color: var(--ot-navy); text-align: right; font-variant-numeric: tabular-nums; }
.ot .ot-dots { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 70px; }
.ot .ot-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ot-c, var(--ot-navy)); opacity: .85; }

.ot .ot-unit--lead .ot-unit__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.ot .ot-unit--other { background: #fafbfc; }
.ot .ot-unit--other .ot-unit__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }

/* ---------- Lavozim guruhlari ---------- */
.ot .ot-role {
	position: relative; overflow: hidden; border: 1px solid var(--ot-line);
	border-radius: var(--ot-radius); background: #fff;
}
.ot .ot-role::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--ot-c, var(--ot-navy)); }
.ot .ot-role__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 20px; }
.ot .ot-role__title { margin: 0; color: var(--ot-navy); font-size: 15px; font-weight: 700; line-height: 1.35; }
.ot .ot-meter { flex: 0 0 clamp(60px, 22%, 120px); height: 6px; overflow: hidden; border-radius: 999px; background: #eef2f7; }
.ot .ot-meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--ot-c, var(--ot-navy)); }

/* ---------- Manba ---------- */
.ot .ot-source {
	margin: clamp(24px, 2.4vw, 32px) 0 0; padding: 12px 14px; border-radius: 10px;
	background: var(--ot-soft); color: var(--ot-muted); font-size: 13px; line-height: 1.55;
}

/* ===================== Moslashuvchanlik ===================== */
@media (max-width: 1200px) {
	.ot .ot-unit--other .ot-unit__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 992px) {
	.ot .ot-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.ot .ot-grid, .ot .ot-legend,
	.ot .ot-unit--lead .ot-unit__list,
	.ot .ot-unit--other .ot-unit__list { grid-template-columns: minmax(0, 1fr); }
	.ot .ot-tabs { display: flex; }
	.ot .ot-tab:not(#ot-x) { flex: 1 1 0; min-width: 0; padding: 6px 8px; font-size: 13px; }
	.ot .ot-units-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 576px) {
	.ot .ot-lead { font-size: 15px; }
	.ot .ot-links { flex-wrap: nowrap; overflow-x: auto; margin: 0 -2px; padding: 2px; scrollbar-width: none; }
	.ot .ot-links::-webkit-scrollbar { display: none; }
	.ot .ot-links a { flex: 0 0 auto; }
	.ot .ot-stats { gap: 8px; }
	.ot .ot-stat { padding: 12px 14px; }
	.ot .ot-filter { width: 100%; }
	.ot .ot-chip:not(#ot-x) { flex: 1 1 auto; }
	.ot .ot-unit__head { flex-wrap: wrap; gap: 10px; padding: 14px 12px 10px 16px; }
	.ot .ot-unit__titles { flex-basis: calc(100% - 46px); }
	.ot .ot-unit__count { margin-left: 46px; padding: 3px 8px; }
	.ot .ot-unit__list, .ot .ot-role__list { padding: 0 12px 12px 16px; }
	.ot .ot-role__head { padding: 14px 12px 8px 16px; }
	.ot .ot-dots { display: none; }
	.ot .ot-meter { flex-basis: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.ot .ot-links a, .ot .ot-bar__seg, .ot .ot-legend a, .ot .ot-tab:not(#ot-x), .ot .ot-chip:not(#ot-x), .ot .ot-unit { transition: none; }
	.ot .ot-unit.is-flash { animation: none; }
}
@media print {
	.ot .ot-links, .ot .ot-tabs, .ot .ot-filter { display: none; }
	.ot .ot-panel[hidden], .ot .ot-unit[hidden] { display: block; }
	.ot .ot-unit, .ot .ot-role { break-inside: avoid; }
}