/* Ranglar Adliya vazirligi logotipidan: ko'mir-qora qalqon, oltin boshoq, krem yozuv, kulrang maydon, bronza hoshiya */
:root {
  --bg: #f3f2ee;
  --card: #ffffff;
  --text: #24211f;
  --muted: #6b6660;
  --line: #e4e0d6;
  --brand: #8a5a1c;          /* bronza — havolalar, urg'u (oq fonda o'qiladigan) */
  --brand-2: #2e2a29;        /* ko'mir-qora — yon panel, sarlavhalar */
  --brand-soft: #f6efda;     /* och krem */
  --gold: #e3b12c;
  --gold-2: #c8951c;
  --gold-soft: #fbf3d2;
  --cream: #f6edc4;
  --steel: #a7a6a4;
  --sky: #9fadd8;            /* logotipdagi och ko'k */
  --sky-soft: #eceff9;
  --sky-text: #3d4b86;
  --ok: #1f7a4d;
  --ok-soft: #e4f4ec;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0 0 14px; line-height: 1.3; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 18px 0 8px; }
code { background: var(--brand-soft); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.warn-text { color: var(--warn); }
.dim { opacity: .55; }

.demo-bar { background: #ffd84d; color: #3d2f00; padding: 7px 16px; text-align: center; font-size: 14px; border-bottom: 1px solid #e0b800; }

/* Shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 256px; flex-shrink: 0; background: linear-gradient(180deg, #3a3534 0%, #2a2625 100%); color: var(--cream); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; border-right: 3px solid var(--gold-2); box-shadow: inset -1px 0 0 #8c6a2a; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--cream); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(227,177,44,.35); }
.brand:hover { text-decoration: none; }
.brand b { display: block; font-size: 16.5px; letter-spacing: .01em; color: #fff7d9; }
.brand small { display: block; font-size: 11.5px; opacity: .8; line-height: 1.3; }
.brand-logo { width: 52px; height: auto; flex-shrink: 0; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.brand.big { color: var(--text); margin-bottom: 8px; flex-direction: column; text-align: center; gap: 10px; border-bottom: 0; padding-bottom: 4px; }
.brand.big b { color: var(--brand-2); font-size: 20px; }
.brand.big small { color: var(--muted); font-size: 12.5px; opacity: 1; }
.brand.big .brand-logo { width: 96px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #eee5c6; padding: 8px 12px; border-radius: 8px; border-left: 3px solid transparent; }
.side nav a:hover { background: rgba(246,237,196,.08); text-decoration: none; border-left-color: rgba(227,177,44,.5); }
.side nav a.on { background: linear-gradient(90deg, var(--gold) 0%, #f0c64e 100%); color: #2a2625; font-weight: 600; border-left-color: #fff3bf; }
.nav-sep { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); opacity: .85; margin: 16px 12px 4px; }
.side-foot { margin-top: auto; font-size: 13px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(227,177,44,.35); padding-top: 12px; }
.side-foot a, .side-foot .link { color: #eee5c6; }
.side-foot a:hover, .side-foot .link:hover { color: var(--gold); }
.motto { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); opacity: .75; text-align: center; margin-top: 6px; }
.who small { display: block; opacity: .7; }
.main { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1400px; }

/* Cards & tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 8px 8px; }
.tbl td { border-bottom: 1px solid var(--line); padding: 9px 8px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat { border-top: 3px solid var(--gold); }
.stat b { display: block; font-size: 26px; color: var(--brand-2); }
.card > h2:first-child, .card-head h2 { color: var(--brand-2); }
h1 { color: var(--brand-2); }
.stat span { font-size: 13px; color: var(--muted); }

.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.s-active, .r-created, .r-updated { background: var(--ok-soft); color: var(--ok); }
.s-repealed, .s-not_in_force, .r-error { background: var(--bad-soft); color: var(--bad); }
.s-unknown { background: var(--warn-soft); color: var(--warn); }
.r-unchanged { background: var(--brand-soft); color: var(--brand); }
.tag { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* Forms & buttons */
.form label, .login-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 500; margin-bottom: 12px; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; }
.narrow { max-width: 520px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #d3cdbf; border-radius: 8px; background: #fff; color: var(--text); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--gold-2); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(227,177,44,.3); border-color: var(--gold-2); }
.err { color: var(--bad); font-size: 12.5px; font-weight: 400; }
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 8px; border: 1px solid #d3cdbf; background: #fff; color: var(--text); cursor: pointer; }
.btn:hover { background: #f7f4ec; text-decoration: none; }
.btn.primary { background: linear-gradient(180deg, #ecc04a 0%, var(--gold) 100%); border-color: var(--gold-2); color: #2a2625; }
.btn.primary:hover { background: var(--gold-2); color: #1f1c1b; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-outline { color: var(--bad); border-color: #f0b8b2; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn.wide { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
form.inline { display: inline; }
.filters { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filters input { max-width: 340px; }
.filters select { max-width: 220px; }

.flash { margin-bottom: 14px; }
.msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: var(--sky-soft); border: 1px solid #c9d0ec; word-break: break-word; }
.msg.success { background: var(--ok-soft); border-color: #b5dfc8; }
.msg.error { background: var(--bad-soft); border-color: #f3c0ba; }
.msg.warning { background: var(--warn-soft); border-color: #f0d68a; }

.pager { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.pager a, .pager b { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px; }
.pager b { background: var(--brand-2); color: var(--cream); border-color: var(--brand-2); }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, #3a3534 0, #2a2625 42vh, var(--bg) 42vh); }
.login-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 14px; padding: 28px; box-shadow: 0 14px 40px rgba(30,25,20,.18); }
.login-card > p.muted { text-align: center; margin-top: 4px; }
.login-card > .brand.big { margin-bottom: 20px; }
.center-card { max-width: 420px; margin: 12vh auto; text-align: center; background: #fff; padding: 30px; border-radius: 14px; border: 1px solid var(--line); border-top: 4px solid var(--gold); }

/* Document view */
.doc-title { font-size: 21px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.doc-layout { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 12px; }
.toc-search input { margin-bottom: 10px; }
.toc-list { overflow-y: auto; display: flex; flex-direction: column; font-size: 13px; }
.toc-list a { padding: 4px 6px; border-radius: 5px; color: var(--text); }
.toc-list a:hover { background: var(--brand-soft); text-decoration: none; }
.toc-header { font-weight: 600; margin-top: 6px; color: var(--brand-2) !important; }
.toc-appendix { font-weight: 700; margin-top: 10px; color: var(--brand) !important; }
.toc-article { padding-left: 14px !important; }
.doc-tools { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.el { position: relative; padding: 4px 0 4px 0; scroll-margin-top: 16px; }
.el:target { background: #fff8d6; border-radius: 6px; }
.el-link { float: right; margin-left: 12px; font-size: 11.5px; color: var(--muted); max-width: 210px; text-align: right; }
.el-text { text-align: justify; }
.k-title .el-text { font-weight: 700; font-size: 17px; text-align: center; margin: 8px 0; }
.k-form .el-text, .k-requisites .el-text { text-align: center; color: var(--muted); }
.k-header .el-text { font-weight: 700; text-align: center; margin-top: 16px; color: var(--brand-2); }
.k-appendix .el-text { font-weight: 700; text-align: center; margin-top: 22px; border-top: 1px dashed var(--line); padding-top: 14px; }
.k-article .el-text { font-weight: 700; margin-top: 12px; }
.k-note .el-text, .k-change .el-text { font-size: 12.5px; color: var(--muted); font-style: italic; }
.k-footnote .el-text { font-size: 13px; color: var(--muted); }
.k-signature .el-text { text-align: right; font-weight: 600; margin-top: 12px; }
.hit { border-bottom: 1px solid var(--line); padding: 8px 0; }
.hit .lbl { font-size: 12.5px; font-weight: 600; }
.hit p { margin: 4px 0 0; }
.diff { border: 1px solid var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; font-size: 14px; }
.diff .lbl { font-weight: 600; font-size: 12.5px; margin-bottom: 6px; }
.diff .old { background: var(--bad-soft); padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; }
.diff .new { background: var(--ok-soft); padding: 6px 8px; border-radius: 6px; }

/* Cases */
.tag.demo { background: #ffd84d; color: #3d2f00; }
.k-loyiha { background: var(--sky-soft); color: var(--sky-text); }
.k-qaror { background: var(--ok-soft); color: var(--ok); }
.radios { border: 0; padding: 0; margin: 0 0 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.radios legend { font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.narrow-wide { max-width: 760px; }
ul.tight { margin: 6px 0 0; padding-left: 20px; }
.seg-tbl td:first-child { width: 210px; }
.sk-band td:first-child b, .sk-title td { color: var(--brand-2); }
.sk-title td, .sk-header td { font-weight: 600; }
.sk-subband td:first-child, .sk-item td:first-child, .sk-paragraph td:first-child { padding-left: 22px; }
.sk-signature td, .sk-requisites td { color: var(--muted); }
.sk-appendix td { background: var(--brand-soft); font-weight: 600; }

/* Findings */
.n-normativ { background: var(--sky-soft); color: var(--sky-text); }
.n-yakka { background: #f1f1f1; color: #555; }
.n-aniqlanmagan { background: var(--warn-soft); color: var(--warn); }
.sev-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 6px; }
.sev { border-radius: 8px; padding: 10px 12px; border: 1px solid var(--line); }
.sev b { display: block; font-size: 22px; }
.sev span { font-size: 12.5px; }
.sev-yuqori { background: var(--bad-soft); color: var(--bad); }
.sev-orta { background: var(--warn-soft); color: var(--warn); }
.sev-past { background: var(--sky-soft); color: var(--sky-text); }
.sev-malumot { background: #f1f3f6; color: #555; }
.cat-title { margin-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.finding { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.sevb-yuqori { border-left-color: var(--bad); }
.sevb-orta { border-left-color: #d9a400; }
.sevb-past { border-left-color: var(--sky); }
.sevb-malumot { border-left-color: #aab; }
.f-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.finding p { margin: 8px 0; }
blockquote { margin: 8px 0; padding: 8px 12px; border-radius: 6px; font-size: 14px; }
blockquote.quote { background: #fffbea; border-left: 3px solid #e6c34a; }
blockquote.norm { background: var(--sky-soft); border-left: 3px solid var(--sky); }
.source { margin-top: 8px; }
.src-head { font-size: 13.5px; }
.src-head a { margin-left: 6px; }
.st-nomzod { background: #f1f3f6; color: #555; }
.st-tasdiqlandi { background: var(--ok-soft); color: var(--ok); }
.st-rad { background: #f1f1f1; color: #888; text-decoration: line-through; }
.ref-ok { background: var(--ok-soft); color: var(--ok); }
.ref-kuchsiz, .ref-birlik_yoq { background: var(--bad-soft); color: var(--bad); }
.ref-nomuvofiq { background: var(--warn-soft); color: var(--warn); }
.ref-bazada_yoq { background: #f1f3f6; color: #555; }
details.related { margin-top: 6px; font-size: 13.5px; }
details.related summary { cursor: pointer; color: var(--brand); }
.rn { border-top: 1px dashed var(--line); padding: 6px 0; }

/* Expert workspace */
.review-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; font-size: 14px; }
.ok-text { color: var(--ok); }
.danger-text { color: var(--bad); }
.decision { background: #faf8f2; border-radius: 6px; padding: 8px 10px; margin-top: 8px; font-size: 14px; }
.decide-form { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.decide-form textarea { font-size: 14px; }
.decide-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.decide-row select { width: auto; padding: 4px 8px; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.ws { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; }
.ws-left { position: sticky; top: 16px; }
.ws-seg { font-size: 16px; line-height: 1.65; background: #fffbea; border-left: 3px solid #e6c34a; padding: 12px 14px; border-radius: 6px; margin: 8px 0; }
.ctx { padding: 4px 0; }
.mini-f { padding: 4px 0; font-size: 14px; }
.ref-block { border-top: 1px dashed var(--line); padding: 8px 0; }
.ref-block:first-of-type { border-top: 0; }
.np { padding: 2px 0; }
.np.hl { background: #fff3c4; }
button[disabled] { opacity: .5; cursor: not-allowed; }

.verify-card { max-width: 560px; }
.radios.col { flex-direction: column; gap: 6px; }
.radios.col label.check { flex-direction: row; margin: 0; font-weight: 500; }
code.hash { word-break: break-all; font-size: 11.5px; }
.hint { color: #5b4a00; background: #fff8dc; border-radius: 6px; padding: 5px 9px; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 14px; margin-bottom: 10px; }
.filter-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 500; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; padding: 3px 0; }
.bar-row b { text-align: right; }
meter { width: 100%; height: 14px; }
meter::-webkit-meter-bar { background: #ece8de; border: 0; border-radius: 7px; }
meter::-webkit-meter-optimum-value { background: var(--gold-2); border-radius: 7px; }
meter.m-yuqori::-webkit-meter-optimum-value { background: var(--bad); }
meter.m-orta::-webkit-meter-optimum-value { background: #d9a400; }
meter.m-malumot::-webkit-meter-optimum-value { background: #99a; }
meter::-moz-meter-bar { background: var(--gold-2); border-radius: 7px; }
.mt { margin-top: 18px; }
ul.checks { list-style: none; padding: 0; margin: 0 0 10px; }
ul.checks li { padding: 5px 0; }
ul.checks li.ok { color: var(--ok); }
ul.checks li.no { color: var(--bad); font-weight: 600; }

/* Search */
.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row input { font-size: 16px; padding: 10px 12px; }
.search-form details { margin-bottom: 6px; }
.search-form summary { cursor: pointer; color: var(--brand); }
.doc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 16px; margin: 10px 0; }
.check { display: flex; gap: 8px; align-items: center; }
.hit-card { padding: 14px 18px; margin-bottom: 12px; }
.hit-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 6px; }
.hit-doc { font-weight: 600; }
.hit-label { background: var(--brand-soft); padding: 1px 8px; border-radius: 5px; font-size: 13px; font-weight: 600; }
.spacer { flex: 1; }
.hit-title { font-weight: 600; margin-bottom: 6px; }
.hit-par { display: grid; grid-template-columns: 180px 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.hit-par .lbl { font-size: 12px; color: var(--muted); }
mark { background: #ffe58a; color: inherit; padding: 0 1px; border-radius: 2px; }

/* E-qaror statistikasi xaritasi (bosh sahifa) */
.section-title { font-size: 17px; margin: 26px 0 12px; color: var(--brand-2); }
.eq-card { padding: 20px 22px 14px; border-top: 3px solid var(--gold); }
.eq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.eq-head h2 { margin-bottom: 2px; }
.eq-head p { margin: 0; }
.eq-tools { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; background: #f4f1e8; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-btn { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 12.5px; padding: 5px 11px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.seg-btn:hover { color: var(--text); }
.seg-btn[aria-pressed="true"] { background: var(--brand-2); color: var(--cream); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.eq-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 16px 0 14px; }
.eq-kpi { background: #faf8f1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.eq-kpi b { display: block; font-size: 19px; color: var(--brand-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq-kpi span { font-size: 12px; color: var(--muted); }
.eq-kpi.main { background: linear-gradient(160deg, #3a3534, #2a2625); border-color: #2a2625; }
.eq-kpi.main b { color: var(--gold); font-size: 21px; }
.eq-kpi.main span { color: var(--cream); opacity: .85; }
.eq-metrics { margin-bottom: 6px; }
.eq-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }

.map-stage { position: relative; padding: 0 2%; }
.uzmap { width: 100%; height: auto; display: block; overflow: visible; }
.uzmap .region { stroke: #fffdf3; stroke-width: 1.4; stroke-linejoin: round; cursor: pointer; transition: fill .45s; }
.uzmap .sheen { pointer-events: none; }
.uzmap .region-link { outline: none; }
.uzmap .region-link .top { transition: transform .25s ease, filter .25s, opacity .3s; }
.uzmap .region-link:hover .top, .uzmap .region-link:focus .top { transform: translateY(-3px); filter: brightness(1.05) drop-shadow(0 6px 6px rgba(42,38,37,.3)); }
.uzmap .region-link:focus-visible .region, .uzmap .region-link.selected .region { stroke: #2a2625; stroke-width: 3; }
.uzmap .region-link.selected .top { transform: translateY(-3px); filter: drop-shadow(0 6px 8px rgba(42,38,37,.35)); }
.map-stage.has-selection .uzmap .region-link:not(.selected):not(:hover) .top { opacity: .5; }
.uzmap .map-labels { pointer-events: none; }
.uzmap .label text { text-anchor: middle; paint-order: stroke; stroke: rgba(42,38,37,.72); stroke-width: 3.5px; stroke-linejoin: round; fill: #fff; font-variant-numeric: tabular-nums; }
.uzmap .map-num { font-size: 28px; font-weight: 800; }
.uzmap .map-name { font-size: 16px; font-weight: 700; }
.uzmap .callout text { fill: #2a2625; stroke: #fff; stroke-width: 4px; }
.uzmap .leader { stroke: #2a2625; stroke-width: 1.3; opacity: .7; }
.uzmap .leader-dot { fill: #2a2625; stroke: #fff; stroke-width: 1.5; }
.map-tip { position: absolute; z-index: 5; min-width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(30,25,20,.2); padding: 12px 14px; font-size: 13px; pointer-events: none; border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.map-tip .tip-head { margin-bottom: 8px; font-size: 14px; }
.map-tip .tip-grid { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; }
.map-tip .tip-grid span { color: var(--muted); }
.map-tip .tip-grid b { text-align: right; font-variant-numeric: tabular-nums; }
.map-tip .tip-grid .on { color: var(--brand); font-weight: 700; }
.map-tip .tip-foot { margin-top: 8px; color: var(--brand); font-size: 12px; font-weight: 600; }

.eq-panel { background: #faf8f1; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; max-height: 620px; overflow: auto; }
.eq-panel h3 { margin: 0 0 10px; font-size: 15px; color: var(--brand-2); }
.eq-panel h4 { margin: 14px 0 6px; font-size: 13.5px; }
.eq-rank { margin: 0 0 10px; padding-left: 22px; font-size: 13px; }
.eq-rank li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.eq-rank li span { display: inline; }
.eq-rank li b { float: right; font-variant-numeric: tabular-nums; margin-left: 8px; }
.eq-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.eq-minis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.eq-mini { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.eq-mini b { display: block; font-size: 16px; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.eq-mini span { font-size: 11.5px; color: var(--muted); }
.eq-units .tbl th, .eq-units .tbl td { padding: 5px 4px; }
.eq-units td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eq-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; }
.eq-foot p { margin: 0; flex: 1; min-width: 260px; }
.eq-legend { display: flex; flex-wrap: wrap; width: 150px; justify-content: space-between; }
.eq-legend .scale { flex-basis: 100%; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #f6ecc4, #e3b12c, #8a5a1c); }
.eq-empty { padding: 18px 0 6px; }

@media (max-width: 1280px) { .eq-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .eq-grid { grid-template-columns: 1fr; } .eq-panel { max-height: none; } }
@media (prefers-reduced-motion: reduce) { .uzmap .region, .uzmap .region-link .top { transition: none !important; } }

@media (max-width: 980px) {
  .eq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-stage { padding: 0; }
  .uzmap .map-num { font-size: 34px; }
  .uzmap .label:not(.callout) .map-name { display: none; }
  .uzmap .callout .map-name { font-size: 18px; }
  .map-tip { min-width: 0; width: calc(100% - 8px); left: 4px !important; }
  .hit-par { grid-template-columns: 1fr; gap: 2px; }
  .sev-row { grid-template-columns: repeat(2, 1fr); }
  .ws { grid-template-columns: 1fr; }
  .ws-left { position: static; }
  .seg-tbl td:first-child { width: auto; }
  .shell { flex-direction: column; }
  .side { width: auto; height: auto; position: static; padding: 12px 16px; border-right: 0; border-bottom: 3px solid var(--gold-2); box-shadow: none; }
  .brand { margin-bottom: 10px; padding-bottom: 10px; }
  .brand-logo { width: 42px; }
  .motto { display: none; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .nav-sep { display: none; }
  .side-foot { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; }
  .main { padding: 18px 16px 40px; }
  .grid2, .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: 320px; }
  .tbl { display: block; overflow-x: auto; }
}
