/* Voice — yagona "Tashvish tugmasi" platformasi. Ranglar taqdimotdan olingan. */
:root {
  --navy: #1e2a4a;
  --navy-2: #2b3a63;
  --blue: #3c6bd6;
  --blue-soft: #e8efff;
  --teal: #2fa3b5;
  --green: #4fae4a;
  --lime: #8cc63f;
  --ink: #1d2433;
  --muted: #667085;
  --line: #e3e7ef;
  --bg: #f4f6fb;
  --card: #ffffff;
  --low: #2e9e5b;
  --mid: #e0a100;
  --high: #e8590c;
  --crit: #c92a2a;
  --tile-empty: #e9edf5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --grad: linear-gradient(90deg, var(--blue), var(--teal) 55%, var(--lime));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; letter-spacing: -.02em; color: #fff; font-size: 1.35rem; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 1.1rem; font-weight: 900;
}
.logo small { font-weight: 600; font-size: .7rem; opacity: .75; letter-spacing: .04em; text-transform: uppercase; display: block; }

/* ---------- Ommaviy sahifalar ---------- */
.pub-header { background: var(--navy); color: #fff; }
.pub-header::after { content: ""; display: block; height: 4px; background: var(--grad); }
.pub-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 16px; }
.pub-header nav a { color: #dbe4ff; font-weight: 600; font-size: .9rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 640px; }
.pub-main { padding: 28px 0 48px; }
.pub-footer { color: var(--muted); font-size: .8rem; text-align: center; padding: 24px 16px 32px; }

.hero { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 24px; grid-template-columns: 1.3fr 1fr; align-items: center; }
.hero h1 { font-size: 2rem; }
.hero .tag { display: inline-flex; align-items: center; gap: .4rem; background: #eaf6e7; color: #2f7d2b; font-weight: 700; font-size: .8rem; padding: .3rem .7rem; border-radius: 999px; margin-bottom: .8rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; border-top: 4px solid var(--blue); }
.step:nth-child(2) { border-top-color: var(--teal); }
.step:nth-child(3) { border-top-color: var(--green); }
.step b { display: block; font-size: 1.6rem; color: var(--navy-2); }
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.who span { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .8rem; font-weight: 600; font-size: .9rem; }
.notice { background: #fff4e5; border: 1px solid #ffd8a8; color: #8a4b00; border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.notice.danger { background: #fff0f0; border-color: #ffc9c9; color: #a61e1e; }
.notice.info { background: var(--blue-soft); border-color: #c9d8ff; color: #23408f; }

/* ---------- Kartalar, formalar ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 12px; }
.card-title h2 { margin: 0; }
label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
input[type=text], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1px solid #cfd6e4; border-radius: 10px; padding: .6rem .75rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #c9d8ff; border-color: var(--blue); }
.field { margin-bottom: 14px; }
.errorlist { list-style: none; padding: 0; margin: .3rem 0 0; color: var(--crit); font-size: .85rem; }
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; padding: 0; margin: 0; }
.radio-cards div, .radio-cards li { margin: 0; }
.radio-cards label { display: flex; align-items: center; gap: .5rem; border: 1px solid #cfd6e4; border-radius: 10px; padding: .6rem .7rem; cursor: pointer; font-weight: 600; margin: 0; }
.radio-cards label:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 10px; padding: .65rem 1.1rem; background: var(--blue); color: #fff; text-decoration: none; line-height: 1.2;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.big { padding: .9rem 1.3rem; font-size: 1.02rem; width: 100%; }
.btn.ghost { background: transparent; color: var(--blue); border: 1px solid #c9d8ff; }
.btn.light { background: var(--blue-soft); color: var(--blue); }
.btn.danger { background: var(--crit); }
.btn.green { background: var(--green); }
.btn.sm { padding: .4rem .7rem; font-size: .85rem; }
.code-box { font-family: ui-monospace, Consolas, monospace; font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; text-align: center; padding: 18px; border: 2px dashed var(--blue); border-radius: 14px; background: var(--blue-soft); color: var(--navy); margin: 14px 0; user-select: all; }
.search-row { display: flex; gap: 8px; }
.search-row input { flex: 1; }
.org-results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.org-results a { display: flex; justify-content: space-between; gap: 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; color: var(--ink); font-weight: 600; }

/* ---------- Xabarlar (yozishma) ---------- */
.thread { display: grid; gap: 10px; margin: 10px 0 16px; }
.bubble { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); white-space: pre-wrap; }
.bubble.staff { background: var(--blue-soft); border-color: #c9d8ff; justify-self: start; }
.bubble.reporter { justify-self: end; }
.bubble .meta { display: block; font-size: .75rem; color: var(--muted); margin-top: .3rem; white-space: normal; }

/* ---------- Statuslar va xavf belgilari ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; white-space: nowrap; background: var(--tile-empty); color: var(--ink); }
.badge.low { background: #e3f6ea; color: #1f7a45; }
.badge.mid { background: #fff3cf; color: #8a6100; }
.badge.high { background: #ffe8d9; color: #b3460a; }
.badge.crit { background: #ffe0e0; color: #a61e1e; }
.badge.threat { background: var(--crit); color: #fff; }
.badge.st-yangi, .badge.st-tahlil { background: var(--blue-soft); color: #23408f; }
.badge.st-yonaltirildi, .badge.st-jarayonda { background: #e6f6f8; color: #146b78; }
.badge.st-hal_qilindi { background: #e3f6ea; color: #1f7a45; }
.badge.st-yopildi { background: #eef0f4; color: #4a5468; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ---------- Markaz paneli ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #c9d3ee; padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { color: #c9d3ee; padding: .6rem .75rem; border-radius: 10px; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: .6rem; }
.sidebar nav a:hover { background: var(--navy-2); text-decoration: none; color: #fff; }
.sidebar nav a.active { background: var(--blue); color: #fff; }
.sidebar .me { margin-top: auto; font-size: .82rem; border-top: 1px solid #34436f; padding-top: 12px; }
.sidebar .me b { color: #fff; display: block; }
.sidebar .me button { background: none; border: 0; color: #9fb3ff; padding: 0; font: inherit; cursor: pointer; margin-top: .4rem; }
.sidebar svg { width: 18px; height: 18px; flex: none; }
.main { padding: 22px 26px 40px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 18px; flex-wrap: wrap; }
.topbar h1 { margin: 0; }
.messages { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.messages li { padding: .7rem .9rem; border-radius: 10px; background: #e3f6ea; color: #1f7a45; font-weight: 600; }
.messages li.error { background: #ffe0e0; color: #a61e1e; }

.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.kpi.alert b { color: var(--crit); }
.kpi.alert { border-left: 4px solid var(--crit); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }
.stack > * + * { margin-top: 16px; }

.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 44px; gap: 10px; align-items: center; font-size: .86rem; }
.bar-track { background: var(--tile-empty); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 999px; }
.bar-fill.r1 { background: var(--low); } .bar-fill.r2 { background: var(--mid); } .bar-fill.r3 { background: var(--high); } .bar-fill.r4 { background: var(--crit); }
.bar-row b { text-align: right; }

.trend { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.trend .col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.trend .col i { display: block; background: #bfd0f7; border-radius: 3px 3px 0 0; min-height: 0; }
.trend .col i.hi { background: var(--high); border-radius: 0; }
.trend-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--c); }

table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: #fafbff; }
.tbl .summary { max-width: 440px; }
.tbl a.row-link { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }

.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; align-items: end; }
.filters .field { margin: 0; }
.filters label { font-size: .78rem; color: var(--muted); }
.filters .checks { display: flex; gap: 14px; align-items: center; grid-column: span 2; }
.filters .checks label { display: inline-flex; gap: .4rem; align-items: center; margin: 0; color: var(--ink); }
.filters .actions { display: flex; gap: 8px; }
.sortbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.sortbar a { padding: .3rem .65rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.sortbar a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.sortbar select { width: auto; padding: .45rem .6rem; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; font-size: .9rem; }

.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.report-text { white-space: pre-wrap; font-size: 1rem; background: var(--bg); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; margin: 0; }
.facts dt { font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.facts dd { margin: 0 0 4px; font-weight: 600; }
.ai-box { border: 1px solid #c9d8ff; background: linear-gradient(180deg, #f5f8ff, #fff); border-radius: 12px; padding: 14px 16px; }
.ai-box h3 { display: flex; gap: .4rem; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .78rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .55rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.k-routed::before { background: var(--teal); }
.timeline li.k-status::before { background: var(--green); }
.timeline li.k-reporter_msg::before, .timeline li.k-reply::before { background: var(--mid); }
.timeline .when { color: var(--muted); font-size: .76rem; }
.action-form { display: grid; gap: 10px; }
.action-form .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
details.action { border-top: 1px solid var(--line); padding: 12px 0 0; margin-top: 12px; }
details.action summary { cursor: pointer; font-weight: 700; color: var(--navy-2); list-style: none; }
details.action summary::-webkit-details-marker { display: none; }
details.action summary::before { content: "▸ "; color: var(--blue); }
details.action[open] summary::before { content: "▾ "; }
details.action > form { margin-top: 10px; }
.check-inline { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.check-inline input { width: auto; }

/* ---------- Xavf xaritasi ---------- */
.tilemap { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile { border-radius: 12px; padding: 10px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; text-shadow: 0 1px 2px rgba(0,0,0,.25); box-shadow: var(--shadow); position: relative; }
.tile.empty { color: var(--muted); text-shadow: none; }
.tile b { font-size: .82rem; line-height: 1.15; }
.tile .num { font-size: 1.5rem; font-weight: 800; }
.tile .sub { font-size: .7rem; opacity: .95; }
.tile .pilot { position: absolute; bottom: 8px; right: 8px; background: rgba(255,255,255,.9); color: var(--navy); text-shadow: none; font-size: .62rem; font-weight: 800; padding: .1rem .35rem; border-radius: 6px; }
.map-card { padding: 18px 20px 16px; background: radial-gradient(ellipse at 50% 40%, #f7f9ff 0%, #fff 70%); }
.map-wrap { position: relative; }
.uzmap { width: 100%; height: auto; display: block; overflow: visible; }
.uzmap .region { stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: filter .15s ease, stroke-width .15s ease; cursor: pointer; }
.uzmap .region.empty { stroke: #d5dbe8; }
.uzmap .region-link:hover .region, .uzmap .region-link:focus .region { filter: brightness(1.1) saturate(1.15); stroke: var(--navy); stroke-width: 2.6; }
.uzmap .region-link:focus { outline: none; }
.uzmap .pilot-tag rect { fill: var(--navy); }
.uzmap .label .pilot-tag text { fill: #fff; stroke: none; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.uzmap .callout .pilot-tag text { fill: #fff; stroke: none; }
.uzmap .map-labels { pointer-events: none; }
.uzmap .label text { text-anchor: middle; paint-order: stroke; stroke: rgba(22, 32, 60, .55); stroke-width: 3.5px; stroke-linejoin: round; fill: #fff; }
.uzmap .map-num { font-size: 24px; font-weight: 800; }
.uzmap .map-name { font-size: 12.5px; font-weight: 700; }
.uzmap .callout text { fill: var(--navy); stroke: #fff; stroke-width: 4px; }
.uzmap .leader { stroke: var(--navy); stroke-width: 1.3; opacity: .7; }
.uzmap .leader-dot { fill: var(--navy); stroke: #fff; stroke-width: 1.5; }
.uzmap .pulse { fill: none; stroke: #fff; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.2s ease-out infinite; }
@keyframes mapPulse { 0% { transform: scale(.6); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .uzmap .pulse { animation: none; opacity: .8; } }
.map-tip { position: absolute; z-index: 5; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 24, 40, .18); padding: 12px 14px; font-size: .84rem; pointer-events: none; border: 1px solid var(--line); }
.map-tip .tip-head { display: flex; align-items: center; gap: .45rem; margin-bottom: 8px; }
.map-tip .tip-head i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.map-tip .tip-grid { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; }
.map-tip .tip-grid span { color: var(--muted); }
.map-tip .tip-grid b.crit { color: var(--crit); }
.map-tip .tip-foot { margin-top: 8px; color: var(--blue); font-size: .76rem; font-weight: 600; }
.map-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.map-legend { width: 300px; max-width: 100%; }
.legend .legend-pilot::before { background: var(--navy); }
.legend .legend-pulse::before { background: var(--crit); border-radius: 50%; box-shadow: 0 0 0 3px rgba(201, 42, 42, .2); }
.scale { height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgb(46,160,67), rgb(240,180,41), rgb(214,48,49)); }
.scale-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

/* ---------- Kirish sahifasi ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--navy); padding: 16px; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-card .logo { color: var(--navy); margin-bottom: 14px; }

/* ---------- QR plakat ---------- */
.poster { background: #fff; border-radius: 18px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto; overflow: hidden; text-align: center; }
.poster-head { background: var(--navy); color: #fff; padding: 22px; }
.poster-head::after { content: ""; display: block; height: 4px; margin: 16px -22px -22px; background: var(--grad); }
.poster-body { padding: 24px; }
.poster svg { width: 280px; height: 280px; }
.poster .org { font-weight: 800; font-size: 1.1rem; }

/* ---------- QR to'plami (chop etish uchun) ---------- */
.qr-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.qr-card svg { width: 170px; height: 170px; display: block; margin: 6px auto; }
.qr-card-head { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .78rem; color: var(--navy); }
.qr-card-head .logo-mark { width: 22px; height: 22px; font-size: .75rem; border-radius: 6px; }
.qr-card-org { font-weight: 800; font-size: .9rem; line-height: 1.25; }
.qr-card-meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.qr-card-hint { font-size: .72rem; margin-top: 6px; color: var(--navy-2); font-weight: 600; }

@media print {
  .qr-sheet { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .qr-card { border: 1px dashed #999; border-radius: 0; }
  .logo-mark { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sidebar, .no-print, .topbar .btn { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .poster { box-shadow: none; }
  body { background: #fff; }
}

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .checks { grid-column: span 2; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 16px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar .me { margin: 0 0 0 auto; border: 0; padding: 0; }
  .main { padding: 16px; }
  .grid-2, .grid-3, .detail, .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tilemap { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 92px; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr; }
  .filters .checks { grid-column: auto; flex-wrap: wrap; }
  .radio-cards, .who { grid-template-columns: 1fr; }
  .tilemap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-row { grid-template-columns: 1fr 1.2fr 36px; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 1.5rem; }
  .facts { grid-template-columns: 1fr; }
}
