:root {
  --bg: #f4f7fb;
  --bg-accent: #eef5ff;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --line: #e6edf5;
  --line-strong: #d5e0ec;
  --text: #142033;
  --muted: #667892;
  --accent: #0f8f6f;
  --accent-2: #12a881;
  --accent-soft: #e7f7f1;
  --danger: #d64545;
  --danger-soft: #fdecec;
  --warn: #c98500;
  --warn-soft: #fff6e5;
  --focus: #3b82f6;
  --good: #149a6a;
  --bad: #d64545;
  --shadow: 0 10px 30px rgba(20, 32, 51, .06);
  --shadow-sm: 0 4px 14px rgba(20, 32, 51, .05);
  --radius: 18px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(15,143,111,.10), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(59,130,246,.08), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 35%);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; }

.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding-bottom: 2.75rem; }

.brand-link { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; }
.brand-link:hover { text-decoration: none; color: inherit; }

.hero {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.35rem 0 1rem;
}
.hero-main { display: flex; align-items: center; gap: .9rem; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #16b089, #0d7d61);
  color: #fff; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 10px 22px rgba(15,143,111,.28);
}
.hero h1 { margin: 0; font-size: 1.28rem; letter-spacing: -.01em; color: var(--text); }
.hero p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.hero-user {
  display: flex; align-items: center; gap: .7rem;
  padding: .4rem .55rem .4rem .4rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.hero-user strong { display: block; font-size: .9rem; }
.hero-user span { color: var(--muted); font-size: .75rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e8f2ff; color: #2b6cb0; font-weight: 700;
}
.avatar.lg { width: 56px; height: 56px; font-size: 1.3rem; }

.tabs {
  display: flex; gap: .3rem; flex-wrap: wrap;
  padding: .28rem; margin: 0 0 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.tabs a {
  color: var(--muted); padding: .55rem .95rem; border-radius: 10px;
  font-weight: 600; font-size: .9rem; text-decoration: none;
}
.tabs a:hover { color: var(--text); background: #f3f7fb; text-decoration: none; }
.tabs a.active {
  color: #fff; background: linear-gradient(145deg, #16b089, #0f8f6f);
  box-shadow: 0 6px 14px rgba(15,143,111,.25);
}

.page-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin: 0 0 1rem;
}
.page-title { margin: 0; font-size: 1.4rem; letter-spacing: -.015em; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin: 0 0 1rem;
  box-shadow: var(--shadow);
}
.card.stretch { margin: 0; }
.card.side { position: sticky; top: 1rem; }
.card.narrow { max-width: 640px; }
.card h2 { margin: 0; font-size: 1.05rem; color: var(--text); }
.card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: .75rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.muted { color: var(--muted); }
.tight { margin: .25rem 0 0; font-size: .85rem; }

.flash {
  border-radius: 12px; padding: .85rem 1rem; margin: 0 0 1rem; font-size: .95rem;
}
.flash.ok { background: var(--accent-soft); border: 1px solid #b7ebd8; color: #0b6a52; }
.flash.error { background: var(--danger-soft); border: 1px solid #f3c1c1; color: #9b2c2c; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem;
  margin: .2rem 0 1rem;
}
.stats.compact { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  padding: .95rem 1rem;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  display: block; color: var(--muted); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
.stat strong { display: block; margin-top: .35rem; font-size: 1.4rem; color: var(--text); }
.stat strong small { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat em { display: block; margin-top: .2rem; color: var(--muted); font-style: normal; font-size: .8rem; }
.stat.good strong { color: var(--good); }
.stat.bad strong { color: var(--bad); }
.stat.linkish { color: inherit; text-decoration: none; display: block; }
.stat.linkish:hover { border-color: #b7ebd8; text-decoration: none; box-shadow: 0 8px 20px rgba(15,143,111,.08); }

.panel-grid {
  display: grid; grid-template-columns: 1.6fr .9fr; gap: 1rem; align-items: start;
}
.split-2 {
  display: grid; grid-template-columns: 1.55fr .85fr; gap: 1rem; margin-bottom: 1rem;
}

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.quick {
  display: block; padding: 1rem 1.05rem; border-radius: 14px;
  border: 1px solid var(--line); background: #f8fafc;
  color: inherit; text-decoration: none; transition: .15s ease;
}
.quick:hover {
  border-color: #b7ebd8; background: #fff; text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.quick strong { display: block; margin-bottom: .25rem; }
.quick span { color: var(--muted); font-size: .85rem; }

.item-list { display: flex; flex-direction: column; gap: .8rem; }
.item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .95rem 1rem;
  background: #fbfcfe;
}
.item.soft { background: #fff; }
.item.dim { opacity: .72; }
.item-top {
  display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  align-items: flex-start;
}
.item h3 { margin: 0 0 .45rem; font-size: 1rem; }
.meta-line { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center;
  padding: .18rem .55rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid #c6eadc;
  color: #0d7a5d; font-size: .78rem; font-family: var(--mono);
}
.chip.soft {
  background: #f1f5f9; border-color: var(--line); color: var(--muted);
}
.url-line {
  margin: .7rem 0 .35rem; padding: .55rem .65rem;
  border-radius: 10px; background: #f5f8fb; border: 1px solid var(--line);
  color: #4a6078; font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mono { font-family: var(--mono); word-break: break-all; }

.badge {
  display: inline-block; padding: .18rem .55rem; border-radius: 999px;
  font-size: .75rem; border: 1px solid var(--line); font-weight: 650;
}
.badge.on { background: var(--accent-soft); color: #0d7a5d; border-color: #b7ebd8; }
.badge.off { background: #f1f5f9; color: var(--muted); border-color: var(--line); }

.test-bar {
  display: grid; grid-template-columns: 1.1fr 1.2fr auto; gap: .45rem;
  margin-top: .75rem;
}
.test-bar.two { grid-template-columns: 1fr auto; }
.test-bar input { margin: 0; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.btn, button, .button {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; padding: .58rem .95rem; border-radius: 11px;
  background: linear-gradient(145deg, #16b089, #0f8f6f); color: #fff;
  font-weight: 650; font-size: .9rem;
  box-shadow: 0 6px 14px rgba(15,143,111,.2);
}
.btn:hover, button:hover, a.btn:hover {
  filter: brightness(1.04);
  text-decoration: none;
  color: #fff; /* beat global a:hover green-on-green */
}
.btn.secondary, button.secondary, a.btn.secondary {
  background: #fff; color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.secondary:hover, button.secondary:hover, a.btn.secondary:hover {
  background: #f7fafc;
  color: var(--text);
}
.btn.danger, button.danger, a.btn.danger {
  background: linear-gradient(145deg, #e45a5a, #d64545); color: #fff;
  box-shadow: 0 6px 14px rgba(214,69,69,.2);
}
.btn.danger:hover, button.danger:hover, a.btn.danger:hover { color: #fff; }
.btn.small, button.small { padding: .38rem .7rem; font-size: .8rem; box-shadow: none; }

label { display: block; margin: .75rem 0 .3rem; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
  width: 100%; padding: .68rem .8rem; border-radius: 11px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  font: inherit;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(59,130,246,.2); border-color: var(--focus);
}
textarea { min-height: 90px; resize: vertical; }
.form-actions { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; color: var(--text); }
.check input { width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.conn-box {
  margin: .85rem 0 .5rem;
  padding: .85rem .95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}
.conn-box.flat { margin: 0; border: 0; padding: 0; background: transparent; }
.conn-box-h {
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .65rem;
}
.conn-grid {
  margin: 0; display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem .9rem;
}
.conn-grid.large { gap: .75rem 1.1rem; }
.conn-grid > div { min-width: 0; }
.conn-grid dt {
  margin: 0; font-size: .72rem; color: var(--muted); font-weight: 600;
}
.conn-grid dd {
  margin: .12rem 0 0; font-size: .92rem; color: var(--text);
  word-break: break-word;
}
.conn-grid .copyable:hover { color: var(--accent); }
.qr-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  align-items: center;
}
.qr-box {
  width: 280px;
  height: 280px;
  padding: .65rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-sizing: content-box;
}
.qr-box img, .qr-box canvas {
  display: block;
  width: 280px !important;
  height: 280px !important;
}
.qr-help { max-width: 28rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.usage-list { display: grid; gap: 1rem; }
.usage-row { min-width: 0; }
.usage-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .35rem .75rem;
  margin-bottom: .35rem;
}
.usage-meta strong { font-size: .9rem; }
.usage-meta .mono { font-size: .82rem; color: var(--muted); }
.usage-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.usage-track.muted-track { opacity: .7; }
.usage-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0ea5e9, #0284c7);
  min-width: 0;
}
.usage-fill.soft {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}
.usage-fill.hot {
  background: linear-gradient(90deg, #f59e0b, #dc2626);
}
.share-msg {
  width: 100%;
  min-height: 320px;
  margin-top: .35rem;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #f8fafc;
  color: var(--text);
  font-family: var(--mono);
  font-size: .84rem;
  line-height: 1.45;
  resize: vertical;
  white-space: pre;
}
.install-steps {
  margin: .2rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.55;
}
.install-steps li { margin: .35rem 0; }

.health-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .65rem; }
.health-list li {
  border: 1px solid var(--line); border-radius: 12px; padding: .75rem .85rem;
  background: #fbfcfe;
}
.health-list li strong { display: block; margin-bottom: .15rem; }
.health-list li span { color: var(--muted); font-size: .82rem; display: block; }
.health-list li.ok { border-color: #b7ebd8; background: #f3fbf7; }
.health-list li.ok strong { color: var(--good); }
.health-list li.bad { border-color: #f3c1c1; background: #fff7f7; }
.health-list li.bad strong { color: var(--bad); }
.health-list li.muted-item strong { color: var(--muted); }
.health-list.pretty li { display: flex; gap: .7rem; align-items: flex-start; }
.health-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; flex: 0 0 auto;
  background: var(--muted);
}
.health-list.pretty li.ok .health-dot {
  background: var(--good); box-shadow: 0 0 0 4px rgba(20,154,106,.12);
}
.health-list.pretty li.bad .health-dot {
  background: var(--bad); box-shadow: 0 0 0 4px rgba(214,69,69,.12);
}

.empty {
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 1.25rem; color: var(--muted); text-align: center; background: #fbfcfe;
}

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(700px 320px at 20% 10%, rgba(15,143,111,.12), transparent 55%),
    radial-gradient(600px 280px at 90% 0%, rgba(59,130,246,.10), transparent 50%),
    #f4f7fb;
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20,32,51,.08);
}
.login-card h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
.login-card p { margin: 0 0 1rem; color: var(--muted); }

.profile-block {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.profile-block h3 { margin: 0; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td {
  text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
table.data th {
  color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
}
table, th, td { text-align: left; }
th, td { padding: .65rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0 0.5rem; gap: 1rem;
}
.brand { display: flex; flex-direction: column; gap: .15rem; }
.brand strong { font-size: 1.15rem; }
.brand span { color: var(--muted); font-size: .85rem; }
.actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

/* Live path status */
.live-servers {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem;
  margin: 0 0 1rem;
}
.live-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 1rem 1.05rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.live-card.up { border-color: #b7ebd8; background: linear-gradient(180deg, #f3fbf7, #fff); }
.live-card.down { border-color: #f3c1c1; background: linear-gradient(180deg, #fff7f7, #fff); }
.live-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.live-top strong { font-size: 1rem; letter-spacing: .02em; }
.live-badge {
  display: inline-flex; align-items: center; padding: .2rem .55rem;
  border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  background: #f1f5f9; color: var(--muted);
}
.live-card.up .live-badge { background: var(--accent-soft); color: #0d7a5d; }
.live-card.down .live-badge { background: var(--danger-soft); color: #9b2c2c; }
.live-host { margin-top: .45rem; color: #4a6078; font-size: .8rem; }
.live-ms {
  margin-top: .55rem; font-size: 1.35rem; font-weight: 750; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.live-card.up .live-ms { color: var(--good); }
.live-card.down .live-ms { color: var(--bad); }
.live-detail { margin-top: .25rem; color: var(--muted); font-size: .82rem; }
.live-method { margin-top: .55rem; color: #94a3b8; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }

.hop { position: relative; }
.hop-status {
  position: absolute; top: .65rem; right: .65rem;
  padding: .15rem .45rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  background: #f1f5f9; color: var(--muted);
}
.hop.up { border-color: #b7ebd8; }
.hop.up .hop-status { background: var(--accent-soft); color: #0d7a5d; }
.hop.down { border-color: #f3c1c1; }
.hop.down .hop-status { background: var(--danger-soft); color: #9b2c2c; }

/* IPTSP */
.iptsp-hero {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  align-items: flex-end; margin: 0 0 1rem;
  padding: 1.3rem 1.35rem;
  border-radius: 22px;
  border: 1px solid #cfeadf;
  background:
    radial-gradient(700px 220px at 0% 0%, rgba(15,143,111,.14), transparent 60%),
    linear-gradient(135deg, #ffffff, #f3fbf8);
  box-shadow: var(--shadow);
}
.iptsp-hero .eyebrow {
  margin: 0 0 .35rem; color: #0d7a5d; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.iptsp-hero h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.02em; }
.iptsp-hero p { margin: .45rem 0 0; color: var(--muted); max-width: 46rem; line-height: 1.45; }
.iptsp-hero-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.pulse-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: .82rem; font-weight: 650; color: var(--text);
}
.pulse-pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
}
.pulse-pill.good { border-color: #b7ebd8; color: #0d7a5d; background: var(--accent-soft); }
.pulse-pill.good i {
  background: var(--good);
  animation: pulse 1.6s ease-out infinite;
}
.pulse-pill.bad { border-color: #f3c1c1; color: #9b2c2c; background: var(--danger-soft); }
.pulse-pill.bad i { background: var(--bad); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20,154,106,.45); }
  70% { box-shadow: 0 0 0 10px rgba(20,154,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,154,106,0); }
}

.card.glow {
  border-color: #d7eee5;
  box-shadow: var(--shadow);
}
.journey { margin-bottom: 1rem; overflow: hidden; }
.journey-track {
  display: grid; grid-template-columns: 1.2fr auto 1.2fr auto 1.2fr auto 1.2fr;
  gap: .35rem; align-items: stretch;
}
.hop {
  position: relative; border-radius: 16px; padding: .9rem .85rem .85rem;
  border: 1px solid var(--line); background: #f8fafc;
  text-align: left;
}
.hop.live {
  border-color: #b7ebd8;
  background: linear-gradient(180deg, #eefaf5, #ffffff);
}
.hop-icon {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; margin-bottom: .55rem;
  letter-spacing: .04em;
}
.hop-icon.sg { background: #e8f2ff; color: #2b6cb0; }
.hop-icon.bd { background: #e7f7f1; color: #0d7a5d; }
.hop-icon.sip { background: #f1eaff; color: #6b46c1; }
.hop-icon.dst { background: #fff6e5; color: #b7791f; font-size: 1rem; }
.hop strong { display: block; font-size: .95rem; }
.hop span { display: block; margin-top: .2rem; font-family: var(--mono); font-size: .75rem; color: #4a6078; }
.hop em { display: block; margin-top: .3rem; color: var(--muted); font-style: normal; font-size: .78rem; }
.hop-link {
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  position: relative;
}
.hop-link::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px dashed #9ad7c2;
}
.hop-link span {
  position: relative; z-index: 1; padding: .2rem .45rem; border-radius: 999px;
  background: #fff; border: 1px solid #b7ebd8; color: #0d7a5d;
}
.journey-caption {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem;
  margin-top: .9rem; color: var(--muted); font-size: .8rem;
}

.number-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.number-card {
  border-radius: 16px; padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(15,143,111,.06), transparent 45%),
    #fff;
}
.number-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.number-big { font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; color: var(--text); }
.number-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .8rem;
  margin-top: .85rem;
}
.number-meta label {
  display: block; margin: 0 0 .15rem; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
.number-meta span { font-size: .9rem; color: var(--text); }
.number-title { margin-top: .75rem; color: var(--muted); font-size: .85rem; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::before {
  content: ""; position: absolute; top: 8px; bottom: -8px; width: 2px;
  background: linear-gradient(180deg, #9ad7c2, #e6edf5);
}
.tl-item:last-child .tl-rail::before { display: none; }
.tl-rail i {
  position: relative; z-index: 1; width: 12px; height: 12px; margin-top: 6px;
  border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(15,143,111,.12);
}
.tl-item.warn .tl-rail i { background: var(--warn); box-shadow: 0 0 0 4px rgba(201,133,0,.12); }
.tl-item.idle .tl-rail i { background: #94a3b8; }
.tl-body {
  border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem;
  background: #fff; margin-bottom: .75rem;
}
.tl-top { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.tl-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .75rem;
  margin-top: .45rem; color: var(--muted); font-size: .82rem;
}
.tl-path {
  margin-top: .55rem; font-size: .82rem; color: #0d7a5d;
  font-family: var(--mono);
}
.tl-note { margin-top: .4rem; color: #9a6700; font-size: .82rem; background: var(--warn-soft); display: inline-block; padding: .25rem .5rem; border-radius: 8px; }
.tl-stamp { margin-top: .35rem; font-size: .72rem; }

.network-card h2 { margin-bottom: .35rem; }
.net-flow {
  display: flex; align-items: stretch; gap: .45rem; flex-wrap: wrap;
  margin: 1rem 0 .85rem;
}
.net-node {
  flex: 1 1 140px; min-width: 130px;
  border: 1px solid var(--line); border-radius: 14px;
  padding: .75rem .8rem; background: #f8fafc;
}
.net-node.accent { border-color: #b7ebd8; background: #f3fbf7; }
.net-node strong { display: block; margin-bottom: .2rem; }
.net-node span { display: block; font-family: var(--mono); font-size: .78rem; color: #4a6078; }
.net-node em { display: block; margin-top: .25rem; color: var(--muted); font-style: normal; font-size: .78rem; }
.net-arrow {
  align-self: center; color: var(--accent); font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; padding: 0 .15rem;
}
.net-steps {
  margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .9rem;
}
.net-steps li { margin: .25rem 0; }

@media (max-width: 960px) {
  .stats, .stats.compact, .live-servers { grid-template-columns: 1fr 1fr; }
  .panel-grid, .split-2 { grid-template-columns: 1fr; }
  .card.side { position: static; }
  .test-bar, .test-bar.two { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .journey-track { grid-template-columns: 1fr; }
  .hop-link { padding: .2rem 0; }
  .hop-link::before {
    left: 50%; top: 0; bottom: 0; right: auto; width: 0;
    border-top: 0; border-left: 1px dashed #9ad7c2;
  }
  .journey-caption { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stats, .stats.compact, .live-servers { grid-template-columns: 1fr; }
  .grid-2, .number-meta, .conn-grid { grid-template-columns: 1fr; }
  .hero-user { width: 100%; justify-content: space-between; border-radius: 14px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .iptsp-hero h2 { font-size: 1.35rem; }
}
