/* HoneyWeb network status — v2 design. Brand: violet #8155fc, mist #eeedf4, ink #141528. */
:root {
  --bg: #08081a;
  --bg-2: #0e0e24;
  --panel: rgba(22, 22, 48, .62);
  --panel-solid: #141530;
  --panel-2: rgba(255, 255, 255, .035);
  --line: rgba(238, 237, 244, .08);
  --line-2: rgba(238, 237, 244, .14);
  --text: #eeedf4;
  --muted: #a9a7c4;
  --faint: #74729a;
  --brand: #8155fc;
  --brand-2: #a98bff;
  --brand-3: #c443d6;
  --ok: #2bd69b;
  --weak: #f6b545;
  --down: #ff5d7d;
  --unknown: #3b3a5a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65);
  --font: 'Estedad', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 10px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }

/* ---------- background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(129, 85, 252, .22), transparent 60%),
    radial-gradient(900px 520px at -10% 30%, rgba(196, 67, 214, .12), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(40, 52, 160, .22), transparent 60%),
    linear-gradient(180deg, #0b0a1f 0%, var(--bg) 40%, #07071a 100%); }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .32;
  animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: #6a3cf5; top: -18vmax; right: -10vmax; }
.aurora i:nth-child(2) { background: #b13fd0; bottom: -24vmax; left: -16vmax; opacity: .18; animation-duration: 32s; }
.aurora i:nth-child(3) { background: #2440c8; top: 40%; right: 30%; width: 30vmax; height: 30vmax; opacity: .14; animation-duration: 38s; }
.aurora::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(238, 237, 244, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(238, 237, 244, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(8, 8, 26, .62); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 24px -6px rgba(129, 85, 252, .7); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.topbar-side { display: flex; align-items: center; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); position: relative; }
.live[data-mode="live"] { color: var(--text); }
.live[data-mode="live"] .live-dot { background: var(--ok); }
.live[data-mode="live"] .live-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s ease-out infinite; }
.live[data-mode="sync"] .live-dot { background: var(--brand-2); animation: blink 1s ease-in-out infinite; }
.live[data-mode="stale"] .live-dot { background: var(--weak); }
.live[data-mode="offline"] .live-dot { background: var(--down); }
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes blink { 50% { opacity: .3; } }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
main { padding-block: 22px 8px; }
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 30px 32px; border-radius: 28px; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, rgba(129, 85, 252, .16), rgba(20, 21, 48, .7) 45%, rgba(14, 14, 36, .78));
  border: 1px solid rgba(169, 139, 255, .18); box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; z-index: -1; width: 420px; height: 420px; left: -80px; top: -160px; border-radius: 50%; filter: blur(70px); opacity: .45;
  background: var(--glow, var(--brand)); transition: background .6s; }
.hero[data-level="ok"] { --glow: #16b884; }
.hero[data-level="weak"] { --glow: #d99417; }
.hero[data-level="down"] { --glow: #e23b5f; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2.4px; color: var(--brand-2); direction: ltr; }
.hero h1 { margin: 6px 0 6px; font-size: clamp(24px, 4.2vw, 38px); line-height: 1.3; font-weight: 900; letter-spacing: -.5px; }
.hero p { margin: 0; color: var(--muted); font-size: 15px; max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(8, 8, 26, .45); border: 1px solid var(--line); color: var(--text); }
.chip svg { width: 15px; height: 15px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; }
.chip-soft { color: var(--muted); }
.chip-soft.is-stale { color: var(--weak); border-color: rgba(246, 181, 69, .3); }

.gauge { position: relative; width: 168px; height: 168px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(238, 237, 244, .07); stroke-width: 9; }
.gauge::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: var(--glow, var(--brand)); filter: blur(30px); opacity: .32; transition: background .6s; }
.gauge-arc { fill: none; stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.g-a { stop-color: var(--brand-2); }
.g-b { stop-color: var(--brand); }
.hero[data-level="ok"] .g-a { stop-color: #7ef0c6; } .hero[data-level="ok"] .g-b { stop-color: var(--ok); }
.hero[data-level="weak"] .g-a { stop-color: #ffd98a; } .hero[data-level="weak"] .g-b { stop-color: var(--weak); }
.hero[data-level="down"] .g-a { stop-color: #ff9bb0; } .hero[data-level="down"] .g-b { stop-color: var(--down); }
.gauge-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gauge-label strong { font-size: 40px; font-weight: 900; line-height: 1.1; letter-spacing: -1px; }
.gauge-label span { font-size: 12px; color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; padding: 22px 20px; gap: 16px; border-radius: 24px; }
  .gauge { position: absolute; top: 18px; left: 16px; width: 96px; height: 96px; }
  .gauge-label strong { font-size: 24px; }
  .gauge-label span { font-size: 9px; }
  .hero-copy { padding-left: 100px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 13.5px; }
  .hero-meta { margin-top: 12px; }
}

.hero { --trend: var(--brand-2); }
.hero[data-level="ok"] { --trend: var(--ok); }
.hero[data-level="weak"] { --trend: var(--weak); }
.hero[data-level="down"] { --trend: var(--down); }
.spark { display: block; width: 100%; height: 100%; overflow: visible; }
.spark-line { fill: none; stroke: var(--trend, var(--brand-2)); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sp-a { stop-color: var(--trend, var(--brand-2)); stop-opacity: .38; }
.sp-b { stop-color: var(--trend, var(--brand-2)); stop-opacity: 0; }

/* ---------- 24-hour chart ---------- */
.hist { margin-top: 16px; padding: 18px 20px 12px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.hist-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.hist-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.hist-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.hist .seg button { height: 30px; padding: 0 11px; font-size: 12.5px; }
.hist-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 14px 0 4px; }
.hist-stats span { display: inline-flex; align-items: baseline; gap: 8px; }
.hist-stats small { font-size: 12px; font-weight: 600; color: var(--muted); }
.hist-stats b { font-size: 22px; font-weight: 900; }
.hist-stats em { font-style: normal; font-size: 12px; color: var(--faint); }
.hist-chart { position: relative; width: 100%; cursor: crosshair; touch-action: pan-y; }
.hist-chart svg { display: block; width: 100%; height: auto; direction: ltr; overflow: visible; }
.hg { stroke: rgba(238, 237, 244, .07); stroke-width: 1; }
.hy, .hxl { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.hy { text-anchor: end; }
.hxl { text-anchor: middle; }
.hga { stop-color: var(--ok); stop-opacity: .3; }
.hgb { stop-color: var(--ok); stop-opacity: 0; }
.h-line { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.hx { stroke: rgba(238, 237, 244, .4); stroke-width: 1; stroke-dasharray: 3 3; }
.hh { stroke: rgba(238, 237, 244, .06); stroke-width: 3; }
.h-wait-t { fill: var(--faint); font-size: 12px; font-family: var(--font); text-anchor: middle; }
.hd { fill: var(--bg); stroke: var(--ok); stroke-width: 2.5; }
@media (max-width: 640px) { .hist { padding: 14px 14px 10px; border-radius: 20px; } .hist-stats { gap: 4px 18px; } .hist-stats b { font-size: 18px; } }

/* ---------- best servers (top) ---------- */
.best .picks-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; }
.best-star { font-style: normal; color: #ffd166; text-shadow: 0 0 12px rgba(255, 209, 102, .55); }
@media (max-width: 560px) { .best .picks-list li:nth-child(n + 5) { display: none; } }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 60; display: flex; flex-direction: column; gap: 2px; min-width: 150px; max-width: 260px; padding: 9px 12px; pointer-events: none;
  border-radius: 12px; font-size: 12.5px; line-height: 1.6; background: rgba(14, 14, 36, .97); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tip b { font-size: 13px; font-weight: 800; }
.tip .t-state { display: inline-flex; align-items: center; gap: 7px; }
.tip .t-raw { font-size: 11.5px; color: var(--faint); }

/* ---------- banner ---------- */
.banner { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  background: rgba(246, 181, 69, .1); border: 1px solid rgba(246, 181, 69, .28); color: #ffd690; }
.banner.is-danger { background: rgba(255, 93, 125, .1); border-color: rgba(255, 93, 125, .3); color: #ffb3c2; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; text-align: right; border-radius: 20px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s, background .2s; }
.stat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.stat.is-active { border-color: rgba(169, 139, 255, .55); background: rgba(129, 85, 252, .12); }
.stat::after { content: ''; position: absolute; inset-inline-start: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--brand); opacity: .9; }
.stat-ok::after { background: var(--ok); } .stat-weak::after { background: var(--weak); } .stat-down::after { background: var(--down); }
.stat-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.stat strong { font-size: 32px; font-weight: 900; line-height: 1.25; letter-spacing: -.5px; }
.stat-sub { font-size: 12px; color: var(--faint); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; border-radius: 16px; }
  .stat strong { font-size: 26px; }
}

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--unknown); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(43, 214, 155, .55); }
.dot.weak { background: var(--weak); box-shadow: 0 0 10px rgba(246, 181, 69, .5); }
.dot.down { background: var(--down); box-shadow: 0 0 10px rgba(255, 93, 125, .55); }

/* ---------- sections ---------- */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.section-head-tools { flex-direction: column; align-items: stretch; }
.chip bdi { unicode-bidi: isolate; }
.chip .sep { color: var(--faint); margin-inline: 2px; }

/* ---------- routes (operator picker) ---------- */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.route { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 16px; text-align: right; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.route:hover { transform: translateY(-2px); border-color: var(--line-2); }
.route[aria-checked="true"] { border-color: rgba(169, 139, 255, .7); background: linear-gradient(160deg, rgba(129, 85, 252, .22), rgba(20, 21, 48, .7));
  box-shadow: 0 16px 40px -18px rgba(129, 85, 252, .7); }
.route-top { display: flex; align-items: center; justify-content: space-between; }
.route-badge { display: inline-grid; place-items: center; min-width: 46px; height: 28px; padding: 0 8px; border-radius: 9px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px;
  direction: ltr; color: var(--brand-2); background: rgba(129, 85, 252, .14); border: 1px solid rgba(129, 85, 252, .28); }
.route-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.route[aria-checked="true"] .route-check { background: var(--brand); border-color: var(--brand); }
.route[aria-checked="true"] .route-check::after { content: ''; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.route-name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.route-loc { font-size: 12px; color: var(--faint); margin-top: -6px; }
.route-bar { width: 100%; height: 6px; border-radius: 6px; overflow: hidden; background: var(--unknown); }
.route-bar rect.ok { fill: var(--ok); } .route-bar rect.weak { fill: var(--weak); } .route-bar rect.down { fill: var(--down); }
.route-spark { display: block; height: 34px; margin: 2px 0 0; }
.route[aria-checked="true"] { --trend: #c9b5ff; }
.route-counts .weak { color: var(--weak); }
.route-counts .down { color: var(--down); }
.route-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; font-weight: 700; }
.route-counts span { display: inline-flex; align-items: center; gap: 5px; }
.route-kpi { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.route-kpi b { color: var(--text); font-weight: 700; }
@media (max-width: 980px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .route { padding: 13px; gap: 6px; } .route-name { font-size: 15.5px; } .route-kpi { font-size: 11px; } }

/* ---------- picks ---------- */
.picks { margin-top: 14px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(43, 214, 155, .08), rgba(20, 21, 48, .6) 60%);
  border: 1px solid rgba(43, 214, 155, .2); }
.picks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.picks-head b { font-size: 15.5px; font-weight: 800; }
.picks-head span { font-size: 12.5px; color: var(--muted); }
.picks-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: right;
  background: rgba(8, 8, 26, .4); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.pick:hover { border-color: rgba(43, 214, 155, .4); transform: translateY(-1px); }
.pick .flag { width: 32px; height: 32px; border-radius: 10px; font-size: 18px; }
.pick .flag.as-code { font-size: 11px; }
.rank { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; font-size: 13px; font-weight: 800; background: rgba(43, 214, 155, .14); color: var(--ok); }
.pick-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.pick-text b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-text span { font-size: 12px; color: var(--muted); }
.picks-none { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .picks-list { grid-template-columns: 1fr; } }

/* ---------- tools ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 260px; min-width: 0; }
.search svg { position: absolute; right: 13px; width: 17px; height: 17px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 40px 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); outline: none; font-size: 14px;
  transition: border-color .2s, background .2s; }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: rgba(169, 139, 255, .6); background: rgba(22, 22, 48, .85); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap;
  transition: background .2s, color .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(129, 85, 252, .8); }
@media (max-width: 520px) { .tools .seg { flex: 1 1 auto; } .seg button { flex: 1; padding: 0 8px; } }
.switch { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 12px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; transition: border-color .2s, color .2s; }
.switch:hover { color: var(--text); border-color: var(--line-2); }
.switch-track { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: rgba(238, 237, 244, .14); transition: background .2s; }
.switch-thumb { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-checked="true"] { color: var(--text); border-color: rgba(169, 139, 255, .45); }
.switch[aria-checked="true"] .switch-track { background: var(--brand); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(-14px); }

/* ---------- list ---------- */
.list-head, .row { --cols: minmax(230px, 1.3fr) repeat(4, minmax(0, 1fr)); display: grid; grid-template-columns: var(--cols); gap: 10px; align-items: stretch; }
.list-head { position: sticky; top: 66px; z-index: 10; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--muted);
  background: rgba(14, 14, 36, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.list-head > span { display: flex; flex-direction: column; line-height: 1.35; }
.list-head small { font-size: 10.5px; color: var(--faint); font-weight: 600; direction: ltr; text-align: right; letter-spacing: .4px; }
.list-head .is-mine { color: var(--brand-2); }
.list { display: flex; flex-direction: column; gap: 10px; }
.row { position: relative; padding: 12px 14px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.row::before { content: ''; position: absolute; inset-inline-start: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--unknown); }
.row.st-ok::before { background: var(--ok); }
.row.st-weak::before { background: var(--weak); }
.row.st-down::before { background: var(--down); }
.row.st-down { border-color: rgba(255, 93, 125, .22); }
.cfg-up { color: var(--text); font-weight: 700; }
.row:hover { border-color: var(--line-2); }
.row.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 2px var(--brand-2), 0 0 40px -6px rgba(129, 85, 252, .8); } }
.intro .row { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cfg { display: flex; align-items: center; gap: 12px; min-width: 0; padding-inline-end: 4px; }
.flag { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; font-size: 24px; line-height: 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02)); border: 1px solid var(--line); }
.flag.as-code { font-size: 13px; font-weight: 800; letter-spacing: .5px; color: var(--brand-2); direction: ltr; }
.flag.has-img { position: relative; overflow: hidden; border: 0; background: #1c1c38; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .8); }
.flag.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flag.has-img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 46%, rgba(0, 0, 0, .14));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.cfg-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.cfg-name { font-size: 15.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.cfg-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tag { padding: 0 7px; border-radius: 6px; font-size: 11px; font-weight: 700; line-height: 19px; direction: ltr; color: var(--brand-2); background: rgba(129, 85, 252, .13); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: rgba(238, 237, 244, .06); color: var(--muted); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: rgba(43, 214, 155, .12); color: var(--ok); }
.pill.weak { background: rgba(246, 181, 69, .13); color: var(--weak); }
.pill.down { background: rgba(255, 93, 125, .13); color: var(--down); }
.row-pill { flex: none; }

.cell { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "pill up" "tl tl" "meta meta"; align-content: center; gap: 7px 8px;
  padding: 10px 12px; border-radius: 14px; background: rgba(8, 8, 26, .32); border: 1px solid transparent; min-width: 0; }
.cell.is-mine { border-color: rgba(169, 139, 255, .45); background: rgba(129, 85, 252, .1); }
.cell-label { grid-area: label; display: none; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; min-width: 0; }
.cell .pill { grid-area: pill; justify-self: start; }
.up { grid-area: up; font-size: 14px; font-weight: 800; }
.up.na { color: var(--faint); font-weight: 600; }
.tl { grid-area: tl; display: block; width: 100%; height: 22px; }
.tl { cursor: crosshair; }
.tl rect { fill: rgba(238, 237, 244, .08); transition: opacity .12s; }
.tl.hovering rect { opacity: .45; }
.tl.hovering rect.hl { opacity: 1; }
.cell .calm { grid-area: pill; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 24px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cell .calm .dot { width: 7px; height: 7px; box-shadow: none; }
.tl rect.ok { fill: var(--ok); } .tl rect.weak { fill: var(--weak); } .tl rect.down { fill: var(--down); }
.tl-empty { grid-area: tl; height: 22px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(238, 237, 244, .06) 0 3px, transparent 3px 5px); }
.meta { grid-area: meta; display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); direction: ltr; white-space: nowrap; }
.meta span:empty { display: none; }

@media (max-width: 1080px) and (min-width: 861px) { .list-head, .row { --cols: minmax(190px, 1.1fr) repeat(4, minmax(0, 1fr)); } .cfg-name { font-size: 14.5px; } }
@media (max-width: 860px) {
  .list-head { display: none; }
  .row { grid-template-columns: 1fr; gap: 6px; padding: 12px; border-radius: 18px; }
  .cfg { order: -2; padding: 2px 2px 6px; }
  .cell { grid-template-columns: 104px minmax(0, 1fr) 42px; grid-template-areas: "label tl up" "label meta meta"; gap: 2px 10px; padding: 7px 10px; border-radius: 12px; }
  .cell-label { display: flex; }
  .cell .pill, .cell .calm { display: none; }
  .cell.is-mine { order: -1; }
  .up { text-align: left; font-size: 13px; align-self: center; }
  .tl, .tl-empty { height: 18px; align-self: center; }
  .meta { font-size: 11px; justify-content: flex-start; gap: 12px; }
}
@media (max-width: 380px) { .cell { grid-template-columns: 88px minmax(0, 1fr) 38px; } .cell-label { font-size: 11.5px; } .flag { width: 38px; height: 38px; font-size: 21px; } }

.skeleton { height: 96px; border-radius: 20px; background: linear-gradient(90deg, var(--panel) 0%, rgba(40, 40, 80, .5) 50%, var(--panel) 100%); background-size: 200% 100%;
  border: 1px solid var(--line); animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 20px; text-align: center; border-radius: 22px; background: var(--panel); border: 1px dashed var(--line-2); }
.waiting-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(129, 85, 252, .14); border: 1px solid rgba(129, 85, 252, .3); }
.waiting-icon i { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-2); animation: blink 1.4s ease-in-out infinite; }
.waiting b { font-size: 17px; font-weight: 800; }
.waiting span { color: var(--muted); font-size: 14px; max-width: 460px; }
.empty { margin: 14px 0 0; padding: 26px; text-align: center; color: var(--muted); border-radius: 18px; background: var(--panel); border: 1px dashed var(--line-2); }

/* ---------- services matrix ---------- */
.svc-wrap { overflow-x: auto; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.svc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.svc-table th, .svc-table td { padding: 7px 5px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
.svc-table tbody tr:last-child > * { border-bottom: 0; }
.svc-table tbody tr:hover > * { background: rgba(255, 255, 255, .025); }
.svc-table thead th { vertical-align: bottom; font-weight: 700; color: var(--muted); white-space: normal; padding-inline: 2px; }
.svc-table .is-sorted { background: rgba(129, 85, 252, .1); }
.svc-cfg { position: sticky; right: 0; z-index: 1; text-align: right !important; padding-inline: 14px 10px !important; background: #121230; font-weight: 700; }
.svc-table tbody tr:hover > .svc-cfg { background: #16163a; }
.svc-cfg-in { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); }
.svc-cfg .flag { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; }
.svc-cfg .flag.as-code { font-size: 9px; }
.svc-head { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; min-width: 54px; padding: 4px 2px; border: 0; border-radius: 9px; background: transparent; }
.svc-head:hover { background: rgba(255, 255, 255, .05); }
.svc-name { font-size: 11.5px; font-weight: 700; line-height: 1.25; color: var(--text); white-space: normal; text-align: center; }
.svc-sum { font-size: 10.5px; color: var(--faint); font-weight: 600; }
.svc { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 13px; font-weight: 800; font-style: normal; line-height: 1; }
.svc.ok { background: rgba(43, 214, 155, .14); color: var(--ok); }
.svc.weak { background: rgba(246, 181, 69, .14); color: var(--weak); }
.svc.blocked { background: rgba(255, 93, 125, .14); color: var(--down); }
.svc.error { background: rgba(238, 237, 244, .07); color: var(--muted); }
.svc.none { color: var(--faint); font-weight: 600; }
.svc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.svc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.svc-legend .svc { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.svc-hint { color: var(--faint); }

/* ---------- guide & footer ---------- */
.guide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.guide-item { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: rgba(20, 21, 48, .45); border: 1px solid var(--line); }
.guide-item .dot { margin-top: 8px; }
.guide-item div { display: flex; flex-direction: column; line-height: 1.55; }
.guide-item b { font-size: 13.5px; font-weight: 800; }
.guide-item span { font-size: 12.5px; color: var(--muted); }
.tl-mini { width: 22px; height: 10px; flex: none; margin-top: 7px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ok) 0 22%, transparent 22% 26%, var(--ok) 26% 48%, transparent 48% 52%, var(--weak) 52% 74%, transparent 74% 78%, var(--ok) 78%); }
@media (max-width: 980px) { .guide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .guide { grid-template-columns: 1fr; } }
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgba(8, 8, 26, .5); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--faint); }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; }
.footer-brand img { width: 22px; height: 22px; border-radius: 7px; }
.noscript { margin: 20px; padding: 16px; border-radius: 14px; text-align: center; background: var(--panel-solid); }

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