/* ================================================================ tokenlar */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --border: #e3e8ef;
  --text: #17212f;
  --muted: #5b6778;
  --brand: #0d4a8b;
  --brand-2: #0a3a6e;
  --brand-soft: #e8f0fa;
  --ring: rgba(13, 74, 139, .22);
  --good: #1a7f4b;  --good-soft: #e3f4ea;
  --ok: #a86500;    --ok-soft: #fdf1dc;
  --bad: #c0362c;   --bad-soft: #fbe7e5;
  --ai: #5534c4; --ai-dark: #42279c; --ai-soft: #f6f3ff; --ai-line: #dcd3fb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --side-w: 256px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 150px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.ic { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ================================================================ karkas */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--brand-2); color: #dbe7f5; padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.02rem; min-width: 0; }
.logo:hover { text-decoration: none; }
.logo > span:last-child { min-width: 0; }
.logo small { display: block; font-weight: 400; color: rgba(255,255,255,.72); font-size: .72rem; line-height: 1.3; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--brand-2); display: grid;
  place-items: center; font-weight: 800; flex: none; }
.logo-mark.img { padding: 4px; overflow: hidden; }
.logo-mark.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side-tag { font-size: .72rem; color: rgba(255,255,255,.65); line-height: 1.35; padding: 0 6px; margin-top: -6px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { color: rgba(255,255,255,.86); padding: 9px 12px; border-radius: 10px; display: flex; gap: 12px;
  align-items: center; font-size: .93rem; position: relative; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,.17); color: #fff; font-weight: 600; }
.sidebar nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: #fff; }
.sidebar .sep { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5);
  margin: 14px 12px 4px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 12px; font-size: .85rem; }
.me-text { min-width: 0; flex: 1; }
.me-text b { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-text small { color: rgba(255,255,255,.65); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid;
  place-items: center; font-weight: 700; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0;
  background: transparent; color: inherit; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgba(127,127,127,.14); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); }
.icon-btn.sm:hover { color: var(--bad); background: var(--bad-soft); }
.me .icon-btn { color: rgba(255,255,255,.8); }
.main { padding: 26px 32px 60px; min-width: 0; }
.mobile-head, .bottom-nav { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px; }
.page-head h1 { margin-bottom: 2px; }
.page-head p { margin: 0; color: var(--muted); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }

/* ================================================================ ommaviy sahifalar */
.pub-head { background: var(--brand-2); color: #fff; }
.pub-head .inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pub-head nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pub-head nav a { color: #dbe7f5; padding: 7px 12px; border-radius: 9px; }
.pub-head nav a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.pub-head nav a.cta { background: #fff; color: var(--brand-2); font-weight: 600; }
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255,255,255,.14), transparent),
  linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.hero .inner { max-width: 1200px; margin: 0 auto; padding: 38px 20px 44px; }
.hero h1 { font-size: 1.95rem; max-width: 820px; }
.hero p { color: rgba(255,255,255,.82); max-width: 820px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.pub-foot { border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.pub-foot .inner { max-width: 1200px; margin: 0 auto; padding: 18px 20px; }

/* ================================================================ komponentlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px;
  flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat .v { font-size: 1.75rem; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .l { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; }
.stat.good::before { background: var(--good); } .stat.ok::before { background: var(--ok); } .stat.bad::before { background: var(--bad); }
.stat .si { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid;
  place-items: center; background: var(--brand-soft); color: var(--brand); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--brand);
  background: var(--brand); color: #fff; border-radius: 10px; padding: 8px 15px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-2); text-decoration: none; box-shadow: 0 2px 8px var(--ring); }
.btn.ghost { background: var(--surface); color: var(--brand); border-color: var(--border); }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand-soft); box-shadow: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); }
.btn.good { background: var(--good); border-color: var(--good); }
.btn.ai { background: var(--ai); border-color: var(--ai); }
.btn.ai:hover { background: var(--ai-dark); }
.btn.sm { padding: 5px 11px; font-size: .85rem; border-radius: 8px; }
.btn.block { width: 100%; margin-top: 12px; padding: 10px 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.badge, .chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  white-space: nowrap; line-height: 1.6; }
.chip.lg { padding: 4px 12px; font-size: .84rem; }
.badge.yaxshi, .badge.good, .chip.yaxshi, .chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.qoniqarli, .badge.ok, .chip.qoniqarli, .chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.qoniqarsiz, .badge.bad, .chip.qoniqarsiz, .chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.brand, .chip.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.score-big { font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.score-big small { font-size: 1rem; font-weight: 500; }
.c-yaxshi { color: var(--good); } .c-qoniqarli { color: var(--ok); } .c-qoniqarsiz { color: var(--bad); }

/* xabarlar */
.toasts { position: fixed; top: 16px; right: 16px; z-index: 50; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); border-left: 4px solid var(--brand); font-size: .92rem;
  animation: toast-in .25s ease-out; transition: opacity .35s, transform .35s; }
.toast.success { border-left-color: var(--good); } .toast.success .ic { color: var(--good); }
.toast.error { border-left-color: var(--bad); } .toast.error .ic { color: var(--bad); }
.toast span { flex: 1; }
.toast.hide { opacity: 0; transform: translateX(20px); }
.toast-x { border: 0; background: none; font-size: 1.2rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.messages li { padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px;
  background: var(--ok-soft); color: #6b4200; font-size: .9rem; margin-bottom: 14px; }
.notice.info { background: var(--brand-soft); color: var(--brand-2); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice > .ic { margin-top: 1px; }
details.notice.tips { display: block; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
details.notice.tips summary { cursor: pointer; display: flex; gap: 8px; align-items: center; color: var(--brand); list-style: none; }
details.notice.tips summary::-webkit-details-marker { display: none; }
details.notice.tips ol { margin: 10px 0 6px; padding-left: 22px; display: grid; gap: 4px; }
.demo-bar { background: #fff4d6; color: #6b4a00; text-align: center; font-size: .82rem; padding: 5px 12px;
  border-bottom: 1px solid #f0dca0; }

/* jadvallar */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  font-weight: 650; white-space: nowrap; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank { width: 44px; font-weight: 700; color: var(--muted); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--surface-2); }

/* chiziqlar */
.bar { display: block; height: 8px; border-radius: 99px; background: #e7ecf2; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s ease; }
.bar.good > i { background: var(--good); } .bar.ok > i { background: var(--ok); } .bar.bad > i { background: var(--bad); }
.dir-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px; gap: 4px 12px; align-items: center; margin-bottom: 10px; }
.dir-row .bar { grid-column: 1 / -1; }
.mini-bars { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.mini-bars i { width: 9px; background: var(--brand); border-radius: 2px 2px 0 0; opacity: .85; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: #e7ecf2; }
.stack i { display: block; height: 100%; }
.stack .yaxshi { background: var(--good); } .stack .qoniqarli { background: var(--ok); } .stack .qoniqarsiz { background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; margin-top: 8px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  margin-right: 6px; vertical-align: -1px; background: currentColor; }

/* ball halqasi */
.ring { position: relative; width: 150px; height: 150px; margin: 10px auto 8px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: #e7ecf2; }
.ring .ring-fg { stroke: currentColor; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.ring-v { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-v b { font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.ring-v small { font-size: .8rem; }

/* vaqt chizig'i */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed var(--border); font-size: .88rem; align-items: start; }
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid;
  place-items: center; font-size: .68rem; font-weight: 700; color: var(--muted); background: #fff; }
.timeline li.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.timeline li.current .dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--ring); }
.timeline li.current { font-weight: 600; }
.timeline li.done { color: var(--muted); }
.timeline .who { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.timeline .date { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.timeline li.overdue .date { color: var(--bad); font-weight: 600; }

/* formalar */
label { font-weight: 500; }
input[type=text], input[type=number], input[type=url], input[type=search], input[type=password], select, textarea {
  font: inherit; padding: 9px 11px; border: 1px solid #cfd7e2; border-radius: 10px; background: #fff; color: var(--text);
  width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
input:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
textarea { min-height: 80px; resize: vertical; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 160px; }

/* ================================================================ anketa */
.form-toolbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: minmax(180px, 1fr) auto;
  grid-template-areas: "prog act" "pills pills"; gap: 10px 14px; align-items: center; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 18px; box-shadow: var(--shadow); }
.tb-progress { grid-area: prog; }
.dir-pills { grid-area: pills; }
.tb-actions { grid-area: act; }
.ring.zero .ring-fg { opacity: 0; }
.tb-progress-text { font-size: .82rem; color: var(--muted); margin-bottom: 5px; }
.tb-progress-text b { color: var(--text); }
.dir-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dir-pills::-webkit-scrollbar { display: none; }
.dir-pills a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .82rem; white-space: nowrap; }
.dir-pills a:hover { text-decoration: none; border-color: var(--brand); }
.dir-pills a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft);
  color: var(--brand); font-weight: 700; font-size: .75rem; }
.dir-pills a.active .pill-n { background: rgba(255,255,255,.25); color: #fff; }
.pill-c { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .76rem; }
.dir-pills a.active .pill-c { color: rgba(255,255,255,.85); }
.dir-pills a.complete .pill-n { background: var(--good); color: #fff; }
.tb-actions { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: .82rem; padding: 4px 10px; border-radius: 7px;
  cursor: pointer; color: var(--muted); white-space: nowrap; }
.seg button.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.form-side { position: sticky; top: 92px; }
.side-total { text-align: center; }
.side-dirs { margin-top: 16px; text-align: left; display: grid; gap: 10px; }
.side-dir { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: .84rem; color: var(--text); }
.side-dir:hover { text-decoration: none; color: var(--brand); }
.side-dir .bar { grid-column: 1 / -1; height: 6px; }
.side-note { font-size: .78rem; color: var(--muted); text-align: left; margin: 10px 0 0; display: flex; gap: 6px; }
.side-note .ic { margin-top: 2px; }
.dir-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.dir-tabs a { padding: 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .86rem; }
.dir-tabs a:hover { text-decoration: none; border-color: var(--brand); }

.dir-block { margin-bottom: 30px; }
.dir-title { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--brand-soft);
  border-radius: var(--radius); margin-bottom: 12px; }
.dir-num { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800;
  display: grid; place-items: center; flex: none; }
.dir-title h2 { margin: 0; font-size: 1rem; color: var(--brand-2); flex: 1; }
.dir-score { white-space: nowrap; }
.dir-score b { font-size: 1.15rem; }
.dir-score small { margin-left: 2px; }
.group-title { font-weight: 600; color: var(--muted); font-size: .86rem; margin: 18px 4px 8px; }

.ind { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow); border-left: 4px solid #cfd8e3; transition: box-shadow .2s, border-color .2s; }
.ind:hover { box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 6px 16px rgba(16,24,40,.07); }
.ind.s-full { border-left-color: var(--good); }
.ind.s-part { border-left-color: var(--ok); }
.ind.s-zero { border-left-color: var(--bad); }
.ind.flash { box-shadow: 0 0 0 3px var(--ring); }
.ind.saving .ind-score b { opacity: .45; }
.ind-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; padding: 14px 14px 14px 16px;
  align-items: start; width: 100%; border: 0; background: transparent; text-align: left; font: inherit; color: inherit;
  cursor: pointer; border-radius: var(--radius); }
.ind-state { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  border: 2px solid #cfd8e3; color: #fff; }
.ind-state > span { display: none; }
.ind[data-state="done"] .ind-state { background: var(--good); border-color: var(--good); }
.ind[data-state="done"] .st-done { display: block; }
.ind[data-state="noev"] .ind-state { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.ind[data-state="noev"] .st-noev { display: block; }
.ind-main { display: grid; gap: 4px; min-width: 0; }
.ind-code { font-weight: 700; color: var(--brand); font-size: .8rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ind-title { font-weight: 600; line-height: 1.4; }
.ind-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.ind-tags .chip.status { white-space: normal; max-width: 100%; }
.saved { display: inline-flex; gap: 3px; align-items: center; color: var(--good); font-size: .76rem; font-weight: 600;
  opacity: 0; transition: opacity .3s; }
.saved.show { opacity: 1; }
.ind-score { text-align: right; white-space: nowrap; padding-top: 2px; }
.ind-score b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ind-score small { margin-left: 3px; }
.ind-chev { color: var(--muted); padding-top: 4px; transition: transform .2s; }
.ind.collapsed .ind-chev { transform: rotate(-90deg); }
.ind.collapsed .ind-body { display: none; }
.ind-body { padding: 0 16px 18px 54px; display: grid; gap: 14px; }
details.izoh { font-size: .87rem; color: var(--muted); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }
details.izoh summary { cursor: pointer; color: var(--brand); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
details.izoh p { margin: 8px 0 2px; }
.opts { display: grid; gap: 6px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer; font-weight: 400; background: #fff; transition: border-color .12s, background .12s; }
.opt:hover { border-color: var(--brand); }
.opt input { margin-top: 3px; flex: none; accent-color: var(--brand); width: 16px; height: 16px; }
.opt.checked { border-color: var(--brand); background: var(--brand-soft); }
.opt.na { border-style: dashed; }
.w-heading { font-weight: 650; font-size: .88rem; margin-top: 6px; }
.w-hint { font-size: .79rem; color: var(--muted); }
.w-number { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; align-items: center; font-weight: 400; }
.w-pair { display: grid; grid-template-columns: minmax(0, 1fr) 130px 130px; gap: 10px; align-items: end; }
.w-pair label { font-size: .78rem; color: var(--muted); display: grid; gap: 2px; font-weight: 400; }
.comment-field { margin: 0; }
.comment-field > span { font-size: .82rem; color: var(--muted); }

.evidence { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.ev-head { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.ev-head > span:first-of-type { flex: 1; }
.evidence-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.evidence-list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-width: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 4px 4px 4px 10px; }
.evidence-list li.ev-empty { background: none; border: 0; padding: 0; }
.evidence-list a { display: inline-flex; gap: 6px; align-items: center; overflow-wrap: anywhere; min-width: 0; }
.ev-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dropzone { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1.5px dashed #b9c4d3;
  border-radius: 10px; background: #fff; cursor: pointer; color: var(--muted); font-weight: 400; font-size: .86rem;
  transition: border-color .15s, background .15s; }
.dropzone b { color: var(--brand); }
.dropzone small { display: block; font-size: .74rem; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ev-link { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.ev-link input { flex: 1; min-width: 0; }

.agency-box { background: #f4f8fd; border: 1px solid #d5e2f2; border-radius: 12px; padding: 12px; }
.agency-box .row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; align-items: start; }
.agency-box .row > b { display: flex; gap: 6px; align-items: center; }
.ai-box { background: var(--ai-soft); border: 1px solid var(--ai-line); border-radius: 12px; padding: 10px 12px; }
.ai-box summary { cursor: pointer; font-weight: 600; color: var(--ai); display: flex; gap: 8px; align-items: center; }
.ai-result { margin-top: 10px; background: #fff; border: 1px solid var(--ai-line); border-radius: 10px; padding: 10px 12px;
  font-size: .9rem; display: grid; gap: 6px; }
.ai-result ul { margin: 0; padding-left: 18px; }
.ai-result h4 { margin: 4px 0 0; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filter-empty { display: grid; justify-items: center; gap: 6px; color: var(--good); }

/* ================================================================ boshqa */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(900px 400px at 80% 0%, rgba(255,255,255,.14), transparent), linear-gradient(135deg, var(--brand-2), var(--brand)); }
.login-card { width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); }
.demo-users { display: grid; gap: 6px; margin-top: 10px; }
.demo-users button { width: 100%; justify-content: space-between; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 14px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.check-list li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 8px; }
.check-list li.no::before { content: "✕"; color: var(--bad); }
.log { font-size: .85rem; }
.log li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.empty { text-align: center; color: var(--muted); padding: 30px; }
.heat-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 46px; gap: 10px; align-items: center;
  font-size: .86rem; margin-bottom: 8px; }
.heat-row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; }
.hero-card .ring { margin: 0; }
.next-step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft);
  color: var(--brand-2); margin-top: 12px; }
.next-step .ic { color: var(--brand); }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.quick a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.quick a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.quick a .ic { color: var(--brand); }

/* ================================================================ tashkilot uslubi */
.themed { --radius: 18px; --text: #1F2D3A; --muted: #56677A; --border: #DCE3E6; --surface-2: #F3F6F7;
  --shadow: 0 2px 10px rgba(31,45,58,.06); --ai-line: var(--ring);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.themed .sidebar { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); }
.themed .mobile-head { background: var(--brand-2); }
.themed .btn { border-radius: 12px; }

/* ================================================================ moslashuvchanlik */
@media (max-width: 1100px) {
  :root { --side-w: 76px; }
  .sidebar { padding: 16px 10px; align-items: center; }
  .sidebar .nav-label, .sidebar .sep, .side-tag { display: none; }
  .sidebar nav a { justify-content: center; padding: 11px; }
  .sidebar nav a.active::before { left: -10px; }
  .me { flex-direction: column; }
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1, .form-layout { grid-template-columns: minmax(0, 1fr); }
  .form-side { position: static; }
  .main { padding: 22px 22px 60px; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 130px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .mobile-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px;
    background: var(--brand-2); color: #fff; position: sticky; top: 0; z-index: 30; gap: 10px; }
  .mobile-head .logo-mark { width: 32px; height: 32px; border-radius: 9px; }
  .mh-title { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: grid; justify-items: center; gap: 2px; color: var(--muted); font-size: .7rem;
    padding: 4px 2px; border-radius: 10px; }
  .bottom-nav a:hover { text-decoration: none; }
  .bottom-nav a.active { color: var(--brand); font-weight: 600; }
  .bottom-nav a.active .ic { background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; width: 44px; height: 26px; }
  .main { padding: 16px 14px 96px; }
  .toasts { top: auto; bottom: 84px; right: 12px; left: 12px; max-width: none; }
  .g2, .g3, .quick { grid-template-columns: minmax(0, 1fr); }
  .page-head { align-items: flex-start; }
  h1 { font-size: 1.3rem; }
  .form-toolbar { top: 56px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "prog" "pills" "act";
    gap: 8px; padding: 8px 10px; border-radius: 14px; }
  .tb-actions { justify-content: space-between; flex-wrap: wrap; }
  .seg { flex: 1 1 100%; }
  .seg button { flex: 1; padding: 5px 4px; }
  .tb-actions .btn { flex: 1; }
  .pill-t { display: none; }
  .dir-pills a { padding: 4px 8px 4px 4px; }
  .ind-head { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .ind-chev { display: none; }
  .ind-body { padding: 0 12px 14px; }
  .w-number, .w-pair, .ev-tools { grid-template-columns: minmax(0, 1fr); }
  .agency-box .row, .kv, .hero-card { grid-template-columns: minmax(0, 1fr); }
  .hero-card { justify-items: center; text-align: center; }
  .hero h1 { font-size: 1.45rem; }
}
@media print {
  .sidebar, .mobile-head, .bottom-nav, .btn, .ev-tools, .pub-head nav, .form-toolbar, .ai-box, .toasts { display: none !important; }
  .app { display: block; }
  .ind.collapsed .ind-body { display: grid; }
}
