:root {
  /* po'lat-kulrang sanoat qog'ozi; rang hikoyasi — energiya yorlig'i shkalasi (yashil → qizil) */
  color-scheme: light;
  --bg: #e7ebef; --surface: #ffffff; --surface-2: #f2f4f6; --line: #cfd6dd; --grid: #e3e7eb;
  --text: #1c232b; --text-2: #46515d; --muted: #6b7684;
  --head: #1c232b; --head-2: #263039; --accent: #1f6fbf;
  --good: #1b8a3c; --warn: #b26a00; --bad: #c62828;
  --s1: #1f6fbf; --s2: #e0632a; --s3: #1b9a6e; --s4: #c98a00; --s5: #c94f7c; --s6: #2f8f3a; --s7: #6a5acd; --s8: #d64545;
  --font: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); }
a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 6px 12px; }
button:hover { border-color: var(--accent); }
button.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
button.pri:hover { filter: brightness(1.08); }
button.danger { color: var(--bad); }
button.sm { padding: 3px 9px; font-size: 12.5px; }
button:disabled { opacity: .5; cursor: default; }
input, select { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 5px 8px; }
input:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 0; }
label { display: grid; gap: 3px; font-size: 12.5px; color: var(--text-2); }

.top { display: flex; align-items: center; gap: 24px; padding: 10px 22px; background: linear-gradient(90deg, var(--head), var(--head-2)); color: #fff; position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand small { display: block; opacity: .7; font-size: 11.5px; }
.logo { font-weight: 800; background: #fff; color: var(--head); border-radius: 8px; padding: 5px 8px; font-size: 13px; letter-spacing: -.3px; }
.logo i { color: #eb6834; font-style: normal; }
nav { display: flex; gap: 4px; flex: 1; }
nav a { color: #dbe5f3; text-decoration: none; padding: 7px 12px; border-radius: 7px; }
nav a:hover { background: rgba(255,255,255,.08); }
nav a.on { background: rgba(255,255,255,.16); color: #fff; }
.who { font-size: 12.5px; display: flex; gap: 8px; align-items: center; }
.who button { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

main { padding: 18px 22px 40px; max-width: 1500px; margin: 0 auto; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
h1 { font-size: 20px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0; }
.sub { color: var(--muted); font-size: 12.5px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.grow { flex: 1; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.notice { padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; border: 1px solid; }
.notice.warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.notice.bad { background: color-mix(in srgb, var(--bad) 9%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.notice.info { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }

/* filtrlar */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; border-radius: 0; padding: 6px 11px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--accent); color: #fff; }

/* bo'lim kartalari */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 12px 17px; position: relative; cursor: pointer; }
.card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.card:hover { border-color: var(--accent); }
.card.sel { box-shadow: 0 0 0 2px var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 13.5px; color: var(--text-2); font-weight: 600; display: flex; gap: 6px; }
.card .big { font-size: 30px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.card .big small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.card .kv { display: flex; gap: 14px; margin-top: 6px; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.card .kv b { color: var(--text); font-weight: 600; }
.card .foot { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.card .warnline { color: var(--warn); font-size: 11.5px; margin-top: 6px; }
.card.total { --c: var(--text-2); }

/* grafik */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax text { fill: var(--muted); font-size: 11px; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.chart .base { stroke: var(--line); }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .xh { stroke: var(--muted); stroke-dasharray: 3 3; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.12); white-space: nowrap; z-index: 5; display: none; }
.tip .t { font-weight: 600; margin-bottom: 3px; }
.tip .r { display: flex; gap: 8px; align-items: center; font-variant-numeric: tabular-nums; }
.tip .r span:last-child { margin-left: auto; padding-left: 12px; font-weight: 600; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.legend label { display: flex; flex-direction: row; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; }
.legend label.off { opacity: .45; }
.legend input { display: none; }

/* jadval */
.tbl-wrap { overflow: auto; max-height: 60vh; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 5px 10px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; font-size: 13px; }
th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; font-size: 12px; color: var(--text-2); z-index: 1; }
th:first-child, td:first-child { text-align: left; }
tr.tot td { font-weight: 700; background: var(--surface-2); position: sticky; bottom: 0; }
td.na { color: var(--muted); }

/* tafsilot */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail h4 { margin: 0 0 6px; font-size: 13px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

/* biriktirish sahifasi */
.sec-list { display: grid; gap: 12px; }
.sec { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.sec-h { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sec-h input.nm { font-weight: 600; font-size: 14px; min-width: 240px; }
.sec-h .cnt { font-size: 12px; color: var(--muted); }
.sec-b { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0; }
.sec-b > div { padding: 10px 14px; }
.sec-b > div + div { border-left: 1px solid var(--line); }
@media (max-width: 1000px) { .sec-b { grid-template-columns: 1fr; } .sec-b > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.picklist { max-height: 300px; overflow: auto; border: 1px solid var(--grid); border-radius: 8px; padding: 4px 8px; margin-top: 6px; }
.picklist .g { font-size: 11.5px; color: var(--muted); margin: 6px 0 2px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.pick { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 2px 0; font-size: 13px; color: var(--text); }
.pick input[type=checkbox] { margin: 0; }
.pick .k { width: 62px; padding: 1px 5px; font-size: 12px; margin-left: auto; }
.pick small { color: var(--muted); }
.pick .other { font-size: 11px; color: var(--warn); }
.mini-search { width: 100%; margin-top: 6px; }
.sticky-save { position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(4px); padding: 10px 0; display: flex; gap: 10px; align-items: center; z-index: 3; }

/* manba */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.form-grid .w2 { grid-column: span 2; }
.samples { font-family: Consolas, monospace; font-size: 11.5px; }
.samples td, .samples th { text-align: left; }
details.tbl > summary { cursor: pointer; padding: 4px 0; }

#toast { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 50; }
#toast div { background: var(--head); color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
#toast div.bad { background: var(--bad); }
#toast div.good { background: var(--good); }

.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: grid; place-items: center; z-index: 40; }
.modal { background: var(--surface); border-radius: 12px; padding: 20px; width: 340px; display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.form-grid input, .form-grid select { width: 100%; min-width: 0; }

.pick .pct { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.pick .pct .k { margin-left: 0; width: 64px; }

.card .cap { font-size: 10px; letter-spacing: .6px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.card .now { background: var(--surface-2); border-radius: 9px; padding: 8px 10px; margin-bottom: 8px; }
.card .now-row { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.card .now-row b { font-size: 26px; font-weight: 700; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.card .now-row small { font-size: 12px; color: var(--muted); margin-left: 3px; }
.card .lv-sub { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: 2px; }
.card .per { padding: 0 2px; }
.card .per-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.card .per-row b { font-size: 16px; color: var(--text); font-weight: 650; }
.card .kv { margin-top: 2px; font-size: 12px; }
.lv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.now.ok .lv-dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.now.part .lv-dot { background: var(--warn); }
.cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card .now-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card .now-row > div { white-space: nowrap; }
.card .now-row b { font-size: 24px; }
.card .per-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card .per-row span, .card .kv span { white-space: nowrap; }
.card .kv { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }

/* biriktirish: daraxt va 3 ustun */
.sec.child { margin-left: 34px; border-left: 3px solid var(--line); }
.sec-b.three { grid-template-columns: 1fr 1fr 1.3fr; }
@media (max-width: 1200px) { .sec-b.three { grid-template-columns: 1fr; } .sec-b.three > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.sec-b.three > div + div { border-left: 1px solid var(--line); }
.inl { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: 12px; }
.par { font-size: 11px; color: var(--muted); font-weight: 500; margin-right: 4px; }
/* hozirgi holat */
.live-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.groups { display: grid; gap: 14px; margin-bottom: 14px; }
.grp { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 12px; align-items: stretch; position: relative; }
.grp::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
@media (max-width: 900px) { .grp { grid-template-columns: 1fr; } }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lcard { background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.lcard:hover { border-color: var(--accent); }
.lcard.sel { box-shadow: 0 0 0 2px var(--accent); }
.lcard.big { background: var(--surface); }
.lc-h { display: flex; align-items: center; gap: 7px; font-size: 13.5px; margin-bottom: 4px; }
.lcard.big .lc-h { font-size: 16px; }
.lc-v { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-variant-numeric: tabular-nums; }
.lc-v b { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.lcard.big .lc-v b { font-size: 36px; }
.lc-v small { font-size: 12px; color: var(--muted); margin-left: 4px; }
.lc-s { font-size: 12px; color: var(--text-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.lv-dot.ok { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.lv-dot.part { background: var(--warn); }

.lc-v { grid-template-columns: auto auto; justify-content: start; column-gap: 22px; }
.lc-v > div { white-space: nowrap; }
.lcard.big .lc-v b { font-size: 34px; }
.kids { grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); }
.lcard:not(.big) .lc-v b { font-size: 24px; }
.lcard:not(.big) .lc-v { column-gap: 16px; }


/* ======================= HOZIRGI HOLAT — energiya yorlig'i qatorlari ======================= */
.top { background: var(--head); border-bottom: 3px solid; border-image: linear-gradient(90deg, #1b8a3c, #55b047, #a9c52b, #f2c318, #f08a1c, #d9341e) 1; }
.logo { background: #fff; color: var(--head); }
.logo i { color: #f08a1c; }
main#view { max-width: 1500px; margin: 0 auto; }

.hero { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; padding: 18px 4px 22px; border-bottom: 2px solid var(--text); margin-bottom: 4px; }
.h-main { display: flex; flex-direction: column; }
.h-cap { font-size: 15px; color: var(--text-2); }
.h-num { font-size: 76px; line-height: .9; font-weight: 600; font-stretch: condensed; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.h-num small { font-size: 22px; font-weight: 400; margin-left: 8px; letter-spacing: 0; color: var(--text-2); }
.h-flow { display: flex; align-items: end; gap: 18px; padding-bottom: 6px; }
.h-flow > div, .h-side > div { display: flex; flex-direction: column; line-height: 1.1; }
.h-flow span, .h-side span { font-size: 12.5px; color: var(--muted); }
.h-flow b { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-flow small, .h-side small { font-size: 13px; color: var(--text-2); }
.h-op { font-style: normal; font-size: 34px; color: var(--muted); padding-bottom: 10px; }
.h-side { display: grid; grid-template-columns: repeat(3, auto); gap: 22px; padding-bottom: 6px; }
.h-side b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.lanes-head, .lane { display: grid; grid-template-columns: minmax(190px, 1.3fr) 64px minmax(130px, .8fr) minmax(220px, 1.4fr) minmax(240px, 1.5fr); gap: 18px; align-items: center; }
.lanes-head { padding: 8px 14px; font-size: 12.5px; color: var(--muted); }
.lane { background: var(--surface); padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.lane:hover { background: #fafbfc; }
.lane:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lane.d0 { border-top: 2px solid var(--text); margin-top: 10px; }
.lane.d1 .ln-name { padding-left: 22px; border-left: 3px solid var(--line); margin-left: 6px; }
.lane.d2 .ln-name { padding-left: 40px; }
.lane.open { background: #f6f8fa; }
.ln-name b { display: block; font-size: 18px; font-weight: 600; }
.lane.d0 .ln-name b { font-size: 21px; }
.ln-sub { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ln-sub .op { color: var(--muted); padding: 0 2px; }
.ln-off { display: block; font-size: 12px; color: var(--warn); }
.warn-t { color: var(--warn); font-style: normal; }

/* energiya yorlig'i strelkasi */
.cls { --k: #8a96a3; display: inline-grid; place-items: center; width: 44px; height: 30px; padding-right: 8px; color: #fff; font-weight: 700; font-size: 19px;
  background: var(--k); clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.cls.big { width: 56px; height: 38px; font-size: 24px; }
.cls.none { background: #c3cad1; color: #6b7684; text-shadow: none; }
.mini-cls { --k: #888; display: inline-block; width: 20px; text-align: center; color: #fff; font-weight: 700; background: var(--k); margin: 0 3px 0 10px; clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%); padding-right: 4px; }

.ln-num { display: flex; flex-direction: column; line-height: 1; }
.big-n { --k: var(--text); font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); border-left: 5px solid var(--k); padding-left: 10px; }
.lane.d0 .big-n { font-size: 48px; }
.ln-cost { font-size: 13px; color: var(--text-2); margin-top: 6px; padding-left: 15px; font-variant-numeric: tabular-nums; }

.spark { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; align-items: end; height: 46px; border-bottom: 1px solid var(--line); }
.spark i { --k: #8a96a3; background: var(--k); border-radius: 1px 1px 0 0; min-height: 2px; opacity: .85; }
.spark i.now { opacity: 1; box-shadow: 0 0 0 1.5px var(--text); }
.spark i.nil { height: 2px; background: #d5dbe1; }
.spark i.fut { height: 2px; background: transparent; border-bottom: 1px dashed #c9d0d7; }
.spark .ref-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px dashed var(--text); opacity: .55; }
.spark.empty { display: block; color: var(--muted); font-size: 12.5px; padding-top: 16px; }
.ln-today { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 4px; font-variant-numeric: tabular-nums; }

.scale { position: relative; padding: 12px 0 0; }
.scale .bands { position: relative; height: 12px; border-radius: 2px; overflow: hidden; background: #e3e7eb; }
.scale .bands span { position: absolute; top: 0; bottom: 0; background: var(--k); }
.scale .bands .mid { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); transform: translateX(-1px); }
.scale .mk { position: absolute; transform: translateX(-50%); transition: left .8s ease; }
.scale .mk.now { top: 0; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 11px solid var(--text); }
.scale .mk.day { top: 10px; width: 3px; height: 16px; background: #fff; box-shadow: 0 0 0 1.5px var(--text); }
.scale-cap { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-top: 6px; font-variant-numeric: tabular-nums; }
.scale.none { color: var(--muted); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .scale .mk { transition: none; } }

.lane-det { background: #f6f8fa; padding: 4px 14px 16px; border-top: 1px dashed var(--line); }
.lane-det .detail h4 { font-weight: 600; }
td.barc { width: 22%; }
td.barc i { display: block; height: 8px; background: #f08a1c; border-radius: 2px; min-width: 1px; }
td.barc.t i { background: #1f6fbf; }
.legend-note { font-size: 12.5px; color: var(--muted); margin: 14px 4px 30px; line-height: 2; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 12px; }
  .lanes-head { display: none; }
  .lane { grid-template-columns: 1fr auto; row-gap: 10px; }
  .ln-name { grid-column: 1; } .ln-cls { grid-column: 2; grid-row: 1; }
  .ln-num, .ln-spark, .ln-scale { grid-column: 1 / -1; }
  .lane.d1 .ln-name, .lane.d2 .ln-name { padding-left: 12px; }
}

/* ======================= dizayn tanlash ======================= */
.dz-switch { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.dz-switch button { border-radius: 20px; padding: 4px 14px; background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.dz-switch button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.dz-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ======================= 2. ISSIQLIK XARITASI — grafit + kahrabo ======================= */
body.design-2 {
  --bg: #15181c; --surface: #1d2126; --surface-2: #252a30; --line: #343a42; --grid: #2a2f36;
  --text: #eef1f4; --text-2: #b9c1ca; --muted: #8590a0; --accent: #ffb000; --warn: #ffb000;
  color-scheme: dark;
}
body.design-2 .top { background: #0f1114; }
body.design-2 .hero { border-bottom-color: var(--accent); }
body.design-2 .h-num { color: var(--accent); }
body.design-2 .panel, body.design-2 input, body.design-2 select, body.design-2 button { background: var(--surface); color: var(--text); }
body.design-2 .dz-switch button.on { background: var(--accent); color: #15181c; border-color: var(--accent); }
.hm-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.hm-tbl { border-collapse: separate; border-spacing: 2px; width: 100%; font-variant-numeric: tabular-nums; }
.hm-tbl thead th { font-size: 11.5px; color: var(--muted); font-weight: 400; padding: 6px 0; text-align: center; }
.hm-tbl thead th.now { color: var(--accent); font-weight: 700; }
.hm-tbl thead th.hm-name { text-align: left; padding-left: 12px; }
.hm-row { cursor: pointer; }
.hm-row:hover th, .hm-row:focus-visible th { background: var(--surface-2); }
.hm-row:focus-visible { outline: 2px solid var(--accent); }
.hm-name { text-align: left; padding: 8px 12px; min-width: 190px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.hm-name b { display: block; font-size: 15px; font-weight: 600; }
.hm-name small { color: var(--muted); font-size: 12px; font-weight: 400; }
.hm-row.d1 .hm-name { padding-left: 30px; } .hm-row.d2 .hm-name { padding-left: 46px; }
.hm-row.d0 td, .hm-row.d0 th { border-top: 2px solid var(--line); }
.hm-now { --k: #5b6570; min-width: 92px; text-align: center; background: color-mix(in srgb, var(--k) 28%, var(--surface)); border-left: 4px solid var(--k); }
.hm-now b { font-size: 24px; font-weight: 600; }
.hm-now i { font-style: normal; font-weight: 700; color: #111; background: var(--k); border-radius: 3px; padding: 0 5px; margin-left: 6px; font-size: 13px; vertical-align: 4px; }
td.hm { --k: #5b6570; background: var(--k); color: rgba(0, 0, 0, .72); font-size: 11.5px; font-weight: 600; text-align: center; min-width: 30px; height: 40px; border-radius: 3px; }
td.hm.now { box-shadow: 0 0 0 2px var(--accent); }
td.hm.nil { background: repeating-linear-gradient(45deg, #2a2f36 0 4px, #23272d 4px 8px); }
td.hm.fut { background: transparent; border: 1px dashed var(--line); }
td.hm-sum { text-align: right; padding: 0 12px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
td.hm-sum b { color: var(--text); font-size: 16px; }
.hm-det td { padding: 6px 12px 14px; background: var(--surface-2); }
body.design-2 .detail table th { background: var(--surface-2); }

/* ======================= 3. KATTA PLITKALAR — katta ekran uchun ======================= */
body.design-3 { --bg: #dfe3e6; }
body.design-3 .hero { border-bottom: none; background: var(--text); color: #fff; border-radius: 14px; padding: 18px 24px; margin-top: 12px; }
body.design-3 .hero span, body.design-3 .hero small, body.design-3 .h-op { color: #aab4be; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.tile { --k: #7d8893; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: var(--k); color: #fff; border: none; border-radius: 14px; padding: 18px 20px 14px; min-height: 230px; cursor: pointer; font-family: inherit; }
.tile.main { grid-column: span 2; min-height: 260px; }
.tile.neutral { background: #8b959f; }
.tile.sel { box-shadow: 0 0 0 4px var(--text); }
.tile:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.t-letter { position: absolute; right: -6px; bottom: -40px; font-size: 230px; font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .16); pointer-events: none; }
.t-name { font-size: 20px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
.tile.main .t-name { font-size: 26px; }
.t-name small { display: block; font-size: 12.5px; font-weight: 400; opacity: .85; }
.t-num { font-size: 64px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 6px; text-shadow: 0 2px 4px rgba(0,0,0,.18); }
.tile.main .t-num { font-size: 86px; }
.t-num small { font-size: 18px; font-weight: 400; margin-left: 6px; }
.t-pct { font-size: 15px; background: rgba(0, 0, 0, .18); border-radius: 20px; padding: 2px 12px; }
.t-foot { display: flex; gap: 18px; margin-top: auto; padding-top: 10px; font-size: 13px; opacity: .95; font-variant-numeric: tabular-nums; }
.t-foot b { font-size: 17px; }
.t-day { font-size: 12.5px; opacity: .85; }
.t-det { margin-top: 16px; }
.t-det h3 { margin: 0 0 8px; }
@media (max-width: 700px) { .tile.main { grid-column: span 1; } }

/* issiqlik xaritasi: kun tanlash */
.hm-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.hm-daynav { display: inline-flex; align-items: center; gap: 4px; }
.hm-daynav button { padding: 5px 10px; }
.hm-daynav button:disabled { opacity: .4; cursor: default; }
.hm-tbl th.hm-dh { cursor: pointer; line-height: 1.15; }
.hm-tbl th.hm-dh small { display: block; font-size: 10px; opacity: .75; }
.hm-tbl th.hm-dh.wkend { color: var(--warn, #f08a1c); }
.hm-tbl th.hm-dh:hover { color: var(--accent); }
td.hm.pick { cursor: pointer; }
td.hm.pick:hover { box-shadow: 0 0 0 2px var(--text); }
