/* 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 and tighten the nav */
@media (min-width: 861px) and (max-width: 959px) {
  .brand-sub { display: none; }
  .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; }
}

/* ---------- features: 12 cards, each can be shown on the scheme ---------- */
.feat-grid.feat4 { grid-template-columns: repeat(4, 1fr); }
.feat4 .feat p { font-size: 14.5px; }
.cap-link { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 700; }

/* ---------- PoC <-> DMR scheme ---------- */
.ds-card { padding: 16px; }
.ds-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 12px; }
.ds-bar .bar-l { color: var(--dim); font-size: 13px; font-weight: 700; }
.ds-caps { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-cap[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.ds-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 700 13.5px/1 inherit; color: var(--ink); background: transparent; border: 1px solid var(--accent-d); }
.ds-btn:hover { background: rgba(49, 198, 212, .08); }
.ds-btn .ico { width: 13px; height: 13px; fill: var(--accent); stroke: none; }
.ds-btn[aria-pressed="true"] { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.ds-btn[aria-pressed="true"] .ico { fill: var(--bg); }
.ds-btn:focus-visible, .ds-cap:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ds-stage { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #081624; }
.ds-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.dmrs { display: block; width: 100%; height: auto; }
.ds-hint { display: none; margin: 8px 0 0; color: var(--dim); font-size: 12.5px; text-align: center; }
.ds-ov {
  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, .92); border: 1px solid var(--accent); 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;
}
.ds-ov.show { opacity: 1; transform: none; }
.ds-ov b { font: 800 13px var(--mono); color: var(--accent); white-space: nowrap; }
.ds-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.ds-legend h3, .ds-log h3 { margin: 0 0 10px; font-size: 14.5px; }
.ds-legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ds-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #c3d0dc; }
.ds-legend li svg { width: 46px; height: 16px; flex: none; overflow: visible; }
.ds-log { background: rgba(9, 23, 37, .5); border: 1px solid rgba(29, 59, 86, .8); border-radius: 12px; padding: 14px 16px; }
.ds-log .log-idle { margin: 0; color: var(--muted); font-size: 13.5px; }
.ds-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.4; counter-reset: st; }
.ds-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; color: #c9d6e2; animation: dsIn .35s ease-out; counter-increment: st; }
.ds-list li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 800 11.5px var(--mono); color: var(--bg); background: var(--accent); }
.ds-list li.done { color: #b8f5cd; }
@keyframes dsIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* drawing */
.dmrs text { font-family: "Manrope", system-ui, sans-serif; }
.dmrs .t-col { fill: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.dmrs .t-big { fill: #e9eff5; font-size: 16px; font-weight: 800; }
.dmrs .t-title { fill: #e9eff5; font-size: 13.5px; font-weight: 800; }
.dmrs .t-title2 { fill: #e9eff5; font-size: 12.5px; font-weight: 800; }
.dmrs .t-sub { fill: #9aafc3; font-size: 11px; font-weight: 600; }
.dmrs .t-sub2 { fill: #9aafc3; font-size: 10px; font-weight: 600; }
.dmrs .t-mono2 { fill: #a5e9ef; font: 700 10px var(--mono); }
.dmrs .t-mini { fill: #c9b45a; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dmrs .t-br { fill: #ffe680; font-size: 9.5px; font-weight: 800; }
.dmrs .t-aes { fill: #ffe680; font: 800 10.5px var(--mono); }
.dmrs .box { fill: #0d2133; stroke: var(--c, #27506f); stroke-opacity: .6; stroke-width: 1.5; transition: stroke-opacity .2s, filter .2s; }
.dmrs .box.term { stroke: #27506f; stroke-opacity: 1; }
.dmrs .box.mod { fill: #0f2b42; }
.dmrs .box.web { fill: #0b2234; stroke: #31c6d4; stroke-dasharray: 5 4; }
.dmrs .box.gw { fill: #1a1a0a; stroke: #ffd500; stroke-opacity: .55; }
.dmrs .box.gw.ghost { fill: none; stroke: #9aafc3; stroke-dasharray: 4 4; stroke-opacity: .6; }
.dmrs .box.rep { fill: #0f2b42; stroke: #ffd500; stroke-opacity: .55; }
.dmrs .node-frame { fill: url(#nodeg); stroke: #31c6d4; stroke-opacity: .55; stroke-width: 2; }
.dmrs .ic-bg { fill: #0b1d2e; stroke: var(--c); stroke-opacity: .45; }
.dmrs .dev-b { fill: #14344f; stroke: #27506f; stroke-width: 2; }
.dmrs .dev-s { fill: #081624; }
.dmrs .dev-l { fill: #27506f; }
.dmrs .ptt { fill: #31c6d4; }
.dmrs .ptt-ring2, .dmrs .ptt-ring3 { fill: none; stroke: #31c6d4; stroke-width: 2; opacity: 0; }
.dmrs .cloud { fill: #0f2b42; stroke: #31c6d4; stroke-opacity: .6; stroke-width: 1.6; }
.dmrs .aes-pill { fill: #1f1a05; stroke: #ffd500; stroke-opacity: .6; }
.dmrs .cov { stroke: #ffd500; stroke-opacity: .25; stroke-dasharray: 5 7; }
.dmrs .mast { stroke: #cfdbe6; stroke-width: 3; stroke-linecap: round; }
.dmrs .mast-x { fill: none; stroke: #8fa6b8; stroke-width: 1.4; }
.dmrs .rf-waves path { fill: none; stroke: #ffd500; stroke-width: 2; stroke-linecap: round; opacity: .7; }
.dmrs .rf-ring { fill: none; stroke: #ffd500; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dmrs .rec-dot { fill: #ff4d5e; animation: blink 1.6s steps(1, end) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.dmrs .lk { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .2s; }
.dmrs .lk.acc { stroke: #31c6d4; stroke-opacity: .75; stroke-dasharray: 6 9; animation: dflow 1.6s linear infinite; }
.dmrs .lk.sip { stroke: #ffd500; stroke-opacity: .75; stroke-dasharray: 7 4; }
.dmrs .lk.sip.ghost { stroke: #9aafc3; stroke-opacity: .4; stroke-dasharray: 3 4; }
.dmrs .lk.rf { stroke: #ffd500; stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 2 5; }
@keyframes dflow { to { stroke-dashoffset: -30; } }
.dmrs .hit-l { fill: none; stroke: transparent; stroke-width: 12px; }
.dmrs .pill rect { fill: #0b1d2e; stroke: #ffd500; stroke-opacity: .6; stroke-width: 1.2; }
.dmrs .pill text { fill: #dbe7f1; font: 700 9.5px var(--mono); }
.dmrs .lock-bg { fill: #1f1a05; stroke: #ffd500; stroke-opacity: .7; }
.dmrs .locks { opacity: 0; transition: opacity .3s; }
.dmrs .b-geo circle, .dmrs .b-ota circle { fill: #0b1d2e; stroke: currentColor; }
.dmrs .b-geo { color: #22c55e; opacity: 0; transition: opacity .3s; }
.dmrs .b-ota { color: #a78bfa; opacity: 0; transition: opacity .3s; }
.dmrs .el { transition: opacity .3s; }
.dmrs .el:hover .box { stroke-opacity: 1; }
.dmrs .el.link:hover .lk { stroke-width: 3.2; }

/* capability highlight */
.dmrs[data-cap] .el:not(.on):not(#n-node) { opacity: .14; }
.dmrs[data-cap] .el.on .box { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgba(49, 198, 212, .55)); }
.dmrs[data-cap="geo"] .b-geo, .dmrs[data-cap="ota"] .b-ota, .dmrs[data-cap="aes"] .locks, .dmrs.locks-on .locks { opacity: 1; }
/* scenario */
.dmrs.scn .el:not(.lit):not(#n-node) { opacity: .2; }
.dmrs .el.lit .box { stroke: #31c6d4; stroke-opacity: 1; filter: drop-shadow(0 0 6px rgba(49, 198, 212, .8)); }
.dmrs .el.lit .lk { stroke: #31c6d4; stroke-opacity: 1; stroke-width: 3; stroke-dasharray: 8 7; animation: dflow .7s linear infinite; }
.dmrs .el.lit .lk.sip, .dmrs .el.lit .lk.rf { stroke: #ffd500; }
.dmrs .el.lit.rev .lk { animation-direction: reverse; }
.dmrs .el.lit .ptt-ring2, .dmrs .el.lit .ptt-ring3, .dmrs .el.lit .rf-ring { animation: dring 1.2s ease-out infinite; }
@keyframes dring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.dmrs .ptt-ring2, .dmrs .ptt-ring3 { transform-box: fill-box; transform-origin: center; }
.dmrs .vp { fill: #e9eff5; stroke: #31c6d4; stroke-width: 2; filter: drop-shadow(0 0 4px #31c6d4); pointer-events: none; }
.dmrs.paused, .dmrs.paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .dmrs .lk.acc, .dmrs .rec-dot, .dmrs .el.lit .lk, .dmrs .el.lit .ptt-ring2, .dmrs .el.lit .ptt-ring3, .dmrs .el.lit .rf-ring, .ds-list li { animation: none; }
}
@media (max-width: 1080px) { .feat-grid.feat4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .ds-foot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .dmrs { width: 1000px; max-width: none; }
  .ds-hint { display: block; }
}
@media (max-width: 560px) {
  .feat-grid.feat4 { grid-template-columns: 1fr; }
  .ds-card { padding: 12px; }
  .ds-caps { 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); }
  .ds-caps::-webkit-scrollbar { display: none; }
  .ds-cap { flex: none; }
  .ds-bar .bar-l { width: 100%; }
  .ds-ov { font-size: 12.5px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 7px 10px; }
}
