/* ai-hub · trang quản trị — token "nhà dalink" (BrokerDesk DESIGN-NOTES / ContentFactory design-system).
   Component CHỈ dùng token. :root = light → media dark → data-theme override (toggle thắng media query). */

:root {
  --bg: #F2F4F9;
  --surface: #FFFFFF;
  --surface-2: #F7F9FC;
  --surface-3: #EDF1F7;
  --surface-4: #FFFFFF;
  --border: #DCE3EE;
  --border-strong: #C4CEDD;
  --border-hover: #AEBDD2;
  --text: #182338;
  --muted: #5B6B84;
  --faint: #8794AB;
  --accent: #9A7420;
  --accent-contrast: #FFFFFF;
  --accent-soft: rgba(154, 116, 32, 0.12);
  --ok: #0E9F5A;
  --ok-soft: rgba(14, 159, 90, 0.12);
  --danger: #D93843;
  --danger-soft: rgba(217, 56, 67, 0.12);
  --warn: #C77700;
  --warn-soft: rgba(199, 119, 0, 0.14);
  --info: #2563C9;
  --info-soft: rgba(37, 99, 201, 0.12);
  --special: #8E44CE;
  --special-soft: rgba(142, 68, 206, 0.12);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-2: 0 4px 12px rgba(16, 24, 40, 0.10);
  --shadow-3: 0 16px 40px rgba(16, 24, 40, 0.22);
  --scrim: rgba(12, 17, 28, 0.55);

  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --fs-h1: 21px;
  --fs-stat: 22px;
  --fs-title: 14.5px;
  --fs-body: 14px;
  --fs-table: 13px;
  --fs-label: 11px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;
  --radius-sm: 7px; --radius: 10px; --radius-lg: 13px; --radius-full: 999px;
  --dur-fast: 150ms; --dur: 200ms; --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C111C;
    --surface: #131B2C;
    --surface-2: #182236;
    --surface-3: #1E2A42;
    --surface-4: #24314E;
    --border: #243146;
    --border-strong: #31415C;
    --border-hover: #3D5075;
    --text: #E8EDF6;
    --muted: #8B99B0;
    --faint: #5F6D85;
    --accent: #E3B23C;
    --accent-contrast: #1A1206;
    --accent-soft: rgba(227, 178, 60, 0.14);
    --ok: #35C075;
    --ok-soft: rgba(53, 192, 117, 0.14);
    --danger: #F0525C;
    --danger-soft: rgba(240, 82, 92, 0.14);
    --warn: #F2A33C;
    --warn-soft: rgba(242, 163, 60, 0.16);
    --info: #5B9BF0;
    --info-soft: rgba(91, 155, 240, 0.14);
    --special: #C77DFF;
    --special-soft: rgba(199, 125, 255, 0.14);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.40);
    --shadow-3: 0 20px 50px rgba(0, 0, 0, 0.60);
    --scrim: rgba(4, 7, 14, 0.70);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0C111C;
  --surface: #131B2C;
  --surface-2: #182236;
  --surface-3: #1E2A42;
  --surface-4: #24314E;
  --border: #243146;
  --border-strong: #31415C;
  --border-hover: #3D5075;
  --text: #E8EDF6;
  --muted: #8B99B0;
  --faint: #5F6D85;
  --accent: #E3B23C;
  --accent-contrast: #1A1206;
  --accent-soft: rgba(227, 178, 60, 0.14);
  --ok: #35C075;
  --ok-soft: rgba(53, 192, 117, 0.14);
  --danger: #F0525C;
  --danger-soft: rgba(240, 82, 92, 0.14);
  --warn: #F2A33C;
  --warn-soft: rgba(242, 163, 60, 0.16);
  --info: #5B9BF0;
  --info-soft: rgba(91, 155, 240, 0.14);
  --special: #C77DFF;
  --special-soft: rgba(199, 125, 255, 0.14);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.40);
  --shadow-3: 0 20px 50px rgba(0, 0, 0, 0.60);
  --scrim: rgba(4, 7, 14, 0.70);
  color-scheme: dark;
}

/* ---------- nền ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: var(--fs-body)/1.55 var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ---------- khung ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 10px var(--sp-6);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 34px; height: 34px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none;
}
.brand b { display: block; font-size: 15px; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: nowrap; }
.hb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.hb .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.hb .dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hb .dot.bad { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.tabs {
  display: flex; gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-6) 0;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 0; border-bottom: 2px solid transparent;
  padding: 8px 12px 10px; margin-bottom: -1px;
  color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab .cnt {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 600;
  background: var(--surface-3); color: var(--muted); border-radius: var(--radius-full); padding: 1px 7px;
  min-width: 20px; text-align: center;
}
.tab[aria-selected="true"] .cnt { background: var(--accent-soft); color: var(--accent); }

main { padding: var(--sp-5) var(--sp-6) 80px; max-width: 1440px; margin: 0 auto; }
.view { animation: fadein .25s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.page-h h1 { margin: 0; font-size: var(--fs-h1); font-weight: 700; line-height: 1.25; }
.page-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.page-h .tools { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.stamp { color: var(--faint); font-size: 12px; white-space: nowrap; }

/* ---------- card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); margin-bottom: var(--sp-4); min-width: 0;
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-h h2 { margin: 0; font-size: var(--fs-title); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-h .hint { color: var(--muted); font-size: 12.5px; }
.card-b { padding: 16px; }
.card-b.tight { padding: 0; }
.label { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }

/* ---------- stat tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-1); min-width: 0; }
.tile .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-stat); font-weight: 650; line-height: 1.2; margin-top: 4px; }
.tile .s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.tile.accent .v { color: var(--accent); }
.tile.ok .v { color: var(--ok); }
.tile.warn .v { color: var(--warn); }
.tile.info .v { color: var(--info); }

.engines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.eng { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.eng .nm { font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eng .cs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- badge / chip ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6; border: 1px solid transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { color: var(--ok); background: var(--ok-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge.danger { color: var(--danger); background: var(--danger-soft); }
.badge.off { color: var(--muted); background: var(--surface-3); }
.badge.info { color: var(--info); background: var(--info-soft); }
.badge.accent { color: var(--accent); background: var(--accent-soft); }
.badge.special { color: var(--special); background: var(--special-soft); }
.badge.run::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.badge.plain::before { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: var(--radius-full);
  background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border);
}
.chip.n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.chip.ok { color: var(--ok); border-color: transparent; background: var(--ok-soft); }
.chip.warn { color: var(--warn); border-color: transparent; background: var(--warn-soft); }
.chip.danger { color: var(--danger); border-color: transparent; background: var(--danger-soft); }
.chip.accent { color: var(--accent); border-color: transparent; background: var(--accent-soft); }
.chip.special { color: var(--special); border-color: transparent; background: var(--special-soft); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- bảng ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-table); min-width: 640px; }
th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 600;
  padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2);
}
td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
th.r, td.r { text-align: right; }
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
td .mono, td.mono { white-space: nowrap; }
td .sub { display: block; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
td.act { white-space: nowrap; text-align: right; }
td.act .btn + .btn { margin-left: 4px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 2px; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  min-height: 34px; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text) 12%); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-ok { color: var(--ok); border-color: var(--ok); background: transparent; }
.btn-ok:hover { background: var(--ok-soft); }
.btn-sm { padding: 4px 10px; min-height: 28px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-icon { width: 34px; padding: 0; }
.btn .spin { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; color: var(--muted); font-weight: 600; font-size: 12.5px; cursor: pointer; min-height: 32px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }

select.sel, input.inp, textarea.ta {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 7px 10px;
  color: var(--text); min-height: 34px; width: 100%; max-width: 100%;
}
select.sel { width: auto; padding-right: 28px; }
input.inp:focus, textarea.ta:focus, select.sel:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.ta { resize: vertical; min-height: 84px; line-height: 1.5; }

/* ---------- thông báo ---------- */
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius); border: 1px solid; margin-bottom: var(--sp-3); font-size: 13px; }
.banner.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.banner.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.banner.info { color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); background: var(--info-soft); }
.banner.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-soft); }
.banner ul { margin: 2px 0 0; padding-left: 18px; }
.banner .t { color: var(--text); }

#toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: min(520px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  background: var(--surface-4); border: 1px solid var(--border-strong); border-left: 3px solid var(--info); color: var(--text);
  border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow-3); font-size: 13px; pointer-events: auto;
  animation: up .25s var(--ease);
}
.toast.ok { border-left-color: var(--ok); }
.toast.danger { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- skeleton ---------- */
.sk { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--radius-sm); height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-rows .sk { margin: 14px 16px; }
.sk-rows .sk:nth-child(2n) { width: 70%; }

/* ---------- modal / cổng ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fadein .2s var(--ease); }
.modal {
  width: min(440px, 100%); background: var(--surface-4); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 22px 22px 18px;
}
.modal h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.modal p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.modal .err { color: var(--danger); font-size: 12.5px; margin-top: 8px; min-height: 18px; }
.modal .note { color: var(--faint); font-size: 12px; margin-top: 10px; }
.gate-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.gate-logo .logo { width: 40px; height: 40px; font-size: 15px; }
.gate-logo b { font-size: 16px; }
.gate-logo small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- biểu đồ ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .bar-ok { fill: var(--ok); }
.chart .bar-bad { fill: var(--danger); }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .ax { fill: var(--faint); font-family: var(--font-mono); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart .val { fill: var(--muted); font-family: var(--font-mono); font-size: 10px; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 14px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.ok { background: var(--ok); }
.legend i.bad { background: var(--danger); }

/* ---------- quy định ---------- */
.rule { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rule:last-child { border-bottom: 0; }
.rule .idx { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 650; min-width: 26px; padding-top: 1px; }
.rule .tx { flex: 1; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }
.rule .id { color: var(--faint); font-size: 11px; font-family: var(--font-mono); margin-top: 3px; }
.rule .btn { flex: none; }
.counter { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--faint); }
.counter.over { color: var(--danger); }
.form-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 10px; flex-wrap: wrap; }

/* ---------- kéo thả ---------- */
.drop {
  display: grid; place-items: center; text-align: center; gap: 4px; padding: 30px 16px;
  border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-2); color: var(--muted); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.drop b { color: var(--text); font-size: 15px; }
.drop input { display: none; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kv .k { font-size: 11.5px; color: var(--muted); }
.kv .v { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 650; }
.kv .v.ok { color: var(--ok); }
.kv .v.warn { color: var(--warn); }
.kv .v.danger { color: var(--danger); }
.kv .v.info { color: var(--info); }
.err-list { margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; }
.err-list li { padding: 6px 0; border-top: 1px solid var(--border); color: var(--muted); }
.err-list li b { color: var(--danger); font-family: var(--font-mono); margin-right: 6px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-3); }
.tenant { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.tenant .nm { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 650; }
.tenant .nm small { color: var(--faint); font-family: var(--font-mono); font-weight: 500; }
.bar { height: 6px; border-radius: var(--radius-full); background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--radius-full); }
.bar i.warn { background: var(--warn); }
.bar i.danger { background: var(--danger); }
.tenant .meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 10px; }
.tenant .meta .num { color: var(--text); }
.tenant .lbl { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { padding: 8px 16px; }
  .brand small { display: none; }
  .hb .txt { display: none; }
  .tabs { padding: 10px 16px 0; }
  main { padding: 16px 16px 72px; }
  .tiles { gap: 10px; }
  .tile { padding: 12px 13px; }
  .tile .v { font-size: 20px; }
  .engines { grid-template-columns: 1fr; }
  .card-h { padding: 11px 14px; }
  .card-b { padding: 14px; }
  .page-h h1 { font-size: 19px; }
  .modal { padding: 18px 16px 14px; }
  .btn-txt { display: none; }
  .btn.btn-only-icon-sm { width: 34px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
