/* Blender kursiga xos qismlar: ikonkalar, tugmalar, trenajyor, rasmlar, node sxemalari */
:root { --accent: #f5a142; --bl-or: #ea7600; --bl-blue: #5fa8e8; }

/* ----- Ikonkalar va tugmalar ----- */
.bi { width: 1.2em; height: 1.2em; vertical-align: -.25em; color: #e8e8e8; flex: none; }
.logo-ue .bi { width: 28px; height: 28px; vertical-align: 0; }
.path-step .bi, .module-num .bi { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }
.keys { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; vertical-align: 1px; }
kbd {
  display: inline-flex; align-items: center; gap: 3px; min-width: 1.7em; justify-content: center;
  font: 700 .78em "JetBrains Mono", monospace; color: #f2f2f2; padding: .14em .5em .2em;
  background: linear-gradient(#3d4250, #2a2e38); border: 1px solid #4b5162; border-bottom-width: 3px;
  border-radius: 6px; box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
kbd.ms { background: linear-gradient(#4a3a24, #33281a); border-color: #6b5230; }
kbd .bi { width: 1.1em; height: 1.1em; vertical-align: 0; }
.kp { color: var(--faint); font-size: .8em; padding: 0 1px; }

/* ----- Hotkey trenajyori ----- */
.drill { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin: 0 0 18px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.drill.active { border-color: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 25%, transparent); }
.drill.good { animation: drGood .35s; }
.drill.bad { animation: drBad .35s; }
@keyframes drGood { 30% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .55); } }
@keyframes drBad { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } 30% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .55); } }
.dr-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.dr-head .bi { width: 22px; height: 22px; color: var(--mc); }
.dr-head span { color: var(--muted); font-size: 13px; margin-left: auto; }
.dr-stage { padding: 20px 18px; text-align: center; }
.dr-idle p { color: var(--muted); margin: 0 auto 14px; max-width: 560px; }
.dr-best { color: var(--text) !important; }
.dr-res { font-size: 40px; }
.dr-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.dr-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.dr-dots i.ok { background: var(--ok); }
.dr-dots i.cur { background: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 30%, transparent); }
.dr-task { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.dr-hint { font-size: 26px; margin-bottom: 18px; transition: filter .2s; min-height: 44px; }
.dr-hint.blur { filter: blur(9px); opacity: .6; }
.dr-ctl { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ----- Shpargalka va lug'at (bosh sahifa) ----- */
.cheats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 40px; }
.cs-mod { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; border-top: 3px solid var(--mc); }
.cs-mod h4 { font-size: 15px; margin-bottom: 8px; display: flex; gap: 7px; align-items: center; }
.cs-row { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.cs-row:last-child { border-bottom: 0; }
.cs-row > span:last-child { color: var(--muted); }
.gl-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gl-tabs button { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; font-size: 13px; }
.gl-tabs button.on { background: var(--bl-or); border-color: var(--bl-or); color: #fff; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 48px; }
.gl-i { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.gl-i > .bi { width: 30px; height: 30px; padding: 4px; background: #2b2d33; border-radius: 7px; flex: none; }
.gl-i b { display: block; font-size: 14px; }
.gl-i span { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ----- Umumiy rasm konteyneri ----- */
.fig { margin: 0 0 18px; }
.fig-cap { color: var(--muted); font-size: 14px; margin: 10px 0 0 !important; }
.fig-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.fig-mouse { width: 100%; max-width: 220px; }
.fig-keys { display: grid; gap: 12px; }
.fig-keys b { display: inline-block; margin-bottom: 2px; }
.fig-keys p { margin: 0 !important; color: var(--muted); font-size: 14.5px; }
.fig-keys .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* Ikonkali kartalar */
.ic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ic-cards > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.ic-cards .bi { width: 30px; height: 30px; margin-bottom: 4px; }
.ic-cards.big .bi { width: 46px; height: 46px; }
.ic-cards b { font-size: 15px; }
.ic-cards span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.axes-fig { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.axes-fig span { flex: 1; min-width: 150px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); font-size: 14px; }
.axes-fig b { color: var(--c); font-size: 18px; margin-right: 6px; }

/* Properties tablari */
.pt-fig { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; background: #1d1f24; border: 1px solid #2c2f36; border-radius: 12px; padding: 10px; }
.pt-fig > div { display: grid; grid-template-columns: 30px 90px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; color: #ddd; font-size: 13.5px; }
.pt-fig > div:hover { background: #2a2d34; }
.pt-fig .bi { width: 22px; height: 22px; }
.pt-fig span { color: #9aa0a8; font-size: 12.5px; line-height: 1.4; }

/* Klaviatura */
.kb-wrap { display: flex; gap: 14px; overflow-x: auto; padding: 14px; background: #16181d; border: 1px solid #2c2f36; border-radius: 14px; }
.kb { display: grid; gap: 5px; min-width: 620px; flex: 1; }
.kb.np { min-width: 170px; flex: none; }
.kb-r { display: flex; gap: 5px; }
.kb-k { flex: 1; min-width: 0; height: 34px; display: grid; place-items: center; border-radius: 6px; background: #2a2e38; border: 1px solid #3b4050; border-bottom-width: 3px; color: #9aa0a8; font: 600 11.5px "JetBrains Mono", monospace; }
.kb-k.hot { background: #5b3a10; border-color: #ea7600; color: #fff; }
.kb-k.mod { background: #1f3550; border-color: #5fa8e8; color: #fff; }
.kb-k.num { background: #24452a; border-color: #6fcf6f; color: #fff; }
.kb-k.ghost { visibility: hidden; }
.kb.np .kb-k { width: 36px; flex: none; }
.kb-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.kb-legend .kb-k { display: inline-block; width: 16px; height: 14px; vertical-align: -2px; margin-right: 4px; border-bottom-width: 2px; }

/* Numpad ko'rinishlari */
.np-fig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 460px; }
.np-k { background: #24452a; border: 1px solid #6fcf6f; border-bottom-width: 4px; border-radius: 10px; padding: 8px 10px; color: #fff; display: grid; }
.np-k b { font: 800 20px "JetBrains Mono", monospace; }
.np-k span { font-weight: 700; font-size: 14px; }
.np-k small { color: #b7d7bb; font-size: 12px; line-height: 1.3; }
.np-k.z { grid-column: span 2; }

/* SVG sxemalar qatori */
.svg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.svg-row.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.svg-row.one { grid-template-columns: 1fr; }
.svg-row figure { margin: 0; background: #1d1f24; border: 1px solid #2c2f36; border-radius: 12px; padding: 12px; }
.svg-row svg { width: 100%; height: auto; max-height: 260px; display: block; }
.svg-row figcaption { font-size: 13.5px; color: #b5bac3; margin-top: 8px; line-height: 1.45; }
.svg-row figcaption b { color: #fff; }

/* Modifier steki */
.ms-fig { max-width: 520px; }
.ms-i { display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: #2b2d33; border: 1px solid #3a3d45; border-radius: 9px; padding: 9px 12px; }
.ms-i .bi { grid-row: span 2; width: 22px; height: 22px; }
.ms-i b { color: #fff; font-size: 14px; }
.ms-i span { color: #a6abb4; font-size: 12.5px; grid-column: 2; }
.ms-i em { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 6px; }
.ms-i em .bi { width: 16px; height: 16px; }
.ms-ar { text-align: center; color: var(--faint); font-size: 11px; line-height: 1.6; }

/* Blender → Unreal pipeline */
.pl-fig { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-fig > div { flex: 1; min-width: 92px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; display: grid; gap: 2px; justify-items: center; }
.pl-fig .bi { width: 30px; height: 30px; }
.pl-fig b { font-size: 14px; }
.pl-fig span { font-size: 12px; color: var(--muted); }
.pl-fig > i { color: var(--bl-or); font-style: normal; font-weight: 800; }

/* Fayl tizimi */
.fs-fig { background: #1d1f24; border: 1px solid #2c2f36; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; }
.fs-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.fs-row .bi { width: 20px; height: 20px; color: #f5c542; }
.fs-row span { color: #9aa0a8; }
.fs-row.l1 { padding-left: 24px; } .fs-row.l2 { padding-left: 48px; } .fs-row.l3 { padding-left: 72px; }
.fs-path { margin-top: 10px; padding-top: 10px; border-top: 1px solid #2c2f36; color: #b5bac3; }

/* ----- Blender oynasi (interaktiv) ----- */
.bu { --b0: #1d1d1d; --b1: #303030; --b2: #3d3d3d; --b3: #282828; color: #ddd; font: 12px "Inter", system-ui, sans-serif; }
.bu-win { border: 1px solid #111; border-radius: 12px; overflow: hidden; background: #161616; display: grid; gap: 2px; padding: 2px; }
.bu-win [data-r]:not(.bu-n) { position: relative; cursor: pointer; transition: box-shadow .15s; }
.bu-win [data-r].on { box-shadow: inset 0 0 0 2px #f5a142; z-index: 2; }
.bu-win .bi { width: 15px; height: 15px; vertical-align: -3px; }
.bu-n { position: absolute; z-index: 5; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #f5a142; color: #111; font: 800 10.5px/18px "Inter", sans-serif; text-align: center; cursor: pointer; box-shadow: 0 0 0 2px #161616; }
.bu-top { display: flex; align-items: center; gap: 12px; background: var(--b3); padding: 4px 30px 4px 8px; border-radius: 6px 6px 0 0; overflow: hidden; white-space: nowrap; }
.bu-tabs { display: flex; gap: 2px; margin-left: 10px; padding-right: 26px; overflow: hidden; }
.bu-tabs b { font-weight: 500; padding: 2px 8px; border-radius: 5px; color: #bbb; }
.bu-tabs b.on { background: #4a4a4a; color: #fff; }
.bu-main { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 2px; }
.bu-vp { display: grid; grid-template-rows: auto 1fr; background: #3d3d3d; border-radius: 4px; overflow: hidden; }
.bu-head { display: flex; align-items: center; gap: 10px; padding: 4px 30px 4px 6px; background: #303030; white-space: nowrap; overflow: hidden; }
.bu-dd { background: #282828; border-radius: 4px; padding: 2px 7px; }
.bu-sp { flex: 1; }
.bu-head .bi { width: 16px; height: 16px; }
.bu-body { display: grid; grid-template-columns: 36px minmax(0, 1fr) 118px; min-height: 290px; }
.bu-tools { display: flex; flex-direction: column; gap: 4px; padding: 26px 4px 6px; background: rgba(0, 0, 0, .14); }
.bu-tools .bi { width: 22px; height: 22px; padding: 3px; background: #2a2a2a; border-radius: 5px; }
.bu-tools .bi:first-of-type { background: #4772b3; }
.bu-scene { overflow: hidden; background: #393939; }
.bu-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.bu-label { position: absolute; left: 8px; top: 6px; color: #e8e8e8; font-size: 11px; line-height: 1.35; pointer-events: none; }
.bu-giz { position: absolute !important; right: 8px; top: 8px; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .18); }
.bu-giz .bu-n { top: -6px; right: -6px; }
.bu-giz i { position: absolute; width: 17px; height: 17px; border-radius: 50%; background: var(--c); color: #111; font: 800 10px/17px "Inter", sans-serif; text-align: center; font-style: normal; }
.bu-n-panel { background: #303030; padding: 26px 8px 8px; display: grid; align-content: start; gap: 3px; }
.bu-n-panel b { color: #fff; font-size: 11.5px; }
.bu-n-panel small { color: #999; font-size: 10.5px; margin-top: 4px; }
.bu-n-panel span { background: #545454; border-radius: 4px; padding: 1px 6px; font-size: 10.5px; color: #eee; }
.bu-right { display: grid; grid-template-rows: auto 1fr; gap: 2px; }
.bu-out { background: #282828; border-radius: 4px; padding: 6px 8px 8px; display: grid; gap: 3px; }
.bu-out > div { display: flex; align-items: center; gap: 6px; }
.bu-out > div .bi:last-child { margin-left: auto; opacity: .7; }
.bu-out .i1 { padding-left: 12px; } .bu-out .i2 { padding-left: 26px; }
.bu-out .sel { background: #334d80; border-radius: 3px; color: #fff; }
.bu-props { background: #303030; border-radius: 4px; display: grid; grid-template-columns: 30px 1fr; }
.bu-ptabs { background: #252525; display: flex; flex-direction: column; gap: 2px; padding: 4px 3px; }
.bu-ptabs .bi { width: 20px; height: 20px; padding: 2px; border-radius: 4px; }
.bu-ptabs .bi:nth-child(7) { background: #4a4a4a; }
.bu-pbody { padding: 8px; display: grid; align-content: start; gap: 4px; }
.bu-pbody b { color: #fff; } .bu-pbody small { color: #999; }
.bu-pbody span { background: #545454; border-radius: 4px; padding: 2px 6px; font-size: 11px; }
.bu-time { display: flex; align-items: center; gap: 12px; background: #303030; padding: 6px 30px 6px 8px; border-radius: 4px; }
.bu-time span { background: #282828; border-radius: 4px; padding: 1px 7px; }
.bu-status { display: flex; align-items: center; gap: 6px; background: #232323; padding: 4px 30px 4px 8px; border-radius: 0 0 6px 6px; color: #bbb; font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.bu-info { margin-top: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #f5a142; border-radius: 10px; padding: 12px 14px; font-size: 15px; color: var(--text); }
.bu-info b { display: flex; align-items: center; gap: 8px; }
.bu-info .bu-n { position: static; display: inline-block; flex: none; }
.bu-info p { margin: 6px 0 0 !important; color: var(--muted); }
.bu-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; margin: 10px 0 0; padding-left: 22px; font-size: 13.5px; }
.bu-legend li { cursor: pointer; color: var(--muted); margin: 0 !important; }
.bu-legend li:hover, .bu-legend li.on { color: var(--text); }
.bu-legend li.on b { color: #f5a142; }
.bu-legend b { font-weight: 600; }
@media (max-width: 760px) {
  .bu-main { grid-template-columns: 1fr; }
  .bu-body { grid-template-columns: 34px minmax(0, 1fr); }
  .bu-n-panel { display: none; }
  .fig-row { grid-template-columns: 1fr; justify-items: center; }
}

/* ----- Node sxemalari (Blender node muharriri) ----- */
.bn { border: 1px solid #111; border-radius: 12px; overflow: hidden; margin: 0 0 18px; background: #1d1d1d; color: #e6e6e6; }
.bn-bar { background: #303030; border-bottom: 1px solid #111; }
.bn-tab { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 7px 14px; background: #1d1d1d; color: #ddd; }
.bn-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 14px; background: #262626; border-bottom: 1px solid #111; font-size: 12px; color: #cfcfcf; }
.bn-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bn-legend .bn-s { position: static; transform: none; }
.bn-scroll { overflow: auto; max-height: 620px; }
.bn-canvas {
  position: relative; background-color: #1d1d1d;
  background-image: radial-gradient(#2e2e2e 1.2px, transparent 1.3px); background-size: 22px 22px;
}
.bn-wires { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
.bn-node { position: absolute; z-index: 2; background: #303030; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); font: 12px "Inter", system-ui, sans-serif; }
.bn-head { height: 24px; display: flex; align-items: center; gap: 5px; padding: 0 8px; background: var(--hc); border-radius: 6px 6px 0 0; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; }
.bn-car { font-size: 9px; opacity: .8; }
.bn-body { padding: 6px 0; }
.bn-row { position: relative; height: 22px; display: flex; align-items: center; padding: 0 12px; color: #e0e0e0; white-space: nowrap; }
.bn-row.out { justify-content: flex-end; }
.bn-row.prop { padding: 0 10px; }
.bn-s { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); border: 1px solid #000; transform: translateY(-50%); }
.bn-s.r { right: -5px; } .bn-s.l { left: -5px; }
.bn-dd { flex: 1; background: #282828; border: 1px solid #3d3d3d; border-radius: 4px; padding: 0 7px; font-size: 11.5px; line-height: 17px; overflow: hidden; text-overflow: ellipsis; }
.bn-fld { flex: 1; display: flex; justify-content: space-between; gap: 6px; background: #545454; border-radius: 4px; padding: 0 7px; line-height: 18px; font-size: 11.5px; overflow: hidden; }
.bn-fld b { font-weight: 500; }
.bn-sw { margin-left: auto; width: 46px; height: 15px; border-radius: 3px; border: 1px solid #111; }

/* ===== Blender oyna maketlari (uifig.js) — skrinshot o'rniga ===== */
.uf { margin: 0 0 18px; border: 1px solid #161616; border-radius: 12px; overflow: hidden; background: #303030; color: #e6e6e6; font: 13px "Inter", system-ui, sans-serif; }
.uf-bar { background: #1d1d1d; border-bottom: 1px solid #161616; padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: #cfcfcf; }
.uf-n { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e87d0d; color: #1d1d1d; font-weight: 800; font-size: 10.5px; flex: none; margin: 0 6px 0 0; font-style: normal; }
.uf-split { display: grid; grid-template-columns: 1fr; }
.uf-split.has-tabs { grid-template-columns: 32px 1fr; }
.uf-split.has-nav { grid-template-columns: minmax(120px, 170px) 1fr; }
.uf-tabs { background: #282828; display: flex; flex-direction: column; gap: 2px; padding: 6px 3px; }
.uf-tabs span { display: grid; place-items: center; height: 26px; border-radius: 5px; }
.uf-tabs span.on { background: #4772b3; }
.uf-tabs .bi { width: 16px; height: 16px; }
.uf-nav { background: #282828; padding: 8px 6px; display: flex; flex-direction: column; gap: 1px; }
.uf-nav b { font-size: 11px; color: #9a9a9a; padding: 8px 8px 3px; font-weight: 600; }
.uf-nav span { padding: 4px 10px; border-radius: 5px; color: #d0d0d0; }
.uf-nav span.on { background: #4772b3; color: #fff; }
.uf-pane { padding: 6px 8px 10px; min-width: 0; }
.uf-cat { margin: 6px 0 3px; padding: 5px 8px; background: #3d3d3d; border-radius: 5px; font-weight: 600; font-size: 12.5px; }
.uf-row { display: grid; grid-template-columns: minmax(110px, 44%) 1fr; align-items: center; gap: 8px; padding: 2px 4px; min-height: 26px; border-radius: 4px; }
.uf-row.hi { background: rgba(232, 125, 13, .12); box-shadow: inset 2px 0 0 #e87d0d; }
.uf-lab { display: flex; align-items: center; justify-content: flex-end; text-align: right; color: #c9c9c9; min-width: 0; overflow-wrap: anywhere; }
.uf-val { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.uf-num, .uf-txt, .uf-sel { background: #545454; border-radius: 4px; padding: 2px 8px; font-size: 12px; color: #e6e6e6; min-width: 64px; }
.uf-num b { font-weight: 500; }
.uf-vec { display: grid; gap: 1px; flex: 1; }
.uf-vec .uf-num { border-radius: 0; }
.uf-vec .uf-num:first-child { border-radius: 4px 4px 0 0; }
.uf-vec .uf-num:last-child { border-radius: 0 0 4px 4px; }
.uf-sel { background: #282828; display: inline-flex; justify-content: space-between; gap: 10px; flex: 1; max-width: 240px; }
.uf-sel i { font-style: normal; color: #9a9a9a; }
.uf-chk { width: 15px; height: 15px; border-radius: 3px; background: #545454; display: grid; place-items: center; font-size: 10px; flex: none; }
.uf-chk.on { background: #4772b3; color: #fff; }
.uf-cl { color: #d6d6d6; }
.uf-color { width: 100%; max-width: 200px; height: 18px; border-radius: 4px; background: var(--sw); }
.uf-btn { background: #545454; border-radius: 4px; padding: 2px 12px; font-size: 12px; }
.uf-key { background: #3d3d3d; border: 1px solid #5a5a5a; border-bottom-width: 2px; border-radius: 4px; padding: 0 7px; font: 11.5px "JetBrains Mono", monospace; }
.uf-slider { position: relative; flex: 1; max-width: 240px; height: 20px; border-radius: 4px; background: linear-gradient(90deg, #4772b3 var(--f), #545454 var(--f)); display: grid; place-items: center; font-size: 12px; }
.uf-slider b { font-weight: 500; }
.uf-tree { padding: 6px 0 8px; background: #282828; }
.uf-ti { display: flex; align-items: center; gap: 7px; padding: 3px 12px 3px calc(12px + var(--d) * 18px); min-height: 25px; flex-wrap: wrap; }
.uf-ti:nth-child(even) { background: #2b2b2b; }
.uf-ti.hi { background: rgba(232, 125, 13, .14); box-shadow: inset 2px 0 0 #e87d0d; }
.uf-ti .bi { width: 15px; height: 15px; }
.uf-ti em { font-style: normal; color: #9a9a9a; font-size: 12px; margin-left: auto; padding-left: 10px; }
.uf-dot { width: 15px; text-align: center; color: #888; }
.uf-grid { display: grid; gap: 3px; padding: 3px; background: #161616; min-height: 280px; }
.uf-area { background: #303030; border-radius: 6px; padding: 9px 11px; min-width: 0; }
.uf-area.grid { background-color: #393939; background-image: linear-gradient(#444 1px, transparent 1px), linear-gradient(90deg, #444 1px, transparent 1px); background-size: 26px 26px; }
.uf-area.hi { box-shadow: inset 0 0 0 2px #e87d0d; }
.uf-area h5 { margin: 0 0 4px; font-size: 12.5px; color: #fff; display: flex; align-items: center; }
.uf-area p { margin: 0; font-size: 12px; color: #b5b5b5; line-height: 1.45; }
.uf-notes { margin: 0; padding: 12px 18px 12px 40px; background: #262626; border-top: 1px solid #161616; font-size: 13.5px; color: #e0e0e0; }
.uf-notes li { margin-bottom: 4px; }
.uf-notes li::marker { color: #e87d0d; font-weight: 800; }
.uf code, .uf .ui { background: #1d1d1d; color: #e6e6e6; }
@media (max-width: 700px) {
  .uf-split.has-nav { grid-template-columns: 1fr; }
  .uf-nav { flex-direction: row; flex-wrap: wrap; }
  .uf-nav b { width: 100%; }
  .uf-grid { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
  .uf-area { grid-area: auto !important; }
  .uf-row { grid-template-columns: 1fr; gap: 3px; }
  .uf-lab { justify-content: flex-start; text-align: left; }
}

/* Xatoni toping (node daraxtlari) */
.bug { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.bug h4 { font-size: 16px; margin-bottom: 6px; }
.bug-q { color: var(--muted); margin-bottom: 12px; }
.bug .bn { margin-bottom: 10px; }
.bugmode .bn-node { cursor: pointer; transition: box-shadow .12s; }
.bugmode .bn-node:hover { box-shadow: 0 0 0 2px #e87d0d, 0 6px 14px rgba(0,0,0,.5); }
.bug.done .bn-node { cursor: default; }
.bn-node.bug-right { box-shadow: 0 0 0 3px #34d399, 0 0 18px rgba(52, 211, 153, .5) !important; }
.bn-node.bug-wrong { box-shadow: 0 0 0 3px #f87171 !important; }
.bug-ex { font-size: 14.5px; color: var(--text); padding: 10px 12px; border-radius: 8px; background: var(--panel-2); }

/* Atamalar lug'ati (dars matnida) */
.tm { border-bottom: 1px dotted var(--mc); cursor: help; position: relative; outline: none; }
.tm:hover::after, .tm:focus::after, .tm.open::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30;
  width: max-content; max-width: min(300px, 78vw); padding: 8px 11px; border-radius: 9px;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 500; line-height: 1.45; white-space: normal;
}

/* Modul testi va Xatolarim */
.mtest-link { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 9px 12px; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--mc) 50%, transparent); color: var(--text); text-decoration: none; font-size: 14px; }
.mtest-link:hover { border-style: solid; }
.mtest-link b { color: var(--muted); font-family: "JetBrains Mono", monospace; }
.mtest-link.passed b { color: var(--ok); }
.mtest-cta { display: flex; flex-direction: column; gap: 3px; margin: 0 0 18px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 18%, transparent), transparent); border: 1px solid color-mix(in srgb, var(--mc) 45%, transparent); }
.mtest-cta span { color: var(--muted); font-size: 14px; }
.practice { max-width: 860px; padding-top: 24px; padding-bottom: 60px; }
.quiz-src { margin-top: 8px; font-size: 13px; color: var(--faint); }
.quiz-src a { color: var(--muted); }
.practice-result { margin-top: 18px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.practice-result b { font-size: 24px; }
.practice-result.pass { border-color: color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 9%, var(--panel)); }
.practice-result.fail { border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
