/* 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; }
.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; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; flex: none; }
.lang button {
  background: none; border: 0; color: var(--muted); font: 700 12px/1 inherit; letter-spacing: .08em;
  padding: 8px 10px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--panel); color: var(--accent); }

/* ---------- 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 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; }

/* ysf.uw0wu.com — hero picture and the YSF scheme (base: mmx257/arch.css) */

/* ---------- hero with the hub illustration ---------- */
@keyframes flow { to { stroke-dashoffset: -30; } }
.r-hero2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0 18px; }
.r-hero2 h1 { font-size: clamp(34px, 4.8vw, 52px); margin: 6px 0 10px; line-height: 1.08; }
.r-hero2 .subtitle { font-size: 14.5px; line-height: 1.6; }
.r-hero2 .lead { margin: 0; max-width: 560px; }
.r-hero2 .status-pill { margin-top: 20px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.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-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35)); }
.hub-art text { font-family: "Manrope", system-ui, sans-serif; }
.hub-name { fill: #e9eff5; font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.hub-sub { fill: #a5e9ef; font: 700 11px var(--mono); }
.hub-lbl { fill: #dbe7f1; font-size: 13.5px; font-weight: 800; }
.hub-cap { fill: #6f879c; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; }
.hub-room { stroke: #0b1d2e; stroke-width: 1.5; }
.hub-flow { stroke-dasharray: 6 9; animation: flow 1.6s linear infinite; }
.hub-orbit { transform-box: view-box; animation: orbit 60s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
  .r-hero2 { grid-template-columns: 1fr; padding-top: 38px; gap: 26px; }
  .hero-art { max-width: 540px; margin: 0 auto; }
}

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

/* drawing */
.arch text { font-family: "Manrope", system-ui, sans-serif; }
.arch .t-col { fill: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.arch .t-title { fill: #e9eff5; font-size: 13px; font-weight: 800; }
.arch .t-big { fill: #e9eff5; font-size: 15px; font-weight: 800; }
.arch .t-sub { fill: #9aafc3; font-size: 10.5px; font-weight: 600; }
.arch .t-mini { fill: #6f879c; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.arch .t-mono { fill: #6f879c; font: 700 9px var(--mono); }
.arch .t-mono2 { fill: #a5e9ef; font: 700 10px var(--mono); }
.arch .t-br { fill: #ffe680; font-size: 9.5px; font-weight: 700; }
.arch .t-bus { fill: #ffd500; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.arch .t-core { fill: #06212c; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.arch .live { fill: #6ee79a; font: 700 10.5px var(--mono); }
.arch .live.off { fill: #ff8a95; }
.arch .box { fill: #0d2133; stroke: var(--c, #27506f); stroke-opacity: .55; stroke-width: 1.5; transition: stroke-opacity .2s, filter .2s; }
.arch .box.blk { fill: #0f2b42; stroke-opacity: .75; }
.arch .box.tc { fill: #0b2234; stroke: #ffd500; stroke-opacity: .5; stroke-dasharray: 4 3; }
.arch .box.mon { fill: rgba(13, 33, 51, .7); stroke: #27506f; stroke-opacity: 1; stroke-dasharray: 6 5; }
.arch .ic-bg { fill: #0b1d2e; stroke: var(--c); stroke-opacity: .5; }
.arch .core-frame { fill: url(#coreg); stroke: #31c6d4; stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 10 6; }
.arch .core-tag rect { fill: #31c6d4; }
.arch .proto rect { fill: rgba(49, 198, 212, .08); stroke: #27506f; }
.arch .proto text { fill: #c6d3df; font: 700 9.5px var(--mono); }
.arch .mod { fill: #12324c; stroke: #27506f; stroke-width: .8; }
.arch .mod.on { fill: #31c6d4; animation: modb 6s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
@keyframes modb { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.arch .room rect { fill: #16304a; stroke: #3b4f7a; }
.arch .room circle { fill: #a78bfa; opacity: .45; }
.arch .room path { stroke: #4b5f8a; stroke-width: 2; stroke-linecap: round; }
.arch .room.on circle { opacity: 1; animation: roomb 9s steps(1, end) infinite; animation-delay: calc(var(--d) * -1); }
.arch .room.on rect { stroke: #a78bfa; animation: roomr 9s steps(1, end) infinite; animation-delay: calc(var(--d) * -1); }
@keyframes roomb { 0% { fill: #ff4d5e; } 30% { fill: #a78bfa; } }
@keyframes roomr { 0% { stroke: #ff4d5e; } 30% { stroke: #3b4f7a; } }
.arch .lk { fill: none; stroke: var(--c); stroke-width: 2; stroke-opacity: .7; stroke-linejoin: round; transition: stroke-width .2s, stroke-opacity .2s; }
.arch .lk.br { stroke-dasharray: 6 4; }
.arch .lk.peer { stroke-dasharray: 2 5; stroke-linecap: round; }
.arch .lk.mon { stroke-dasharray: 1 5; stroke-linecap: round; stroke-opacity: .6; }
.arch .hit-l { fill: none; stroke: transparent; stroke-width: 12px; }
.arch .pill rect { fill: #0b1d2e; stroke-width: 1.2; }
.arch .pill text { fill: #dbe7f1; font: 700 9.5px var(--mono); }
.arch .bus-under { stroke: #3a3000; stroke-width: 12; stroke-linecap: round; }
.arch .bus { stroke: #ffd500; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 18 12; animation: flow 2.4s linear infinite; }
.arch .mchip rect { fill: #0b1d2e; stroke: #27506f; }
.arch .mchip text { fill: #c6d3df; font-size: 11.5px; font-weight: 700; }
.arch .air-pill { opacity: 0; transition: opacity .3s; }
.arch .air-pill rect { fill: #3a0d12; stroke: #ff4d5e; }
.arch .air-pill text { fill: #ffd0d5; font: 800 10.5px var(--mono); }
.arch.live .air-pill { opacity: 1; }
.arch.live .bus { animation-duration: .8s; filter: drop-shadow(0 0 4px #ffd500); }
.arch .el { transition: opacity .3s; }
.arch .el:hover .box { stroke-opacity: 1; }
.arch .el.link:hover .lk { stroke-width: 3.2; stroke-opacity: 1; }
.arch[data-focus] .el:not(.on):not(#n-core) { opacity: .12; }
.arch.voice .el:not(.lit):not(#n-core) { opacity: .22; }
.arch .el.lit .box { stroke: var(--vc); stroke-opacity: 1; filter: drop-shadow(0 0 6px var(--vc)); }
.arch .el.lit .lk { stroke: var(--vc); stroke-opacity: 1; stroke-width: 3; stroke-dasharray: 8 7; animation: flow .7s linear infinite; }
.arch .el.lit.rev .lk { animation-direction: reverse; }
.arch .el.lit .bus { stroke: var(--vc); filter: drop-shadow(0 0 5px var(--vc)); animation-duration: .7s; }
.arch .vp { fill: var(--vc); stroke: #fff; stroke-width: 1.2; filter: drop-shadow(0 0 4px var(--vc)); pointer-events: none; }
.arch.paused, .arch.paused *, .hub-art.paused, .hub-art.paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .hub-flow, .hub-orbit, .arch .bus, .arch .mod.on, .arch .room.on circle, .arch .room.on rect, .arch .el.lit .lk, .v-list li { animation: none; }
}
@media (max-width: 960px) {
  .arch-foot { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .arch { width: 1000px; max-width: none; }
  .arch-hint { display: block; }
}
@media (max-width: 560px) {
  .arch-card { padding: 12px; }
  .arch-legend ul { grid-template-columns: 1fr; }
  .ar-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); }
  .ar-chips::-webkit-scrollbar { display: none; }
  .ar-chip { flex: none; }
  .arch-bar .bar-l { width: 100%; }
  .v-bar { font-size: 12.5px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 7px 10px; }
}

/* ---------- YSF scheme additions ---------- */
.arch-card { margin-top: 14px; scroll-margin-top: 80px; }
.arch-head { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; margin: 2px 2px 14px; }
.arch-head h3 { margin: 0; font-size: 18px; }
.arch-head p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1 1 420px; }
.arch .t-warn { fill: #fbbf24; font-size: 10.5px; font-weight: 700; }
.arch .t-val { fill: #e9eff5; font: 800 19px var(--mono); }
.arch .t-mrow { fill: #dbe7f1; font-size: 12px; font-weight: 700; }
.arch .lk.rf { stroke-dasharray: 2 4; stroke-linecap: round; }
.arch .tile rect { fill: #0b1d2e; stroke: #27506f; }
.arch .tile.air rect { transition: stroke .3s, fill .3s; }
.arch.live .tile.air rect { fill: #2a0b12; stroke: #ff4d5e; }
.arch.live .tile.air .t-val { fill: #ffd0d5; }
.arch .box.modes { fill: rgba(13, 33, 51, .75); stroke: #27506f; stroke-opacity: 1; }
.arch .box.mrow { fill: #0b1d2e; stroke-opacity: .45; }
.arch .m-arrow { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arch .feat rect { fill: #0b1d2e; stroke: var(--c); stroke-opacity: .4; }
.arch.live #n-refl .room.on circle { animation-duration: 3s; }
