:root {
  color-scheme: light;
  --page-bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #eef4ff;
  --ink: #17212b;
  --muted: #65717f;
  --quiet: #8792a0;
  --line: rgba(23, 33, 43, 0.1);
  --line-strong: rgba(23, 33, 43, 0.16);
  --brand: #2764d9;
  --brand-strong: #1748a8;
  --brand-soft: rgba(39, 100, 217, 0.09);
  --success: #0f766e;
  --success-soft: rgba(15, 118, 110, 0.1);
  --danger: #b42318;
  --danger-soft: rgba(180, 35, 24, 0.08);
  --ip-card: #111827;
  --ip-card-2: #172033;
  --shadow-shell: 0 18px 44px rgba(30, 41, 59, 0.08);
  --shadow-panel: 0 10px 26px rgba(30, 41, 59, 0.06);
  --radius: 8px;
  --font-family:
    system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--ink);
  background: linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 100%);
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 12px 0 22px;
}

.hero {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(30, 41, 59, 0.07);
}

.hero-topline,
.hero-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.hero-topline {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  margin-top: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(39, 100, 217, 0.18);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-title {
  font-size: 16px;
  font-weight: 750;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.connection-pill,
.hero-chip,
.quick-link,
.panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.connection-pill {
  color: var(--muted);
}

.connection-pill.is-success {
  background: var(--success-soft);
  border-color: rgba(15, 118, 110, 0.2);
  color: var(--success);
}

.connection-pill.is-error {
  background: var(--danger-soft);
  border-color: rgba(180, 35, 24, 0.18);
  color: var(--danger);
}

.hero-copy {
  max-width: 620px;
  display: grid;
  gap: 5px;
  padding-top: 2px;
}

.hero-kicker,
.panel-kicker {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-copy h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-region,
.hero-runtime {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.hero-runtime {
  max-width: 100%;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.hero-ipboard {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #f8fafc;
  background: linear-gradient(135deg, var(--ip-card) 0%, var(--ip-card-2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.hero-ipboard .metric-label,
.hero-ipboard .metric-clock {
  color: rgba(248, 250, 252, 0.7);
}

.metric-label,
.footer-label,
.panel-note {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.metric-ip-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.metric-ip {
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 800;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
}

.metric-clock {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
}

.hero-chips,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chips {
  margin-top: 8px;
}

.hero-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.88);
}

.quick-links {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.quick-link {
  color: var(--muted);
}

.quick-link:hover,
.quick-link:focus-visible,
.panel-action:hover,
.panel-action:focus-visible {
  border-color: rgba(39, 100, 217, 0.28);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.copy-button:hover,
.copy-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(30, 41, 59, 0.045);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel h2 {
  margin: 5px 0 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel-note {
  text-align: right;
  white-space: nowrap;
}

.panel-action {
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-color: rgba(39, 100, 217, 0.18);
}

.table-grid {
  display: grid;
  gap: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(110px, 145px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid rgba(23, 33, 43, 0.06);
}

.table-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.table-value {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.loading-state,
.error-state {
  padding: 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 650;
}

.loading-state {
  background: var(--success-soft);
  color: var(--success);
}

.error-state {
  background: var(--danger-soft);
  color: var(--danger);
}

.footer-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.footer-item {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.footer-item strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .content-grid,
  .footer-strip {
    grid-template-columns: 1fr;
  }

  .hero-main {
    grid-template-columns: 1fr;
  }

  .hero-ipboard {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 20px, 1240px);
    padding: 10px 0 18px;
  }

  .hero {
    padding: 12px;
  }

  .hero-topline,
  .panel-heading {
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .metric-ip-row {
    grid-template-columns: 1fr;
  }

  .metric-ip {
    font-size: 20px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-strip {
    grid-template-columns: 1fr;
  }
}
