:root {
  --bg: #060912;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(34, 211, 238, 0.10), transparent 60%),
             radial-gradient(900px 500px at 0% 0%, rgba(167, 139, 250, 0.10), transparent 60%);
  --panel: rgba(16, 22, 38, 0.72);
  --panel-solid: #0e1527;
  --panel-hi: rgba(255, 255, 255, 0.04);
  --line: rgba(148, 163, 184, 0.13);
  --text: #e8ecfb;
  --muted: #8a94b0;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #60a5fa;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --r: 18px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f5fb;
  --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(34, 211, 238, 0.12), transparent 60%),
             radial-gradient(900px 500px at 0% 0%, rgba(167, 139, 250, 0.12), transparent 60%);
  --panel: rgba(255, 255, 255, 0.85);
  --panel-solid: #ffffff;
  --panel-hi: rgba(15, 23, 42, 0.035);
  --line: #e2e7f1;
  --text: #0f172a;
  --muted: #64748b;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Heebo, system-ui, sans-serif; font-size: 14.5px; }
body { background-image: var(--bg-grad); background-attachment: fixed; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ===== layout ===== */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; border-inline-end: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(20px); }
.logo { display: flex; align-items: center; gap: 12px; padding: 6px 8px 22px; }
.logo .logo-svg { width: 100%; height: auto; max-height: 64px; }
.logo .mark { width: 42px; height: 42px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; color: #0b1020; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35); }
.logo .mark .ic { width: 22px; height: 22px; }
.logo b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.logo small { color: var(--muted); font-size: 12px; }
.navi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; cursor: pointer; position: relative; }
.navi:hover { background: var(--panel-hi); color: var(--text); }
.navi.on { background: linear-gradient(90deg, rgba(34, 211, 238, 0.0), rgba(34, 211, 238, 0.12)); color: var(--text); }
.navi.on::before { content: ""; position: absolute; inset-inline-start: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.navi .ic { width: 19px; height: 19px; }
.navi .cnt { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(248, 113, 113, 0.16); color: var(--bad); }
.navi .cnt.warn { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.side .grow { flex: 1; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.side .me .av { width: 36px; height: 36px; border-radius: 12px; background: var(--grad); color: #0b1020; display: grid; place-items: center; font-weight: 800; }
.side .me .t { flex: 1; min-width: 0; }
.side .me .t b { display: block; font-size: 13.5px; }
.side .me .t small { color: var(--muted); font-size: 12px; }
.main { padding: 26px 30px 60px; min-width: 0; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -0.5px; }
.head .sub { color: var(--muted); margin-top: 4px; }
.head .grow { flex: 1; min-width: 220px; }
.head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 4px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.crumb:hover { color: var(--text); }

/* ===== controls ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); padding: 9px 15px; border-radius: 12px; cursor: pointer; font-weight: 600; white-space: nowrap; transition: 0.15s; }
.btn:hover { background: var(--panel-hi); border-color: rgba(148, 163, 184, 0.3); }
.btn.primary { background: var(--grad); color: #0b1020; border-color: transparent; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.28); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: rgba(248, 113, 113, 0.35); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btn.icon { padding: 7px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.input, select.input, textarea.input { width: 100%; background: var(--panel-hi); border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; outline: none; }
.input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
select.input option { background: var(--panel-solid); color: var(--text); }
textarea.input { min-height: 80px; resize: vertical; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.seg { display: inline-flex; background: var(--panel-hi); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--panel-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 160px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: #818cf8; }

/* ===== cards ===== */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 14px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card h3 .grow { flex: 1; }
.card h3 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.row { display: grid; gap: 16px; margin-bottom: 16px; }
.r-kpi { grid-template-columns: 1.8fr repeat(4, 1fr); }
.r-2 { grid-template-columns: 1.6fr 1fr; }
.r-3 { grid-template-columns: 1.3fr 1fr 0.8fr; }

.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; }
.kpi .lbl { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kpi .lbl .ic { width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: var(--panel-hi); }
.kpi .val { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi .foot { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.kpi::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; inset-inline-end: -50px; top: -50px; background: var(--glow, rgba(34, 211, 238, 0.12)); filter: blur(20px); }
.kpi.bad { --glow: rgba(248, 113, 113, 0.18); } .kpi.bad .val { color: var(--bad); }
.kpi.warn { --glow: rgba(251, 191, 36, 0.16); } .kpi.warn .val { color: var(--warn); }
.kpi.ok { --glow: rgba(52, 211, 153, 0.16); } .kpi.ok .val { color: var(--ok); }
.kpi.hero { flex-direction: row; align-items: center; gap: 18px; background: linear-gradient(140deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.12)), var(--panel); }
.kpi.hero .txt b { font-size: 16px; display: block; }
.kpi.hero .txt span { color: var(--muted); font-size: 13px; line-height: 1.6; display: block; margin-top: 4px; }

.ring { position: relative; flex: none; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring .lbl2 { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* alerts */
.alerts { max-height: 330px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; margin-bottom: 6px; cursor: pointer; border: 1px solid transparent; }
.alert:hover { background: var(--panel-hi); border-color: var(--line); }
.alert .dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex: none; }
.alert.red .dot { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.alert.amber .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.alert b { font-weight: 600; font-size: 14px; display: block; }
.alert small { color: var(--muted); font-size: 12.5px; }
.alert .kind { margin-inline-start: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* feed */
.feed-item { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.feed-item:last-child { border-bottom: 0; }
.feed-item:hover { background: var(--panel-hi); border-radius: 10px; }
.av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #0b1020; flex: none; }
.feed-item .t { flex: 1; min-width: 0; }
.feed-item .t b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .t small { color: var(--muted); font-size: 12.5px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); font-weight: 500; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.b-ok { background: rgba(52, 211, 153, 0.13); color: var(--ok); }
.b-warn { background: rgba(251, 191, 36, 0.14); color: var(--warn); }
.b-bad { background: rgba(248, 113, 113, 0.14); color: var(--bad); }
.b-info { background: rgba(96, 165, 250, 0.14); color: var(--info); }
.b-mute { background: var(--panel-hi); color: var(--muted); }
.tag { font-family: ui-monospace, Consolas, monospace; letter-spacing: 1.5px; font-size: 12.5px; padding: 3px 8px; border-radius: 8px; background: var(--panel-hi); border: 1px solid var(--line); }

/* buildings grid */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.bcard { cursor: pointer; transition: 0.2s; display: flex; flex-direction: column; gap: 14px; }
.bcard:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.35); }
.bcard .top { display: flex; align-items: center; gap: 14px; }
.bcard .top .t { flex: 1; min-width: 0; }
.bcard .top b { font-size: 16px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard .top small { color: var(--muted); }
.bcard .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-b { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mini-b:last-child { border-bottom: 0; }
.mini-b .t { flex: 1; }
.mini-b .bar { width: 90px; height: 6px; border-radius: 6px; background: var(--panel-hi); overflow: hidden; }
.mini-b .bar i { display: block; height: 100%; border-radius: 6px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -18px -18px; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--panel-solid); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--panel-hi); }
.tbl tr.click { cursor: pointer; }
.tbl .acts { white-space: nowrap; text-align: end; }
.sysname { display: flex; align-items: center; gap: 10px; }
.sysname .si { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 211, 238, 0.1); color: var(--cyan); flex: none; }
.sysname b { font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.empty .ic { width: 40px; height: 40px; opacity: 0.5; display: block; margin: 0 auto 10px; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs button.on { color: var(--text); border-bottom-color: var(--cyan); }

/* tickets */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.ticket { display: flex; flex-direction: column; gap: 10px; }
.ticket .h { display: flex; gap: 10px; align-items: flex-start; }
.ticket .h b { font-size: 15px; flex: 1; }
.ticket .where { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ticket .desc { background: var(--panel-hi); border-radius: 10px; padding: 9px 11px; font-size: 13.5px; }
.ticket .f { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: var(--panel-hi); }

/* drawer & modal */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(2, 6, 23, 0.55); backdrop-filter: blur(4px); animation: fade 0.15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; z-index: 51; top: 0; bottom: 0; inset-inline-end: 0; width: min(560px, 100vw); background: var(--panel-solid); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow); overflow-y: auto; padding: 22px; animation: slide 0.22s ease-out; }
@keyframes slide { from { transform: translateX(-30px); opacity: 0; } }
.modal { position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; animation: pop 0.18s ease-out; }
.modal.wide { width: min(900px, calc(100vw - 32px)); }
@keyframes pop { from { transform: translate(-50%, -48%) scale(0.98); opacity: 0; } }
.mhead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.mhead h2 { margin: 0; font-size: 20px; flex: 1; }
.mfoot { display: flex; gap: 10px; justify-content: flex-start; margin-top: 18px; }
.ans { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ans .ai { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ans .ai.ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); }
.ans .ai.bad { background: rgba(248, 113, 113, 0.14); color: var(--bad); }
.ans .ai.na { background: var(--panel-hi); color: var(--muted); }
.ans .t { flex: 1; }
.ans .v { font-weight: 700; white-space: nowrap; }
.ans .note { color: var(--bad); font-size: 13px; margin-top: 3px; }
.metabox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.metabox div { background: var(--panel-hi); border-radius: 12px; padding: 10px 12px; }
.metabox small { color: var(--muted); display: block; font-size: 12px; }
.metabox b { font-size: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.85); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(12, minmax(110px, 1fr)); gap: 8px; overflow-x: auto; }
.tl-col { background: var(--panel-hi); border-radius: 14px; padding: 10px 8px; min-height: 200px; }
.tl-col h4 { margin: 0 0 8px; font-size: 13px; text-align: center; color: var(--muted); font-weight: 600; }
.tl-col.now h4 { color: var(--cyan); }
.tl-item { font-size: 12px; padding: 6px 8px; border-radius: 9px; margin-bottom: 6px; cursor: pointer; line-height: 1.35; border: 1px solid transparent; }
.tl-item small { display: block; opacity: 0.8; font-size: 11px; }
.tl-item.overdue { background: rgba(248, 113, 113, 0.16); color: var(--bad); }
.tl-item.to_schedule { background: rgba(251, 191, 36, 0.16); color: var(--warn); }
.tl-item.scheduled { background: rgba(96, 165, 250, 0.16); color: var(--info); }
.tl-item.ok, .tl-item.unknown { background: var(--panel); border-color: var(--line); }
.chipsum { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chipsum button { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.chipsum button b { font-size: 20px; font-variant-numeric: tabular-nums; }
.chipsum button.on { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }

/* template editor */
.tpl-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; }
.tpl-list .tpl { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; cursor: pointer; }
.tpl-list .tpl:hover { background: var(--panel-hi); }
.tpl-list .tpl.on { background: rgba(34, 211, 238, 0.1); }
.tpl-list .tpl .t { flex: 1; min-width: 0; }
.tpl-list .tpl b { display: block; font-weight: 600; font-size: 13.5px; }
.tpl-list .tpl small { color: var(--muted); font-size: 12px; }
.eitem { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; background: var(--panel-hi); }
.eitem.section { background: rgba(34, 211, 238, 0.06); border-color: rgba(34, 211, 238, 0.25); }
.eitem .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-solid); color: var(--cyan); }
.eitem .fields { display: grid; gap: 8px; }
.eitem .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eitem .sub .input { width: auto; flex: 1; min-width: 90px; }
.eitem .ctrl { display: flex; flex-direction: column; gap: 4px; }
.addbar { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; border: 1.5px dashed var(--line); border-radius: 14px; }
.icongrid { display: flex; flex-wrap: wrap; gap: 6px; }
.icongrid button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-hi); cursor: pointer; display: grid; place-items: center; }
.icongrid button.on { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.1); }

/* misc */
.demo-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; background: linear-gradient(90deg, rgba(167, 139, 250, 0.16), rgba(34, 211, 238, 0.10)); border: 1px solid rgba(167, 139, 250, 0.3); }
.demo-banner .grow { flex: 1; }
.toast { position: fixed; z-index: 90; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); opacity: 0; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 20px; border-radius: 14px; transition: 0.2s; pointer-events: none; font-weight: 500; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { border-color: var(--bad); color: var(--bad); }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.applink { display: flex; gap: 18px; align-items: center; }
.applink img { width: 130px; height: 130px; background: #fff; border-radius: 14px; padding: 8px; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(420px, 100%); padding: 32px; }
.login-card .logo { padding: 0 0 26px; }

/* ===== labels (print) ===== */
.labels-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-a4 { background: #fff; color: #0b1020; width: 210mm; min-height: 297mm; padding: 10mm; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; align-content: start; box-shadow: var(--shadow); border-radius: 6px; }
.label { border: 0.4mm solid #cbd5e1; border-radius: 4mm; overflow: hidden; display: grid; grid-template-columns: 1fr 34mm; height: 62mm; break-inside: avoid; font-family: Heebo, Arial, sans-serif; }
.label .lt { padding: 4mm 4.5mm; display: flex; flex-direction: column; min-width: 0; }
.label .logo-svg { height: 10mm; width: auto; align-self: flex-start; display: block; }
.label .band { display: flex; align-items: center; gap: 2mm; font-size: 8.5pt; font-weight: 700; color: #4f46e5; letter-spacing: 0.2px; }
.label .band i { width: 4mm; height: 4mm; border-radius: 1.2mm; background: linear-gradient(135deg, #22d3ee, #818cf8, #c084fc); display: inline-block; }
.label .bn { font-size: 9.5pt; color: #475569; margin-top: 2.5mm; }
.label .sn { font-size: 15pt; font-weight: 800; line-height: 1.15; margin-top: 1mm; }
.label .loc { font-size: 9pt; color: #475569; margin-top: 1.5mm; }
.label .how { margin-top: auto; font-size: 7.5pt; color: #64748b; line-height: 1.35; }
.label .qr { background: linear-gradient(160deg, #eef2ff, #ecfeff); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2mm; gap: 1.5mm; border-inline-start: 0.4mm dashed #cbd5e1; }
.label .qr img { width: 29mm; height: 29mm; background: #fff; border-radius: 2mm; padding: 1mm; }
.label .qr .code { font-family: Consolas, monospace; font-weight: 800; font-size: 11pt; letter-spacing: 1mm; }

/* ===== לוח בקרה במסך אחד ===== */
.main:has(.dash) { padding: 16px 20px; }
.dash { display: flex; flex-direction: column; gap: 12px; height: calc(100vh - 32px); min-height: 560px; }
.dhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dhead .ttl { display: flex; align-items: baseline; gap: 10px; }
.dhead h1 { margin: 0; font-size: 22px; font-weight: 800; }
.kchips { display: flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.kchip { --c: var(--muted); display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); min-width: 112px; transition: .15s; }
.kchip .ci { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.kchip .kv2 { display: flex; flex-direction: column; line-height: 1.15; }
.kchip b { font-size: 20px; font-weight: 800; color: var(--c); }
.kchip small { color: var(--muted); font-size: 12px; }
.kchip.ok { --c: var(--ok); } .kchip.warn { --c: var(--warn); } .kchip.bad { --c: var(--bad); } .kchip.info { --c: var(--cyan); }
.kchip:hover { border-color: var(--c); }
.dmain { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
.dmap, .dside { display: flex; flex-direction: column; min-height: 0; padding: 14px; }
.dmap h3, .dside h3, .dfoot h3 { margin: 0 0 10px; font-size: 14px; }
.lg { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 400; margin-inline-start: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.tiles { flex: 1; min-height: 0; display: grid; gap: 10px; overflow: auto; align-content: start; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: 100px; }
.tile { --c: var(--muted); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; color: var(--text); overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 24%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); transition: transform .15s, box-shadow .15s; }
.tile::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 35%, transparent); }
.tile.ok { --c: var(--ok); } .tile.warn { --c: var(--warn); } .tile.bad { --c: var(--bad); }
.tile .tt { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.tile .tt b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .dots { display: flex; gap: 5px; flex-wrap: wrap; }
.tile .dots i { width: 12px; height: 12px; border-radius: 4px; background: var(--muted); }
.tile .dots i.ok { background: var(--ok); } .tile .dots i.warn { background: var(--warn); } .tile .dots i.bad { background: var(--bad); }
.tile .tb { display: flex; gap: 6px; margin-top: auto; }
.tg { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.tg .ic { width: 13px; height: 13px; }
.tg.bad { background: rgba(248, 113, 113, .18); color: var(--bad); } .tg.warn { background: rgba(251, 191, 36, .18); color: var(--warn); }
.tiles.sz-m .tile { padding: 7px 9px; gap: 4px; } .tiles.sz-m .tile .tt b { font-size: 13px; } .tiles.sz-m .tile .ring { display: none; }
.tiles.sz-s .tile { padding: 5px 8px; gap: 3px; } .tiles.sz-s .tile .tt b { font-size: 12px; } .tiles.sz-s .tile .ring, .tiles.sz-s .tile .tb { display: none; }
.tiles.sz-s .tile .dots i { width: 8px; height: 8px; border-radius: 2px; }
.alist { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 6px; }
.arow { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px; color: var(--text); background: var(--panel-hi); border: 1px solid transparent; }
.arow:hover { border-color: var(--line); }
.arow .dp { flex: none; min-width: 48px; text-align: center; font-weight: 800; font-size: 13px; padding: 5px 6px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.arow.overdue .dp { background: rgba(248, 113, 113, .2); color: var(--bad); }
.arow.to_schedule .dp, .arow.todo .dp { background: rgba(248, 113, 113, .18); color: var(--bad); }
.arow.scheduled .dp { background: rgba(96, 165, 250, .2); color: var(--info); }
.arow .t { min-width: 0; display: flex; flex-direction: column; }
.arow .t b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow .t small { font-size: 11.5px; color: var(--muted); }
.dfoot { height: 150px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dfoot .card { padding: 12px 14px; display: flex; flex-direction: column; min-height: 0; }
.workers { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; overflow: auto; align-content: start; }
.wk { display: flex; align-items: center; gap: 8px; }
.wk .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wk .t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar { height: 6px; border-radius: 6px; background: var(--panel-hi); overflow: hidden; display: block; }
.mbar i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.cbars { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 8px; }
.cb { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); min-width: 0; }
.cb .cv { width: 70%; min-height: 4px; border-radius: 6px 6px 3px 3px; background: var(--grad); }
.cb small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#hovercard { position: fixed; z-index: 60; display: none; width: 260px; padding: 12px 14px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); pointer-events: none; }
#hovercard .hh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 15px; }
#hovercard .hr { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
#hovercard .hr span { flex: 1; } #hovercard .hr small { color: var(--muted); }
#hovercard .hf { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
#hovercard .hf small { margin-inline-start: auto; }
a.empty { display: block; color: var(--muted); }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); grid-auto-rows: 86px; overflow: visible; gap: 8px; }
.tiles.big .tile { padding: 8px 10px; gap: 4px; }
.tiles.big .tile .tt b { font-size: 14px; }
.tiles.big .tile .ring { transform: scale(.85); }

/* מסך אתר: פס מדדים ואריחי מערכות */
.bstrip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bstrip .muted { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.stiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.stile { --c: var(--muted); position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 20%, transparent), var(--panel)); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.stile::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.stile.ok { --c: var(--ok); } .stile.warn { --c: var(--warn); } .stile.bad { --c: var(--bad); }
.stile .sh { display: flex; gap: 10px; align-items: center; }
.stile .si { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); flex: none; }
.stile .t { min-width: 0; display: flex; flex-direction: column; }
.stile .t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stile .t small { color: var(--muted); font-size: 12px; }
.stile .sp { display: flex; gap: 6px; align-items: center; }
.stile .sp .tag { margin-inline-start: auto; font-size: 11px; }
.stile .pill { font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.stile .sa { position: absolute; top: 8px; inset-inline-end: 8px; display: flex; gap: 4px; opacity: 0; transition: .15s; }
.stile:hover .sa { opacity: 1; }
.stile.add { align-items: center; justify-content: center; flex-direction: row; cursor: pointer; color: var(--muted); border-style: dashed; background: none; font: inherit; min-height: 110px; }
.stile.add::before { display: none; }
.stile.add:hover { color: var(--text); border-color: var(--cyan); }
@media (hover: none) { .stile .sa { opacity: 1; position: static; justify-content: flex-end; } }

/* טבלת שירותים: אתרים × שירותים */
.mx-card { padding: 10px 12px; }
.mx-wrap { overflow: auto; max-height: calc(100vh - 190px); }
table.mx { border-collapse: separate; border-spacing: 3px; width: 100%; }
.mx thead th { font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 2px; vertical-align: bottom; line-height: 1.15; position: sticky; top: 0; background: var(--panel-solid); z-index: 2; min-width: 50px; max-width: 64px; }
.mx .st { text-align: start; position: sticky; inset-inline-start: 0; z-index: 3; background: var(--panel-solid); min-width: 110px; font-size: 13px; padding-inline-end: 8px; white-space: nowrap; }
.mx tbody th.st a { color: var(--text); font-weight: 600; }
.mx td { padding: 0; }
.mc { display: block; width: 100%; height: 30px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; color: #0b1020; font-variant-numeric: tabular-nums; transition: transform .1s; }
.mc.none, .mc.nodate { background: transparent; border: 1px dashed var(--line); color: transparent; }
.mc.none:hover, .mc.nodate:hover { border-color: var(--cyan); }
.mc.none:hover::after, .mc.nodate:hover::after { content: "+"; color: var(--cyan); font-size: 15px; }
.mc.ok { background: var(--ok); color: #fff; } .mc.todo { background: #f87171; color: #fff; } .mc.overdue { background: #b91c1c; color: #fff; }

.mc.issues { background: #f97316; color: #fff; } .mc.nodoc { background: #facc15; } .mc.scheduled { background: #3b82f6; color: #fff; }
.mc.scheduled { background: var(--info); } .mc.unknown { background: var(--panel-hi); color: var(--muted); border-color: var(--line); }
button.mc:hover { transform: scale(1.06); }
.mx .tot { font-size: 12px; white-space: nowrap; padding: 0 6px; text-align: end; }
.mx tfoot th, .mx tfoot td { position: sticky; bottom: 0; background: var(--panel-solid); font-size: 11.5px; padding: 6px 2px; color: var(--muted); }
.mx-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding: 10px 4px 2px; font-size: 12px; color: var(--muted); }
.mx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.mx-legend i.mc { width: 16px; height: 14px; border-radius: 4px; display: inline-block; cursor: default; }
.mx-legend .grow { flex: 1; }

/* חלוקת חומרים בקוביות */
.cub { display: flex; flex-direction: column; gap: 12px; }
.cub-row { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.cchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cchip { flex: none; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-weight: 600; color: var(--text); }
.cchip.sm { padding: 6px 12px; font-weight: 500; }
.cchip.on { background: var(--grad); color: #0b1020; border-color: transparent; }
.cubes { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; transition: opacity .2s; }
.cubes.locked { opacity: .45; }
.cube { position: relative; aspect-ratio: 1 / 0.9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 18px; cursor: pointer; user-select: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--cc) 14%, transparent), var(--panel)); border: 1px solid color-mix(in srgb, var(--cc) 30%, transparent); color: var(--text); font: inherit; text-align: center; transition: transform .1s, box-shadow .15s; }
.cube:active { transform: scale(.95); }
.cube .ci { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--cc) 22%, transparent); color: var(--cc); }
.cube .ci .ic { width: 24px; height: 24px; }
.cube b { font-size: 13.5px; line-height: 1.25; }
.cube small { color: var(--muted); font-size: 11.5px; }
.cube .cnt { position: absolute; top: 8px; inset-inline-end: 8px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: none; place-items: center; font-weight: 800; font-size: 15px; background: var(--cc); color: #0b1020; }
.cube .minus { position: absolute; top: 8px; inset-inline-start: 8px; width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; font-weight: 800; font-size: 18px; background: var(--panel-solid); border: 1px solid var(--line); color: var(--text); }
.cube.has { border-color: var(--cc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc) 40%, transparent), 0 8px 24px color-mix(in srgb, var(--cc) 25%, transparent); }
.cube.has .cnt, .cube.has .minus { display: grid; }
.cube.pop .cnt { animation: cpop .25s ease-out; }
@keyframes cpop { from { transform: scale(1.5); } }
.cubebar { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cubebar .cb-n { font-size: 15px; } .cubebar .cb-n b { font-size: 22px; }
.cubebar .cb-m { font-size: 22px; color: var(--cyan); }
.cubebar .grow { flex: 1; }
.aggs { display: flex; flex-wrap: wrap; gap: 6px; }
.agg { padding: 6px 12px; border-radius: 999px; background: var(--panel-hi); border: 1px solid var(--line); font-size: 13px; }
@media (max-width: 900px) {
  .cubes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cube { border-radius: 14px; padding: 6px; } .cube .ci { width: 36px; height: 36px; } .cube b { font-size: 12px; }
  .cubebar { bottom: 84px; flex-wrap: wrap; }
}

/* ברקודים */
.qrsites { display: grid; grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; }
.qrsite h3 { margin-bottom: 10px; }
.qrrow { display: flex; gap: 10px; flex-wrap: wrap; }
.qrcard { flex: 1; min-width: 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 14px; background: var(--panel-hi); border: 1px solid var(--line); text-align: center; }
.qrcard img { width: 92px; height: 92px; background: #fff; border-radius: 10px; padding: 4px; }
.qrcard b { font-size: 13px; }
.qrcard .tag { font-size: 11px; }
.qrcard.add { justify-content: center; cursor: pointer; border-style: dashed; background: none; color: var(--muted); font: inherit; max-width: 110px; }
.qrcard.add:hover { color: var(--text); border-color: var(--cyan); }

/* בדיקות בשטח: לוח חודשי */
.chk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; }
.cal-card { padding: 10px 12px; }
.cal-wrap { overflow: auto; max-height: calc(100vh - 220px); }
table.cal { border-collapse: separate; border-spacing: 2px; width: 100%; }
.cal thead th { font-size: 11px; color: var(--muted); font-weight: 600; min-width: 22px; position: sticky; top: 0; background: var(--panel-solid); z-index: 2; padding: 4px 0; }
.cal thead th.now { color: var(--cyan); }
.cal .st { text-align: start; position: sticky; inset-inline-start: 0; background: var(--panel-solid); z-index: 3; white-space: nowrap; padding-inline-end: 8px; font-size: 13px; }
.cal tbody th.st a { color: var(--text); font-weight: 600; }
.cal td { height: 26px; padding: 0; background: var(--panel-hi); border-radius: 5px; }
.cal td.now { box-shadow: inset 0 0 0 1px var(--cyan); }
.cd { display: block; width: 100%; height: 100%; min-height: 24px; border: 0; border-radius: 5px; cursor: pointer; font: inherit; font-size: 10.5px; font-weight: 800; color: #0b1020; }
.cd.ok { background: var(--ok); } .cd.bad { background: var(--bad); color: #fff; } .cd.warn { background: var(--warn); }
i.cd { display: inline-block; width: 14px; height: 14px; min-height: 0; border-radius: 4px; vertical-align: -2px; cursor: default; }
.tk-side { display: flex; flex-direction: column; max-height: calc(100vh - 170px); }
.tkrow { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--panel-hi); }
.tkrow .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tkrow .t b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkrow .t small { font-size: 11.5px; color: var(--muted); }
.mx .addcol { min-width: 96px; max-width: none; white-space: nowrap; }
@media (max-width: 900px) { .chk-layout { grid-template-columns: 1fr; } .qrsites { grid-template-columns: 1fr; } }

.b-orange { background: rgba(249, 115, 22, .15); color: #ea580c; }
.tl-item.todo { background: rgba(248, 113, 113, .16); color: var(--bad); }
.tl-item.issues { background: rgba(249, 115, 22, .16); color: #ea580c; }
.tl-item.nodoc { background: rgba(250, 204, 21, .2); color: #a16207; }
#annrem { position: fixed; z-index: 45; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; box-shadow: var(--shadow); font-size: 14px; }
#annrem .ic { color: #ea580c; }
:root:not([data-theme="light"]) #annrem { background: #431407; border-color: #9a3412; color: #fed7aa; }
@media (max-width: 900px) { #annrem { top: auto; bottom: 84px; width: calc(100% - 24px); flex-wrap: wrap; } }

.mx .rowclr { opacity: 0; margin-inline-start: 4px; padding: 3px; vertical-align: middle; }
.mx tr:hover .rowclr { opacity: .7; }
.mx .rowclr:hover { opacity: 1; color: var(--bad); }
@media (hover: none) { .mx .rowclr { opacity: .6; } }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff !important; }
  .side, .head, .labels-tools, .no-print, .toast { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .sheet-a4 { box-shadow: none; border-radius: 0; margin: 0; }
}

@media (max-width: 1250px) {
  .r-kpi { grid-template-columns: repeat(3, 1fr); }
  .r-kpi .hero { grid-column: span 3; }
  .r-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; overflow-x: auto; padding: 6px 8px calc(env(safe-area-inset-bottom, 0px) + 6px); gap: 2px; border-inline-end: 0; border-top: 1px solid var(--line); justify-content: space-between; }
  .side .logo, .side .me, .side .grow { display: none; }
  .navi { flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 10.5px; flex: none; }
  .navi .ic { width: 22px; height: 22px; }
  .navi .cnt { position: absolute; top: 2px; inset-inline-end: 2px; padding: 0 5px; font-size: 10px; }
  .navi.on::before { display: none; }
  .main { padding: 14px 12px 90px; }
  .main:has(.dash) { padding: 12px 12px 90px; }
  .dash { height: auto; min-height: 0; }
  .dhead .kchips { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .kchip { min-width: 0; padding: 6px 8px; gap: 6px; } .kchip .ci { width: 28px; height: 28px; } .kchip b { font-size: 16px; }
  .dmain { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 96px; overflow: visible; }
  .alist { max-height: 320px; }
  .dfoot { height: auto; grid-template-columns: 1fr; }
  .dfoot .card { min-height: 140px; }
  .lg { display: none; }
  .r-2, .r-3, .tpl-layout, .grid2, .grid3 { grid-template-columns: 1fr; }
  .r-kpi { grid-template-columns: 1fr 1fr; }
  .r-kpi .hero { grid-column: span 2; }
}
