:root {
  color-scheme: dark;
  --background: #08111f;
  --surface: rgba(14, 27, 47, 0.82);
  --surface-border: rgba(154, 185, 222, 0.18);
  --text: #edf4fc;
  --muted: #9caec3;
  --accent: #72e4c1;
  --accent-strong: #a8f4dd;
  --accent-dark: #062b25;
  --focus: #b6f6e2;
  --shadow: rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 14%, rgba(39, 128, 148, 0.22), transparent 34rem),
    radial-gradient(circle at 88% 76%, rgba(44, 146, 117, 0.18), transparent 30rem),
    linear-gradient(145deg, #07101d 0%, #0a1728 48%, #07131e 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.portal-card {
  position: relative;
  width: min(100%, 720px);
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 32px 90px var(--shadow);
  backdrop-filter: blur(24px);
}

.portal-card::after {
  position: absolute;
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(114, 228, 193, 0.16);
  border-radius: 50%;
  content: "";
}

.portal-card.compact {
  display: grid;
  max-width: 560px;
  gap: 18px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(114, 228, 193, 0.1);
}

.identity-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 32px;
  place-items: center;
  border: 1px solid rgba(114, 228, 193, 0.3);
  border-radius: 18px;
  color: var(--accent-strong);
  background: rgba(114, 228, 193, 0.08);
  font-size: 1.55rem;
  font-weight: 750;
}

.content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(2.65rem, 8vw, 5.2rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.compact h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
}

.summary {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.8;
}

.action-panel {
  display: grid;
  gap: 18px;
  margin-top: 48px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  width: fit-content;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 720;
}

.primary-action {
  padding: 0 24px;
  color: var(--accent-dark);
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(24, 189, 145, 0.2);
}

.primary-action:hover {
  background: var(--accent-strong);
}

.primary-action.is-disabled {
  cursor: not-allowed;
  color: #90a0b2;
  background: rgba(144, 160, 178, 0.15);
  box-shadow: none;
}

.secondary-action {
  padding: 0 20px;
  border: 1px solid var(--surface-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.action-panel .secondary-action {
  margin-top: -2px;
}

.security-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--surface-border);
  color: #71849a;
  font-size: 0.72rem;
  font-weight: 620;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  .shell {
    padding: 16px;
  }

  .portal-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .status-row {
    margin-bottom: 48px;
  }

  .identity-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .action-panel {
    margin-top: 36px;
  }

  .primary-action {
    width: 100%;
  }

  footer {
    margin-top: 48px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .portal-card {
    background: #0e1b2f;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .portal-card,
  .identity-mark,
  .secondary-action {
    border: 1px solid CanvasText;
  }

  .primary-action {
    border: 1px solid ButtonText;
  }
}
