:root {
  --bg: #08131f;
  --panel: rgba(8, 19, 31, 0.78);
  --line: rgba(153, 204, 255, 0.22);
  --text: #ecf5ff;
  --muted: #a7bdd7;
  --accent: #7ad3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(19, 92, 163, 0.35), transparent 38%),
    linear-gradient(160deg, #08131f, #0b1f33 56%, #071018);
  min-height: 100vh;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero,
.panel,
.metric-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.hero,
.panel {
  padding: 24px;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.four-up {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.two-up {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 600;
}

.lead {
  margin: 12px 0 0;
  line-height: 1.7;
  color: var(--muted);
}

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

.inline-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted);
}

input,
button {
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid rgba(153, 204, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
}

button {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(16, 73, 123, 0.92), rgba(9, 44, 76, 0.92));
  color: var(--text);
  padding: 12px 16px;
  cursor: pointer;
}

.metric-card {
  padding: 18px 20px;
}

.metric-label {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
}

.metric-card strong {
  font-size: 32px;
}

.output {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(153, 204, 255, 0.18);
  min-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.list {
  display: grid;
  gap: 10px;
}

.tenant-card,
.link-card {
  border: 1px solid rgba(153, 204, 255, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.tenant-card strong {
  display: block;
  margin-bottom: 8px;
}

.link-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.link-card {
  text-decoration: none;
  color: var(--text);
  text-align: center;
}
