/* MoveMe Aktivlar — MoveMe Moliya bilan bir xil A+B gibrid dizayn.
   Qorong'i rejim = A · Obsidian (shisha, lime), Yorug' rejim = B · Clay (kobalt, mandarin). */

:root {
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0C0E; --text: #F2F3F5; --muted: #9AA0A8; --soft: #C9CDD3;
  --glow1: radial-gradient(circle, rgba(212,255,63,0.13) 0%, rgba(212,255,63,0) 66%);
  --glow2: radial-gradient(circle, rgba(155,140,255,0.10) 0%, rgba(155,140,255,0) 66%);
  --panel: rgba(255,255,255,0.035); --panel-solid: #121418; --panel-border: rgba(255,255,255,0.08);
  --panel-shadow: 0 30px 60px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  --inset: rgba(255,255,255,0.045); --inset-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.07); --side-line: rgba(255,255,255,0.06);
  --accent: #D4FF3F; --accent-fill: #D4FF3F; --accent-text: #0B0C0E; --accent-ink: #D4FF3F;
  --accent-soft: rgba(212,255,63,0.10); --accent-border: rgba(212,255,63,0.24); --accent-shadow: 0 14px 30px -12px rgba(212,255,63,0.6);
  --nav-on-bg: #D4FF3F; --nav-on-fg: #0B0C0E; --nav-on-sh: 0 10px 24px -10px rgba(212,255,63,0.55); --nav-fg: #C9CDD3;
  --seg-bg: rgba(255,255,255,0.06); --seg-sh: inset 0 0 0 1px rgba(255,255,255,0.08); --seg-on-bg: #D4FF3F; --seg-on-fg: #0B0C0E;
  --seg-on-sh: 0 6px 16px -6px rgba(212,255,63,0.6); --seg-off-fg: #C9CDD3;
  --card-bg: linear-gradient(140deg, #262A31 0%, #16181C 55%, #0F1114 100%); --card-border: rgba(255,255,255,0.14);
  --card-shadow: 0 50px 80px -30px rgba(0,0,0,0.9), 0 0 60px -20px rgba(212,255,63,0.25), inset 0 1px 0 rgba(255,255,255,0.12);
  --card-text: #F2F3F5; --card-muted: #9AA0A8; --card-accent: #D4FF3F; --chip: linear-gradient(135deg, #EEFFA6 0%, #C2EA22 100%);
  --floor: #1A1D22; --hot-ink: #D4FF3F;
  --bar-front: linear-gradient(180deg, #434A56 0%, #2A2F38 100%); --bar-top: #59616F; --bar-side: #1B1E24;
  --hot-front: linear-gradient(180deg, #E8FF80 0%, #C2EA22 100%); --hot-top: #F4FFC4; --hot-side: #8DAA10; --hot-glow: 0 0 44px -10px rgba(212,255,63,0.75);
  --disc-shadow: radial-gradient(ellipse at center, rgba(212,255,63,0.22) 0%, rgba(0,0,0,0) 70%);
  --warn-bg: rgba(255,200,87,0.10); --warn-border: rgba(255,200,87,0.25); --warn-fg: #FFE2A3; --warn-icon: #FFC857;
  --danger-bg: rgba(255,107,107,0.12); --danger-border: rgba(255,107,107,0.3); --danger-fg: #FFB4AB; --danger: #FF6B6B;
  --violet-bg: rgba(155,140,255,0.14); --violet-fg: #C6BEFF;
  --own-bg: rgba(77,208,184,0.13); --own-fg: #8FE8D6;
  --ok-fg: #D4FF3F; --track: rgba(255,255,255,0.08);
  --input-bg: rgba(255,255,255,0.05); --input-border: rgba(255,255,255,0.12);
  --modal-bg: #141619; --overlay: rgba(4,5,6,0.72); --focus: 0 0 0 3px rgba(212,255,63,0.45);
  --desk-bg: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
  --desk-edge: #1E2228; --desk-free: rgba(255,255,255,0.015);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #E8ECF3; --text: #172033; --muted: #556075; --soft: #3B465C;
  --glow1: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 62%);
  --glow2: radial-gradient(circle, rgba(53,80,240,0.10) 0%, rgba(53,80,240,0) 65%);
  --panel: #F7F9FC; --panel-solid: #F7F9FC; --panel-border: rgba(255,255,255,0.8);
  --panel-shadow: 0 34px 64px -34px rgba(40,56,92,0.45), inset 0 2px 0 #FFFFFF, inset 0 -10px 24px rgba(40,56,92,0.05);
  --inset: #EEF1F7; --inset-shadow: inset 2px 2px 6px rgba(40,56,92,0.10), inset -2px -2px 6px rgba(255,255,255,0.8);
  --line: #E1E6EE; --side-line: #D6DCE6;
  --accent: #3550F0; --accent-fill: linear-gradient(180deg, #5068FF 0%, #3550F0 100%); --accent-text: #FFFFFF; --accent-ink: #2C46E0;
  --accent-soft: #E4E9FF; --accent-border: #C9D2FF;
  --accent-shadow: 0 16px 28px -12px rgba(53,80,240,0.75), inset 0 2px 0 rgba(255,255,255,0.3), inset 0 -4px 0 rgba(0,0,0,0.12);
  --nav-on-bg: #3550F0; --nav-on-fg: #FFFFFF; --nav-on-sh: 0 12px 22px -10px rgba(53,80,240,0.7), inset 0 2px 0 rgba(255,255,255,0.25); --nav-fg: #3B465C;
  --seg-bg: #DDE3EC; --seg-sh: inset 3px 3px 8px rgba(40,56,92,0.14), inset -3px -3px 8px rgba(255,255,255,0.85);
  --seg-on-bg: #F7F9FC; --seg-on-fg: #172033; --seg-on-sh: 0 8px 16px -8px rgba(40,56,92,0.45), inset 0 1px 0 #FFFFFF; --seg-off-fg: #556075;
  --card-bg: linear-gradient(140deg, #5A72FF 0%, #3550F0 48%, #2236B8 100%); --card-border: rgba(255,255,255,0.35);
  --card-shadow: 0 50px 70px -30px rgba(34,54,184,0.65), inset 0 2px 0 rgba(255,255,255,0.35);
  --card-text: #FFFFFF; --card-muted: rgba(255,255,255,0.82); --card-accent: #FFD2B5; --chip: linear-gradient(135deg, #FFD7BC 0%, #FF7A2F 100%);
  --floor: #DCE2EC; --hot-ink: #B5470F;
  --bar-front: linear-gradient(180deg, #5A72FF 0%, #3550F0 100%); --bar-top: #9AA9FF; --bar-side: #2238C4;
  --hot-front: linear-gradient(180deg, #FF9A5C 0%, #FF7A2F 100%); --hot-top: #FFC9A3; --hot-side: #D4561A; --hot-glow: none;
  --disc-shadow: radial-gradient(ellipse at center, rgba(40,56,92,0.30) 0%, rgba(0,0,0,0) 70%);
  --warn-bg: #FFE6D6; --warn-border: #FFD2B5; --warn-fg: #8A3208; --warn-icon: #D4561A;
  --danger-bg: #FDE4E4; --danger-border: #F8C4C4; --danger-fg: #A1161A; --danger: #D92D33;
  --violet-bg: #ECE6FF; --violet-fg: #5B3CC4; --own-bg: #D7F5EE; --own-fg: #0B6E5E;
  --ok-fg: #0B7A67; --track: #E1E6EE; --input-bg: #FFFFFF; --input-border: #D3DAE5;
  --modal-bg: #F7F9FC; --overlay: rgba(23,32,51,0.45); --focus: 0 0 0 3px rgba(53,80,240,0.35);
  --desk-bg: linear-gradient(160deg, #FFFFFF 0%, #F1F4F9 100%); --desk-edge: #CBD3E0; --desk-free: #EEF1F6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; transition: background-color .5s, color .5s; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.pad { padding: 16px; }
.mt { margin-top: 18px; }
.spacer { flex: 1 1 auto; }
.danger-t { color: var(--danger) !important; }
.lead { font-size: 16px; line-height: 1.55; margin: 6px 0 12px; }
svg { flex-shrink: 0; }
.ic { display: inline-block; vertical-align: middle; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.spin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 54px; border-radius: 14px; margin: 8px 0; background: linear-gradient(90deg, var(--inset) 25%, rgba(128,138,155,.14) 50%, var(--inset) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Fon ---------- */
.bg-glow { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.bg-glow.g1 { top: -240px; right: -180px; width: 680px; height: 680px; background: var(--glow1); }
.bg-glow.g2 { bottom: -300px; left: 16%; width: 780px; height: 780px; background: var(--glow2); }

/* ---------- Layout ---------- */
.shell { position: relative; z-index: 1; display: flex; max-width: 1560px; margin: 0 auto; min-height: 100vh; }
.side { position: sticky; top: 0; align-self: flex-start; height: 100vh; flex: 0 0 248px; padding: 24px 14px; display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid var(--side-line); overflow-y: auto; scrollbar-width: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; }
.brand-name { display: inline-flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -0.035em; line-height: 1; }
.brand-name .bn-sub { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 0.38em; text-transform: uppercase; color: var(--muted); padding-left: 1px; }
.brand.big { padding: 0; margin-bottom: 8px; }
.logo-sphere { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-text); flex-shrink: 0; }
.logo-sphere.sm { width: 32px; height: 32px; }
:root[data-theme="dark"] .logo-sphere { background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #EEFFA6 18%, #D4FF3F 55%, #7E9A12 100%); box-shadow: 0 10px 24px -6px rgba(212,255,63,0.55); }
:root[data-theme="light"] .logo-sphere { background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #9AA9FF 18%, #3550F0 55%, #1A2A9E 100%); box-shadow: 0 12px 20px -8px rgba(53,80,240,0.6); }
.search-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--input-border); background: var(--inset); color: var(--muted); font-weight: 600; text-align: left; }
.search-btn span { flex: 1; }
kbd { font-family: var(--font-body); font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: var(--track); color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 14px; text-decoration: none; color: var(--nav-fg); font-weight: 600; font-size: 15px; transition: background .2s, color .2s, box-shadow .3s; }
.nav a:hover { background: rgba(128,138,155,.12); }
.nav a[aria-current="page"] { color: var(--nav-on-fg); background: var(--nav-on-bg); box-shadow: var(--nav-on-sh); font-weight: 700; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.me b { display: block; font-size: 14px; line-height: 1.2; }
.me span { font-size: 12px; color: var(--muted); }
.side-row { display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn-icon); box-shadow: 0 0 0 3px var(--warn-bg); }
.live-dot.on { background: #45D483; box-shadow: 0 0 0 3px rgba(69,212,131,.18); animation: pulse 2.4s ease-in-out infinite; }
.main { flex: 1 1 auto; min-width: 0; padding: 26px 32px 64px; }
#view { display: flex; flex-direction: column; gap: 20px; }
.topbar, .tabbar { display: none; }

/* ---------- Umumiy ---------- */
.panel { position: relative; min-width: 0; padding: 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background-color .5s, box-shadow .5s, border-color .5s; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2, .h2 { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > .grow { flex: 1 1 380px; }
.row > .grow-2 { flex: 2 1 520px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.page-title { margin: 6px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.h1-sm { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar.end { justify-content: flex-end; margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--input-border); background: var(--inset); color: var(--text); font-weight: 700; font-size: 14.5px; text-decoration: none;
  transition: transform .2s, box-shadow .3s, background .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { border: 0; background: var(--accent-fill); color: var(--accent-text); box-shadow: var(--accent-shadow); }
.btn.danger { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-fg); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--input-border);
  background: var(--inset); color: var(--text); text-decoration: none; flex-shrink: 0; transition: background .2s, transform .2s; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 11px; }
.icon-btn.ghost { border-color: transparent; background: transparent; }
.icon-btn.primary { border: 0; background: var(--accent-fill); color: var(--accent-text); box-shadow: var(--accent-shadow); }
.icon-btn:disabled { opacity: .5; }
.link-btn { border: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border-radius: 999px; background: var(--seg-bg); box-shadow: var(--seg-sh); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--seg-off-fg); font-weight: 700; font-size: 14px; transition: background .3s, color .3s, box-shadow .3s; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--seg-on-bg); color: var(--seg-on-fg); box-shadow: var(--seg-on-sh); }
.seg.small button { min-height: 32px; padding: 0 12px; font-size: 13px; }
.seg-full { display: flex; border-radius: 16px; }
.seg-full button { flex: 1 1 0; border-radius: 12px; }
.office-seg { border-radius: 20px; }
.office-seg button { min-height: 44px; border-radius: 16px; padding: 0 18px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; border: 1px solid transparent; }
.chip.tiny { padding: 2px 8px; font-size: 11.5px; }
.chip.flat { background: var(--inset); color: var(--soft); }
.chip.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-border); }
.chip.danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-border); }
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-border); }
.chip.own { background: var(--own-bg); color: var(--own-fg); }
.chip.strike { text-decoration: line-through; opacity: .6; }
button.chip { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.45; margin: 6px 0; }
.alert .ic { margin-top: 1px; }
.alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-fg); }
.alert.danger { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger-fg); }
.alert.ok { background: var(--accent-soft); border: 1px solid var(--accent-border); color: var(--accent-ink); }
.empty { padding: 26px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty.small { padding: 16px; }
.sphere { display: inline-block; border-radius: 50%; flex-shrink: 0; vertical-align: middle; }
.rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.kv { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; padding: 14px 16px; border-radius: 18px; background: var(--inset); box-shadow: var(--inset-shadow); margin: 12px 0; font-size: 14px; }
.kv > span { color: var(--muted); font-weight: 600; }
.kv > b { font-weight: 700; overflow-wrap: anywhere; }

.avatar { --h: 210; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; font-weight: 800; letter-spacing: -0.02em;
  color: hsl(var(--h) 90% 14%); background: radial-gradient(circle at 32% 28%, hsl(var(--h) 100% 92%) 0%, hsl(var(--h) 85% 72%) 45%, hsl(var(--h) 60% 48%) 100%);
  box-shadow: 0 8px 18px -8px hsl(var(--h) 70% 40% / .8); }
.free-av { background: var(--inset); color: var(--muted); box-shadow: none; border: 1.5px dashed var(--input-border); width: 34px; height: 34px; }

/* ---------- Formalar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); font-size: 15px; transition: border-color .2s, background .5s; }
select.input { padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239AA0A8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.input[size] { background-image: none; padding: 6px; min-height: 160px; }
select.input[size] option { padding: 8px 10px; border-radius: 8px; }
select.input[size] option:checked { background: var(--accent-soft); color: var(--accent-ink); }
textarea.input { min-height: 70px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input.auto { width: auto; min-width: 150px; }
.input.sm { min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13px; border-radius: 10px; min-width: 120px; }
.input.amount { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.search-box { position: relative; flex: 1 1 260px; max-width: 460px; }
.search-box .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-box .input { padding-left: 42px; }
.search-box.big { max-width: none; }
.search-box.big .input { min-height: 52px; font-size: 17px; }
.date-f { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.date-f .input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full, .form-grid > .alert { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 9px 12px; border-radius: 12px; background: var(--inset); font-size: 14px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin: 1px 0 0; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--inset); border: 1.5px solid transparent; font-weight: 700; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.radio-card input { accent-color: var(--accent); }
.asset-line { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--inset); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { position: relative; }
.icon-pick input { position: absolute; opacity: 0; }
.icon-pick span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--inset); border: 1.5px solid transparent; cursor: pointer; }
.icon-pick input:checked + span { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.creds { white-space: pre-wrap; padding: 14px; border-radius: 14px; background: var(--inset); font-size: 14px; line-height: 1.6; user-select: all; }

/* ---------- Oyna (modal) va o'ng panel ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .18s ease; }
.overlay.closing { animation: fadeout .18s ease forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: min(92vh, 900px); display: flex; flex-direction: column; border-radius: 26px; background: var(--modal-bg);
  border: 1px solid var(--panel-border); box-shadow: 0 50px 100px -30px rgba(0,0,0,.6); animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
.modal.wide { width: min(760px, 100%); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 8px; }
.modal-head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.modal-body { padding: 10px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); }
.drawer-mode { justify-content: flex-end; padding: 0; }
.modal.drawer { width: min(620px, 100%); height: 100%; max-height: none; border-radius: 28px 0 0 28px; animation: slide .3s cubic-bezier(.2,.9,.3,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.d-hero { display: flex; gap: 16px; align-items: center; margin: 4px 0 10px; }
.d-hero h3 { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.d-ic { width: 60px; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); flex-shrink: 0; }
.d-ic.own { background: var(--own-bg); color: var(--own-fg); }
.qty { font-weight: 800; color: var(--accent-ink); }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.d-sub { display: flex; align-items: center; gap: 8px; margin: 22px 0 8px; font-size: 15px; font-weight: 800; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.mini-stat { padding: 12px; border-radius: 16px; background: var(--inset); display: flex; flex-direction: column; gap: 2px; }
.mini-stat span { font-size: 12px; font-weight: 700; color: var(--muted); }
.mini-stat b { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.mini-stat.bad b { color: var(--danger); }

/* ---------- Ro'yxat qatorlari ---------- */
.items { display: flex; flex-direction: column; }
.item-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.item-row:last-child { border-bottom: 0; }
.item-row.arch { opacity: .55; }
.item-ic { width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--inset); color: var(--soft); flex-shrink: 0; }
.item-ic.sm { width: 32px; height: 32px; border-radius: 10px; }
.item-ic.own { background: var(--own-bg); color: var(--own-fg); }
.item-ic.bad { background: var(--danger-bg); color: var(--danger-fg); }
.item-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 0; color: inherit; }
button.item-main:hover .t1 { color: var(--accent-ink); }
.item-main .t1 { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.item-main .t2 { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.item-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.item-right b { min-width: 64px; text-align: right; }
.item-acts { display: flex; gap: 6px; }
.row-del { text-align: right; margin: -4px 0 6px; }

/* ---------- Bosh sahifa ---------- */
.hero-row { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 22px; align-items: center; }
.card3d-wrap { perspective: 1100px; display: flex; justify-content: center; padding: 10px 0; }
.card3d-float { width: 100%; max-width: 400px; transform-style: preserve-3d; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.card3d { position: relative; aspect-ratio: 1.586; border-radius: 24px; padding: 22px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow); color: var(--card-text); display: flex; flex-direction: column; justify-content: space-between;
  transform: rotateX(12deg) rotateY(-16deg) rotateZ(1.5deg); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.card3d .sheen { position: absolute; top: -50%; left: -60%; width: 220%; height: 200%; background: linear-gradient(110deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.12) 48%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 57%); animation: sheen 6.5s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-35%); } 55%,100% { transform: translateX(35%); } }
.card3d .top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card3d .chip-ic { width: 46px; height: 34px; border-radius: 9px; background: var(--chip); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
.card3d .label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--card-muted); }
.card3d .amount { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; margin-top: 6px; }
.card3d .sub { position: relative; font-size: 14px; font-weight: 700; color: var(--card-accent); }
.card3d .brandline { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.18em; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 22px; background: var(--panel); border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow); text-decoration: none; transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
a.kpi:hover { transform: translateY(-3px); }
.kpi-ic { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 6px; }
.kpi.warn .kpi-ic { background: var(--warn-bg); color: var(--warn-icon); }
.kpi.danger .kpi-ic { background: var(--danger-bg); color: var(--danger); }
.kpi-l { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi-v { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.kpi.danger .kpi-v { color: var(--danger); }
.kpi-s { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.onboard { display: flex; gap: 22px; align-items: center; }
.onboard p { margin: 8px 0 14px; max-width: 70ch; }
.onboard-art { width: 96px; height: 96px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); flex-shrink: 0; animation: float 5s ease-in-out infinite; }

.donut-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 14px; }
.donut-row > table { min-width: 0; }
.disc-stage { flex: 0 0 220px; height: 230px; position: relative; perspective: 900px; display: flex; align-items: center; justify-content: center; }
.disc-shadow { position: absolute; left: 30px; right: 30px; bottom: 30px; height: 46px; border-radius: 50%; background: var(--disc-shadow); filter: blur(6px); }
.disc { position: relative; width: 210px; height: 210px; transform-style: preserve-3d; transform: rotateX(62deg); animation: discspin 50s linear infinite; }
@keyframes discspin { from { transform: rotateX(62deg) rotateZ(0deg); } to { transform: rotateX(62deg) rotateZ(360deg); } }
.disc .layer { position: absolute; inset: 0; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, transparent 0, transparent 36%, #000 37%); mask-image: radial-gradient(circle, transparent 0, transparent 36%, #000 37%); }
.disc-center { position: absolute; top: 44%; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: 20px; pointer-events: none; }
.legend { min-width: 0; display: flex; flex-direction: column; }
.legend .item { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 6px; border-bottom: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.legend .item:hover { background: rgba(128,138,155,.08); }
.legend .name { min-width: 0; display: flex; flex-direction: column; }
.legend .name .nm { font-weight: 700; display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend .name .sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.legend .r, .tbl .r { text-align: right; }

.bars { height: 220px; padding: 0 6px; display: flex; align-items: stretch; gap: 10px; border-bottom: 10px solid var(--floor); border-radius: 0 0 14px 14px; }
.bars .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bars .val { font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--muted); }
.bars .col.hot .val { color: var(--hot-ink); }
.bars .well { flex: 1 1 auto; width: 100%; padding-top: 22px; display: flex; align-items: flex-end; justify-content: center; }
.bar-labels { display: flex; gap: 10px; padding: 8px 6px 0; }
.bar-labels span { flex: 1 1 0; min-width: 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars.dense, .bar-labels.dense { gap: 6px; }
.iso { position: relative; width: 100%; max-width: 54px; margin-right: 16px; background: var(--bar-front); animation: grow 1.3s cubic-bezier(.2,.8,.2,1) backwards; }
.iso::before { content: ""; position: absolute; left: 0; top: -16px; width: 100%; height: 16px; background: var(--bar-top); transform: skewX(-45deg); transform-origin: left bottom; }
.iso::after { content: ""; position: absolute; top: 0; right: -16px; width: 16px; height: 100%; background: var(--bar-side); transform: skewY(-45deg); transform-origin: left top; }
.iso.hot { background: var(--hot-front); box-shadow: var(--hot-glow); }
.iso.hot::before { background: var(--hot-top); }
.iso.hot::after { background: var(--hot-side); }
.iso.zero { height: 2px !important; }
@keyframes grow { from { height: 0; } }
.office-mini { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.office-mini a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--inset); text-decoration: none; font-size: 14px; flex-wrap: wrap; }
.office-mini span { color: var(--muted); font-weight: 600; }
.attn { display: flex; flex-direction: column; gap: 2px; }
.attn-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-decoration: none; text-align: left; background: none; border: 0; color: inherit; width: 100%; font-size: 14px; }
.attn-row:not(.static):hover { background: rgba(128,138,155,.09); }
.attn-row > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.attn-more { font-size: 13px; font-weight: 700; color: var(--accent-ink); padding: 6px 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.warn { background: var(--warn-icon); }
.dot.danger { background: var(--danger); }

/* ---------- Tarix (timeline) ---------- */
.timeline { position: relative; display: flex; flex-direction: column; }
.tl-day { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px 42px; }
.tl-item { position: relative; display: flex; gap: 12px; padding: 6px 0 10px; }
.tl-item::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: -6px; width: 2px; background: var(--line); }
.tl-dot { width: 32px; height: 32px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--inset); color: var(--soft); flex-shrink: 0; position: relative; z-index: 1; }
.tl-dot.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tl-dot.warn { background: var(--warn-bg); color: var(--warn-icon); }
.tl-dot.danger { background: var(--danger-bg); color: var(--danger); }
.tl-dot.violet { background: var(--violet-bg); color: var(--violet-fg); }
.tl-body { flex: 1; min-width: 0; padding-top: 4px; }
.tl-title { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.tl-route { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--soft); }
.tl-route span { padding: 2px 8px; border-radius: 8px; background: var(--inset); }
.tl-reason { font-size: 13px; color: var(--muted); margin-top: 3px; font-style: italic; }
.tl-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 4px; }
.audit { display: flex; flex-direction: column; }
.audit-row { border-bottom: 1px solid var(--line); }
.audit-row summary { display: flex; align-items: center; gap: 10px; padding: 10px 4px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.audit-row summary::-webkit-details-marker { display: none; }
.a-sum { flex: 1 1 300px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.audit-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 4px 12px; }
.audit-diff pre { margin: 4px 0 0; padding: 10px; border-radius: 10px; background: var(--inset); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }

/* ---------- Ofis xaritasi ---------- */
.zone { display: flex; flex-direction: column; gap: 12px; }
.zone-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 4px; }
.zone-head h2 { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; padding: 18px; border-radius: 30px;
  background: repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, var(--line) 31px 32px), var(--panel);
  border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); }
.desk { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; text-align: left; color: inherit; border: 1px solid var(--panel-border);
  background: var(--desk-bg); box-shadow: 0 6px 0 var(--desk-edge), 0 22px 30px -18px rgba(0,0,0,.6); transform: perspective(700px) rotateX(8deg);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; min-height: 168px; }
.desk:hover { transform: perspective(700px) rotateX(0deg) translateY(-5px); box-shadow: 0 10px 0 var(--desk-edge), 0 30px 40px -18px rgba(0,0,0,.55); }
.desk.free { background: var(--desk-free); border-style: dashed; box-shadow: 0 4px 0 var(--desk-edge); }
.desk.miss { border-color: var(--warn-border); }
.desk-top { display: flex; align-items: center; gap: 6px; }
.desk-code { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 28px; padding: 0 9px; border-radius: 9px; font-family: var(--font-display); font-weight: 800; font-size: 14px; background: var(--accent-fill); color: var(--accent-text); box-shadow: var(--accent-shadow); }
.desk-code.big { min-width: 70px; height: 54px; font-size: 22px; border-radius: 16px; }
.desk.free .desk-code { background: var(--inset); color: var(--muted); box-shadow: none; }
.desk-team { font-size: 11.5px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.desk-flag { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
.desk-flag + .desk-flag { margin-left: 0; }
.desk-flag.warn { background: var(--warn-bg); color: var(--warn-icon); }
.desk-flag.danger { background: var(--danger-bg); color: var(--danger); }
.desk-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.desk-person .nm { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-items { display: flex; flex-wrap: wrap; gap: 5px; }
.mi { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 6px; border-radius: 8px; background: var(--inset); color: var(--soft); font-size: 12px; }
.mi b { font-weight: 800; }
.mi.own { background: var(--own-bg); color: var(--own-fg); }
.mi.bad { background: var(--danger-bg); color: var(--danger-fg); }
.desk-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.desk-foot b { color: var(--text); font-family: var(--font-display); font-size: 15px; }

/* ---------- Xodimlar ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow);
  text-align: left; color: inherit; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.person:hover { transform: translateY(-4px); }
.person.left { opacity: .6; }
.person-top { display: flex; gap: 12px; align-items: center; }
.person-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-id b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-id span { font-size: 12.5px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-seat { font-size: 13px; font-weight: 700; color: var(--soft); display: flex; align-items: center; gap: 6px; }
.person-facts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--soft); }
.person-facts span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Aktivlar jadvali ---------- */
.sumbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 0 6px; font-size: 14px; color: var(--muted); }
.sumbar b { color: var(--text); }
.table-panel { padding: 8px; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr[data-open] { cursor: pointer; transition: background .15s; }
.tbl tbody tr[data-open]:hover { background: rgba(128,138,155,.08); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.compact td, .tbl.compact th { padding: 7px 8px; }
.w-check { width: 40px; }
.w-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.cell-asset { display: flex; align-items: center; gap: 10px; }
.cell-asset > div { min-width: 0; }

/* ---------- Sklad ---------- */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.cat-pill { display: flex; gap: 10px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); flex-shrink: 0; }
.cat-pill b { display: block; font-family: var(--font-display); font-size: 18px; }
.cat-pill span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.bucket + .bucket { margin-top: 16px; }
.bucket-head { display: flex; gap: 6px; margin-bottom: 4px; }

/* ---------- Jarimalar ---------- */
.item-row.dmg .item-main .t1 { font-weight: 700; }

/* ---------- AI ---------- */
.chat-page { display: flex; flex-direction: column; gap: 14px; height: calc(100vh - 92px); min-height: 520px; }
.chat-head { display: flex; align-items: center; gap: 12px; }
.ai-orb { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent-text);
  background: radial-gradient(circle at 30% 25%, #FFFFFF 0%, var(--accent) 45%, #6D5BFF 100%); box-shadow: 0 10px 28px -8px rgba(155,140,255,.7); animation: float 5s ease-in-out infinite; }
.ai-orb.sm { width: 30px; height: 30px; animation: none; }
.chat-log { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 6px 4px 12px; overscroll-behavior: contain; }
.chat-empty { margin: auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; width: 100%; max-width: 900px; }
.sug { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); text-align: left; color: inherit; font-weight: 600; font-size: 14px; transition: transform .25s; }
.sug:hover { transform: translateY(-3px); }
.sug .ic { color: var(--accent-ink); }
.msg { display: flex; gap: 10px; max-width: 860px; }
.msg.me { align-self: flex-end; }
.msg.me .b { background: var(--accent-fill); color: var(--accent-text); border-radius: 20px 20px 6px 20px; padding: 11px 16px; font-weight: 600; white-space: pre-wrap; box-shadow: var(--accent-shadow); }
.msg.ai .b { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); border-radius: 6px 20px 20px 20px; padding: 14px 18px; }
.md p { margin: 0 0 8px; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md h3, .md h4 { margin: 12px 0 6px; font-size: 15px; }
.md strong { font-weight: 800; }
.md p:first-child strong { font-size: 1.08em; color: var(--accent-ink); }
.md code { padding: 1px 6px; border-radius: 6px; background: var(--inset); font-size: 13px; }
.md-table { overflow-x: auto; margin: 8px 0; }
.md-table table { border-collapse: collapse; font-size: 13.5px; min-width: 100%; }
.md-table th, .md-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.md-table th { font-weight: 800; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.msg-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.typing { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-top: 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 10px; border-radius: 24px; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); }
.chat-input textarea { border: 0; background: transparent; resize: none; min-height: 44px; max-height: 180px; }
.chat-input textarea:focus { box-shadow: none; }

/* ---------- Tahlil ---------- */
.ai-report .lead { font-size: 16.5px; }
.hl { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.hl-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); color: var(--text); }
.hl-item .ic { color: var(--accent-ink); margin-top: 2px; }
.hl-item b { display: block; }
.hl-item span { font-size: 13.5px; color: var(--soft); }
.insight { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 26px; background: var(--inset); box-shadow: var(--inset-shadow); }
.ins-top { display: flex; justify-content: space-between; align-items: center; }
.insight .n { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1; color: var(--accent-ink); }
.insight h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.insight p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sols { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding: 14px; border-radius: 18px; background: var(--panel); }
.sols .t { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sol { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.sol .ok { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
:root[data-theme="dark"] .sol .ok { background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #EEFFA6 22%, #D4FF3F 60%, #7E9A12 100%); color: #0B0C0E; }
:root[data-theme="light"] .sol .ok { background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #8DE8D6 22%, #17B39A 60%, #0B6E5E 100%); color: #FFFFFF; }
.decision { margin-top: 18px; padding: 20px; border-radius: 24px; background: var(--card-bg); color: var(--card-text); box-shadow: var(--card-shadow); }
.decision h3 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 21px; }
.decision .eyebrow { color: var(--card-muted); }
.decision .kv { background: rgba(255,255,255,.08); box-shadow: none; }
.decision .kv > span { color: var(--card-muted); }
.watch { margin-top: 16px; }
.watch ul { margin: 8px 0 0; padding-left: 20px; }
.watch li { margin: 4px 0; }
.only-print { display: none; }

/* ---------- Import ---------- */
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--inset); font-weight: 700; font-size: 13px; color: var(--muted); }
.steps b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--track); }
.steps .on { color: var(--accent-ink); background: var(--accent-soft); }
.steps .on b { background: var(--accent-fill); color: var(--accent-text); }
.steps .done b { background: var(--own-bg); color: var(--own-fg); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 40px 20px; border-radius: 24px;
  border: 2px dashed var(--input-border); background: var(--inset); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.005); }
.drop.busy { opacity: .6; pointer-events: none; }
.drop-ic { width: 70px; height: 70px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-fill); color: var(--accent-text); box-shadow: var(--accent-shadow); margin-bottom: 6px; }
.drop b { font-size: 17px; }
.or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.url-row { display: flex; gap: 10px; }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.tabs-list { display: flex; flex-direction: column; gap: 12px; }
.tab-card { padding: 14px; border-radius: 20px; background: var(--inset); border: 1.5px solid transparent; }
.tab-card.on { border-color: var(--accent-border); }
.tab-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.block-row { padding: 10px 0 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.block-row .check { background: transparent; padding: 0; min-height: 0; }
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sample { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.sample span { padding: 3px 8px; border-radius: 8px; background: var(--panel); }
.count-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.count { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: var(--inset); }
.count b { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.count span:last-child { font-size: 13px; color: var(--muted); font-weight: 700; }
.diff-group > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.diff-group > summary::-webkit-details-marker { display: none; }
.diff-group[open] > summary { margin-bottom: 12px; }
.diff-group .chev { transition: transform .2s; color: var(--muted); }
.diff-group[open] .chev { transform: rotate(180deg); }
.more-tabs { margin-top: 12px; }
.more-tabs > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; color: var(--accent-ink); list-style: none; padding: 8px 4px; }
.more-tabs > summary::-webkit-details-marker { display: none; }
.more-tabs .tabs-list { margin-top: 8px; }
.diff-list { margin: 0; padding-left: 20px; columns: 2 380px; column-gap: 30px; font-size: 14px; }
.diff-list li { margin: 3px 0; break-inside: avoid; }

/* ---------- Sozlamalar ---------- */
.set-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row.arch { opacity: .55; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--inset); border: 1px solid transparent; text-align: left; color: inherit; transition: transform .2s; }
.cat-card:hover { transform: translateY(-2px); border-color: var(--accent-border); }
.cat-card b { display: block; }
.cat-card span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cat-card.arch { opacity: .5; }

/* ---------- Qidiruv va pastki menyu oynalari ---------- */
.search-modal { width: min(640px, 100%); align-self: flex-start; margin-top: 8vh; }
.search-res { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; max-height: 60vh; overflow-y: auto; }
.search-res h4 { margin: 10px 4px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.sr { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 12px; border: 0; background: none; color: inherit; text-align: left; }
.sr:hover, .sr:focus { background: rgba(128,138,155,.1); }
.sr > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px; border-radius: 20px; background: var(--inset); border: 0; color: inherit; text-decoration: none; font-weight: 700; font-size: 13px; text-align: center; }
.more-item .ic { color: var(--accent-ink); }
.more-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Xabarlar ---------- */
#toasts { position: fixed; z-index: 100; left: 50%; transform: translateX(-50%); bottom: calc(24px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14px; background: var(--modal-bg); border: 1px solid var(--panel-border);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); animation: pop .3s cubic-bezier(.2,.9,.3,1.2); transition: opacity .35s, transform .35s; pointer-events: auto; }
.toast.ok .ic { color: var(--ok-fg); }
.toast.danger { background: var(--danger-bg); color: var(--danger-fg); border-color: var(--danger-border); backdrop-filter: blur(10px); }
.toast.out { opacity: 0; transform: translateY(10px); }

/* ---------- Kirish ---------- */
.auth { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 60px; padding: 24px; overflow: hidden; }
.auth-card { position: relative; z-index: 1; width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 30px; background: var(--panel);
  border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow); backdrop-filter: blur(16px); }
.auth-card h1 { margin: 0; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; }
.auth-card p { margin: 0; }
.auth-art { position: relative; z-index: 1; width: 320px; height: 320px; perspective: 900px; }
.iso-desk { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); animation: deskfloat 6s ease-in-out infinite; }
@keyframes deskfloat { 0%,100% { transform: rotateX(58deg) rotateZ(-38deg) translateZ(0); } 50% { transform: rotateX(58deg) rotateZ(-38deg) translateZ(14px); } }
.iso-top { position: absolute; left: 40px; top: 80px; width: 240px; height: 140px; border-radius: 14px; background: var(--card-bg); box-shadow: 0 0 0 1px var(--card-border), 20px 30px 50px rgba(0,0,0,.45); transform: translateZ(40px); }
.iso-mon { position: absolute; top: 96px; width: 92px; height: 8px; border-radius: 3px; background: var(--accent); transform-origin: bottom; transform: translateZ(40px) rotateX(-90deg); box-shadow: 0 0 30px rgba(212,255,63,.35); }
.iso-mon::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 56px; border-radius: 6px; background: linear-gradient(180deg, #2A2F38, #121418); border: 3px solid var(--accent); }
.iso-mon.m1 { left: 64px; }
.iso-mon.m2 { left: 164px; }
.iso-chair { position: absolute; left: 130px; top: 240px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #9AA9FF 30%, #3550F0 100%); transform: translateZ(20px); box-shadow: 10px 16px 30px rgba(0,0,0,.4); }

/* ---------- Chop etish (PDF) ---------- */
@media print {
  :root { --panel: #fff; --inset: #F3F5F9; --text: #111; --muted: #555; --line: #E3E6EC; }
  body { background: #fff !important; color: #111; }
  .side, .topbar, .tabbar, .bg-glow, .no-print, #toasts, .toolbar { display: none !important; }
  .main { padding: 0; }
  .panel, .insight, .kpi { box-shadow: none !important; border: 1px solid #E3E6EC !important; backdrop-filter: none; break-inside: avoid; }
  .only-print { display: flex !important; }
  .print-head { align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 3px solid #D4FF3F; margin-bottom: 8px; }
  .print-head b { display: block; font-family: var(--font-display); font-size: 22px; }
  .print-head span { color: #555; font-size: 13px; }
  .disc { animation: none; }
  .rise { animation: none; }
  .decision { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sol .ok, .chip, .iso, .layer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Planshet ---------- */
@media (max-width: 1320px) {
  .donut-row { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .hero-row { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Telefon ---------- */
@media (max-width: 900px) {
  .side { display: none; }
  .main { padding: calc(70px + var(--safe-t)) 14px calc(104px + var(--safe-b)); }
  #view { gap: 16px; }
  .topbar { display: flex; position: fixed; z-index: 30; top: 0; left: 0; right: 0; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 14px 10px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
  .topbar .brand { padding: 0; gap: 10px; min-width: 0; }
  .topbar .brand b { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); justify-content: space-around; align-items: center; gap: 2px;
    padding: 8px 6px; border-radius: 26px; background: color-mix(in srgb, var(--modal-bg) 88%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--panel-border); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); }
  .tabbar a, .tabbar > button:not(.fab-btn) { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 700; }
  .tabbar a[aria-current="page"] { color: var(--accent-ink); }
  .fab-btn { width: 56px; height: 56px; margin-top: -26px; border-radius: 20px; border: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-fill); color: var(--accent-text); box-shadow: var(--accent-shadow); flex-shrink: 0; }
  .page-title { font-size: 26px; }
  .page-head { align-items: flex-start; }
  .panel { padding: 16px; border-radius: 22px; }
  .kpis, .kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; border-radius: 18px; }
  .kpi-v { font-size: 21px; }
  .card3d-float { max-width: 360px; }
  .row { gap: 16px; }
  .row > .grow, .row > .grow-2 { flex-basis: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .search-box { max-width: none; flex-basis: 100%; }
  .filters .input.auto { flex: 1 1 140px; min-width: 0; }
  .floor { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 10px; border-radius: 22px; }
  .desk { padding: 12px; min-height: 150px; transform: none; }
  .desk:hover { transform: translateY(-3px); }
  .people-grid { grid-template-columns: 1fr; }
  .donut-row { grid-template-columns: 1fr; }
  .disc-stage { height: 210px; }
  .card3d-float { max-width: 330px; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; border-radius: 26px 26px 0 0; animation: up .3s cubic-bezier(.2,.9,.3,1); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .modal.drawer { height: 94vh; border-radius: 26px 26px 0 0; }
  .search-modal { margin-top: 0; align-self: auto; }
  .modal-body { padding: 8px 16px 18px; }
  .modal-foot { position: sticky; bottom: 0; background: var(--modal-bg); padding-left: 16px; padding-right: 16px; }
  .modal-foot .btn { flex: 1; }
  .input, select.input { font-size: 16px; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mini-stat b { font-size: 16px; }
  .d-hero h3 { font-size: 20px; }
  .item-acts { width: 100%; justify-content: flex-end; }
  /* jadval → kartalar */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 8px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .tbl td { padding: 0; border: 0; }
  .tbl td.w-check { display: none; }
  .tbl td[data-label="Aktiv"] { grid-column: 1 / -1; }
  .tbl td[data-label="Soni"], .tbl td[data-label="Narxi"] { display: none; }
  .tbl td[data-label="Jami"] { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl td[data-label="Joylashuvi"] { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
  .tbl td[data-label="Berilgan"] { font-size: 12px; color: var(--muted); text-align: right; }
  .tbl.compact tr { display: grid; grid-template-columns: 1fr auto auto; }
  .tbl.compact td:first-child { grid-column: 1 / -1; font-weight: 700; }
  .tbl.compact td { font-size: 13px; }
  .chat-page { height: calc(100vh - 70px - 120px - var(--safe-b)); }
  .chat-head .h1-sm { font-size: 19px; }
  .diff-list { columns: 1; }
  .auth { flex-direction: column; gap: 0; }
  .auth-art { width: 220px; height: 200px; margin-bottom: -30px; }
  .iso-desk { transform: scale(.7) rotateX(58deg) rotateZ(-38deg); }
  .onboard { flex-direction: column; align-items: flex-start; }
  .audit-diff { grid-template-columns: 1fr; }
  .office-seg { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .url-row { flex-direction: column; }
}
@media (max-width: 420px) {
  .kpi-v { font-size: 19px; }
  .floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
