/* LOIQ Ish — rang tokenlari (CLAUDE.md, 31.10.2026). Ranglar faqat shu yerda. */
:root, [data-theme="light"] {
  --bg: #FFFFFF;
  --menu-bg: #FFFFFF;
  --card: #FFFFFF;
  --line: #E1E6F2;
  --text: #141B3C;
  --text-2: #5A6380;
  --primary: #2D54F0;
  --on-primary: #FFFFFF;
  --nav-active: #2832A6;
  --on-nav-active: #FFFFFF;
  --ok: #17804F;
  --on-ok: #FFFFFF;
  --bad: #D91A36;
  --on-bad: #FFFFFF;
  --new: #EAF0FF;
  --on-new: #2832A6;
  --soft: #F3F6FC;
  --strong-line: #141B3C;
  --mark-bg: #2832A6;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0F1430;
  --menu-bg: #0A0E24;
  --card: #1A2150;
  --line: #2A336B;
  --text: #FFFFFF;
  --text-2: #A9B3D6;
  --primary: #4BCAFC;
  --on-primary: #0F1430;
  --nav-active: #4BCAFC;
  --on-nav-active: #0F1430;
  --ok: #5BE3A0;
  --on-ok: #0F1430;
  --bad: #FF7A8A;
  --on-bad: #0F1430;
  --new: #FF8A65;
  --on-new: #0F1430;
  --soft: #1A2150;
  --strong-line: #A9B3D6;
  --mark-bg: #2D54F0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.label { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.muted { color: var(--text-2); font-size: 13px; }

/* yuklanish */
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* karkas */
.shell { min-height: 100vh; display: flex; }
.side { width: 240px; flex: none; background: var(--menu-bg); border-right: 1px solid var(--line); padding: 28px 20px; display: flex; flex-direction: column; gap: 32px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.mark-bg { fill: var(--mark-bg); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-decoration: none; font-size: 15px; }
.nav a:hover { background: var(--soft); }
.nav a.on { background: var(--nav-active); color: var(--on-nav-active); font-weight: 600; }
.who { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.who b { display: block; font-size: 14px; font-weight: 600; }

.main { flex: 1; min-width: 0; padding: 40px 48px 64px; }
.page { max-width: 1120px; display: flex; flex-direction: column; gap: 36px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid var(--strong-line); padding-bottom: 20px; }
.head h1 { margin: 6px 0 0; font-family: 'Sora', sans-serif; font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
h2 { margin: 0; font-size: 20px; font-weight: 600; }

.topbar { display: none; }
.tabs { display: none; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.kpi { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.kpi .v { font-family: 'Sora', sans-serif; font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.kpi .n { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 11px; color: var(--text-2); }
.kpi.hot .n { color: var(--bad); }

/* ro'yxat */
.section { display: flex; flex-direction: column; gap: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.list { border-top: 1px solid var(--strong-line); }
.row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .t { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.row.off { opacity: .5; }
.dot { width: 8px; height: 8px; flex: none; background: var(--primary); }
.empty { padding: 20px 0; color: var(--text-2); border-bottom: 1px solid var(--line); }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; font-size: 12px; font-weight: 600; background: var(--new); color: var(--on-new); white-space: nowrap; }
.badge.ok { background: var(--ok); color: var(--on-ok); }
.badge.bad { background: var(--bad); color: var(--on-bad); }

/* tugmalar va formalar */
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid var(--strong-line); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.ghost { border-color: var(--line); }
.btn:disabled { opacity: .5; cursor: default; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

.form { display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); background: var(--card); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field select { min-height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg); outline: none; border-radius: 0; }
.field input:focus, .field select:focus { border-color: var(--primary); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.err { color: var(--bad); font-size: 13px; }

.linkbox { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--new); color: var(--on-new); }
.linkbox code { font-size: 13px; overflow-wrap: anywhere; font-family: ui-monospace, monospace; }

.seg { display: inline-flex; border: 1px solid var(--strong-line); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; background: transparent; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--nav-active); color: var(--on-nav-active); }

.note { padding: 20px; border: 1px solid var(--line); background: var(--soft); }

/* to'liq ekran xabarlar (ruxsat yo'q, Telegram'dan tashqarida) */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate .box { max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.gate svg { width: 56px; height: 56px; }
.gate h1 { margin: 0; font-family: 'Sora', sans-serif; font-size: 28px; line-height: 1.15; }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; font-size: 14px; font-weight: 600; z-index: 10; }

/* telefon (Mini App) */
@media (max-width: 899px) {
  .side { display: none; }
  .main { padding: 0 16px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); margin: 0 -16px 20px; padding: 0 16px; background: var(--menu-bg); position: sticky; top: 0; z-index: 5; }
  .page { gap: 28px; }
  .head h1 { font-size: 30px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 16px 14px 14px; }
  .kpi .v { font-size: 34px; }
  .tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--menu-bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabs a { flex: 1; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--text-2); }
  .tabs a.on { color: var(--nav-active); box-shadow: inset 0 3px 0 var(--nav-active); }
  .tabs svg, .nav svg { width: 22px; height: 22px; }
}
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: square; }

/* 3.2 — nomzodlar */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.on { background: var(--nav-active); color: var(--on-nav-active); border-color: var(--nav-active); }
.chip .c { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 11px; opacity: .8; }
.search { min-height: 44px; width: 100%; max-width: 360px; padding: 0 12px; border: 1px solid var(--line); background: var(--bg); outline: none; border-radius: 0; }
.search:focus { border-color: var(--primary); }
.filters { display: flex; flex-direction: column; gap: 12px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: start; }
.split .detail { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
.crow { display: flex; gap: 12px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; }
.crow:hover { background: var(--soft); }
.crow.on { background: var(--new); color: var(--on-new); box-shadow: inset 3px 0 0 var(--primary); }
.crow .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.crow .t { font-weight: 600; }
.vid-ic { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.badge.wait { background: transparent; border: 1px solid var(--strong-line); color: var(--text); }
.badge.fresh { background: var(--soft); color: var(--text-2); }
.more { align-self: flex-start; }

.detail { border: 1px solid var(--line); background: var(--card); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.who-big { display: flex; gap: 14px; align-items: center; }
.initials { width: 56px; height: 56px; flex: none; display: grid; place-items: center; background: var(--nav-active); color: var(--on-nav-active); font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; }
.who-big h2 { font-family: 'Sora', sans-serif; font-size: 22px; line-height: 1.15; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.scores div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.scores b { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 10px; background: var(--new); color: var(--on-new); font-size: 13px; font-weight: 600; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.video-box { background: #000; min-height: 120px; display: grid; place-items: center; }
.video-box video { width: 100%; max-height: 420px; display: block; }
.video-box .btn { color: #FFFFFF; border-color: #FFFFFF; }
.video-box .muted { color: #A9B3D6; padding: 16px; text-align: center; }
.actions { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--strong-line); padding-top: 16px; }
.hist { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.back { display: none; }

@media (max-width: 1099px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .detail { position: static; max-height: none; }
}
@media (max-width: 899px) {
  .back { display: inline-flex; }
  .detail { padding: 16px; border-left: 0; border-right: 0; margin: 0 -16px; }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
}
a.kpi { text-decoration: none; color: inherit; }
a.kpi:hover { background: var(--soft); }

/* 3.3 — vakansiyalar */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opsbox { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); padding: 12px; max-height: 360px; overflow: auto; }
.opgrp { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; }
.opgrp > .muted { grid-column: 1 / -1; font-weight: 600; }
.opgrp .check { min-height: 36px; font-size: 14px; }
.mcard { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mcard .grow { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.mcard a.t { font-weight: 600; text-decoration: none; }
.mcard a.t:hover { color: var(--primary); }
.mcard .t2 { font-size: 14px; font-weight: 600; text-decoration: none; }
.mform { flex-basis: 100%; }
.mform:empty { display: none; }
.score { width: 56px; flex: none; font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 600; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; }
.score small { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 10px; color: var(--text-2); }
.flags { font-size: 12px; color: var(--bad); }
.vcol { flex-direction: column; align-items: stretch; }
.tm { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 600; width: 56px; flex: none; }
@media (max-width: 899px) {
  .two { grid-template-columns: 1fr; }
  .vcol { flex-direction: row; flex-wrap: wrap; flex-basis: 100%; }
}

/* 3.4 — baho, ishchilar */
.seg.five { display: grid; grid-template-columns: repeat(5, 1fr); }
.seg.five button, .seg button { min-width: 0; }
.bar { height: 6px; background: var(--soft); border: 1px solid var(--line); margin: 6px 0 2px; max-width: 360px; }
.bar span { display: block; height: 100%; background: var(--primary); }
.cks { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.ck { min-width: 30px; height: 26px; padding: 0 4px; display: inline-grid; place-items: center; font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 11px; background: var(--soft); color: var(--text-2); }
.ck.ok { background: var(--ok); color: var(--on-ok); }
.ck.no { background: var(--bad); color: var(--on-bad); }
.ck.ask { background: transparent; border: 1px solid var(--strong-line); color: var(--text); }
