/* UA YSF - network status page. Palette follows node.adms-control.com */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #091725;
  --bg2: #0d1f31;
  --panel: #102a40;
  --panel2: #0d1f31;
  --line: #1d3b56;
  --line2: #27506f;
  --ink: #e9eff5;
  --muted: #9aafc3;
  --dim: #6f879c;
  --accent: #31c6d4;
  --accent-d: #1e8798;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --air: #ff4d5e;
  --nodata: #1a3550;
  --ua-blue: #2f6fd6;
  --ua-yellow: #ffd500;
  --radius: 16px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(1200px 600px at 50% -10%, #0f2a40 0%, var(--bg) 60%) no-repeat;
  color: var(--ink);
  font: 400 16px/1.55 "Manrope", "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 23, 37, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(29, 59, 86, .7);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand-main { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand-main:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel); text-decoration: none; }
/* language selector: same shape as on the Odoo sites (name + dropdown) */
.lang { position: relative; flex: none; }
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--line); border-radius: 9px; color: var(--muted);
  font: 600 13px/1 inherit; padding: 8px 11px; cursor: pointer; white-space: nowrap;
}
.lang-btn:hover, .lang[data-open] .lang-btn { color: var(--ink); background: var(--panel); }
.lang-caret {
  width: 9px; height: 6px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .12s;
}
.lang[data-open] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; min-width: 160px;
  display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--panel); border: 1px solid var(--line2); border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  background: none; border: 0; border-radius: 7px; color: var(--ink);
  font: 600 13.5px/1.3 inherit; text-align: left; padding: 8px 10px; cursor: pointer; white-space: nowrap;
}
.lang-menu button:hover { background: var(--bg2); }
.lang-menu button[aria-current="true"] { background: var(--accent); color: #06121e; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 56px 0 28px; }
.emblem {
  width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #163a59, #0b1d2e 70%);
  border: 2px solid var(--line2);
  box-shadow: 0 0 0 6px rgba(49, 198, 212, .06), 0 18px 50px rgba(0, 0, 0, .35);
}
.emblem img { width: 72px; height: 72px; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; margin: 4px 0 10px; font-weight: 800; letter-spacing: -.01em; }
.subtitle { color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.lead { color: #c9d6e2; max-width: 720px; margin: 0 auto; font-size: 17px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .35); color: #b8f5cd;
}
.status-pill.warn { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .4); color: #fde3b0; }
.status-pill.bad { background: rgba(239, 68, 68, .08); border-color: rgba(239, 68, 68, .4); color: #fecaca; }
.status-pill.stale { background: rgba(154, 175, 195, .08); border-color: var(--line2); color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 38px 0 8px; }
.sec-head { text-align: center; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(22px, 3vw, 26px); margin: 0; font-weight: 800; }
.sec-head p { margin: 8px auto 0; color: var(--muted); max-width: 680px; }

.card {
  background: linear-gradient(var(--panel), var(--panel2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); flex: none; }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.dot.air { background: var(--air); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 77, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot.air { animation: none; } html { scroll-behavior: auto; } }

.badge {
  font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  color: var(--ok); background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35);
}
.badge.degraded { color: var(--warn); background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.badge.offline { color: var(--bad); background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .4); }
.badge.air { color: #ffd0d5; background: rgba(255, 77, 94, .14); border-color: rgba(255, 77, 94, .5); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kpi { padding: 16px 16px 14px; }
.kpi .v { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 16px; color: var(--muted); font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 13px; margin-top: 6px; font-weight: 600; }
.kpi.accent .v { color: var(--accent); }
.kpi.ok .v { color: #6ee79a; }
.kpi.air .v { color: var(--air); }

/* ---------- on air ---------- */
.onair { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.onair-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.onair-row .call { font-size: 22px; font-weight: 800; font-family: var(--mono); letter-spacing: .02em; }
.onair-row .where { color: var(--muted); }
.onair-row .where b { color: var(--ink); font-weight: 700; }
.onair-row .timer { margin-left: auto; font-family: var(--mono); color: #ffd0d5; font-size: 18px; font-variant-numeric: tabular-nums; }
.onair-row img.flag { width: 36px; height: 22px; }
.onair.idle { color: var(--muted); }

/* ---------- reflector cards ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.search {
  flex: 1 1 260px; min-width: 0;
  background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font: 500 15px/1.2 inherit;
}
.search:focus, .sort:focus, .chip:focus-visible, .lang-btn:focus-visible, .lang-menu button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--bg2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font: 700 13px/1 inherit; cursor: pointer;
}
.chip[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.chip .n { opacity: .75; margin-left: 4px; font-weight: 600; }
.sort {
  background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font: 600 14px/1.2 inherit;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.rcard { display: flex; flex-direction: column; gap: 12px; color: var(--ink); transition: border-color .15s, transform .15s; }
.rcard:hover { border-color: var(--accent-d); text-decoration: none; transform: translateY(-1px); }
.rcard.is-air { border-color: rgba(255, 77, 94, .55); box-shadow: 0 0 0 1px rgba(255, 77, 94, .2), 0 10px 30px rgba(255, 77, 94, .08); }
.rcard.is-off { border-color: rgba(239, 68, 68, .45); }
.rc-head { display: flex; align-items: center; gap: 12px; }
.flag { width: 44px; height: 28px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: none; background: var(--bg2); }
.rc-title { min-width: 0; flex: 1; }
.rc-title h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-sub { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.rc-live { min-height: 24px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.rc-live .call { color: var(--ink); font-family: var(--mono); font-weight: 700; }
.rc-live.air .call { color: #ffd0d5; }
.rc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-stats div { background: rgba(9, 23, 37, .45); border: 1px solid rgba(29, 59, 86, .7); border-radius: 10px; padding: 8px 10px; }
.rc-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.rc-stats span { display: block; color: var(--dim); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.ticks { display: flex; gap: 2px; height: 22px; align-items: stretch; }
.ticks i { flex: 1; border-radius: 2px; background: var(--ok); opacity: .9; }
.ticks i.p { background: #84cc16; }
.ticks i.w { background: var(--warn); }
.ticks i.b { background: var(--bad); }
.ticks i.n { background: var(--nodata); }
.ticks-cap { display: flex; justify-content: space-between; color: var(--dim); font-size: 11.5px; margin-top: -6px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: rgba(49, 198, 212, .08); border: 1px solid rgba(49, 198, 212, .25); color: #a5e9ef; white-space: nowrap; }
.tag.gw { font-family: var(--mono); font-weight: 600; background: rgba(154, 175, 195, .07); border-color: var(--line); color: #c6d3df; }
.rc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-weight: 700; font-size: 14px; border-top: 1px solid rgba(29, 59, 86, .7); padding-top: 10px; }
.rc-foot .dim { font-weight: 600; font-size: 12.5px; }
.empty { text-align: center; color: var(--muted); padding: 30px 0; grid-column: 1 / -1; }

/* ---------- activity table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 0 10px 10px; white-space: nowrap; }
td { padding: 9px 10px; border-top: 1px solid rgba(29, 59, 86, .7); white-space: nowrap; }
td.call { font-family: var(--mono); font-weight: 700; }
td .flag { width: 26px; height: 16px; vertical-align: -3px; margin-right: 8px; }
tr.new td { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(49, 198, 212, .16); } to { background: transparent; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.chart { width: 100%; height: 220px; display: block; }
.chart .bar { fill: var(--accent-d); }
.chart .bar:hover, .chart .bar.today { fill: var(--accent); }
.chart .line { fill: none; stroke: var(--ua-yellow); stroke-width: 2; }
.chart .pt { fill: var(--ua-yellow); }
.chart .grid-l { stroke: rgba(29, 59, 86, .8); stroke-width: 1; }
.chart text { fill: var(--dim); font: 600 11px "Manrope", system-ui, sans-serif; }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 13px; margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.top li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.top .flag { width: 26px; height: 16px; }
.top .bar-bg { grid-column: 2 / 4; height: 6px; border-radius: 3px; background: var(--bg2); overflow: hidden; margin-top: -4px; }
.top .bar-bg span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-d), var(--accent)); border-radius: 3px; }
.server { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(29, 59, 86, .7); }
.server div span { display: block; color: var(--dim); font-size: 12px; font-weight: 600; }
.server div b { font-variant-numeric: tabular-nums; }

/* ---------- uptime ---------- */
.uptime { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.up { padding: 14px 16px 12px; }
.up-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.up-head h3 { margin: 0; font-size: 15px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-head .flag { width: 28px; height: 18px; }
.up-pct { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.up-pct b { color: var(--ink); }
.up .ticks { height: 28px; gap: 1.5px; }
.up .ticks-cap { margin-top: 6px; }

/* ---------- info ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc h3 { display: flex; align-items: center; gap: 10px; }
.svc p { margin: 0; color: #c3d0dc; font-size: 15px; }
.svc .mono { color: var(--accent); }
.scheme { margin-top: 14px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: center; }
.scheme img { border-radius: 12px; display: block; border: 1px solid var(--line); }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 14px; }
.about-intro { max-width: 860px; margin: 0 auto; color: #c9d6e2; text-align: center; }
.gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details.card { padding: 0; }
details summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 20px; line-height: 1; font-weight: 600; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 18px 16px; color: #c3d0dc; font-size: 15px; }

/* ---------- contacts / footer ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 820px; margin: 0 auto; }
.contacts .who { font-size: 20px; font-weight: 800; font-family: var(--mono); }
.contacts p { margin: 4px 0 0; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  background: var(--accent); color: var(--bg); font-weight: 800; font-size: 14px;
  border-radius: 10px; padding: 9px 14px; border: 0; cursor: pointer;
}
.btn:hover { background: #4fd6e2; text-decoration: none; }
footer { margin-top: 46px; padding: 26px 0 34px; border-top: 1px solid rgba(29, 59, 86, .7); color: var(--dim); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.live-ind { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- tooltip ---------- */
.tip {
  position: fixed; z-index: 50; pointer-events: none;
  background: #06121e; border: 1px solid var(--line2); color: var(--ink);
  padding: 7px 10px; border-radius: 8px; font-size: 12.5px; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); max-width: 260px; white-space: pre-line;
  opacity: 0; transform: translateY(4px); transition: opacity .1s, transform .1s;
}
.tip.show { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .stats, .uptime, .scheme, .gloss, .contacts, .modes { grid-template-columns: 1fr; }
  .nav { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .v { font-size: 24px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 38px; }
  .lead { font-size: 16px; }
  .up .ticks { gap: 1px; }
  .ticks { gap: 1px; }
  td, th { padding-left: 6px; padding-right: 6px; }
  .onair-row .timer { margin-left: 0; }
}

/* ---------- reflector page (ysf<rid>.uw0wu.com) ---------- */
.r-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: center; padding: 40px 0 6px; }
.r-id { display: flex; gap: 24px; align-items: center; min-width: 0; }
.r-flag {
  width: 132px; height: 83px; object-fit: cover; border-radius: 12px; flex: none; background: var(--bg2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 14px 40px rgba(0, 0, 0, .45);
}
.r-titles { min-width: 0; }
.r-titles .kicker { margin: 0; }
.r-titles h1 { margin: 2px 0 12px; font-size: clamp(28px, 4.2vw, 40px); overflow-wrap: anywhere; }
.r-titles .status-pill { margin-top: 16px; }
.r-connect h3 { margin-bottom: 12px; }
.r-connect dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14px; }
.r-connect dt { color: var(--dim); font-weight: 600; }
.r-connect dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.r-connect dd.mono { color: #a5e9ef; }
.onair.big { padding: 22px 24px; }
.onair.big .call { font-size: 30px; font-weight: 800; font-family: var(--mono); letter-spacing: .02em; }
.onair.big .timer { font-size: 22px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h3 { margin: 0; flex: 1; }
.count { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.gw-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 236px; overflow-y: auto; }
.gw-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(9, 23, 37, .45); border: 1px solid rgba(29, 59, 86, .7); }
.gw-list li.empty-li { background: none; border-style: dashed; justify-content: center; }
.gw-list .call { font-family: var(--mono); font-weight: 700; }
.gw-list .since { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.chart.hours { height: 200px; }
.note { color: var(--dim); font-size: 12.5px; margin: 8px 0 0; }
.r-connect .note { grid-column: 1 / -1; margin-top: 12px; }
.sec-head.left { text-align: left; margin-bottom: 14px; }
.small { font-size: 13px; }
.toolbar .small { margin-left: auto; white-space: nowrap; }
a.call { color: var(--ink); text-decoration: none; border-bottom: 1px dashed rgba(49, 198, 212, .55); }
a.call:hover { color: var(--accent); text-decoration: none; border-bottom-color: var(--accent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .call { font-family: var(--mono); font-weight: 700; }
tr.air td { background: rgba(255, 77, 94, .08); }
.pager { display: flex; gap: 6px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pager .chip { min-width: 36px; }
.pager .chip[disabled] { opacity: .35; cursor: default; }
.pager .gap { color: var(--dim); padding: 0 2px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.up.wide { margin-top: 14px; }
.up.wide .up-head h3 { font-size: 17px; }
.up.wide .ticks { height: 42px; }
.up-head .up-pct { margin: 0 0 0 auto; }
.nav .nav-back { color: var(--accent); }
@media (max-width: 1000px) { .r-hero { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .r-hero { padding-top: 26px; }
  .r-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .r-flag { width: 104px; height: 65px; }
  .onair.big { padding: 16px; }
  .onair.big .call { font-size: 24px; }
  .toolbar .small { margin-left: 0; }
}
.onair.big.idle .call { font-size: inherit; font-weight: 700; }
.gw-list + .note { margin-top: 14px; }

/* ---------- MicroGIS PoC / RoIP ---------- */
.brand .acc { color: var(--accent); }
.brand-sub { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted); border-left: 1px solid var(--line2); padding-left: 10px; margin-left: 2px; }
.brand-sub:hover { color: var(--ink); text-decoration: none; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.big { width: 30px; height: 30px; color: var(--accent); }

.r-hero2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 60px 0 26px; }
.r-hero2 h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 6px 0 16px; line-height: 1.1; }
.r-hero2 .lead { margin: 0; max-width: 580px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-row .btn { margin-top: 0; padding: 12px 20px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent-d); }
.btn.ghost:hover { background: rgba(49, 198, 212, .08); }
.hero-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: #c9eef2; background: rgba(49, 198, 212, .07); border: 1px solid rgba(49, 198, 212, .25);
}
.hero-chips .ico { color: var(--accent); width: 16px; height: 16px; }
.hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
.flow path { stroke-dasharray: 6 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -30; } }
.ptt-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .flow path, .ptt-ring { animation: none; } }
.art-label { fill: #ffd500; font: 800 12px/1 var(--mono); letter-spacing: .08em; }
.art-cap { fill: var(--muted); font: 700 14px "Manrope", system-ui, sans-serif; }
.art-small text { fill: var(--dim); font: 700 12px var(--mono); }

.svc h3 .ico.big { width: 26px; height: 26px; }
.feat { display: flex; flex-direction: column; gap: 10px; }
.feat h3 { margin: 4px 0 0; }
.feat p { margin: 0; color: #c3d0dc; font-size: 15px; }
.feat > .ico.big {
  width: 26px; height: 26px; padding: 9px; box-sizing: content-box; border-radius: 12px;
  background: rgba(49, 198, 212, .1); border: 1px solid rgba(49, 198, 212, .25);
}
.scheme-card { padding: 22px; }
.scheme-art { width: 100%; height: auto; display: block; }
.vendors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(29, 59, 86, .7); }
.vendors-l { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.vendors .tag { font-size: 13px; padding: 5px 10px; }
.brands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.brands span {
  padding: 12px 20px; border-radius: 12px; font-weight: 800; letter-spacing: .02em; color: #dbe7f1; font-size: 16px;
  background: linear-gradient(var(--panel), var(--panel2)); border: 1px solid var(--line);
}
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 30px; align-items: center; padding: 32px;
  background: radial-gradient(640px 320px at 0% 0%, rgba(49, 198, 212, .13), transparent 70%), linear-gradient(var(--panel), var(--panel2));
}
.cta-band .kicker { margin: 0; }
.cta-band h2 { margin: 6px 0 10px; font-size: clamp(22px, 3vw, 30px); }
.cta-band p { color: #c9d6e2; margin: 0 0 8px; }
.cta-band .btn { margin-top: 14px; padding: 12px 20px; font-size: 15px; }
.company { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 15px; }
.company dt { color: var(--dim); font-weight: 600; }
.company dd { margin: 0; font-weight: 700; }
@media (max-width: 960px) {
  .r-hero2 { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .cta-band { grid-template-columns: 1fr; }
}
/* the nav is still there but the bar is tight: drop the subtitle (RU/EN labels are the longest) */
@media (min-width: 861px) and (max-width: 1150px) {
  .brand-sub { display: none; }
}
/* seven nav items still do not fit in RU: tighten the nav instead of clipping the last one */
@media (min-width: 861px) and (max-width: 959px) {
  .nav a { padding: 6px 7px; }
  .topbar .wrap { gap: 12px; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .cta-band { padding: 22px; }
  .brands span { padding: 9px 14px; font-size: 14px; }
}

/* ---------- MicroGIS security systems (tzo) ---------- */
.beam { stroke-dasharray: 7 9; animation: flow 1.4s linear infinite; }
.fov { animation: fov 3.2s ease-in-out infinite; }
@keyframes fov { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.led { animation: blink 1.6s steps(1, end) infinite; }
.rec { animation: blink 1.2s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .beam, .fov, .led, .rec { animation: none; } }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.about-text p { margin: 0 0 12px; color: #c9d6e2; font-size: 16.5px; }
.about-text p:last-child { margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.fact b { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fact b.mono { font-size: 21px; }
.fact span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.feat-grid.four { grid-template-columns: repeat(4, 1fr); }
.feat-grid.four .feat p { font-size: 14.5px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; gap: 8px; padding-top: 22px; }
.step h3 { margin: 2px 0 0; font-size: 15.5px; }
.step p { margin: 0; color: #c3d0dc; font-size: 14px; }
.step-n { position: absolute; top: 12px; right: 14px; font: 800 13px/1 var(--mono); color: var(--dim); }
.step .ico.big { width: 28px; height: 28px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; right: -10px; width: 8px; height: 8px; z-index: 1;
  border-top: 2px solid var(--accent-d); border-right: 2px solid var(--accent-d); transform: rotate(45deg);
}

.works-grid { grid-template-columns: repeat(3, 1fr); }
.work { display: flex; flex-direction: column; gap: 8px; padding: 0 0 18px; overflow: hidden; }
.work h3, .work p { padding: 0 20px; margin: 0; }
.work h3 { margin-top: 6px; }
.work p { color: #c3d0dc; font-size: 15px; }
.work-art {
  height: 112px; display: grid; place-items: center; margin-bottom: 6px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(260px 120px at 50% 120%, rgba(49, 198, 212, .18), transparent 70%),
    repeating-linear-gradient(0deg, rgba(49, 198, 212, .08) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(49, 198, 212, .08) 0 1px, transparent 1px 16px),
    #0b2033;
}
.work-art .ico { width: 54px; height: 54px; color: var(--accent); stroke-width: 1.3; filter: drop-shadow(0 0 12px rgba(49, 198, 212, .35)); }
.work:hover .work-art .ico { color: #ffd500; }


@media (max-width: 1080px) {
  .feat-grid.four { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
  .works-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .feat-grid.four, .works-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .fact b { font-size: 26px; }
}

/* ---------- site plan (example territory) ---------- */
.plan-card { padding: 16px; }
.plan-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chip { display: inline-flex; align-items: center; gap: 7px; }
.pl-chip .sw, .lg-g .sw { width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--accent)); flex: none; }
.pl-chip[aria-pressed="true"] { background: rgba(49, 198, 212, .1); color: var(--ink); border-color: var(--c, var(--accent)); }
.pl-chip[data-layer="all"][aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.scn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scn-l { color: var(--dim); font-size: 13px; font-weight: 700; }
.scn .btn { margin: 0; padding: 8px 14px; font-size: 13.5px; }
.scn .btn .ico { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.scn .btn.run { background: var(--bad); color: #fff; border-color: var(--bad); }
.plan-stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0a1a1d; }
.plan-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.plan { display: block; width: 100%; height: auto; touch-action: pan-x pan-y pinch-zoom; }
.plan-hint { display: none; margin: 8px 0 0; color: var(--dim); font-size: 12.5px; text-align: center; }
.sim-bar {
  position: absolute; left: 12px; bottom: 10px; max-width: calc(100% - 24px); z-index: 2;
  display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 10px;
  background: rgba(6, 18, 30, .9); border: 1px solid rgba(255, 77, 94, .55); box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  font-weight: 700; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.sim-bar.show { opacity: 1; transform: none; }
.sim-bar time { font-family: var(--mono); color: #ffd0d5; font-weight: 700; }
.sim-bar.ok { border-color: rgba(34, 197, 94, .55); }
.sim-bar.ok time { color: #b8f5cd; }
.plan-foot { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; margin-top: 16px; align-items: start; }
.pl-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.lg-g { break-inside: avoid; margin: 0 0 14px; }
.lg-g h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding: 0 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lg-g ul { list-style: none; margin: 0; padding: 0; }
.lg-i {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 3px 6px; border: 0; border-radius: 7px;
  background: none; color: #c3d0dc; font: 600 13px/1.3 inherit; text-align: left; cursor: pointer;
}
.lg-i:hover, .lg-i:focus-visible { background: rgba(49, 198, 212, .08); color: var(--ink); outline: none; }
.lg-i[aria-pressed="true"] { background: rgba(255, 213, 0, .1); color: #fff3b0; }
.lg-ico { width: 28px; height: 20px; flex: none; overflow: visible; }
.lg-i .n { margin-left: auto; color: var(--dim); font: 700 12px var(--mono); }
.sim-log { background: rgba(9, 23, 37, .5); border: 1px solid rgba(29, 59, 86, .8); border-radius: 12px; padding: 14px 16px; }
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.log-head h3 { margin: 0; font-size: 14.5px; }
.log-st { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b8f5cd; white-space: nowrap; }
.log-st.alarm { color: #ffd0d5; }
.log-st.alarm .dot { background: var(--air); animation: pulse 1.2s ease-in-out infinite; }
.log-st.warn { color: #fde3b0; }
.log-st.warn .dot { background: var(--warn); }
.log-idle { margin: 0; color: var(--muted); font-size: 13.5px; }
.log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.log-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; animation: logIn .35s ease-out; color: #c9d6e2; }
.log-list time { font-family: var(--mono); color: var(--dim); font-size: 12.5px; padding-top: 1px; }
.log-list li.alarm span { color: #ffd0d5; }
.log-list li.ok span { color: #b8f5cd; }
@keyframes logIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* plan drawing */
.pl-art text { font-family: "Manrope", system-ui, sans-serif; paint-order: stroke; stroke: #0a1b2b; stroke-width: 3px; stroke-linejoin: round; }
.pl-lbl { fill: #dbe7f1; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.pl-sub { fill: #9aafc3; font-size: 11.5px; font-weight: 700; }
.pl-tiny { fill: #8aa5bb; font-size: 10px; font-weight: 700; }
.pl-cso { fill: #31c6d4; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; }
.pl-call { fill: #9aafc3; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pl-ap { fill: #b8f5cd; font-size: 11px; font-weight: 800; }
.pl-art .callout path { stroke: #4b6a85; stroke-width: 1; fill: none; }
.pl-art .callout circle { fill: #9aafc3; }
.pl-art .scale path { stroke: #8aa5bb; stroke-width: 1.6; fill: none; }
.pl-art .hit { fill: transparent; }
.pl-art .hit-l { fill: none; stroke: transparent; stroke-width: 12px; }
.pl-art .hit-a { fill: transparent; }
.pl-art .tree { fill: #0f3a2f; stroke: #165340; stroke-width: 1.2; }
.pl-art .car-p { fill: #1b3a55; stroke: #2c5576; }
.pl-art .shadow { fill: #040c14; opacity: .55; }
.pl-art .bld { fill: url(#roof); stroke: #2d6f92; stroke-width: 2; }
.pl-art .wall { fill: none; stroke: #24597a; stroke-width: 2; }
.pl-art .door path { stroke: #0b1f31; stroke-width: 5; fill: none; }
.pl-art .win { stroke: #6fb7d9; stroke-width: 2.5; stroke-opacity: .7; }
.pl-art .dock { fill: #0b1f31; stroke: #4b7d9e; }
.pl-art .cso-room { fill: #0e3a4d; stroke: #31c6d4; stroke-opacity: .5; }

/* fence */
.pl-art .f-outer { fill: none; stroke: #b4c4d3; stroke-width: 2.6; }
.pl-art .f-razor { fill: none; stroke: #dfe8f0; stroke-width: 8; stroke-dasharray: 1.3 3.2; opacity: .45; }
.pl-art .f-oposts { fill: none; stroke: #dfe8f0; stroke-width: 5.5; stroke-linecap: round; stroke-dasharray: 0 22.5; }
.pl-art .f-inner { fill: none; stroke: #8fa6ba; stroke-width: 2.2; }
.pl-art .f-posts { fill: none; stroke: #c6d3df; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 0 22.5; }
/* perimeter */
.pl-art .vibro { fill: none; stroke: #e879f9; stroke-width: 1.5; stroke-dasharray: 2 3; opacity: .85; }
.pl-art .beam-l { fill: none; stroke: #e879f9; stroke-width: 2; stroke-dasharray: 6 8; opacity: .8; animation: flow 1.8s linear infinite; }
.pl-art .beam-u { fill: #2a0f33; stroke: #e879f9; stroke-width: 1.5; }
.pl-art .patrol { fill: none; stroke: #7f93a6; stroke-width: 1.4; stroke-dasharray: 3 6; opacity: .55; }
.pl-art .guard { fill: #e879f9; stroke: #fff; stroke-width: 1.5; }
/* lightning protection */
.pl-art .lps-zone { fill: rgba(255, 213, 0, .03); stroke: #ffd500; stroke-opacity: .45; stroke-width: 1.2; stroke-dasharray: 4 6; pointer-events: none; }
.pl-art .lps-mesh { fill: none; stroke: #ffd500; stroke-opacity: .32; stroke-width: 1; }
.pl-art .lps-ground { fill: none; stroke: #ffd500; stroke-opacity: .55; stroke-width: 1.6; stroke-dasharray: 1.5 4; stroke-linecap: round; }
.pl-art .lps-mast { fill: #3a3000; stroke: #ffd500; stroke-width: 2; }
.pl-art .lps-x { stroke: #ffd500; stroke-width: 1.5; }
/* lighting */
.pl-art .glow { pointer-events: none; }
.pl-art .lamp { fill: #fff1b8; stroke: #8a6d1a; stroke-width: 1; }
.pl-art .flood { fill: #fff1b8; opacity: .8; }
/* network */
.pl-art .trunk { fill: none; stroke: #fb923c; stroke-width: 2; stroke-opacity: .75; stroke-dasharray: 10 3; }
.pl-art .trunk.thin { stroke-width: 1; stroke-opacity: .4; stroke-dasharray: none; }
.pl-art .cab, .pl-art .dgu { fill: #3b1d07; stroke: #fb923c; stroke-width: 1.5; }
.pl-art .dgu-s { fill: none; stroke: #fb923c; stroke-width: 1.3; }
.pl-art .cso { fill: #06212c; stroke: #31c6d4; stroke-width: 1.8; }
.pl-art .cso-s { fill: none; stroke: #31c6d4; stroke-width: 1.5; stroke-linecap: round; }
/* fire */
.pl-art .sprk { fill: none; stroke: #ef4444; stroke-opacity: .28; stroke-width: 1; }
.pl-art .sprk-h { fill: none; stroke: #ef4444; stroke-opacity: .7; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 24; }
.pl-art .smk { fill: #2a0b0b; stroke: #ef4444; stroke-width: 1.3; }
.pl-art .smk-d { fill: #ef4444; animation: smk 6s linear infinite; animation-delay: var(--d, 0s); }
.pl-art .ok-d { fill: #22c55e; }
@keyframes smk { 0%, 93% { opacity: .25; } 95% { opacity: 1; } 100% { opacity: .25; } }
.pl-art .mcp { fill: #ef4444; }
.pl-art .mcp-d { fill: #fff; opacity: .85; }
.pl-art .siren { fill: #3a0d0d; stroke: #ef4444; stroke-width: 1.4; stroke-linejoin: round; }
.pl-art .panel { fill: #3a0d0d; stroke: #ef4444; stroke-width: 1.4; }
.pl-art .gas { fill: #2b1500; stroke: #f87171; stroke-width: 1.4; }
.pl-art .gas-d { fill: #f87171; }
.pl-art .hyd { fill: #ef4444; }
.pl-art .hyd-c { fill: #081624; }
/* access control */
.pl-art .rdr { fill: #06210f; stroke: #22c55e; stroke-width: 1.4; }
.pl-art .rdr-led { fill: #22c55e; }
.pl-art .uhf-w { fill: none; stroke: #22c55e; stroke-width: 1.2; stroke-opacity: .6; stroke-linecap: round; }
.pl-art .turn { fill: #06210f; stroke: #22c55e; stroke-width: 1.3; }
.pl-art .turn-a { stroke: #b8f5cd; stroke-width: 1.6; stroke-linecap: round; }
.pl-art .face { fill: #06210f; stroke: #22c55e; stroke-width: 1.4; }
.pl-art .face-c { fill: none; stroke: #b8f5cd; stroke-width: 1.2; }
.pl-art .face-ok { fill: none; stroke: #22c55e; stroke-width: 2; }
.pl-art .post { fill: #06210f; stroke: #22c55e; stroke-width: 1.4; }
.pl-art .post-s { stroke: #22c55e; stroke-width: 1.3; stroke-linecap: round; }
.pl-art .bar-b { fill: #06210f; stroke: #22c55e; stroke-width: 1.5; }
.pl-art .bar-arm { stroke: #e9eff5; stroke-width: 3.2; stroke-linecap: round; }
.pl-art .bar-arm-s { stroke: #ef4444; stroke-width: 3.2; stroke-dasharray: 7 7; }
.pl-art .blk { fill: #2a3542; }
.pl-art .blk-s { fill: url(#stripe); }
.pl-art .airlock { fill: none; stroke: #22c55e; stroke-opacity: .6; stroke-width: 1.4; stroke-dasharray: 5 4; }
.pl-art .gate-l { stroke: #22c55e; stroke-width: 3; }
.pl-art .arm-w { transform-box: view-box; transition: transform .8s ease; }
.pl-art .arm-w.open { transform: rotate(-80deg); }
/* CCTV */
.pl-art .pl-fov { fill: rgba(49, 198, 212, .09); stroke: rgba(49, 198, 212, .35); stroke-width: 1; pointer-events: none; }
.pl-art .pl-fov.d { fill: rgba(49, 198, 212, .07); }
.pl-art .pl-fov.t { fill: rgba(251, 146, 60, .09); stroke: rgba(251, 146, 60, .4); }
.pl-art .pl-fov.p { fill: rgba(255, 213, 0, .07); stroke: rgba(255, 213, 0, .35); }
.pl-art .pole { fill: #0b2a3d; stroke: #31c6d4; stroke-width: 1.2; }
.pl-art .cam-b { fill: #103a52; stroke: #31c6d4; stroke-width: 1.5; }
.pl-art .cam-l { fill: #31c6d4; }
.pl-art .cam-l.t { fill: #fb923c; }
.pl-art .cam-l.p { fill: #ffd500; }
.pl-art .uvss { fill: #0e3a4d; stroke: #31c6d4; }
.pl-art .lpr-flash { fill: #fff7d6; pointer-events: none; }
.pl-art .sweep { transform-box: view-box; animation: sweep 10s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
/* ambient */
.pl-art .amb { pointer-events: none; }
.pl-art .car-b { fill: #e3ebf2; stroke: #6f879c; }
.pl-art .car-w { fill: #27506f; }
.pl-art .plate rect { fill: #06210f; stroke: #22c55e; }
.pl-art .plate text { fill: #b8f5cd; font: 800 10.5px var(--mono); stroke: none; }
.pl-art .ped circle { fill: #ffd9a8; stroke: #6b4a1f; stroke-width: 1.2; }
.plan .lyr .amb { pointer-events: auto; }

/* layer focus + legend highlight */
.plan .lyr, .plan .base { transition: opacity .3s; }
.plan[data-focus] .lyr:not(.focus) { opacity: .12; }
.plan[data-focus] .base { opacity: .55; }
.plan[data-focus] #cso { opacity: .3; }
.plan.hl .lyr > :not(.hl) { opacity: .14; }
.plan.hl .hl { filter: drop-shadow(0 0 3px rgba(255, 213, 0, .9)); }
.plan.hl #cso:not(.hl) { opacity: .25; }
.plan.hl .base { opacity: .6; }

/* scenarios */
.plan .sim > * { opacity: 0; transition: opacity .4s; pointer-events: none; }
.plan .sim > .on { opacity: 1; }
.plan.hl > .amb, .plan[data-focus] > .amb { opacity: .25; transition: opacity .3s; }
.plan.scn > .amb { opacity: 0; }
.pl-art .sim-alarm { fill: none; stroke: #ff4d5e; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px #ff4d5e); animation: alarmb .6s steps(2, end) infinite; }
@keyframes alarmb { 50% { stroke-opacity: .35; } }
.pl-art .sim-fov { fill: rgba(255, 77, 94, .16); stroke: #ff4d5e; stroke-width: 1.4; }
.pl-art .sim-ring { fill: none; stroke: #ff4d5e; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: ring 1.4s ease-out infinite; }
.pl-art .sim-rt { fill: none; stroke: #31c6d4; stroke-width: 2; stroke-dasharray: 6 6; animation: flow 1s linear infinite; }
.pl-art .sim-pulse { fill: rgba(255, 77, 94, .25); stroke: #ff4d5e; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 1.2s ease-out infinite; }
.pl-art .sim-in { fill: #ff4d5e; stroke: #fff; stroke-width: 1.5; }
.pl-art #sim-intr.caught .sim-pulse { animation: none; opacity: 0; }
.pl-art #sim-intr.caught .sim-in { fill: #9aafc3; }
.pl-art .team-b { fill: #e9eff5; stroke: #31c6d4; stroke-width: 1.5; }
.pl-art .team-l { fill: #2f6fd6; animation: blink .5s steps(1, end) infinite; }
.pl-art .fire-g { transform-box: fill-box; transform-origin: center; animation: fireg 1.1s ease-in-out infinite alternate; }
@keyframes fireg { from { transform: scale(.85); opacity: .75; } to { transform: scale(1.1); opacity: 1; } }
.pl-art .puff { transform-box: fill-box; transform-origin: center; animation: puff 3s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes puff { from { transform: scale(.5) translate(0, 0); opacity: .9; } to { transform: scale(1.6) translate(6px, -10px); opacity: 0; } }
.pl-art .spray { fill: rgba(96, 165, 250, .18); stroke: #60a5fa; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 1.4s ease-out infinite; animation-delay: var(--d, 0s); }
.pl-art .sim-evac { fill: none; stroke: #22c55e; stroke-width: 3; stroke-dasharray: 8 6; animation: flow 1s linear infinite; }
.pl-art .ap { fill: #06210f; stroke: #22c55e; stroke-width: 2; }
.pl-art .ap-s { fill: none; stroke: #b8f5cd; stroke-width: 1.6; stroke-linecap: round; }
.pl-art .sim-person circle { fill: #ffd9a8; stroke: #6b4a1f; stroke-width: 1.2; }
.pl-art .truck-b { fill: #dc2626; stroke: #7f1d1d; }
.pl-art .truck-c { fill: #fca5a5; }
.pl-art .truck-s { fill: #fff; opacity: .8; }
.pl-art .truck-l { fill: #60a5fa; animation: blink .4s steps(1, end) infinite; }
.pl-art .dev.alarm .smk { fill: #ef4444; stroke: #fff; }
.pl-art .dev.alarm .smk-d { fill: #fff; animation: blink .5s steps(1, end) infinite; }
.pl-art .dev.alarm .panel { fill: #ef4444; }
.pl-art .dev.alarm { filter: drop-shadow(0 0 5px #ef4444); }
.plan.sirens .siren { fill: #ef4444; animation: blink .5s steps(1, end) infinite; filter: drop-shadow(0 0 4px #ef4444); }
.plan.evac .rdr-led { fill: #b8f5cd; }
.plan.evac .rdr { stroke: #b8f5cd; filter: drop-shadow(0 0 3px #22c55e); }
#cso.alarm .cso { stroke: #ff4d5e; fill: #3a0d12; }
.plan .ptz-aim .fovs { opacity: 0; }
.plan .ptz-aim .sweep { animation: none; }
.plan .blk-s.down { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  .pl-art .beam-l, .pl-art .smk-d, .pl-art .sweep, .pl-art .sim-alarm, .pl-art .sim-ring, .pl-art .sim-rt, .pl-art .sim-pulse,
  .pl-art .fire-g, .pl-art .puff, .pl-art .spray, .pl-art .sim-evac, .pl-art .team-l, .pl-art .truck-l, .plan.sirens .siren, .log-list li { animation: none; }
}
@media (max-width: 1080px) {
  .plan-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .plan { width: 940px; max-width: none; }
  .plan-hint { display: block; }
}
@media (max-width: 560px) {
  .plan-card { padding: 12px; }
  .plan-bar { gap: 10px; }
  .pl-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; width: calc(100% + 24px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 24px), transparent); }
  .pl-chips::-webkit-scrollbar { display: none; }
  .pl-chip { flex: none; }
  .scn { width: 100%; }
  .scn-l { width: 100%; }
  .scn .btn { flex: 1; justify-content: center; }
  .pl-legend { display: block; columns: 2; column-gap: 10px; }
  .lg-col { display: contents; }
  .lg-i { font-size: 12.5px; gap: 6px; padding: 3px 2px; }
  .lg-ico { width: 22px; height: 16px; }
  .lg-g h3 { padding: 0 2px; letter-spacing: .08em; }
  .sim-bar { font-size: 12.5px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 7px 10px; }
}
.plan.paused, .plan.paused * { animation-play-state: paused !important; }
