/* ==========================================================================
   LUMEN — status.css
   部署检测 / Status page · 复用 base.css 的设计 token
   ========================================================================== */

/* ---------- Page shell --------------------------------------------------- */
.page-status {
  background: var(--ink-900);
}

.page-status main {
  position: relative;
  z-index: 1;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before {
  content: "";
  position: absolute;
  inset: -30% -10% -20% -10%;
  background:
    radial-gradient(42% 34% at 20% 4%, rgba(217, 189, 146, 0.13), transparent 68%),
    radial-gradient(36% 30% at 84% 0%, rgba(123, 107, 255, 0.09), transparent 70%),
    radial-gradient(56% 42% at 56% 102%, rgba(217, 189, 146, 0.07), transparent 72%);
  filter: blur(6px);
}

/* ---------- Top bar ------------------------------------------------------ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, rgba(8, 10, 17, 0.86), rgba(8, 10, 17, 0.52));
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}

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

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold);
}

.brand__word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  line-height: 1;
}

.brand__word sup {
  margin-left: 1px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: super;
  color: var(--gold);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.topbar__tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.topbar__back {
  font-size: 13px;
  color: var(--text-dim);
  padding-bottom: 2px;
}

.topbar__back:hover {
  color: var(--text);
}

.topbar__back svg {
  width: 13px;
  height: 13px;
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(46px, 7vw, 92px);
  padding-bottom: clamp(18px, 2.4vw, 28px);
}

.hero__eyebrow {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  gap: clamp(26px, 4.6vw, 72px);
  align-items: end;
}

.hero__title {
  font-size: clamp(2.45rem, 5.4vw, 4.55rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: var(--ivory);
  text-wrap: balance;
}

.hero__accent {
  display: block;
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(1.06rem, 1.9vw, 1.52rem);
  color: var(--gold);
  letter-spacing: 0.005em;
}

.hero__lead {
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--text-dim);
}

.hero__fine {
  margin-top: 20px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.nojs {
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px dashed rgba(217, 189, 146, 0.5);
  border-radius: 12px;
  font-size: 13px;
  color: var(--gold-soft);
}

/* ── Meta bar ── */
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  margin-top: clamp(32px, 4.6vw, 58px);
  padding: 13px clamp(15px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(1.06);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--state-soft);
  color: var(--state);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 0 3px var(--state-soft);
}

.status-pill[data-state="unknown"] .status-pill__dot,
.status-pill[data-state="pending"] .status-pill__dot {
  background: transparent;
  border: 1px dashed var(--state);
  box-shadow: none;
}

.meta-bar__last {
  color: var(--text-mute);
  letter-spacing: 0.14em;
}

.meta-bar__last [data-last-scan] {
  color: var(--text-dim);
  margin-left: 4px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  margin-left: auto;
}

.legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  line-height: 1;
}

.legend__item b {
  font-weight: 500;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.legend__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
}

.legend__dot--pass { background: var(--teal); }
.legend__dot--warn { background: var(--gold); }
.legend__dot--fail { background: var(--rose); }
.legend__dot--unknown {
  background: transparent;
  border: 1px dashed var(--text-mute);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  line-height: 1;
}

.live__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: live-pulse 2.6s var(--ease-soft) infinite;
}

@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63, 211, 193, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(63, 211, 193, 0); }
}

/* ---------- Sections ----------------------------------------------------- */
.panel-section {
  position: relative;
  padding-block: clamp(34px, 4.6vw, 58px);
}

.panel-section--env {
  padding-bottom: clamp(44px, 6vw, 76px);
}

.panel-section .section-head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.panel-section .section-head__note {
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 42ch;
}

.section-head__title .serif {
  margin-left: 0.16em;
}

/* ---------- State tokens ------------------------------------------------- */
[data-state="pass"] {
  --state: var(--teal);
  --state-soft: rgba(63, 211, 193, 0.13);
  --state-glow: rgba(63, 211, 193, 0.3);
}

[data-state="warn"] {
  --state: var(--gold);
  --state-soft: rgba(217, 189, 146, 0.15);
  --state-glow: rgba(217, 189, 146, 0.3);
}

[data-state="fail"] {
  --state: var(--rose);
  --state-soft: rgba(255, 143, 163, 0.14);
  --state-glow: rgba(255, 143, 163, 0.3);
}

[data-state="unknown"],
[data-state="pending"] {
  --state: var(--text-mute);
  --state-soft: rgba(160, 166, 178, 0.1);
  --state-glow: transparent;
}

/* ---------- Checks grid -------------------------------------------------- */
.checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.check {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 200px;
  padding: clamp(19px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018) 46%, rgba(255, 255, 255, 0.007));
  backdrop-filter: blur(16px) saturate(1.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  overflow: hidden;
  transition:
    transform 0.6s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.6s var(--ease);
}

.check::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--state-glow), transparent);
  opacity: 0.55;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.check:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 189, 146, 0.26);
  box-shadow:
    0 34px 80px -48px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(217, 189, 146, 0.05) inset;
}

.check:hover::after {
  opacity: 0.95;
}

.check--wide {
  grid-column: span 2;
  min-height: 236px;
}

.check__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: clamp(16px, 2vw, 22px);
}

.check__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--state);
  box-shadow: 0 0 0 4px var(--state-soft), 0 0 14px var(--state-glow);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.check[data-state="unknown"] .check__dot,
.check[data-state="pending"] .check__dot {
  background: transparent;
  border: 1px dashed var(--state);
  box-shadow: none;
}

.check__state {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--state);
  line-height: 1;
  transition: color 0.5s var(--ease);
}

.check__index {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(217, 189, 146, 0.48);
}

.check__name {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.check__en {
  margin-top: 7px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.check__value {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: auto;
  padding-top: clamp(20px, 2.2vw, 28px);
  transition: opacity 0.35s var(--ease);
}

.check__num {
  font-family: var(--font-mono);
  font-size: clamp(25px, 2.5vw, 33px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.check__unit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.check__note {
  margin-top: 11px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 48ch;
  transition: opacity 0.35s var(--ease);
}

/* Wide card · load metrics */
.load-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  margin-top: auto;
  padding-top: clamp(22px, 2.6vw, 32px);
  transition: opacity 0.35s var(--ease);
}

.load-metric {
  min-width: 0;
}

.load-metric__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.load-metric__label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.load-metric__val {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.load-metric .check__num {
  font-size: clamp(23px, 2.3vw, 29px);
}

.meter {
  position: relative;
  height: 2px;
  margin-top: 13px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter__fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.15s var(--ease);
}

.meter__fill[data-level="ok"] {
  background: linear-gradient(90deg, rgba(63, 211, 193, 0.16), var(--teal));
}

.meter__fill[data-level="warn"] {
  background: linear-gradient(90deg, rgba(217, 189, 146, 0.18), var(--gold));
}

.meter__fill[data-level="over"] {
  background: linear-gradient(90deg, rgba(255, 143, 163, 0.2), var(--rose));
}

.load-metric__budget {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
}

/* Scanning feedback */
.check.is-scanning {
  border-color: rgba(217, 189, 146, 0.24);
}

.check.is-scanning .check__value,
.check.is-scanning .load-metrics,
.check.is-scanning .check__note {
  opacity: 0.28;
}

.checks[aria-busy="true"] .check__dot {
  animation: status-pulse 1.3s var(--ease-soft) infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Environment -------------------------------------------------- */
.env {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(280px, 0.42fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: start;
}

.env__panel {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

.env__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.env__panel-tag {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.env-list {
  display: flex;
  flex-direction: column;
}

.env-row {
  display: grid;
  grid-template-columns: minmax(130px, 182px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 28px);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.env-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.env-row dt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.env-row__en {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  line-height: 1.3;
}

.env-row__zh {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  line-height: 1.4;
}

.env-row dd {
  margin: 0;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.env-row dd.is-mono,
.env-clock__time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.env-row dd[data-env="url"],
.env-row dd[data-env="ua"] {
  color: var(--text-dim);
}

.env-clock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.env-clock__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 189, 146, 0.14);
}

.env-clock__time {
  color: var(--gold-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--state-soft);
  color: var(--state);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.online-pill__dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--state);
}

.online-pill[data-state="unknown"] .online-pill__dot,
.online-pill[data-state="pending"] .online-pill__dot {
  background: transparent;
  border: 1px dashed var(--state);
}

/* Deploy aside */
.deploy {
  min-width: 0;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(217, 189, 146, 0.075), rgba(255, 255, 255, 0.012) 46%);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

.deploy .eyebrow {
  margin-bottom: 20px;
}

.deploy__name {
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ivory);
}

.deploy__sub {
  margin-top: 9px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.deploy__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(22px, 3vw, 30px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.deploy__list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-dim);
}

.deploy__list .mono {
  padding-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

/* Right rail of the environment block */
.env__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8vw, 22px);
  min-width: 0;
}

.notes {
  min-width: 0;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008));
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
}

.notes .eyebrow {
  margin-bottom: 18px;
}

.notes__list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notes__list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.notes__list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.notes__list .mono {
  padding-top: 2px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: rgba(217, 189, 146, 0.5);
}

.notes__list p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ---------- Toolbar ------------------------------------------------------ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(16px, 2.2vw, 24px);
  padding: clamp(13px, 1.8vw, 18px) clamp(15px, 2.2vw, 24px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toolbar__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 56ch;
}

.toolbar__note .mono {
  margin-right: 10px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar__btn .btn__label svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.btn--gold:focus-visible {
  outline-color: var(--ivory);
}

.btn[aria-busy="true"] {
  cursor: progress;
}

.btn.is-busy {
  opacity: 0.82;
}

.btn.is-busy .btn__label svg {
  animation: btn-spin 1s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Manual copy fallback */
.report-panel {
  margin-top: 16px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.028);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.report-panel[hidden] {
  display: none;
}

.report-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 14px;
}

.report-panel__head .mono {
  color: var(--gold);
}

.report-panel__hint {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.report-panel__area {
  display: block;
  width: 100%;
  min-height: 240px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(5, 6, 10, 0.62);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  resize: vertical;
}

.report-panel__area:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Footer ------------------------------------------------------- */
.foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(20px, 3.4vw, 40px);
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line-soft);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.foot__note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-mute);
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
}

.foot__meta .link-arrow {
  font-size: 12.5px;
  color: var(--text-dim);
}

.foot__copy {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--text-mute);
}

/* ---------- No-JS fallback ---------------------------------------------- */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1080px) {
  .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .hero__lead {
    max-width: 52ch;
  }

  .hero__fine {
    margin-top: 14px;
  }
}

@media (max-width: 960px) {
  .env {
    grid-template-columns: minmax(0, 1fr);
  }

  .legend {
    margin-left: 0;
  }

  .meta-bar {
    border-radius: 24px;
    justify-content: flex-start;
  }

  .meta-bar__last {
    margin-left: auto;
  }

  .live {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .topbar__tag {
    display: none;
  }

  .topbar__inner {
    height: 64px;
  }

  .hero {
    padding-top: clamp(36px, 8vw, 54px);
  }

  .check {
    min-height: 178px;
  }

  .check--wide {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .check--wide {
    grid-column: auto;
  }

  .meta-bar {
    padding: 13px 15px;
    gap: 12px 18px;
  }

  .status-pill {
    width: 100%;
    justify-content: center;
  }

  .meta-bar__last {
    margin-left: 0;
  }

  .env-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding: 12px 0;
  }

  .env-row dt {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .env-row__zh {
    font-size: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar__btn {
    width: 100%;
    justify-content: center;
  }

  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .load-metrics {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .hero__title {
    font-size: clamp(2.15rem, 10.4vw, 2.7rem);
  }

  .check__num {
    font-size: 27px;
  }

  .env__panel,
  .deploy,
  .notes {
    border-radius: var(--radius);
  }

  .deploy__name {
    font-size: 2.05rem;
  }

  .legend {
    gap: 8px 14px;
  }

  .legend__item {
    font-size: 9px;
  }

  .env-clock__time {
    font-size: 12px;
    white-space: normal;
  }
}

/* ---------- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .live__dot,
  .checks[aria-busy="true"] .check__dot {
    animation: none !important;
  }

  .check:hover {
    transform: none;
  }

  .meter__fill {
    transition: none;
  }
}
