/* aihub 2.0 -- one stylesheet, no build step. */
:root {
  --bg: #f4f6fa; --card: #fff; --ink: #142033; --mut: #66728a; --line: #e3e8f0; --line2: #eef1f6;
  --pri: #2457d6; --pri-soft: #e8eefc; --ok: #16a34a; --ok-soft: #e6f6ec; --warn: #d97706; --warn-soft: #fdf3e3;
  --bad: #dc2626; --bad-soft: #fdecec; --side: #0f1b33; --side-ink: #c9d3e8; --radius: 10px;
  --c1: #2457d6; --c2: #0e9f8a; --c3: #c2410c; --c4: #7c3aed;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; }
h2 { font-size: 15px; margin: 0 0 10px; }
h3 { font-size: 13px; margin: 18px 0 8px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 6px 0; }
.mut { color: var(--mut); } .small { font-size: 12px; } .mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }
.right { text-align: right; } .nowrap { white-space: nowrap; } .bad { color: var(--bad); } .warn { color: var(--warn); }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* layout */
.side { position: fixed; inset: 0 auto 0 0; width: 220px; background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 16px 12px; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; flex: 1; }
.side nav a { color: var(--side-ink); padding: 8px 12px; border-radius: 8px; }
.side nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.side nav a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin: 16px 12px 4px; }
.me { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 10px 0; display: flex; flex-direction: column; gap: 2px; }
.me a { color: #fff; font-weight: 600; } .me small { opacity: .6; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; padding: 0 6px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font-weight: 400; opacity: .55; font-size: 11px; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--pri); color: #fff; font-size: 13px; font-weight: 800; }
main { padding: 24px 28px 48px; max-width: 1480px; }
main.with-side { margin-left: 220px; }
body.bare main { display: grid; place-items: center; min-height: 100vh; max-width: none; padding: 24px; }
body.bare .brand { color: var(--ink); }
.ph { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ph-act { display: flex; gap: 8px; align-items: center; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.card-h h2 { margin: 0; }
.card.narrow, form.narrow { max-width: 520px; }
.card.empty { text-align: center; padding: 40px; }
.card.secret { border-color: var(--warn); background: var(--warn-soft); }
.code-big { font-size: 30px; letter-spacing: .12em; font-weight: 700; margin: 8px 0; }
pre { background: #0f1b33; color: #e6ecf8; padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
.select-all { user-select: all; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > .card { margin-bottom: 0; } .cols { margin-bottom: 16px; }
.grid { display: grid; gap: 14px; }
.grid.cos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* company cards on overview */
.card.co { color: var(--ink); border-left: 4px solid var(--ok); margin: 0; transition: box-shadow .15s; }
.card.co:hover { box-shadow: 0 4px 18px rgba(20,32,51,.08); text-decoration: none; }
.card.co.st-stale { border-left-color: var(--warn); } .card.co.st-offline { border-left-color: var(--bad); }
.co-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-h b { font-size: 15px; margin-right: auto; }
.alist { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.alist li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.alist li span { flex: 1; } .alist li span.badge { flex: none; } .alist em { font-style: normal; color: var(--mut); font-size: 12px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.kpis.k6 { grid-template-columns: repeat(6, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; border-top: 3px solid var(--line); }
.kpi b { display: block; font-size: 26px; line-height: 1.1; }
.kpi b small { font-size: 13px; color: var(--mut); font-weight: 600; margin-left: 3px; }
.kpi span { color: var(--mut); font-size: 12px; }
.kpi.ok { border-top-color: var(--ok); } .kpi.warn { border-top-color: var(--warn); } .kpi.bad { border-top-color: var(--bad); }
.kpi.bad b { color: var(--bad); } .kpi.warn b { color: var(--warn); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line2); color: var(--mut); white-space: nowrap; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.st-online { background: var(--ok-soft); color: var(--ok); }
.badge.st-stale { background: var(--warn-soft); color: var(--warn); }
.badge.st-offline { background: var(--bad-soft); color: var(--bad); }
.sev { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.sev-info { background: var(--pri-soft); color: var(--pri); } .sev-warning { background: var(--warn-soft); color: var(--warn); }
.sev-high { background: var(--bad-soft); color: var(--bad); } .sev-critical { background: var(--bad); color: #fff; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--line2); color: var(--mut); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; color: var(--mut); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl.compact td { padding: 5px 8px; }
.tbl tr.dim td { opacity: .5; }
.tbl tr.row-bad td { background: var(--bad-soft); }
.bar-cell { width: 45%; } .bar { display: block; height: 8px; border-radius: 4px; background: var(--pri); opacity: .75; }

/* forms */
input, select, textarea { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
textarea { width: 100%; font-size: 12.5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pri-soft); border-color: var(--pri); }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--mut); margin-bottom: 10px; }
label.radio { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 8px 12px; }
legend { font-size: 12px; color: var(--mut); padding: 0 4px; }
.form label input, .form label select { width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.inline-form label { margin: 0; flex: 1; min-width: 150px; }
.label-form { display: flex; gap: 6px; } .label-form input { padding: 4px 8px; width: 190px; }
.filters { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters input { min-width: 280px; }
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--pri); text-decoration: none; }
.btn.primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn.danger { color: var(--bad); } .btn.danger:hover { border-color: var(--bad); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; } .btn.wide { width: 100%; justify-content: center; padding: 10px; }
.link { background: none; border: 0; color: var(--side-ink); padding: 0; cursor: pointer; font: inherit; opacity: .7; text-align: left; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--ok-soft); color: #14532d; border: 1px solid #bfe5cb; }
.flash.err { background: var(--bad-soft); color: #7f1d1d; border-color: #f5c2c2; }
.flash.warn { background: var(--warn-soft); color: #7c4a03; border-color: #f2d7a6; }
.login { width: 380px; } .login .brand { margin-bottom: 18px; } .login input { width: 100%; }
.note { background: var(--warn-soft); padding: 8px 10px; border-radius: 8px; }

/* company dashboard */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs a { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.tabs a.on { border-color: var(--pri); box-shadow: inset 0 -2px 0 var(--pri); font-weight: 600; }
.sub-h { display: flex; justify-content: space-between; gap: 12px; color: var(--mut); font-size: 12.5px; margin-bottom: 14px; flex-wrap: wrap; }
.sub-h b { color: var(--ink); font-weight: 600; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { font: inherit; font-size: 12.5px; border: 0; background: #fff; padding: 5px 12px; cursor: pointer; color: var(--mut); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--pri-soft); color: var(--pri); font-weight: 600; }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.chart { margin: 0; min-width: 0; }
.chart figcaption { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px; }
.chart figcaption .lg { font-weight: 400; color: var(--mut); display: flex; gap: 10px; }
.chart figcaption .lg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
.chart .empty-chart { height: 150px; display: grid; place-items: center; color: var(--mut); font-size: 12px; background: var(--line2); border-radius: 8px; }
.chart .tip { position: absolute; pointer-events: none; background: #0f1b33; color: #fff; font-size: 11.5px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -110%); z-index: 2; }
.chart-box { position: relative; }
.ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.port { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; border-left: 4px solid var(--line); }
.port b { display: block; font-size: 13px; } .port small { color: var(--mut); font-size: 11.5px; }
.port.up { border-left-color: var(--ok); } .port.down { opacity: .55; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; }
.facts div { display: flex; flex-direction: column; } .facts span { font-size: 11.5px; color: var(--mut); } .facts b { font-weight: 600; font-size: 13.5px; word-break: break-all; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.timeline li { display: flex; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 13px; flex-wrap: wrap; }
.timeline li .msg { flex: 1; min-width: 200px; }
.timeline time { color: var(--mut); font-size: 12px; width: 82px; }
.timeline em { font-style: normal; font-size: 11.5px; color: var(--mut); }
.timeline li.open span { font-weight: 600; }

@media (max-width: 1100px) {
  .charts { grid-template-columns: 1fr 1fr; } .kpis, .kpis.k6 { grid-template-columns: repeat(3, 1fr); } .cols { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .side { position: static; width: auto; } main.with-side { margin-left: 0; } .charts { grid-template-columns: 1fr; }
  .kpis, .kpis.k6 { grid-template-columns: 1fr 1fr; } .facts { grid-template-columns: 1fr 1fr; } .grid3 { grid-template-columns: 1fr; }
}

/* two-step sign-in */
.narrow2 { max-width: 680px; }
.code-input { font-size: 22px; letter-spacing: 4px; max-width: 220px; }
.qr { display: inline-block; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin: 4px 0 6px; }
.qr svg { display: block; width: 200px; height: 200px; }
.key { font-size: 15px; color: var(--ink); }
.rc-box { background: var(--warn-soft); border: 1px solid #f0c27a; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.rc-grid { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 28px; margin-top: 8px; font-size: 16px; }
.steps { padding-left: 18px; line-height: 1.7; margin: 6px 0; }
details { margin: 8px 0; } summary { cursor: pointer; color: var(--pri); }
.link-btn { background: none; border: 0; color: var(--mut); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

/* security check */
.chk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: var(--ok); margin-right: 4px; }
.chk-warn { background: var(--warn); } .chk-bad { background: var(--bad); } .chk-info { background: var(--mut); }
form.inline { display: inline; }

/* watchdog */
.wd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.wd { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.wd b { font-size: 13.5px; } .wd small { font-size: 11.5px; color: var(--mut); }
.wd.up { border-left-color: var(--ok); } .wd.down { border-left-color: var(--bad); background: var(--bad-soft); } .wd.unk { opacity: .6; }
.facts b.warn { color: var(--warn); }

/* ===== TV wall (NOC view) ===== */
body.tv { background: #070b14; color: #e8eefb; overflow: hidden; }
body.tv main { max-width: none; padding: 0; }
.tvx { height: 100vh; display: grid; grid-template-rows: auto 1fr auto; gap: 1.2vh; padding: 1.6vh 1.4vw;
  background: radial-gradient(1400px 800px at 85% -10%, #12224a 0%, transparent 60%), radial-gradient(1000px 700px at -10% 110%, #0d1d3a 0%, transparent 55%), #070b14;
  font-size: clamp(11px, 0.78vw, 18px); }
.tvx-top { display: flex; align-items: center; gap: 2vw; }
.tvx-brand { display: flex; align-items: center; gap: .8em; }
.tvx-brand b { display: block; letter-spacing: .25em; font-size: 1.15em; }
.tvx-brand small { color: #7d8db3; letter-spacing: .08em; }
.tvx-fleet { flex: 1; display: flex; align-items: center; gap: 1.2vw; }
.tvx-stat { background: rgba(255,255,255,.04); border: 1px solid #1d2a47; border-radius: 12px; padding: .5em 1em; min-width: 8em; }
.tvx-stat b { display: block; font-size: 2em; line-height: 1.1; } .tvx-stat span { color: #7d8db3; font-size: .85em; text-transform: uppercase; letter-spacing: .08em; }
.tvx-stat.bad b { color: #ff5f57; } .tvx-stat.warn b { color: #f6c04a; } .tvx-stat.ok b { color: #33e08a; }
.tvx-time { text-align: right; } .tvx-time b { display: block; font-size: 2.6em; font-variant-numeric: tabular-nums; letter-spacing: .04em; } .tvx-time small { color: #7d8db3; }
.tvx-body { display: grid; grid-template-columns: 1fr 23vw; gap: 1.2vw; min-height: 0; }
.tvx-stage { position: relative; border: 1px solid #1d2a47; border-radius: 18px; background: linear-gradient(160deg, rgba(20,32,62,.85), rgba(10,16,32,.9));
  padding: 2.2vh 1.6vw; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1.8vh; min-height: 0; overflow: hidden; }
.tvx-stage.alert { border-color: #ff5f57; box-shadow: 0 0 0 2px rgba(255,95,87,.25), 0 0 60px rgba(255,95,87,.18) inset; }
.tvx-stage.enter { animation: tvx-in .7s ease; }
@keyframes tvx-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tvx-wait { color: #7d8db3; font-size: 1.6em; }
.tvx-head { display: flex; align-items: center; gap: 1.6vw; }
.tvx-head h2 { font-size: 2.4em; margin: 0; line-height: 1.1; }
.tvx-head .sub { color: #8fa0c6; margin-top: .3em; display: flex; gap: .8em; flex-wrap: wrap; align-items: center; }
.tvx-pill { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; padding: .25em .8em; border-radius: 999px; background: #0f2a1d; color: #33e08a; }
.tvx-pill i { width: .6em; height: .6em; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: tvx-blink 1.4s infinite; }
.tvx-pill.offline, .tvx-pill.never { background: #3a1416; color: #ff5f57; } .tvx-pill.stale { background: #3a2d10; color: #f6c04a; }
@keyframes tvx-blink { 50% { opacity: .35; } }
.tvx-why { font-size: .85em; padding: .2em .7em; border-radius: 6px; background: rgba(255,95,87,.12); color: #ff9b95; }
.tvx-ring { flex: none; position: relative; width: 9em; height: 9em; }
.tvx-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tvx-ring .v { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.tvx-ring .v b { font-size: 2.6em; line-height: 1; display: block; } .tvx-ring .v small { color: #7d8db3; font-size: .75em; letter-spacing: .1em; text-transform: uppercase; }
.tvx-ring.sm { width: 3.4em; height: 3.4em; } .tvx-ring.sm .v b { font-size: 1.05em; }
.tvx-kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: .8vw; }
.tvx-kpi { background: rgba(255,255,255,.035); border: 1px solid #1d2a47; border-radius: 12px; padding: .8em .9em; position: relative; overflow: hidden; }
.tvx-kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #33e08a; opacity: .8; }
.tvx-kpi.warn::after { background: #f6c04a; } .tvx-kpi.bad::after { background: #ff5f57; }
.tvx-kpi b { display: block; font-size: 2.1em; line-height: 1.1; font-variant-numeric: tabular-nums; } .tvx-kpi b small { font-size: .45em; color: #7d8db3; margin-left: .2em; }
.tvx-kpi span { color: #7d8db3; font-size: .82em; text-transform: uppercase; letter-spacing: .06em; }
.tvx-kpi.bad b { color: #ff5f57; } .tvx-kpi.warn b { color: #f6c04a; }
.tvx-panels { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1vw; min-height: 0; }
.tvx-panel { background: rgba(255,255,255,.03); border: 1px solid #1d2a47; border-radius: 14px; padding: 1em 1.1em; display: flex; flex-direction: column; min-height: 0; }
.tvx-panel h4 { margin: 0 0 .6em; font-size: .85em; letter-spacing: .14em; text-transform: uppercase; color: #8fa0c6; display: flex; justify-content: space-between; }
.tvx-panel h4 em { font-style: normal; color: #e8eefb; letter-spacing: 0; text-transform: none; }
.tvx-spark { flex: 1; min-height: 6em; } .tvx-spark svg { width: 100%; height: 100%; display: block; }
.tvx-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1vw; min-height: 0; }
.tvx-dots { display: grid; grid-template-columns: repeat(auto-fill, minmax(1.9em, 1fr)); gap: .45em; align-content: start; }
.tvx-dot { aspect-ratio: 1; border-radius: 50%; background: #33e08a; box-shadow: 0 0 .6em rgba(51,224,138,.45); }
.tvx-dot.slow { background: #f6c04a; box-shadow: 0 0 .6em rgba(246,192,74,.5); }
.tvx-dot.loss { background: #ff5f57; box-shadow: 0 0 .8em rgba(255,95,87,.7); animation: tvx-blink 1s infinite; }
.tvx-note { color: #8fa0c6; font-size: .85em; margin-top: .6em; }
.tvx-leds { display: flex; flex-wrap: wrap; gap: .5em; }
.tvx-led { padding: .35em .7em; border-radius: 7px; font-size: .85em; font-weight: 700; background: #0f2a1d; color: #33e08a; border: 1px solid #1d5a3a; }
.tvx-led.down { background: #111827; color: #4d5b7c; border-color: #1d2a47; }
.tvx-foot { display: flex; gap: 1em; flex-wrap: wrap; align-items: center; color: #8fa0c6; }
.tvx-chip { padding: .3em .8em; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid #1d2a47; font-size: .9em; }
.tvx-chip.ok { color: #33e08a; } .tvx-chip.bad { color: #ff5f57; border-color: #5a1f22; } .tvx-chip.warn { color: #f6c04a; }
.tvx-progress { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #4f8cff, #33e08a); width: 0; }
.tvx-rail { display: flex; flex-direction: column; gap: .7vh; overflow: hidden; }
.tvx-tile { display: flex; align-items: center; gap: .8em; padding: .7em .9em; border-radius: 12px; border: 1px solid #1d2a47; background: rgba(255,255,255,.03); transition: all .4s; }
.tvx-tile.on { background: rgba(79,140,255,.16); border-color: #4f8cff; transform: translateX(-6px); }
.tvx-tile.alert { border-color: #ff5f57; }
.tvx-tile b { display: block; font-size: 1.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tvx-tile small { color: #7d8db3; } .tvx-tile > div:nth-child(2) { min-width: 0; flex: 1; }
.tvx-attn { font-size: .7em; font-weight: 800; letter-spacing: .12em; color: #ff5f57; animation: tvx-blink 1s infinite; }
.tvx-ticker { display: flex; align-items: center; gap: 1em; border: 1px solid #1d2a47; border-radius: 12px; background: rgba(255,255,255,.03); padding: .6em 1em; overflow: hidden; }
.tvx-ticker-h { font-weight: 800; letter-spacing: .2em; font-size: .8em; color: #ff5f57; white-space: nowrap; }
.tvx-ticker-run { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tvx-ticker-run > div { display: inline-flex; gap: 3em; white-space: nowrap; animation: tvx-scroll 90s linear infinite; }
.tvx-ticker-run span i { display: inline-block; width: .6em; height: .6em; border-radius: 50%; margin-right: .5em; background: #4f8cff; }
.tvx-ticker-run span.warning i { background: #f6c04a; } .tvx-ticker-run span.high i, .tvx-ticker-run span.critical i { background: #ff5f57; }
.tvx-ticker-run span em { font-style: normal; color: #7d8db3; margin-right: .5em; }
@keyframes tvx-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 1200px) {
  .tvx-kpis { grid-template-columns: repeat(4, 1fr); }
  .tvx-body { grid-template-columns: 1fr; } .tvx-rail { display: none; }
  .tvx-panels { grid-template-columns: 1fr; } .tvx { overflow: auto; height: auto; min-height: 100vh; }
}
