:root {
  --bg: #000; --s1: #101112; --s2: #191b1d; --s3: #26292c; --line: #25282b;
  --text: #f4f5f1; --muted: #8b918c; --lime: #cfff1a; --lime-2: #b8e60f; --on-lime: #0b0d00;
  --paper: #f3f3ee; --ink: #101010; --red: #ff5a52; --amber: #ffb03a;
  --sat: env(safe-area-inset-top); --sab: env(safe-area-inset-bottom);
  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
html, body { margin: 0; height: var(--app-h, 100%); background: var(--bg); color: var(--text); font: 16px/1.35 var(--font); }
body { overscroll-behavior: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: var(--text); }
/* position: fixed + inset: 0 — iPhone'da bosh ekranga o'rnatilgan ilovada 100dvh holat paneli balandligicha
   kam chiqib, pastda bo'sh joy qolardi; fixed doim butun ekranni egallaydi (brauzerda ham bir xil) */
#app { position: fixed; top: var(--app-top, 0); bottom: auto; left: 0; right: 0; height: var(--app-h, 100%); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
#view { flex: 1; overflow-y: auto; padding: calc(var(--sat) + 18px) 18px 24px; -webkit-overflow-scrolling: touch; }

/* Sarlavhalar */
.title { font-size: 40px; font-weight: 850; letter-spacing: -.035em; line-height: 1; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.live { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; padding-bottom: 4px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on i { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.live.pause i { background: var(--amber); }
.label { font-size: 14px; color: var(--muted); margin: 22px 2px 10px; font-weight: 600; }
.sub { color: var(--muted); font-size: 15px; margin: -8px 2px 16px; }
.muted { color: var(--muted); }

/* Tugmalar */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--s3); }
.btn.black { background: #0b0b0b; color: #fff; }
.btn.lime { background: var(--lime); color: var(--on-lime); }
.btn.outline { background: transparent; box-shadow: inset 0 0 0 2px rgba(0,0,0,.6); color: var(--on-lime); }
.sheet-body .btn.outline { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }  /* qora oynada ham o'qiladigan */
.btn.ghost { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); background: none; }
.btn.red { background: rgba(255,90,82,.14); color: var(--red); }
.btn.full { width: 100%; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; }

/* Avatarlar */
.avatars { display: flex; gap: 14px; overflow-x: auto; padding: 12px 12px 8px; margin: -8px -12px 0; scrollbar-width: none; }  /* halqa va yorug'lik chetdan kesilmasin */
.avatars::-webkit-scrollbar { display: none; }
.av { flex: none; width: 62px; text-align: center; font-size: 12px; color: var(--muted); }
.av .nm { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }  /* faqat matn qisqaradi, halqa kesilmaydi */
.av i, .ava { display: grid; place-items: center; border-radius: 50%; background: var(--s2); color: var(--text); font-style: normal; font-weight: 800; }
.av i { width: 58px; height: 58px; margin: 0 auto 6px; font-size: 20px; box-shadow: 0 0 0 2px var(--s3); }
.av.busy i { box-shadow: 0 0 0 3px var(--lime), 0 0 16px rgba(207,255,26,.4); color: var(--lime); }
.av.busy { color: var(--text); }
.ava { width: 46px; height: 46px; font-size: 16px; flex: none; }
.ava.busy { box-shadow: 0 0 0 2px var(--lime); color: var(--lime); }

/* Yirik laym karta (Rahbar) */
.card { border-radius: 28px; padding: 18px; }
.card.lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 44px rgba(207,255,26,.28); margin-top: 20px; }
.card.lime .ava { background: #fff; color: #111; width: 48px; height: 48px; }
.card.lime .who { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.card.lime .st { font-size: 13px; opacity: .65; }
.card.lime blockquote { margin: 14px 0 16px; font-size: 16px; line-height: 1.35; font-weight: 500; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.card.lime .btns { display: flex; gap: 10px; }
.card.lime .btns .btn { flex: 1; padding: 13px 8px; }
.row { display: flex; align-items: center; gap: 12px; }

/* Raqamlar */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.stat b { display: block; font-size: 44px; font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat.hot b { color: var(--lime); }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.2; }

/* Ro'yxat qatorlari */
.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border: 0; }
.item .grow { flex: 1; min-width: 0; }
.item h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item p { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .big { font-size: 26px; font-weight: 850; letter-spacing: -.03em; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--s3); }
.dot.on { background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--s2); color: var(--muted); }
.pill.lime { background: var(--lime); color: var(--on-lime); }
.pill.lime::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--on-lime); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Vazifalar: progress */
.bar { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; margin: 8px 0 4px; position: relative; }
.bar i { display: block; height: 100%; width: 100%; background: var(--lime); border-radius: 3px; }
.bar.run i { width: 38%; position: absolute; animation: slide 1.4s ease-in-out infinite; }
.bar.bad i { background: var(--red); } .bar.warn i { background: var(--amber); }
@keyframes slide { 0% { left: -40%; } 100% { left: 100%; } }

/* Kartalar */
.cardsview { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cardsview > * { flex: none; }
.cardsview > .paper { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.paper { background: var(--paper); color: var(--ink); border-radius: 30px; padding: 22px 20px; display: flex; flex-direction: column; }
.paper .meta { font-size: 13px; color: #666; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.paper .tag { background: #111; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.paper h2 { font-size: 27px; font-weight: 850; letter-spacing: -.03em; line-height: 1.08; margin: 16px 0 14px; }
.paper pre { flex: 0 1 auto; min-height: 44px; margin: 0; padding: 14px; background: #e4e5de; border-radius: 16px; font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.actions { display: flex; align-items: flex-start; justify-content: center; gap: 22px; margin-top: 22px; padding-bottom: 4px; }
.circle { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); font-size: 24px; font-weight: 700; flex: none; }
.circle small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.circle.no { color: var(--red); background: rgba(255,90,82,.14); }
.circle.yes { width: 84px; height: 84px; background: var(--lime); color: var(--on-lime); font-size: 36px; box-shadow: 0 0 30px rgba(207,255,26,.4); }
.cap { text-align: center; font-size: 12px; color: var(--muted); margin-top: 6px; }
.empty { text-align: center; color: var(--muted); padding: 56px 16px; font-size: 16px; }
.empty b { display: block; font-size: 52px; color: var(--lime); margin-bottom: 8px; }

/* Hisob */
.money b { font-size: 56px; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.money span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.prov { margin-top: 18px; }
.prov .row { justify-content: space-between; font-weight: 700; }
.prov small { color: var(--muted); font-weight: 500; }

/* Pastki menyu (4 ta bo'lim) */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); background: #0b0b0b; border-top: 1px solid var(--line);
  padding: 8px 8px calc(var(--sab) + 8px); backdrop-filter: blur(16px); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.tab span.ic { display: grid; place-items: center; width: 52px; height: 32px; border-radius: 16px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--lime); }
.tab.on span.ic { background: var(--lime); color: var(--on-lime); }
.badge { position: absolute; top: -4px; left: calc(50% + 10px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

/* Chat (to'liq ekran) */
.chatpage { position: fixed; inset: 0; z-index: 15; background: var(--bg); display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.chatpage[hidden] { display: none; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: calc(var(--sat) + 10px) 0 10px; }
.chat-top h2 { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.chat-top p { font-size: 13px; color: var(--muted); }
.back { width: 40px; height: 40px; border-radius: 50%; background: var(--s2); font-size: 28px; line-height: 1; padding-bottom: 3px; }
.msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 8px 0 12px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.msg.owner { align-self: flex-end; background: var(--lime); color: var(--on-lime); border-bottom-right-radius: 6px; font-weight: 500; }
.msg.ceo { align-self: flex-start; background: var(--s2); border-bottom-left-radius: 6px; }
.msg.sys { align-self: flex-start; color: var(--muted); font-size: 13px; padding: 2px 4px; max-width: 100%; }
.msg.result { align-self: stretch; max-width: 100%; background: var(--s1); border: 1px solid var(--line); border-radius: 22px; }
.msg.result .t { margin-top: 8px; max-height: 220px; overflow: hidden; position: relative; font-size: 15px; }
.msg.result .t.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--s1)); }
.msg.result .btn { margin-top: 10px; padding: 9px 16px; font-size: 14px; }
.typing { align-self: flex-start; color: var(--muted); font-size: 13px; padding: 2px 6px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 0 calc(var(--sab) + 10px); }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 48px; padding: 13px 18px; border-radius: 26px; background: var(--s2); border: 0; outline: 0; }
.composer textarea:focus { box-shadow: 0 0 0 2px var(--lime); }
.send { width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex: none; }
.send svg { width: 22px; height: 22px; }

/* Oyna (sheet), kirish, xabar */
.sheet { position: fixed; inset: 0; z-index: 25; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden], .login[hidden], .toast[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.sheet-body { position: relative; width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--s1); border-radius: 30px 30px 0 0; padding: 22px 20px calc(var(--sab) + 26px); }
.sheet-body h2 { font-size: 26px; font-weight: 850; letter-spacing: -.03em; margin-bottom: 4px; }
.sheet-body label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 6px; font-weight: 600; }
.sheet-body input, .sheet-body textarea { width: 100%; padding: 14px 16px; border-radius: 16px; background: var(--s2); border: 0; outline: 0; }
.sheet-body input:focus, .sheet-body textarea:focus { box-shadow: 0 0 0 2px var(--lime); }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--s2); padding: 14px; border-radius: 18px; font-size: 15px; max-height: 38dvh; overflow-y: auto; margin-top: 8px; }
.step { margin-top: 14px; }
.step b { color: var(--lime); font-size: 13px; }
.step div { color: var(--muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.login { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: grid; place-items: center; padding: 24px; }
.login-card { width: 100%; max-width: 380px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.login-card h2 { font-size: 34px; font-weight: 850; letter-spacing: -.03em; }
.login-card p { color: var(--muted); font-size: 15px; }
.login-card input { width: 100%; padding: 15px; border-radius: 18px; background: var(--s2); border: 0; outline: 0; text-align: center; }
.login-card .btn { width: 100%; }
.ring { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #eaff7d, var(--lime) 55%, var(--lime-2)); box-shadow: 0 0 0 4px #000, 0 0 0 6px var(--lime), 0 0 26px rgba(207,255,26,.4); }
.err { color: var(--red) !important; font-size: 14px; min-height: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 96px); transform: translateX(-50%); z-index: 40; background: var(--paper); color: var(--ink);
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; max-width: 90vw; }

/* Moslashuvchanlik */
.item h3, .card.lime .who, .title { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  #view { padding-left: 14px; padding-right: 14px; }
  .title { font-size: 34px; }
  .stat b { font-size: 36px; }
  .paper h2 { font-size: 23px; }
  .card.lime .btns .btn { font-size: 14px; padding: 12px 4px; }
  .circle.yes { width: 74px; height: 74px; }
  .tab { font-size: 10.5px; }
}
@media (max-height: 500px) {
  #view { padding-top: calc(var(--sat) + 8px); }
  .title { font-size: 28px; }
  .head { margin-bottom: 10px; }
  .tabs { padding-top: 3px; padding-bottom: calc(var(--sab) + 3px); }
  .tab { flex-direction: row; justify-content: center; gap: 6px; }
  .tab span.ic { width: 38px; height: 28px; }
  .tab svg { width: 20px; height: 20px; }
  .badge { position: static; margin-left: -2px; }
  .chat-top { padding-top: calc(var(--sat) + 4px); padding-bottom: 4px; }
  .composer { padding-top: 4px; }
  .composer textarea { min-height: 42px; padding: 10px 16px; }
  .send { width: 42px; height: 42px; }
  .sheet-body { max-height: 94dvh; }
  .paper { padding: 14px 16px; }
  .paper h2 { font-size: 20px; margin: 8px 0; }
  .actions { margin-top: 10px; }
  .circle { width: 46px; height: 46px; font-size: 20px; }
  .circle.yes { width: 56px; height: 56px; font-size: 26px; }
  .cap { display: none; }
}
@media (min-width: 900px) {
  #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .sheet { align-items: center; }
  .sheet-body { border-radius: 30px; }
}
@media (prefers-reduced-motion: reduce) { .bar.run i { animation: none; left: 0; } * { transition: none !important; } }
.stat { text-align: left; }

/* Vazifalar: faol/arxiv, boshqaruv, taklif kartasi */
.seg { display: flex; gap: 4px; background: var(--s2); padding: 4px; border-radius: 999px; margin-bottom: 8px; }
.seg button { flex: 1; padding: 10px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--lime); color: var(--on-lime); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.acts .btn { flex: 1 1 auto; }
.msg.proposal { align-self: stretch; max-width: 100%; background: var(--s1); border: 1px solid var(--lime); border-radius: 22px; }
.msg.proposal .q { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.msg.proposal .btn { margin-top: 12px; width: 100%; }
.chat-top .grow { flex: 1; min-width: 0; }
.chat-top .btn { padding: 9px 14px; font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; padding: 6px 2px; }
textarea.big { min-height: 140px; }

/* Mikrofon va asosiy AI tanlovi */
.mic { width: 48px; height: 48px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; flex: none; color: var(--text); }
.mic svg { width: 22px; height: 22px; }
.mic.rec { background: var(--red); color: #fff; animation: recpulse 1.2s ease-in-out infinite; }
.mic[disabled] { opacity: .5; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 8px rgba(255,90,82,.25); } }
@media (prefers-reduced-motion: reduce) { .mic.rec { animation: none; } }
@media (max-height: 500px) { .mic { width: 42px; height: 42px; } }

.ver { text-align: center; margin-top: 18px; font-size: 12px; }

.seg button.off { opacity: .4; }

.pre.code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; max-height: 55dvh; white-space: pre; overflow: auto; overflow-wrap: normal; }
.note { color: var(--amber); font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.note.red { color: var(--red); }
.msg.result .files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg.result .files .btn { margin: 0; padding: 7px 12px; font-size: 13px; }
.sheet-body .backlink { color: var(--muted); font-weight: 600; margin-bottom: 8px; }

#chat-clear { font-size: 17px; padding: 0; }
.acts .btn.ghost { flex: 1 1 auto; }
.item .btn.sm { flex: none; padding: 6px 10px; }

/* Oddiy karta va "kalit: qiymat" qatorlari (Hisob bo'limi) */
.card { background: var(--s1); }
.card.lime { background: var(--lime); }
.card.white { background: var(--paper); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-of-type { border-bottom: 0; }
.kv > span:last-child { text-align: right; font-size: 13px; max-width: 62%; overflow-wrap: anywhere; }
.card > .acts { margin: 12px 0 0; }
.qr { width: 100%; max-width: 280px; display: block; margin: 12px auto; border-radius: 16px; background: #fff; }
/* Natija va fayllar: odam o'qiydigan ko'rinish */
.card.result { padding: 16px 18px; margin-top: 8px; }
.md { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md p { margin: 8px 0; }
.md h3 { font-size: 18px; font-weight: 800; margin: 16px 0 6px; }
.md h4 { font-size: 16px; font-weight: 750; margin: 14px 0 4px; }
.md ul, .md ol { margin: 6px 0; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--s2); padding: 1px 6px; border-radius: 6px; }
.md a { color: var(--lime); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md blockquote { margin: 8px 0; padding: 4px 12px; border-left: 3px solid var(--lime); color: var(--muted); }
.md .tbl { overflow-x: auto; margin: 8px 0; }
.md table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { background: var(--s2); }
.step div.md, .step .md p { color: var(--text); }
.card.mainfile { padding: 14px 16px; margin-top: 8px; }
.card.mainfile .acts { margin-top: 8px; }
details.team { margin-top: 18px; }
details.team summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 0; }
.linkbtn { background: none; border: 0; color: var(--lime); padding: 6px 0; font-weight: 700; font-size: 14px; }
.step .md div, .step .md td, .step .md th { color: var(--text); font-size: inherit; margin: 0; }
[hidden] { display: none !important; }  /* .btn kabi display beradigan uslublar hidden ni bosib ketmasin */

/* ===================== Kompyuter (≥1100px): videodagi dashboard uslubi, bizning ranglarda =====================
   Mobil ko'rinish o'zgarmaydi: hamma qoidalar shu media ichida yoki faqat dashboardda bo'ladigan .ov klasslarida. */
@media (min-width: 1100px) {
  #app { max-width: none; border: 0; background:
    radial-gradient(1200px 600px at 12% -10%, rgba(207,255,26,.07), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(207,255,26,.04), transparent 60%), var(--bg); }
  /* pastki menyu -> tepadagi kapsula navigatsiya */
  .tabs { order: -1; display: flex; gap: 4px; align-self: flex-start; margin: calc(var(--sat) + 18px) 0 0 36px; padding: 5px;
    background: rgba(25,27,29,.7); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(16px); }
  .tab { flex-direction: row; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px; font-size: 14px; }
  .tab span.ic { width: auto; height: auto; background: none !important; color: inherit !important; }
  .tab svg { width: 18px; height: 18px; }
  .tab.on { background: var(--lime); color: var(--on-lime); }
  .tab:not(.on):hover { color: var(--text); background: var(--s2); }
  .badge { position: static; margin-left: 2px; }
  #view { padding: 22px 36px 40px; }
  /* boshqa sahifalar: o'rtada, o'qishga qulay kenglikda */
  #view > :not(.ov) { max-width: 980px; margin-left: auto; margin-right: auto; }
  #view > .btn { display: flex; }   /* inline-flex tugma auto chetlari bilan o'rtaga chiqmay, chapga yopishib qolardi */
  /* chat: dashboard ustida markazda suzuvchi oyna, orqasi xiralashadi (avval butun balandlikda dashboardni yopib, menyuni kesib qo'yardi) */
  .chat-bg { position: fixed; inset: 0; z-index: 14; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); }
  .chat-bg[hidden] { display: none; }
  .chatpage { inset: auto; top: 5vh; bottom: 5vh; left: 50%; right: auto; width: min(780px, 92vw); max-width: none; margin: 0; transform: translateX(-50%);
    padding: 0 22px; background: var(--s1); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.65); overflow: hidden; }
  .chat-top { padding-top: 18px; }
  .msg { max-width: 78%; }
  .sheet-body { max-width: 680px; }
  .item:hover, .tcard:hover, .ov-row:hover, .ov-agent:hover { background: var(--s2); }
}

/* --- dashboard tuzilishi --- */
.ov { max-width: 1680px; margin: 0 auto; }
.ov-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.ov .crumb { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.ov .title { font-size: 34px; }
.ov-status { display: flex; align-items: center; gap: 12px; }
.pill-s { font-size: 13px; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--s1); }
.ov-grid { display: grid; grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(300px, 360px); gap: 16px; align-items: start; }
.ov-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ov .card { margin: 0; padding: 18px; background: linear-gradient(180deg, rgba(25,27,29,.92), rgba(16,17,18,.92));
  border: 1px solid var(--line); border-radius: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.ov .kick { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.ov h2 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.ov .big { display: block; font-size: 26px; font-weight: 850; letter-spacing: -.03em; color: var(--text); }
.ov .sm { font-size: 13px; } .ov .xs { font-size: 12px; }
.ov .row-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ov .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov .clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov .linkbtn { color: var(--lime); font-weight: 700; font-size: 14px; }
.ov .acts-i { display: flex; align-items: center; gap: 14px; }
.ov .btn.sm { padding: 9px 16px; font-size: 14px; }
.ov .seg.sm { margin: 0; flex: none; } .ov .seg.sm button { padding: 7px 14px; font-size: 13px; }

/* --- chap: jonli shar --- */
.ov-today h2 { margin-bottom: 4px; }
.orb { position: relative; width: 230px; height: 230px; margin: 14px auto 10px; }
.orb .blob { position: absolute; inset: 20%; border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%;
  background: radial-gradient(circle at 46% 48%, rgba(10,12,6,.95) 0 24%, rgba(120,150,10,.75) 42%, #cfff1a 66%, #e6ff7a 74%, rgba(207,255,26,.0) 76%);
  filter: blur(1.5px) drop-shadow(0 0 18px rgba(207,255,26,.6)); animation: morph 9s ease-in-out infinite, spin 26s linear infinite; }
.orb .b1 { translate: -5% 3%; }
.orb .b2 { translate: 8% -6%; inset: 16%; opacity: .55; mix-blend-mode: screen; animation-duration: 11s, 34s; animation-direction: alternate, reverse; border-radius: 55% 45% 38% 62% / 52% 60% 40% 48%; }
.orb .b3 { translate: 4% 8%; inset: 12%; opacity: .35; animation-duration: 7s, 20s; filter: blur(14px); mix-blend-mode: screen; }
.orb .core { position: absolute; inset: 36%; border-radius: 50%; background: radial-gradient(circle at 45% 45%, rgba(0,0,0,.85) 30%, rgba(0,0,0,0) 72%); }
.orb .orbit { position: absolute; left: -4%; right: -4%; top: 34%; bottom: 34%; border: 1px solid rgba(207,255,26,.32); border-radius: 50%;
  transform: rotate(-12deg); animation: tilt 14s ease-in-out infinite alternate; }
.orb .r2 { top: 26%; bottom: 26%; left: 4%; right: 4%; transform: rotate(18deg); border-color: rgba(207,255,26,.12); animation-duration: 18s; }
.orb .r3 { top: 44%; bottom: 44%; left: -10%; right: -10%; border-color: rgba(255,255,255,.07); animation-duration: 22s; }
.orb.on .blob { animation-duration: 4s, 12s; filter: blur(5px) drop-shadow(0 0 34px rgba(207,255,26,.85)); }
.orb:not(.on) { opacity: .82; }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 61% 39% / 45% 41% 59% 55%; transform: scale(1); }
  33% { border-radius: 63% 37% 45% 55% / 38% 62% 38% 62%; transform: scale(1.06); }
  66% { border-radius: 37% 63% 52% 48% / 61% 39% 61% 39%; transform: scale(.96); }
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes tilt { from { transform: rotate(-14deg) scaleY(.9); } to { transform: rotate(10deg) scaleY(1.1); } }
.ov-quote { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 4px 0 12px; }
.ov-ask { display: flex; gap: 8px; align-items: center; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 16px; }
.ov-ask:focus-within { border-color: rgba(207,255,26,.5); box-shadow: 0 0 0 3px rgba(207,255,26,.12); }
.ov-ask input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.ov-ask .send { width: 38px; height: 38px; }
.ov-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.ov-mini .m { background: var(--s2); border-radius: 14px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; }
.ov-mini .m b { font-size: 22px; font-weight: 850; } .ov-mini .m span { font-size: 12px; color: var(--muted); }
.ov-mini .m.on b { color: var(--lime); } .ov-mini .m.hot { box-shadow: inset 0 0 0 1px rgba(255,176,58,.5); } .ov-mini .m.hot b { color: var(--amber); }

/* --- ro'yxat qatorlari, belgilar --- */
.ov-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 9px 8px; margin: 0 -8px; border-radius: 12px; }
.ov-row b { font-size: 14px; font-weight: 650; }
.ov-row .grow, .ov-agent .grow, .ov .kpi .kv-l { min-width: 0; }
.bul { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--muted); }
.bul.lime { background: var(--lime); box-shadow: 0 0 8px var(--lime); } .bul.amber { background: var(--amber); box-shadow: 0 0 8px rgba(255,176,58,.6); }
.bul.red { background: var(--red); box-shadow: 0 0 8px rgba(255,90,82,.6); }
.tag-s { font-size: 11.5px; font-weight: 750; padding: 3px 9px; border-radius: 999px; background: var(--s3); color: var(--muted); white-space: nowrap; }
.tag-s.ok { background: rgba(207,255,26,.12); color: var(--lime); } .tag-s.run { background: var(--lime); color: var(--on-lime); }
.tag-s.warn { background: rgba(255,176,58,.14); color: var(--amber); } .tag-s.bad { background: rgba(255,90,82,.15); color: var(--red); }
.chips { display: flex; gap: 6px; }
.chip { font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 8px; }
.chip.run { background: rgba(207,255,26,.14); color: var(--lime); } .chip.warn { background: rgba(255,176,58,.14); color: var(--amber); }
.chip.bad { background: rgba(255,90,82,.14); color: var(--red); }

/* --- o'rta: ko'rsatkich kartalari va grafiklar --- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov .kpi { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; text-align: left; min-height: 116px; }
.ov .kpi .kv-l { min-width: 0; }
.ov .kpi .chart { width: 46%; max-width: 170px; height: auto; flex: none; }
.gauge { width: 96px; flex: none; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.chart .ax { fill: var(--muted); font-size: 11px; }
.glowline { filter: drop-shadow(0 0 6px rgba(207,255,26,.55)); }
.chart .pulse { animation: pulse 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
.chart-box { margin-top: 10px; }
.stack { display: flex; flex: none; }
.stack i { width: 34px; height: 34px; margin-left: -9px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--font);
  background: var(--s3); border: 2px solid var(--s1); color: var(--text); }
.stack i.on { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 12px rgba(207,255,26,.5); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.tcard { position: relative; text-align: left; padding: 14px 14px 12px 16px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tcard::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--s3); }
.tcard.ok::before { background: var(--lime); } .tcard.warn::before { background: var(--amber); } .tcard.bad::before { background: var(--red); }
.tcard.run { border-color: rgba(207,255,26,.55); box-shadow: 0 0 0 1px rgba(207,255,26,.25), 0 0 26px rgba(207,255,26,.18); }
.tcard.run::before { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.tcard p { font-size: 14px; line-height: 1.35; min-height: 38px; }

/* --- o'ng: jamoa harakati --- */
.ov-agent { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 8px; margin: 0 -8px; border-radius: 12px; }
.ov-agent b { font-size: 14px; }
.av-c { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 800 12px var(--font); font-style: normal;
  background: var(--s3); color: var(--text); }
.av-c.on { background: var(--lime); color: var(--on-lime); box-shadow: 0 0 14px rgba(207,255,26,.55); }
.ov-agent .r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; flex: none; }
@media (min-width: 1100px) and (max-width: 1360px) {
  .ov-grid { grid-template-columns: minmax(280px, 320px) minmax(0, 1fr); }
  .ov-grid > .ov-col:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .orb .blob, .orb .orbit, .chart .pulse { animation: none; } }

/* Vazifalar sahifasi kompyuterda: kartalar to'ri (mobilda .tlist oddiy blok, ko'rinish o'zgarmaydi) */
@media (min-width: 1100px) {
  #view[data-tab="tasks"] > .tlist { max-width: 1280px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 6px; }
  #view[data-tab="tasks"] > .head, #view[data-tab="tasks"] > .seg, #view[data-tab="tasks"] > .empty { max-width: 1280px; }
  .tlist .item { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, rgba(25,27,29,.92), rgba(16,17,18,.92)); align-items: stretch; }
  .tlist .item h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
}

/* AI kaliti yo'q ogohlantirishi (har ikkala ko'rinishda) */
.warnbox { display: flex; flex-direction: column; gap: 4px; margin: 0 0 16px; padding: 14px 16px; border-radius: 18px; cursor: pointer;
  background: rgba(255,176,58,.1); border: 1px solid rgba(255,176,58,.45); color: var(--amber); }
.warnbox span { color: var(--text); font-size: 14px; line-height: 1.4; }
/* Sahifalar orasida o'tish: kompyuterda yumshoq paydo bo'lish (mobil o'zgarmaydi) */
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1100px) and (prefers-reduced-motion: no-preference) { #view.swap > * { animation: viewin .26s ease both; } }

/* iPhone ilova rejimi: butun ekranni egallaydigan qatlamlar ham haqiqiy ekran balandligini oladi (--app-h, app.js) */
@media (max-width: 1099px) {
  .chatpage, .sheet, .login, .chat-bg { height: var(--app-h, auto); top: var(--app-top, 0); }
  .kb .composer { padding-bottom: 8px; }           /* klaviatura ochiqda pastki xavfsiz zona kerak emas */
  .kb .sheet-body { padding-bottom: 16px; }
}

/* Kompyuter: asosiy sahifa (Jamoa) ekranga to'liq sig'adi, skrol yo'q. Past balandlikda esa oddiy skrol qoladi. */
@media (min-width: 1100px) and (min-height: 720px) {
  #view[data-tab="team"] { overflow: hidden; display: flex; flex-direction: column; padding-bottom: 20px; }
  #view[data-tab="team"] > .ov { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: 1680px; width: 100%; }
  #view[data-tab="team"] .ov-head { flex: none; margin-bottom: 12px; }
  #view[data-tab="team"] .ov .title { font-size: 30px; }
  #view[data-tab="team"] .ov-grid { flex: 1; min-height: 0; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr) minmax(260px, 360px); grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 14px; }
  #view[data-tab="team"] .ov-grid > .ov-col:last-child { grid-column: auto; display: flex; flex-direction: column; }
  #view[data-tab="team"] .ov-col { min-height: 0; overflow: hidden; gap: 12px; }
  #view[data-tab="team"] .ov .card { padding: 14px 16px; }
  /* chap */
  #view[data-tab="team"] .ov-today { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  #view[data-tab="team"] .ov-today .orb { flex: none; width: clamp(110px, 27vh, 290px); height: clamp(110px, 27vh, 290px); align-self: center; margin: 8px auto; }
  #view[data-tab="team"] .ov-quote { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  #view[data-tab="team"] .ov-col:first-child > .card:last-child { flex: 1 1 0; min-height: 70px; overflow: hidden; }
  /* o'rta */
  #view[data-tab="team"] .kpis { gap: 12px; flex: none; }
  #view[data-tab="team"] .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #view[data-tab="team"] .ov .kpi { min-height: 0; padding: 12px 14px; }
  #view[data-tab="team"] .ov .kpi > :not(.kv-l) { display: none; }   /* grafik/o'lchagich: joy tejash uchun yashiramiz */
  #view[data-tab="team"] .tcard p { min-height: 0; -webkit-line-clamp: 1; }
  #view[data-tab="team"] .ov .kpi .big { font-size: 22px; }
  #view[data-tab="team"] .ov-chart { flex: 1 1 0; min-height: 120px; display: flex; flex-direction: column; }
  #view[data-tab="team"] .ov-chart .chart-box { flex: 1; min-height: 0; position: relative; margin-top: 6px; }
  #view[data-tab="team"] .ov-chart .chart { position: absolute; inset: 0; width: 100%; height: 100%; }
  #view[data-tab="team"] .ov-tasks { flex: none; }
  #view[data-tab="team"] .ov-tasks .tgrid { grid-template-rows: auto; grid-auto-rows: 0; overflow: hidden; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }
  #view[data-tab="team"] .ov-tasks .big { font-size: 20px; }
  /* o'ng */
  #view[data-tab="team"] .ov-col:last-child > .card:first-child { flex: none; max-height: 34%; overflow: hidden; }
  #view[data-tab="team"] .ov-agents { flex: 1 1 0; min-height: 0; overflow: hidden; }
  #view[data-tab="team"] .ov-agents .ov-agent { padding-top: 6px; padding-bottom: 6px; }
}
.ov-ask .mic { width: 38px; height: 38px; background: var(--s3); }
.ov-ask .mic svg { width: 18px; height: 18px; }
@media (min-width: 1100px) and (min-height: 720px) and (max-height: 820px) {
  #view[data-tab="team"] .ov .title { font-size: 24px; }
  #view[data-tab="team"] .ov-head { margin-bottom: 6px; }
  #view[data-tab="team"] .kpis .muted.sm { display: none; }
  #view[data-tab="team"] .ov-chart { min-height: 110px; }
}

.updbar { position: fixed; left: 50%; top: calc(var(--sat, 0px) + 10px); transform: translateX(-50%); z-index: 60; padding: 11px 18px; border-radius: 999px;
  background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.ptr { position: fixed; left: 50%; top: calc(var(--sat, 0px) + 4px); transform: translateX(-50%); z-index: 50; opacity: 0; pointer-events: none;
  padding: 7px 14px; border-radius: 999px; background: var(--s3); color: var(--text); font-size: 13px; font-weight: 700; }

/* Eslatma va rejalar sahifasi */
.plans-sec { display: none; }
.plans-sec.on { display: block; }
.plans-sec .row-b { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 10px; }
.plans-sec .kick { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0; }
.plans-sec .kick.sub { margin: 18px 0 6px; }
.plans-sec .btn.sm { padding: 9px 16px; font-size: 14px; }
.prow { display: flex; align-items: center; gap: 10px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.prow.past { opacity: .55; }
.prow .grow { min-width: 0; } .prow b { font-size: 15px; font-weight: 650; }
.prow .x { width: 30px; height: 30px; border-radius: 50%; background: var(--s2); color: var(--muted); font-size: 13px; flex: none; }
.plans-filter { margin: 0 0 12px; overflow-x: auto; }
.plans-filter button { white-space: nowrap; }
.card.plan { margin-bottom: 12px; }
.card.plan.fin { opacity: .65; }
.card.plan .ptitle { font-size: 17px; font-weight: 750; display: block; }
.card.plan .bar { margin: 10px 0 6px; }
.card.plan .acts-i { display: flex; gap: 12px; align-items: center; }
.chk { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 15px; }
.chk i { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--muted); display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 900; color: var(--on-lime); margin-top: 1px; }
.chk.done i { background: var(--lime); border-color: var(--lime); }
.chk.done span { text-decoration: line-through; color: var(--muted); }
@media (min-width: 1100px) {
  #view[data-tab="plans"] > * { max-width: 1280px; }
  .plans-seg { display: none; }
  .plans-wrap { display: grid; grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .plans-sec, .plans-sec.on { display: block; }
  .plans-sec > .card.plan { display: block; }
  #view[data-tab="plans"] .plans-sec.on:last-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
  #view[data-tab="plans"] .plans-sec:last-child > .row-b, #view[data-tab="plans"] .plans-sec:last-child > .plans-filter, #view[data-tab="plans"] .plans-sec:last-child > p { grid-column: 1 / -1; }
  #view[data-tab="plans"] .plans-sec:last-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
  #view[data-tab="plans"] .plans-sec:last-child .card.plan { margin: 0; }
}
