/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.js","import":"Rajdhani","arguments":[{"subsets":["latin"],"weight":["500","600","700"],"variable":"--font-display"}],"variableName":"display"} ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* devanagari */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/b009b118a8c58d8c-s.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/264c8506a75dd158-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/3d26d2f3aa81a833-s.p.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;
}
/* devanagari */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/04971cd00c9d3b68-s.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/1a22315a480e72db-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/6e1768769e6f59a2-s.p.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;
}
/* devanagari */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/67695be07a46cf4c-s.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/bcc69932347c6777-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Rajdhani_cc7473';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/ab2e3a11646b0499-s.p.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;
}@font-face {font-family: '__Rajdhani_Fallback_cc7473';src: local("Arial");ascent-override: 102.12%;descent-override: 37.99%;line-gap-override: 0.00%;size-adjust: 91.07%
}.__className_cc7473 {font-family: '__Rajdhani_cc7473', '__Rajdhani_Fallback_cc7473';font-style: normal
}.__variable_cc7473 {--font-display: '__Rajdhani_cc7473', '__Rajdhani_Fallback_cc7473'
}

/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.js","import":"IBM_Plex_Mono","arguments":[{"subsets":["latin"],"weight":["400","500","600"],"variable":"--font-mono"}],"variableName":"mono"} ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/58f386aa6b1a2a92-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/011e180705008d6f-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/7ba5fb2a8c88521c-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/92eeb95d069020cc-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/d3ebbfd689654d3a-s.p.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;
}
/* cyrillic-ext */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/ef4d5661765d0e49-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/d29838c109ef09b4-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/e40af3453d7c920a-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/99dcf268bda04fe5-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/98e207f02528a563-s.p.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;
}
/* cyrillic-ext */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/73cb51aac9c97f90-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/d26bbd13d6b70f89-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/20535187d867b7b9-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/5356a6a4f2c8c8d8-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__IBM_Plex_Mono_595324';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/db96af6b531dc71f-s.p.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;
}@font-face {font-family: '__IBM_Plex_Mono_Fallback_595324';src: local("Arial");ascent-override: 76.16%;descent-override: 20.43%;line-gap-override: 0.00%;size-adjust: 134.59%
}.__className_595324 {font-family: '__IBM_Plex_Mono_595324', '__IBM_Plex_Mono_Fallback_595324';font-style: normal
}.__variable_595324 {--font-mono: '__IBM_Plex_Mono_595324', '__IBM_Plex_Mono_Fallback_595324'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #05080f;
  --surface: #0a0f1a;
  --panel: rgba(9, 15, 27, 0.78);
  --panel-border: rgba(89, 226, 235, 0.16);
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.35);
  --ink: #e8f4f6;
  --ink-2: #8fa8b8;
  --ink-3: #51677a;
  --good: #14a085;
  --bad: #e66767;
  --seq: #3987e5;
  --font-d: var(--font-display), sans-serif;
  --font-m: var(--font-mono), monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-m);
  overflow: hidden;
  font-size: 13px;
}

/* ---- atmosphere: starfield + nebula + scanlines + noise + vignette ---- */
.stage {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 68% 42%, rgba(20, 60, 110, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 35% at 30% 75%, rgba(16, 90, 100, 0.14), transparent 70%),
    var(--bg);
}
.stars, .stars2 {
  position: absolute; inset: -50%;
  background-image:
    radial-gradient(1px 1px at 12% 24%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 67%, #9fd4ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 12%, #ffffff 50%, transparent 51%),
    radial-gradient(1px 1px at 71% 44%, #b7e6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 78%, #dceeff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 22% 89%, #ffffff 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 38%, #a8d8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 18%, #e4f3ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 64% 92%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 52%, #9fd4ff 50%, transparent 51%);
  background-size: 520px 520px;
  animation: drift 240s linear infinite;
  opacity: 0.7;
}
.stars2 {
  background-size: 780px 780px;
  animation-duration: 380s;
  animation-direction: reverse;
  opacity: 0.4;
}
@keyframes drift { to { transform: translate(260px, 130px); } }

.overlay-fx {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 3px);
}
.overlay-fx::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.5));
}

/* ---- layout grid ---- */
.app {
  position: fixed; inset: 0;
  display: grid;
  grid-template-rows: 56px 1fr 34px;
  grid-template-columns: 340px 1fr 336px;
  grid-template-areas: "hd hd hd" "feed globe stats" "tk tk tk";
  grid-gap: 10px;
  gap: 10px;
  padding: 10px;
  z-index: 10;
}
@media (max-width: 1100px) {
  .app { grid-template-columns: 300px 1fr; grid-template-areas: "hd hd" "feed globe" "tk tk"; }
  .stats-panel { display: none; }
}

/* ---- panels: command-center pods with corner brackets ---- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-radius: 4px;
  min-height: 0;
  animation: panel-in 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
}
.panel::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.panel::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; } .d4 { animation-delay: 0.35s; }

.panel-title {
  font-family: var(--font-d);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--accent);
  padding: 10px 12px 8px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(89, 226, 235, 0.1);
  text-transform: uppercase;
}
.panel-title .zh { color: var(--ink-3); font-weight: 500; letter-spacing: 0.3em; }
.panel-title::before { content: "▮"; font-size: 10px; }

/* ---- header ---- */
.header {
  grid-area: hd;
  display: flex; align-items: center; gap: 18px; padding: 0 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand h1 {
  font-family: var(--font-d); font-size: 21px; font-weight: 700;
  letter-spacing: 0.18em; color: var(--ink);
}
.brand h1 b { color: var(--accent); font-weight: 700; }
.brand .sub { color: var(--ink-3); letter-spacing: 0.4em; font-size: 11px; }

.live {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-d); font-weight: 700; letter-spacing: 0.2em; font-size: 12px;
}
.live .dot { width: 8px; height: 8px; border-radius: 50%; }
.live.on { color: #4ade80; }
.live.on .dot { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: blink 1.6s infinite; }
.live.off { color: var(--bad); }
.live.off .dot { background: var(--bad); }
@keyframes blink { 50% { opacity: 0.3; } }

.filters { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.chip {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 3px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--ink-2);
  transition: all 0.18s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.chip .sw { width: 8px; height: 8px; border-radius: 2px; }
.chip.on { color: var(--ink); border-color: var(--chip-c, var(--accent)); box-shadow: 0 0 12px -4px var(--chip-c, var(--accent)); }
.chip.off { opacity: 0.38; filter: grayscale(0.7); }
.chip:hover { transform: translateY(-1px); }

.clock { font-size: 12px; color: var(--ink-2); letter-spacing: 0.12em; white-space: nowrap; }
.clock b { color: var(--ink); }

/* ---- globe area ---- */
.globe-wrap { grid-area: globe; position: relative; min-width: 0; min-height: 0; }
.globe-canvas { position: absolute; inset: 0; }
.globe-hud {
  position: absolute; left: 12px; top: 10px; z-index: 5; pointer-events: none;
  font-size: 11px; color: var(--ink-3); letter-spacing: 0.15em; line-height: 1.9;
}
.globe-hud b { color: var(--accent); }
/* selection target marker on the globe */
.sel-marker {
  position: relative; width: 46px; height: 46px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 0 6px currentColor);
}
.sm-ring {
  position: absolute; inset: 0; border: 2px solid currentColor; border-radius: 50%;
  animation: sm-pulse 1.6s ease-out infinite;
}
.sm-ring2 { animation-delay: 0.8s; }
@keyframes sm-pulse {
  0% { transform: scale(0.35); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.sm-cross::before, .sm-cross::after {
  content: ""; position: absolute; background: currentColor;
}
.sm-cross::before { left: 50%; top: -6px; bottom: -6px; width: 1.5px; transform: translateX(-50%); }
.sm-cross::after { top: 50%; left: -6px; right: -6px; height: 1.5px; transform: translateY(-50%); }
.sm-dot {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px;
  transform: translate(-50%, -50%);
  background: #fff; border: 2px solid currentColor; border-radius: 50%;
}
.sm-beam {
  position: absolute; left: 50%; bottom: 50%; width: 2px; height: 34px;
  transform: translateX(-50%);
  background: linear-gradient(to top, currentColor, transparent);
  opacity: 0.85;
}

.rotate-badge {
  position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%);
  z-index: 6; pointer-events: none;
  font-family: var(--font-m); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-2);
  background: rgba(6, 11, 21, 0.85);
  border: 1px solid var(--panel-border); border-radius: 3px;
  padding: 4px 12px;
  animation: card-in 0.25s ease both;
}

.mode-switch {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 6; display: flex; gap: 2px;
  background: rgba(6, 11, 21, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 4px; padding: 3px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.mode-switch button {
  font-family: var(--font-d); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; padding: 5px 9px; white-space: nowrap;
  background: transparent; border: none; border-radius: 3px;
  color: var(--ink-3); cursor: pointer; transition: all 0.2s;
}
.mode-switch button:hover { color: var(--ink-2); }
.mode-switch button.on {
  color: var(--bg); background: var(--accent);
  box-shadow: 0 0 14px -2px var(--accent);
}

.reticle {
  position: absolute; right: 14px; top: 12px; z-index: 5;
  width: 54px; height: 54px; border: 1px solid rgba(89,226,235,0.25); border-radius: 50%;
  pointer-events: none;
}
.reticle::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px dashed rgba(89,226,235,0.35); border-radius: 50%;
  animation: spin 14s linear infinite;
}
.reticle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px;
  transform: translate(-50%, -50%); background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- detail card ---- */
.detail {
  position: absolute; right: 16px; bottom: 16px; z-index: 6;
  width: min(340px, 80%);
  background: rgba(6, 11, 21, 0.92);
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  padding: 13px 14px;
  animation: card-in 0.35s cubic-bezier(0.2, 0.9, 0.25, 1) both;
  box-shadow: 0 0 40px -12px var(--accent-dim);
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.detail .cat { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: 0.18em; margin-bottom: 7px; }
.detail .cat .sw { width: 9px; height: 9px; border-radius: 2px; box-shadow: 0 0 8px currentColor; }
.detail h3 { font-family: var(--font-d); font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
.detail .meta { color: var(--ink-2); font-size: 11px; line-height: 1.8; }
.detail .meta b { color: var(--ink); }
.detail a {
  display: inline-block; margin-top: 9px; color: var(--accent); font-size: 11px;
  letter-spacing: 0.14em; text-decoration: none; border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 1px;
}
.detail a:hover { text-shadow: 0 0 8px var(--accent); }
.detail .close {
  position: absolute; top: 8px; right: 10px; cursor: pointer; color: var(--ink-3);
  background: none; border: none; font-size: 14px; font-family: var(--font-m);
}
.detail .close:hover { color: var(--ink); }

/* ---- feed ---- */
.feed-panel { grid-area: feed; display: flex; flex-direction: column; overflow: hidden; }
.feed-list { flex: 1 1; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.feed-item {
  padding: 8px 12px; cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  animation: feed-in 0.4s ease both;
}
@keyframes feed-in { from { opacity: 0; transform: translateX(-10px); } }
.feed-item:hover { background: rgba(89, 226, 235, 0.06); border-left-color: var(--accent); }
.feed-item.sel { background: rgba(89, 226, 235, 0.1); border-left-color: var(--accent); }
.feed-item.fresh { animation: feed-flash 2.2s ease both; }
@keyframes feed-flash {
  0% { opacity: 0; transform: translateX(-14px); background: rgba(89, 226, 235, 0.22); }
  35% { background: rgba(89, 226, 235, 0.14); }
  100% { opacity: 1; transform: none; background: transparent; }
}
.feed-top { display: flex; align-items: center; gap: 7px; font-size: 10px; margin-bottom: 4px; letter-spacing: 0.1em; }
.feed-top .sw { width: 7px; height: 7px; border-radius: 2px; flex: none; box-shadow: 0 0 6px currentColor; }
.feed-top .t { color: var(--ink-3); margin-left: auto; }
.feed-title { font-size: 12px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-loc { font-size: 10px; color: var(--ink-3); margin-top: 3px; letter-spacing: 0.05em; }
.feed-loc::before { content: "◈ "; color: var(--ink-3); }

/* ---- stats ---- */
.stats-panel { grid-area: stats; display: flex; flex-direction: column; overflow: hidden; }
.stats-scroll { flex: 1 1; overflow-y: auto; padding: 10px 12px 14px; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; display: flex; flex-direction: column; gap: 14px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 8px; gap: 8px; }
.tile {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  border-radius: 3px; padding: 9px 10px;
  position: relative; overflow: hidden;
}
.tile::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--tile-c, var(--accent));
  box-shadow: 0 0 10px var(--tile-c, var(--accent));
}
.tile .k { font-size: 9px; letter-spacing: 0.2em; color: var(--ink-3); margin-bottom: 4px; }
.tile .v {
  font-family: var(--font-d); font-size: 24px; font-weight: 700; line-height: 1;
  color: var(--ink); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px var(--accent-dim);
}
.tile .u { font-size: 10px; color: var(--ink-3); margin-left: 3px; }

.sec-label { font-size: 10px; letter-spacing: 0.24em; color: var(--ink-3); }
.sec-label b { color: var(--ink-2); }

.viz-figure { position: relative; }
.viz-tip {
  position: absolute; pointer-events: none; z-index: 9;
  background: #0c1524; border: 1px solid var(--panel-border); border-radius: 3px;
  padding: 5px 8px; font-size: 10px; color: var(--ink); white-space: nowrap;
  transform: translate(-50%, -110%);
}
.viz-tip .k2 { color: var(--ink-3); }

.cat-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 11px; }
.cat-row .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.cat-row .lb { width: 76px; color: var(--ink-2); letter-spacing: 0.06em; flex: none; font-size: 10px; }
.cat-row .bar-track { flex: 1 1; height: 10px; display: flex; align-items: center; }
.cat-row .bar { height: 8px; border-radius: 0 4px 4px 0; min-width: 2px; transition: width 0.8s cubic-bezier(0.2, 0.9, 0.25, 1); }
.cat-row .n { width: 42px; text-align: right; color: var(--ink); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

.ctry-row { display: flex; align-items: center; gap: 8px; margin: 5px 0; font-size: 11px; }
.ctry-row .lb { width: 108px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; font-size: 10px; }
.ctry-row .bar-track { flex: 1 1; height: 10px; display: flex; align-items: center; }
.ctry-row .bar { height: 8px; background: var(--seq); border-radius: 0 4px 4px 0; min-width: 2px; transition: width 0.8s cubic-bezier(0.2, 0.9, 0.25, 1); }
.ctry-row .n { width: 36px; text-align: right; color: var(--ink); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* ---- ticker ---- */
.ticker { grid-area: tk; overflow: hidden; display: flex; align-items: center; }
.ticker .tag {
  flex: none; font-family: var(--font-d); font-weight: 700; font-size: 11px;
  letter-spacing: 0.2em; color: var(--bg); background: var(--accent);
  padding: 3px 10px; margin: 0 10px; border-radius: 2px;
}
.ticker-track { display: flex; gap: 46px; white-space: nowrap; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); cursor: pointer; }
.ticker-item:hover { color: var(--ink); }
.ticker-item .sw { width: 7px; height: 7px; border-radius: 2px; box-shadow: 0 0 6px currentColor; }
.ticker-item b { color: var(--ink-3); font-weight: 400; letter-spacing: 0.1em; }

/* ---- boot splash ---- */
.boot {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: var(--bg);
  animation: boot-out 0.6s ease 1.4s both;
  pointer-events: none;
}
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
.boot h2 { font-family: var(--font-d); letter-spacing: 0.5em; font-weight: 700; font-size: 18px; color: var(--accent); animation: blink 1.2s infinite; }
.boot .bar { width: 220px; height: 2px; background: rgba(255,255,255,0.08); overflow: hidden; }
.boot .bar i { display: block; height: 100%; width: 40%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: load 1.3s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(560%); } }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: rgba(89,226,235,0.25); border-radius: 3px; }

