:root {
  color-scheme: light;
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #e7ecf4;
  --bg-deep: #dfe6f0;
  --surface: #e7ecf4;
  --surface-2: #eef2f8;
  --inset: #e1e8f1;
  --ink: #131b2b;
  --ink-soft: #4d5a70;
  --ink-faint: #5f6b80;
  --line: rgba(19, 27, 43, 0.09);
  --line-strong: rgba(19, 27, 43, 0.16);
  --panel-border: rgba(255, 255, 255, 0.58);
  --row-hover: rgba(255, 255, 255, 0.42);

  --accent: #0b8f7c;
  --accent-strong: #0a7167;
  --accent-2: #0a74b4;
  --accent-soft: rgba(11, 143, 124, 0.12);
  --accent-ink: #ffffff;
  --primary-bg: linear-gradient(135deg, #0e9f8a 0%, #0b7fa6 55%, #0b6ea8 100%);
  --primary-shadow: 0 12px 26px rgba(11, 119, 158, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  --primary-shadow-hover: 0 16px 32px rgba(11, 119, 158, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.44);

  --valid: #0d7d65;
  --valid-soft: rgba(13, 125, 101, 0.12);
  --restricted: #95600a;
  --restricted-soft: rgba(149, 96, 10, 0.13);
  --dead: #b02a44;
  --dead-soft: rgba(176, 42, 68, 0.11);
  --unknown: #4d5f82;
  --unknown-soft: rgba(77, 95, 130, 0.12);

  --shadow-dark: rgba(151, 164, 186, 0.44);
  --shadow-light: rgba(255, 255, 255, 0.92);
  --raise: -10px -10px 24px var(--shadow-light), 12px 12px 30px var(--shadow-dark);
  --raise-sm: -5px -5px 13px var(--shadow-light), 7px 7px 16px var(--shadow-dark);
  --raise-xs: -3px -3px 8px var(--shadow-light), 4px 4px 9px var(--shadow-dark);
  --inset-shadow: inset 3px 3px 8px rgba(151, 164, 186, 0.5), inset -3px -3px 8px rgba(255, 255, 255, 0.85);
  --inset-deep: inset 5px 5px 12px rgba(151, 164, 186, 0.5), inset -5px -5px 12px rgba(255, 255, 255, 0.9);
  --glass: rgba(231, 236, 244, 0.78);
  --focus: 0 0 0 3px rgba(11, 143, 124, 0.35);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b2028;
  --bg-deep: #171b22;
  --surface: #1e242d;
  --surface-2: #232a34;
  --inset: #181d25;
  --ink: #eef2f9;
  --ink-soft: #b3becf;
  --ink-faint: #8d99ac;
  --line: rgba(238, 242, 249, 0.09);
  --line-strong: rgba(238, 242, 249, 0.17);
  --panel-border: rgba(255, 255, 255, 0.055);
  --row-hover: rgba(255, 255, 255, 0.035);

  --accent: #47d9b8;
  --accent-strong: #7cebd2;
  --accent-2: #5cc8f7;
  --accent-soft: rgba(71, 217, 184, 0.13);
  --accent-ink: #06231d;
  --primary-bg: linear-gradient(135deg, #47d9b8 0%, #3fc3cf 55%, #5cc8f7 100%);
  --primary-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --primary-shadow-hover: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.42);

  --valid: #56e2c1;
  --valid-soft: rgba(86, 226, 193, 0.13);
  --restricted: #f1bb62;
  --restricted-soft: rgba(241, 187, 98, 0.14);
  --dead: #ff8499;
  --dead-soft: rgba(255, 132, 153, 0.13);
  --unknown: #9fb2d1;
  --unknown-soft: rgba(159, 178, 209, 0.13);

  --shadow-dark: rgba(0, 0, 0, 0.56);
  --shadow-light: rgba(255, 255, 255, 0.045);
  --raise: -8px -8px 20px var(--shadow-light), 12px 12px 28px var(--shadow-dark);
  --raise-sm: -4px -4px 11px var(--shadow-light), 7px 7px 15px var(--shadow-dark);
  --raise-xs: -2px -2px 6px var(--shadow-light), 4px 4px 9px var(--shadow-dark);
  --inset-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.48), inset -1px -1px 2px rgba(255, 255, 255, 0.035);
  --inset-deep: inset 5px 5px 12px rgba(0, 0, 0, 0.5), inset -1px -1px 2px rgba(255, 255, 255, 0.04);
  --glass: rgba(27, 32, 40, 0.76);
  --focus: 0 0 0 3px rgba(71, 217, 184, 0.34);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

section[id] {
  scroll-margin-top: 92px;
}

body {
  min-width: 300px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(58rem 38rem at 8% -12%, rgba(14, 159, 154, 0.14), transparent 62%),
    radial-gradient(48rem 34rem at 102% 4%, rgba(14, 116, 144, 0.11), transparent 60%),
    radial-gradient(42rem 32rem at 50% 112%, rgba(36, 201, 168, 0.08), transparent 62%);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(58rem 38rem at 8% -12%, rgba(71, 217, 184, 0.08), transparent 62%),
    radial-gradient(48rem 34rem at 102% 4%, rgba(92, 200, 247, 0.07), transparent 60%),
    radial-gradient(42rem 32rem at 50% 112%, rgba(71, 217, 184, 0.05), transparent 62%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
}

button,
textarea,
summary {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  display: block;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.page-shell {
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding-top: 14px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--raise-sm);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 14px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 6px 10px rgba(11, 110, 168, 0.22));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-5deg) scale(1.04);
}

.brand-word {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-dot {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-cluster {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-xs);
}

.icon-btn,
.theme-btn,
.rail-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-btn {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn.is-active {
  color: var(--accent);
}

.icon-btn.is-active svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.cluster-divider {
  width: 1px;
  height: 20px;
  margin: 0 1px;
  background: var(--line);
}

.theme-btn {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-sm);
  color: var(--ink-soft);
  transition: box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.theme-btn:active {
  box-shadow: var(--inset-shadow);
  transform: translateY(0);
}

.theme-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.theme-face svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-face--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-face--sun {
  opacity: 0;
  transform: rotate(-60deg) scale(0.6);
}

[data-theme="dark"] .theme-face--moon {
  opacity: 0;
  transform: rotate(60deg) scale(0.6);
}

[data-theme="dark"] .theme-face--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 8vw, 88px) 0 clamp(38px, 5vw, 58px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.eyebrow-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.eyebrow-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.4;
  animation: ping 2.4s ease-out infinite;
}

.hero h1 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(2.55rem, 5.2vw, 4.2rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  background: linear-gradient(100deg, var(--accent-strong), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero h1 em::after {
  position: absolute;
  right: 0.04em;
  bottom: -0.12em;
  left: 0.04em;
  height: 0.07em;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), transparent 94%);
  opacity: 0.38;
}

.lede {
  max-width: 32em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  line-height: 1.85;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.scan-card {
  position: relative;
  width: min(100%, 356px);
  padding: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: linear-gradient(148deg, var(--surface-2), var(--surface) 58%, var(--bg-deep));
  box-shadow: var(--raise);
  transform: rotate(-2.4deg);
  animation: float 8s ease-in-out infinite alternate;
}

.scan-card::before {
  position: absolute;
  top: 8px;
  right: 28px;
  left: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

[data-theme="dark"] .scan-card::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.scan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}

.scan-label {
  color: var(--ink-faint);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.scan-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--valid);
  box-shadow: 0 0 0 4px var(--valid-soft);
  animation: breathe 2s ease-in-out infinite;
}

.scan-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 10px;
  border-radius: 13px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.scan-row + .scan-row {
  margin-top: 2px;
}

.scan-row:nth-child(odd) {
  background: var(--row-hover);
}

.scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--unknown);
}

.scan-row[data-tone="valid"] .scan-dot {
  background: var(--valid);
  box-shadow: 0 0 0 3px var(--valid-soft);
}

.scan-row[data-tone="restricted"] .scan-dot {
  background: var(--restricted);
  box-shadow: 0 0 0 3px var(--restricted-soft);
}

.scan-row[data-tone="dead"] .scan-dot {
  background: var(--dead);
  box-shadow: 0 0 0 3px var(--dead-soft);
}

.scan-host {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-code {
  color: var(--ink-faint);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.scan-row[data-tone="valid"] .scan-code {
  color: var(--valid);
}

.scan-row[data-tone="restricted"] .scan-code {
  color: var(--restricted);
}

.scan-row[data-tone="dead"] .scan-code {
  color: var(--dead);
}

.scan-meter {
  height: 8px;
  margin: 18px 4px 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--inset);
  box-shadow: var(--inset-shadow);
}

.scan-meter span {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-soft);
}

.scan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  color: var(--ink-faint);
  font-size: 10.5px;
}

.scan-time {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.orbit-chip {
  position: absolute;
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-xs);
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.orbit-chip--one {
  top: 8%;
  right: 1%;
  transform: rotate(5deg);
}

.orbit-chip--two {
  bottom: 10%;
  left: 0;
  color: var(--accent-strong);
  transform: rotate(-6deg);
}

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: linear-gradient(148deg, var(--surface-2), var(--surface) 62%, var(--bg-deep));
  box-shadow: var(--raise);
}

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.panel-kicker {
  margin: 0 0 7px;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.input-meta {
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink-faint);
  font-size: 12px;
  white-space: nowrap;
  background: var(--inset);
  box-shadow: var(--inset-shadow);
}

.input-meta strong {
  color: var(--accent-strong);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

#urlInput {
  width: 100%;
  min-height: 194px;
  margin-top: 20px;
  padding: 18px 20px;
  resize: vertical;
  border: 1px solid transparent;
  border-radius: 18px;
  outline: none;
  background: var(--inset);
  box-shadow: var(--inset-deep), 0 0 0 1px var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#urlInput::placeholder {
  color: var(--ink-faint);
  opacity: 0.72;
}

#urlInput:focus-visible {
  border-color: transparent;
  outline: none;
  box-shadow: var(--inset-deep), 0 0 0 2px var(--accent), var(--focus);
}

.input-hint,
.input-limit {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 2px 0;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.5;
}

.input-hint svg,
.report-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--inset);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.input-limit {
  color: var(--dead);
}

.input-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.soft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--soft {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-xs);
  color: var(--ink-soft);
}

.btn--soft:hover {
  color: var(--ink);
  box-shadow: var(--raise-sm);
  transform: translateY(-1px);
}

.btn--soft:active {
  box-shadow: var(--inset-shadow);
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-faint);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.btn--primary {
  background: var(--primary-bg);
  box-shadow: var(--primary-shadow);
  color: var(--accent-ink);
}

[data-theme="light"] .btn--primary {
  color: #ffffff;
}

.btn--primary:hover {
  box-shadow: var(--primary-shadow-hover);
  transform: translateY(-1px);
}

.btn--primary:active {
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.22);
  transform: translateY(1px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none !important;
}

.btn--soft:disabled {
  box-shadow: var(--raise-xs);
}

.btn--launch {
  min-width: 196px;
  height: 52px;
  padding: 0 18px 0 20px;
  border-radius: 16px;
  font-size: 14px;
}

.btn--launch kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-left: 2px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.6;
}

.btn--sm {
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 12.5px;
}

.btn--sm svg {
  width: 15px;
  height: 15px;
}

.btn--tiny {
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11.5px;
}

.btn--tiny:hover {
  background: var(--dead-soft);
  color: var(--dead);
}

.btn--danger {
  background: var(--dead-soft);
  color: var(--dead);
  box-shadow: inset 0 0 0 1px rgba(176, 42, 68, 0.16);
}

[data-theme="dark"] .btn--danger {
  box-shadow: inset 0 0 0 1px rgba(255, 132, 153, 0.2);
}

.btn--danger:hover:not(:disabled) {
  background: var(--dead);
  color: var(--bg);
}

.progress {
  margin-top: 20px;
  padding: 15px 16px;
  border-radius: 16px;
  background: var(--inset);
  box-shadow: var(--inset-deep), 0 0 0 1px var(--line);
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

#progressPct {
  color: var(--accent-strong);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 8px;
  margin: 10px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 164, 186, 0.22);
  box-shadow: var(--inset-shadow);
}

[data-theme="dark"] .progress-track {
  background: rgba(0, 0, 0, 0.28);
}

.progress-bar {
  position: relative;
  width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.35s ease;
}

.progress-bar::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: translateX(-100%);
  animation: sweep 1.5s linear infinite;
}

.report-panel {
  margin-top: 30px;
}

.report-head {
  align-items: flex-start;
}

.report-head h2 {
  font-size: 25px;
}

.report-sub {
  margin: 7px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  user-select: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.menu[open] .chevron {
  transform: rotate(180deg);
}

.menu-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 18px 45px rgba(19, 27, 43, 0.2), var(--raise-xs);
}

[data-theme="dark"] .menu-pop {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), var(--raise-xs);
}

.menu-pop button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12.5px;
  text-align: left;
}

.menu-pop button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-pop button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 15px 15px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-xs);
  overflow: hidden;
}

.stat::before {
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  content: "";
  border-radius: 0 0 2px 2px;
  background: var(--stat-tone, var(--line));
  opacity: 0.55;
}

.stat-label {
  color: var(--ink-faint);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.stat strong {
  color: var(--stat-tone, var(--ink));
  font-size: 30px;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.stat-note {
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat--total {
  --stat-tone: var(--accent);
}

.stat--valid {
  --stat-tone: var(--valid);
}

.stat--restricted {
  --stat-tone: var(--restricted);
}

.stat--dead {
  --stat-tone: var(--dead);
}

.stat--unknown {
  --stat-tone: var(--unknown);
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 13px;
  background: var(--inset);
  box-shadow: var(--inset-shadow);
}

.filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 33px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.filters button:hover {
  color: var(--ink);
}

.filters button[aria-pressed="true"] {
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-xs);
  color: var(--ink);
}

.filters button span {
  color: var(--ink-faint);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.filters button[aria-pressed="true"] span {
  color: var(--accent-strong);
}

.results {
  display: flex;
  flex-direction: column;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}

.result:hover {
  background: var(--row-hover);
}

.result[data-status="pending"] {
  opacity: 0.66;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-width: 62px;
  height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--unknown-soft);
  color: var(--unknown);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.result[data-status="valid"] .status-badge {
  background: var(--valid-soft);
  color: var(--valid);
}

.result[data-status="restricted"] .status-badge {
  background: var(--restricted-soft);
  color: var(--restricted);
}

.result[data-status="dead"] .status-badge {
  background: var(--dead-soft);
  color: var(--dead);
}

.result[data-status="pending"] .status-dot {
  animation: breathe 1.1s ease-in-out infinite;
}

.result-body {
  min-width: 0;
}

.result-url {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-decoration: none;
  transition: color 0.16s ease;
}

a.result-url:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.result[data-status="pending"] .result-url {
  color: var(--ink-soft);
}

.result-meta {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result[data-status="dead"] .result-meta {
  color: var(--dead);
}

.result[data-status="restricted"] .result-meta {
  color: var(--restricted);
}

.result-actions {
  display: flex;
  gap: 6px;
}

.row-btn {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: var(--raise-xs);
  color: var(--ink-faint);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.row-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-btn:hover {
  color: var(--accent-strong);
  box-shadow: var(--raise-sm);
  transform: translateY(-1px);
}

.row-btn:active {
  box-shadow: var(--inset-shadow);
  transform: translateY(0);
}

.result[data-status="pending"] .row-btn {
  pointer-events: none;
  opacity: 0.38;
}

.row-btn.is-copied {
  color: var(--valid);
}

.empty-filter {
  padding: 30px 10px;
  color: var(--ink-faint);
  font-size: 13px;
  text-align: center;
}

.report-note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.65;
}

.report-note svg {
  margin-top: 2px;
  color: var(--accent-strong);
}

.report-note p {
  margin: 0;
}

.report-note strong {
  color: var(--ink);
}

.guide {
  margin-top: 30px;
}

.guide details {
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
}

.guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.guide summary::-webkit-details-marker {
  display: none;
}

.guide summary strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
}

.guide summary small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 11px;
}

.guide .chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.guide details[open] .chevron {
  transform: rotate(180deg);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 0 18px;
}

.guide-grid article {
  padding: 14px;
  border-radius: 14px;
  background: var(--row-hover);
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 650;
}

.guide-badge--valid {
  background: var(--valid-soft);
  color: var(--valid);
}

.guide-badge--restricted {
  background: var(--restricted-soft);
  color: var(--restricted);
}

.guide-badge--dead {
  background: var(--dead-soft);
  color: var(--dead);
}

.guide-badge--unknown {
  background: var(--unknown-soft);
  color: var(--unknown);
}

.guide-grid p {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding: 20px 2px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 11.5px;
}

.site-footer p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.footer-mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.footer-links {
  flex: 0 0 auto;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.scroll-rail {
  position: fixed;
  top: 50%;
  right: max(12px, calc((100vw - 1120px) / 2 - 58px));
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--raise-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

.rail-btn {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-faint);
  transition: color 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.rail-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.rail-btn:disabled {
  cursor: default;
  opacity: 0.28;
}

.rail-divider {
  width: 18px;
  height: 1px;
  background: var(--line);
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(90vw, 460px);
  padding: 12px 17px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 16px 38px rgba(19, 27, 43, 0.2), var(--raise-xs);
  color: var(--ink);
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

[data-theme="dark"] .toast {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5), var(--raise-xs);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--valid);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast[data-type="error"] .toast-icon {
  stroke: var(--dead);
}

.toast[data-type="info"] .toast-icon {
  stroke: var(--accent-strong);
}

@keyframes ping {
  0% {
    opacity: 0.45;
    transform: scale(0.6);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes float {
  from {
    transform: translateY(-5px) rotate(-2.4deg);
  }
  to {
    transform: translateY(7px) rotate(-1.1deg);
  }
}

@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1180px) {
  .scroll-rail {
    top: auto;
    right: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
    flex-direction: row;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .scroll-rail.is-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .rail-divider {
    width: 1px;
    height: 18px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 52px;
  }

  .hero h1 {
    max-width: 13em;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-art .scan-card {
    animation: none;
    transform: rotate(-1.4deg);
  }

  .orbit-chip--one {
    right: 8%;
  }

  .orbit-chip--two {
    left: 8%;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 36px, 1080px);
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 10px;
  }

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

  .report-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-left: 12px;
  }

  .brand-word {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .theme-btn {
    width: 44px;
    height: 44px;
  }

  .panel {
    border-radius: 24px;
  }

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

  .soft-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .soft-actions .btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .btn--launch {
    width: 100%;
  }

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

  .filters {
    justify-content: space-between;
    width: 100%;
  }

  .filters button {
    padding: 0 8px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat--total {
    grid-column: span 2;
  }

  .result {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px 12px;
    padding: 14px 6px;
  }

  .result .status-badge {
    grid-row: 1;
    grid-column: 1;
  }

  .result .result-actions {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
  }

  .result .result-body {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .result-meta {
    -webkit-line-clamp: 3;
  }

  .guide {
    margin-top: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 78px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 24px);
    padding-top: 10px;
  }

  .site-header {
    top: 10px;
    gap: 8px;
    padding: 8px 8px 8px 10px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand {
    gap: 8px;
  }

  .brand-word {
    font-size: 17px;
  }

  .icon-cluster {
    padding: 2px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .theme-btn {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.9rem);
  }

  .lede {
    margin-top: 18px;
  }

  .hero-art {
    min-height: 270px;
  }

  .scan-card {
    padding: 18px;
    border-radius: 23px;
  }

  .scan-row {
    padding: 9px 8px;
    font-size: 11px;
  }

  .orbit-chip {
    display: none;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .input-meta {
    align-self: flex-start;
  }

  #urlInput {
    min-height: 170px;
    padding: 15px 16px;
    font-size: 12.5px;
  }

  .soft-actions {
    grid-template-columns: 1fr 1fr;
  }

  .soft-actions .btn:last-child {
    grid-column: span 2;
  }

  .stats {
    gap: 8px;
  }

  .stat {
    padding: 13px 13px 12px;
  }

  .stat strong {
    font-size: 26px;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters button {
    justify-content: center;
  }

  .report-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .report-actions .btn--sm {
    justify-content: center;
  }

  .menu-pop {
    right: 0;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    bottom: max(76px, env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 400px) {
  .btn--launch kbd {
    display: none;
  }

  .stat-note {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .brand-word {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
