/* EnergyVibe Laboratoriya — qora "muhandislik" uslubi: nuqtali to‘r, oq qurilmalar, monospace yorliqlar,
   o‘tkir burchaklar, to‘q sariq urg‘u va yashil "tok berish". Katalog va ish maydoni uchun umumiy. */
:root {
  --bg: #09090b;
  --bg-2: #111114;
  --bg-3: #17171b;
  --line: #222227;
  --line-2: #33333a;
  --ink: #f4f4f5;
  --ink-2: #a8a8b3;
  --ink-3: #6e6e78;
  --accent: #ff7a3d;
  --go: #22c55e;
  --go-ink: #04140a;
  --bad: #ef4444;
  --warn: #f5a524;
  --ok: #22c55e;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 3000; background: #fff; color: #000; padding: 8px 14px; font: 700 12px var(--mono); }
.skip-link:focus { left: 8px; }
.mono { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow.acc { color: var(--accent); }

/* ---------- Tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: 2px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { border-color: #55555f; background: #ffffff0a; }
.btn.oq { background: #fff; color: #09090b; border-color: #fff; }
.btn.oq:hover { background: #e7e7ea; }
.btn.urgu { border-color: var(--accent); color: var(--accent); }
.btn.urgu:hover, .btn.urgu[aria-pressed="true"] { background: #ff7a3d1a; }
.btn.yashil { background: var(--go); border-color: var(--go); color: var(--go-ink); }
.btn.yashil:hover { background: #2fd96a; }
.btn.yashil[aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 11px; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- Sayt sarlavhasi (katalog) ---------- */
.site-head { position: sticky; top: 0; z-index: 100; padding: 12px 16px 0; }
.sh-bar { position: relative; max-width: 1200px; margin: 0 auto; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 10px 0 18px; background: #fff; color: #09090b; border-radius: 2px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 13px var(--mono); letter-spacing: .14em; white-space: nowrap; }
.logo svg { flex: none; }
.logo i { font-style: normal; color: var(--accent); }
.nav-menu { display: flex; gap: 4px; }
.nav-menu a { text-decoration: none; font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #6b6b74; padding: 8px 12px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #09090b; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid #d9d9de; border-radius: 2px; }
.lang-btn { background: transparent; border: 0; padding: 6px 8px; font: 600 11px var(--mono); letter-spacing: .06em; color: #6b6b74; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: #09090b; color: #fff; }
.sh-bar .btn.qora { background: #09090b; color: #fff; border-color: #09090b; height: 36px; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: #09090b; border: 0; border-radius: 2px; cursor: pointer; padding: 0 11px; }
.hamburger span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .sh-bar .btn.qora { display: none; }
  .nav-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; background: #fff; padding: 8px; border-radius: 2px; box-shadow: 0 20px 40px #0008; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
  .nav-menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav-menu a { padding: 12px; }
}
@media (max-width: 420px) { .logo span { display: none; } }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 16px; }

/* ---------- Katalog: hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; min-height: min(680px, 86vh); padding-top: 40px; padding-bottom: 40px; }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--ink-3); }
.hero p { margin-top: 22px; max-width: 46ch; color: var(--ink-2); font-size: 1.06rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; border-left: 1px solid var(--line); display: grid; place-items: center; }
.hero-art svg { width: 100%; max-width: 520px; height: auto; }
.ha-sim { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ha-oqim { stroke-dasharray: 2 16; stroke-width: 5; animation: oqim 1.1s linear infinite; }
.ha-kolba { animation: yonish 4s ease-in-out infinite; }
.ha-nur { animation: nur 4s ease-in-out infinite; }
@keyframes oqim { to { stroke-dashoffset: -36; } }
@keyframes yonish { 0%, 35% { fill: #f4f4f2; } 45%, 90% { fill: #ffe27a; } 100% { fill: #f4f4f2; } }
@keyframes nur { 0%, 35% { opacity: 0; } 45%, 90% { opacity: .75; } 100% { opacity: 0; } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .hero-art { border-left: 0; border-top: 1px solid var(--line); max-height: 380px; }
}

/* Yuguruvchi lenta */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: lenta 38s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 14px; padding: 22px 34px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; border-right: 1px solid var(--line); }
.ticker-track span small { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
@keyframes lenta { to { transform: translateX(-50%); } }

/* Bo‘limlar */
.sec { padding: 96px 16px 32px; }
.sec-head { text-align: center; display: grid; gap: 14px; justify-items: center; margin-bottom: 36px; }
.sec-head h2 { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.03em; line-height: 1.08; }
.sec-head p { color: var(--ink-2); max-width: 56ch; }

/* Filtrlar */
.filtrlar { display: grid; gap: 10px; border: 1px solid var(--line); padding: 16px; background: var(--bg-2); }
.filtr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.filtr-nom { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); min-width: 104px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; cursor: pointer; border-radius: 2px; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: #55555f; }
.chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: #09090b; }

/* Kartochkalar */
.karta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 20px 0 0; }
.bosh-holat { grid-column: 1 / -1; text-align: center; padding: 56px 16px; color: var(--ink-3); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 1px dashed var(--line-2); }
.karta { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg-2); text-decoration: none; transition: border-color .2s, transform .2s; }
.karta:hover { border-color: #4a4a54; transform: translateY(-2px); }
.karta-rasm { height: 190px; background: radial-gradient(circle, #2a2a30 1px, transparent 1.3px) 0 0 / 18px 18px, #0c0c0e; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.karta-rasm svg { width: 92%; height: 92%; }
.karta-tana { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.karta h3 { font-weight: 700; font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.3; }
.karta p { color: var(--ink-2); font-size: .92rem; }
.karta-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border: 1px solid var(--line-2); color: var(--ink-2); }
.tag.acc { color: var(--accent); border-color: #ff7a3d55; }
.daraja { display: inline-flex; gap: 3px; align-items: center; padding: 0 4px; }
.daraja i { width: 8px; height: 8px; background: #2c2c33; }
.daraja i.on { background: var(--accent); }
.bajarildi { position: absolute; top: 12px; right: 12px; font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--go-ink); background: var(--go); padding: 5px 9px; }
.karta-go { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.karta-eng { font: 500 11px var(--mono); color: var(--go); letter-spacing: .06em; }

/* Imkoniyatlar */
.f-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.f-karta { border: 1px solid var(--line); background: var(--bg-2); padding: 26px 24px; display: grid; gap: 12px; align-content: start; }
.f-karta h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; }
.f-karta p { color: var(--ink-2); }
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr; } }
.end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 72px; padding-bottom: 72px; }
.end h2 { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.03em; margin: 12px 0 8px; }
.end p { color: var(--ink-2); }
.site-foot { border-top: 1px solid var(--line); padding: 28px 16px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* =========================================================================
   Ish maydoni (mashq sahifasi): to‘liq ekranli ilova
   ========================================================================= */
body.app { height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; margin: 10px 12px 0; padding: 0 8px 0 10px; background: #fff; color: #09090b; border-radius: 2px; }
.app-head .btn { color: #09090b; border-color: #09090b; height: 32px; }
.app-head .btn:hover { background: #0000000d; }
.app-head .logo { position: absolute; left: 50%; transform: translateX(-50%); }
.app-head-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
#m-nomi { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6b6b74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
@media (max-width: 980px) { #m-nomi { display: none; } }
@media (max-width: 640px) { .app-head .logo { position: static; transform: none; } .app-head .logo span { display: none; } }

.toolbar { display: flex; align-items: center; gap: 6px; margin: 8px 12px 0; padding: 6px 8px; background: #000; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.toolbar::-webkit-scrollbar { display: none; }
.tb-grp { display: flex; align-items: center; gap: 2px; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--line); }
.tb-grp:last-child { border-right: 0; }
.tb-bo { flex: 1; }
.ikon { display: inline-grid; place-items: center; width: 36px; height: 36px; background: transparent; border: 1px solid transparent; color: var(--ink-2); cursor: pointer; border-radius: 2px; flex: none; }
.ikon:hover { color: var(--ink); background: #ffffff0f; }
.ikon[disabled] { opacity: .3; cursor: not-allowed; }
.ikon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ikon.chegara { border-color: var(--line-2); color: var(--ink); font: 700 13px var(--mono); }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { border: 0; background: transparent; color: var(--ink-3); font: 600 11px var(--mono); letter-spacing: .1em; padding: 0 12px; height: 34px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: #09090b; }
.stat { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 58px; height: 36px; padding: 0 8px; border: 1px solid var(--line); }
.stat b { font: 700 12.5px var(--mono); line-height: 1.1; }
.stat span { font: 500 8.5px var(--mono); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.toolbar .btn { height: 36px; flex: none; }

.ws { position: relative; min-height: 0; margin: 0 12px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); overflow: hidden; background: #000; }
.ws .stage { position: absolute; inset: 0; }
.stage-help { display: none; }
.v2d { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; background: #000; }
.v2d .g-fon { cursor: grab; }
.v2d .g-fon:active { cursor: grabbing; }
.v2d .el { cursor: move; }
.v2d .el.bosiladi { cursor: pointer; }
.v2d .d-body { fill: #f4f4f2; stroke: #c9c9c4; stroke-width: 1.2; }
.v2d .d-face { fill: #fbfbf9; stroke: #dadad5; stroke-width: 1; }
.v2d .d-slot { fill: #1d1f24; }
.v2d .d-tog { fill: #3a3e45; stroke: #111; stroke-width: 1; }
.v2d .d-brass { fill: #c9a24a; stroke: #8c6d27; stroke-width: 1; }
.v2d .d-quti { fill: #17181c; stroke: #4b4e57; stroke-width: 1.5; }
.v2d .d-wago { fill: #e9edf1; stroke: #b6bec8; stroke-width: 1; }
.v2d .d-txt { font: 700 11px var(--mono); fill: #1b1b1f; letter-spacing: .04em; pointer-events: none; }
.v2d .d-mini { font-size: 9.5px; font-weight: 600; fill: #4a4a52; }
.v2d .d-katta { font-size: 15px; font-weight: 800; }
.v2d .d-oq { fill: #f4f4f5; }
.v2d .d-btn { cursor: pointer; }
.v2d .d-btn:hover { filter: brightness(1.15); }
.v2d .d-aylan, .karta-rasm .d-aylan { animation: aylan .5s linear infinite; transform-box: view-box; transform-origin: 0 0; }
.v2d .d-aylan.teskari { animation-direction: reverse; }
.v2d .d-yur { animation: yur 1.6s linear infinite; }
.v2d .d-yur.teskari { animation-direction: reverse; }
.v2d .d-oqim { stroke-dasharray: 4 6; animation: oqim 0.6s linear infinite; }
@keyframes aylan { to { transform: rotate(360deg); } }
@keyframes yur { from { transform: translateX(-30px); } to { transform: translateX(30px); } }
.holat-royxat li.xato span:last-child { color: var(--bad); }
.v2d .d-lbl { font: 500 11px var(--mono); fill: #8e8e98; letter-spacing: .06em; pointer-events: none; }
.v2d .d-kolba { fill: #f4f4f2; stroke: #c9c9c4; stroke-width: 1.5; transition: fill .3s; }
.v2d .d-kolba.on { fill: #ffe27a; stroke: #ffb020; }
.v2d .d-nur { fill: #ffcf40; opacity: .55; pointer-events: none; }
.v2d .el.bosiladi:hover .d-body { stroke: var(--accent); stroke-width: 2; }
.v2d .sim { cursor: pointer; }
.v2d .sim-hit { stroke: transparent; fill: none; }
.v2d .sim-halo { stroke: transparent; stroke-width: 10; fill: none; stroke-linecap: round; }
.v2d .sim-c { stroke-width: 3.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v2d .sim-pe { stroke-dasharray: 10 10; }
.v2d .sim:hover .sim-halo { stroke: #ffffff26; }
.v2d .sim.tanlangan .sim-halo { stroke: #ff7a3d88; }
.v2d .sim.belgi .sim-halo { stroke: #ef4444aa; animation: miltilla 1s ease-in-out infinite; }
.v2d .kl { cursor: crosshair; }
.v2d .kl-hit { fill: transparent; }
.v2d .kl-c { fill: #d9dde2; stroke: #3a3d44; stroke-width: 2; }
.v2d .kl-v { fill: #3a3d44; pointer-events: none; }
.v2d .kl-port .kl-c { fill: #fff; stroke: #c2700f; }
.v2d .kl.band .kl-c { fill: #4ade80; stroke: #14532d; }
.v2d .kl:hover .kl-c { stroke: var(--accent); stroke-width: 3; }
.v2d .kl.tanlangan .kl-c { fill: var(--accent); stroke: #fff; stroke-width: 2.5; animation: puls .9s ease-in-out infinite; }
.v2d .kl.belgi .kl-c { stroke: var(--bad); stroke-width: 3.5; }
.v2d .kl.faza .kl-c { stroke: #ff3b3b; stroke-width: 3; }
.v2d .oqim { fill: #ffd23f; stroke: #7a5200; stroke-width: 1; pointer-events: none; }
.v2d .g-preview { fill: none; stroke-width: 3; stroke-dasharray: 6 6; opacity: 0; pointer-events: none; }
.v2d .g-preview.on { opacity: .85; }
.v2d .g-fx, .v2d .uchqun { pointer-events: none; }
.v2d .uchqun line { stroke: #ffd23f; stroke-width: 3; stroke-linecap: round; animation: uchqun .9s ease-out forwards; }
.v2d .uchqun-c { fill: #ef444440; animation: uchqun .9s ease-out forwards; }
@keyframes puls { 50% { stroke-width: 5; } }
@keyframes miltilla { 50% { opacity: .25; } }
@keyframes uchqun { from { opacity: 1; transform: scale(.6); } to { opacity: 0; transform: scale(1.5); } }

/* 3D */
.v3d { position: absolute; inset: 0; background: #0c0c0e; }
.v3d-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; cursor: grab; }
.v3d-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: #fff; color: #09090b; font: 600 11px var(--mono); padding: 5px 8px; white-space: nowrap; }
.v3d-fokus { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.v3d-fokus .chip { pointer-events: auto; background: #09090bcc; border-color: var(--line-2); color: var(--ink); }
.v3d-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent, #ef444470); opacity: 0; }
.v3d-flash.on { animation: flash .8s ease-out; }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.stage-xabar { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-3); font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* Holat xabari (pastki chap burchak) */
.toast { position: absolute; left: 12px; bottom: 12px; z-index: 6; display: flex; align-items: center; gap: 10px; max-width: min(620px, calc(100% - 24px)); padding: 10px 14px; background: #0b0b0dee; border: 1px solid var(--line-2); border-left: 3px solid var(--ink-3); backdrop-filter: blur(6px); }
.toast[data-daraja="ok"] { border-left-color: var(--ok); }
.toast[data-daraja="ogoh"] { border-left-color: var(--warn); }
.toast[data-daraja="xato"] { border-left-color: var(--bad); background: #1a0b0bee; }
.toast p { font: 500 12px/1.45 var(--mono); color: var(--ink); }
.m-dot { display: none; }

/* Yon panel */
.side { position: absolute; top: 0; right: 0; bottom: 0; z-index: 8; width: 340px; max-width: 100%; background: var(--bg-2); border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%); transition: transform .22s ease; }
.side.open { transform: none; }
.side-blok { padding: 18px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.side-blok h2 { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.3; }
.side-blok p.matn { color: var(--ink-2); font-size: .92rem; }
.m-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.natijalar { display: grid; gap: 8px; list-style: none; }
.xabar { padding: 10px 12px; font-size: .88rem; border: 1px solid var(--line-2); border-left-width: 3px; background: var(--bg-3); color: var(--ink); }
.xabar.xato { border-left-color: var(--bad); }
.xabar.ogoh { border-left-color: var(--warn); }
.xabar.ok { border-left-color: var(--ok); }
.xabar small { display: block; margin-top: 4px; color: var(--ink-2); font-size: .82rem; }
.maslahatlar { display: grid; gap: 6px; counter-reset: m; list-style: none; }
.maslahatlar li { counter-increment: m; font-size: .88rem; color: var(--ink-2); padding: 8px 10px 8px 36px; position: relative; border: 1px solid var(--line); }
.maslahatlar li::before { content: counter(m, decimal-leading-zero); position: absolute; left: 10px; top: 9px; font: 700 11px var(--mono); color: var(--accent); }
.holat-royxat { display: grid; gap: 4px; list-style: none; }
.holat-royxat li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); font: 500 11.5px var(--mono); letter-spacing: .04em; }
.holat-royxat li span:last-child { color: var(--ink-3); text-transform: uppercase; }
.holat-royxat li.on span:last-child { color: var(--ok); }
.holat-royxat li.yonadi { border-color: #ffd23f55; }
.side-amal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-amal .btn { width: 100%; }
.side-amal .btn.keng { grid-column: 1 / -1; }

/* Yordam */
.help-pop { position: absolute; right: 12px; top: 12px; z-index: 9; width: min(380px, calc(100% - 24px)); background: #fff; color: #09090b; padding: 18px; box-shadow: 0 24px 60px #000a; }
.help-pop h3 { font: 700 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.help-pop ul { display: grid; gap: 8px; list-style: none; }
.help-pop li { font-size: .88rem; padding-left: 14px; position: relative; }
.help-pop li::before { content: '>'; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }

/* Pastki panel: sim ranglari va elementlar */
.bottombar { display: flex; align-items: center; gap: 14px; margin: 0 12px 10px; padding: 10px 10px; background: #000; border: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.bb-grp { display: flex; align-items: center; gap: 8px; flex: none; }
.bb-grp + .bb-grp { padding-left: 14px; border-left: 1px solid var(--line); }
.bb-lbl { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-right: 2px; }
.rang-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.rang-btn i { width: 16px; height: 16px; flex: none; border: 1px solid #ffffff33; }
.rang-btn[aria-pressed="true"] { border-color: #fff; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.el-chip { height: 36px; padding: 0 14px; background: #fff; color: #09090b; border: 0; font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.el-chip:hover { background: #e4e4e8; }
.el-chip small { color: #6b6b74; font-weight: 500; margin-left: 6px; }

/* Dialoglar */
dialog { border: 1px solid var(--line-2); padding: 0; width: min(440px, calc(100% - 32px)); background: var(--bg-2); color: var(--ink); box-shadow: 0 30px 80px #000c; }
dialog::backdrop { background: #000a; backdrop-filter: blur(3px); }
.dlg { padding: 24px; display: grid; gap: 14px; }
.dlg h2 { font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em; }
.dlg p { color: var(--ink-2); }
.dlg-tugma { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.natija-ball { font: 800 3.6rem / 1 var(--font); letter-spacing: -.04em; color: var(--go); }
.natija-jadval { display: grid; gap: 4px; }
.natija-jadval div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); font: 500 12px var(--mono); }

@media (min-width: 1101px) {
  .ws.yon-ochiq .stage { right: 340px; }
  .ws.yon-ochiq .help-pop { right: 352px; }
}
@media (max-width: 700px) {
  .toolbar { flex-wrap: wrap; overflow: visible; row-gap: 6px; }
  .tb-bo { display: none; }
  .tb-grp { border-right: 0; padding-right: 0; }
  .toolbar .btn { height: 34px; padding: 0 10px; font-size: 10.5px; }
  .stat { min-width: 50px; height: 34px; }
  .ikon { width: 34px; height: 34px; }
  .toast { max-width: calc(100% - 16px); padding: 8px 10px; }
  .toast p { font-size: 11px; }
  .app-head { margin: 8px 8px 0; }
  .toolbar { margin: 6px 8px 0; }
  .ws { margin: 0 8px; }
  .bottombar { margin: 0 8px 8px; }
  .side { width: 100%; }
  .toast { bottom: 8px; left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
