:root {
  --bg: #080b0e;
  --bg-soft: #0b1015;
  --panel: #0e151b;
  --panel-2: #111a21;
  --panel-3: #162129;
  --line: #23313b;
  --line-soft: #17232b;
  --text: #e9eff3;
  --text-soft: #c3ced5;
  --muted: #8a9aa5;
  --faint: #62727d;
  --lime: #c7f464;
  --lime-soft: rgba(199, 244, 100, 0.14);
  --lime-line: rgba(199, 244, 100, 0.45);
  --amber: #ffba70;
  --amber-soft: rgba(255, 186, 112, 0.13);
  --red: #ff7878;
  --red-soft: rgba(255, 120, 120, 0.12);
  --cyan: #79d9e8;
  --cyan-soft: rgba(121, 217, 232, 0.12);
  --sans: "Inter", "SF Pro Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: #0a0d0f;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--lime);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime-line);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

svg {
  display: block;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 18% -5%, rgba(199, 244, 100, 0.09), transparent 65%),
    radial-gradient(ellipse 50% 45% at 88% 18%, rgba(121, 217, 232, 0.06), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 11, 14, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--lime);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--panel-2), var(--bg));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.16em;
}

.brand-text small {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--faint);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-btn:hover {
  color: var(--lime);
  border-color: var(--lime-line);
  background: var(--lime-soft);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 122px) 0 clamp(52px, 7vw, 92px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.status-dot,
.soft-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 244, 100, 0.1), 0 0 16px rgba(199, 244, 100, 0.55);
}

.soft-dot {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 10px rgba(199, 244, 100, 0.5);
}

.hero h1 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.15rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.062em;
}

.hero h1 .accent {
  color: var(--lime);
  text-shadow: 0 0 50px rgba(199, 244, 100, 0.14);
}

.hero-lede {
  max-width: 550px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-notes span {
  padding: 5px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-shell {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 33, 41, 0.55), rgba(10, 15, 19, 0.78));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.045);
}

.console-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 19px;
  background: linear-gradient(125deg, rgba(199, 244, 100, 0.32), transparent 34%, transparent 65%, rgba(121, 217, 232, 0.12));
  filter: blur(14px);
  opacity: 0.35;
}

.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 18px 18px 0 0;
  background: rgba(8, 12, 15, 0.6);
}

.console-label,
.console-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.console-hint {
  color: #596872;
}

.console {
  padding: 20px;
}

.scope-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
  transition: 160ms ease;
}

.scope-check:hover,
.scope-check:focus-within {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.scope-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.scope-check small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 10.5px;
}

.check-box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid #3a4a55;
  border-radius: 4px;
  background: var(--bg);
  color: #0b0e0d;
  transition: 150ms ease;
}

.check-box svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: 150ms ease;
}

.scope-check input:checked + .check-box {
  border-color: var(--lime);
  background: var(--lime);
}

.scope-check input:checked + .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.scope-check.attention {
  animation: nudge 0.4s ease;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 120, 120, 0.08);
}

.scope-error {
  margin: -8px 0 12px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.scope-error[hidden] {
  display: none;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: 160ms ease;
}

.search-input-wrap:focus-within {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px rgba(199, 244, 100, 0.08), 0 0 30px rgba(199, 244, 100, 0.04);
}

.type-pill {
  flex-shrink: 0;
  margin-left: 10px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: 150ms ease;
}

.type-pill.solid {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
}

.search-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 16px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.search-input-wrap input::placeholder {
  color: #50606b;
}

.run-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px;
  border: 1px solid var(--lime);
  border-radius: 10px;
  background: var(--lime);
  color: #0b0e0c;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: 160ms ease;
}

.run-btn:hover {
  background: #d6ff7c;
  box-shadow: 0 0 28px rgba(199, 244, 100, 0.18);
}

.run-btn:active {
  transform: translateY(1px);
}

.run-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.run-btn kbd {
  padding: 2px 5px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}

.examples > span {
  margin-right: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.examples button {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  transition: 150ms ease;
}

.examples button:hover {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

/* Provider strip */

.provider-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 15, 19, 0.62);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.provider-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 14px 0;
  animation: marquee 45s linear infinite;
}

.provider-track span {
  color: #53636e;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.provider-track i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #34434d;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Workspace */

.workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 80px;
  scroll-margin-top: 92px;
}

.run-rail {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 26, 33, 0.72), rgba(10, 15, 19, 0.64));
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.rail-head button {
  border: 0;
  background: transparent;
  color: #596a75;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.rail-head button:hover {
  color: var(--red);
}

.rail-list {
  min-height: 80px;
  max-height: 510px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.rail-empty {
  padding: 26px 17px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.rail-empty strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 500;
}

.rail-item {
  display: block;
  width: 100%;
  padding: 10px 10px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 140ms ease;
}

.rail-item:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.rail-item.active {
  border-color: var(--line);
  background: var(--panel-2);
}

.rail-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rail-item-target {
  overflow: hidden;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-item-time {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.rail-item-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
}

.rail-item-meta .mini-type {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

/* Results shell */

.results-panel {
  min-height: 520px;
}

.empty-state,
.loading-state,
.result {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 26, 33, 0.5), rgba(9, 14, 18, 0.7));
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 66px 28px 38px;
  text-align: center;
}

.radar {
  position: relative;
  width: 176px;
  height: 176px;
  margin-bottom: 26px;
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(199, 244, 100, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring.r1 { width: 56px; height: 56px; }
.radar-ring.r2 { width: 112px; height: 112px; }
.radar-ring.r3 { width: 168px; height: 168px; }

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(199, 244, 100, 0.1);
  transform: translate(-50%, -50%);
}

.radar::before { width: 168px; height: 1px; }
.radar::after { width: 1px; height: 168px; }

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(199, 244, 100, 0.85);
  transform: translate(-50%, -50%);
}

.radar-sweep {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 302deg, rgba(199, 244, 100, 0.03) 318deg, rgba(199, 244, 100, 0.27) 355deg, var(--lime) 360deg);
  mask-image: radial-gradient(circle, transparent 0 27%, #000 29%);
  animation: sweep 5s linear infinite;
}

@keyframes sweep {
  to { transform: rotate(360deg); }
}

.radar-blip {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(199, 244, 100, 0.9);
  animation: blink 5s ease-in-out infinite;
}

.radar-blip.b1 { top: 29%; left: 67%; animation-delay: 0.8s; }
.radar-blip.b2 { top: 66%; left: 24%; animation-delay: 2.3s; }
.radar-blip.b3 { top: 71%; left: 74%; animation-delay: 3.5s; }

@keyframes blink {
  0%, 12%, 100% { opacity: 0.15; }
  4%, 8% { opacity: 1; }
}

.empty-kicker {
  margin-bottom: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.empty-state h2 {
  margin-bottom: 9px;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.empty-copy {
  max-width: 500px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 13.5px;
}

.empty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 720px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
}

.empty-grid > div {
  padding: 16px;
  border-right: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.014);
}

.empty-grid > div:last-child {
  border-right: 0;
}

.empty-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.empty-grid strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.empty-grid p {
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.5;
}

/* Loading */

.loading-state {
  display: grid;
  justify-items: center;
  padding: 62px 24px;
}

.scan-frame {
  position: relative;
  width: min(100%, 560px);
  padding: 40px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(rgba(199, 244, 100, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 244, 100, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 22px 22px;
  overflow: hidden;
  text-align: center;
}

.scan-line {
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  box-shadow: 0 0 20px rgba(199, 244, 100, 0.35);
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 8%; opacity: 0.2; }
  50% { top: 90%; opacity: 1; }
}

.scan-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border-color: var(--lime);
  border-style: solid;
  opacity: 0.7;
}

.scan-corner.tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.scan-corner.tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.scan-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.scan-corner.br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.scan-label {
  margin-bottom: 14px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.scan-frame h2 {
  overflow: hidden;
  margin-bottom: 26px;
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.scan-steps span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 200ms ease;
}

.scan-steps span.active {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
}

.scan-steps span.done {
  border-color: rgba(199, 244, 100, 0.18);
  color: var(--muted);
}

.loading-note {
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 11px;
}

/* Result */

.result {
  padding: 22px;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

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

.result-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.result-heading h2 {
  overflow-wrap: anywhere;
  margin-bottom: 5px;
  font-size: clamp(24px, 3.8vw, 38px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.result-heading > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.result-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 150ms ease;
}

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

.btn:hover {
  border-color: var(--line);
  background: var(--panel-3);
  color: var(--text);
}

.btn.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: #0a0d0b;
  font-weight: 700;
}

.btn.primary:hover {
  background: #d6ff7c;
}

.btn.danger {
  border-color: rgba(255, 120, 120, 0.3);
  background: var(--red-soft);
  color: var(--red);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.stat {
  padding: 12px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.stat span {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat strong {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.stat.attention strong { color: var(--amber); }
.stat.bad strong { color: var(--red); }
.stat.good strong { color: var(--lime); }

.signal-panel {
  margin-bottom: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
}

.signal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.signal-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.signal-legend .sev {
  width: 5px;
  height: 5px;
  margin-left: 6px;
  border-radius: 50%;
}

.sev.attention { background: var(--amber); }
.sev.note { background: var(--cyan); }
.sev.info { background: var(--faint); }

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

.signal-item {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.signal-item:nth-child(even) { border-right: 0; }
.signal-item:nth-last-child(-n + 2) { border-bottom: 0; }

.signal-mark {
  flex-shrink: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--faint);
}

.signal-mark.attention { background: var(--amber); box-shadow: 0 0 10px rgba(255, 186, 112, 0.3); }
.signal-mark.note { background: var(--cyan); }
.signal-mark.info { background: var(--faint); }

.signal-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.signal-copy p {
  margin: 0;
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.45;
}

.error-panel {
  margin-bottom: 18px;
  padding: 13px;
  border: 1px solid rgba(255, 120, 120, 0.24);
  border-radius: 9px;
  background: var(--red-soft);
}

.error-panel > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.error-item {
  display: flex;
  gap: 9px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 120, 120, 0.1);
  color: var(--text-soft);
  font-size: 11px;
}

.error-item:first-of-type { border-top: 0; }

.error-item .source {
  flex-shrink: 0;
  min-width: 105px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
}

/* Cards */

#workbench,
#sources,
#method,
#resultsPanel {
  scroll-margin-top: 92px;
}

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

.card {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: rgba(15, 22, 28, 0.72);
  overflow: hidden;
}

.card.wide {
  grid-column: 1 / -1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
}

.card-title-wrap {
  min-width: 0;
}

.card-source {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
}

.card-status.empty::before { background: var(--faint); }
.card-status.attention::before { background: var(--amber); }
.card-status.error::before { background: var(--red); }

.card-body {
  padding: 13px 14px 14px;
}

.card-summary {
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.card-summary:last-child {
  margin-bottom: 0;
}

.kv {
  display: grid;
  gap: 0;
}

.kv-row {
  display: grid;
  grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
}

.kv-row:first-child { border-top: 0; }

.kv-key {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.kv-val {
  min-width: 0;
  color: var(--text-soft);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.kv-val.mono,
.mono {
  font-family: var(--mono);
  font-size: 10.5px;
}

.kv-val a {
  color: var(--lime);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.tag.lime {
  border-color: rgba(199, 244, 100, 0.24);
  background: var(--lime-soft);
  color: var(--lime);
}

.tag.amber {
  border-color: rgba(255, 186, 112, 0.25);
  background: var(--amber-soft);
  color: var(--amber);
}

.tag.red {
  border-color: rgba(255, 120, 120, 0.24);
  background: var(--red-soft);
  color: var(--red);
}

.tag.cyan {
  border-color: rgba(121, 217, 232, 0.22);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  transition: 140ms ease;
}

.chip-link:hover {
  border-color: var(--lime-line);
  background: var(--lime-soft);
  color: var(--lime);
  text-decoration: none;
}

.chip-link svg {
  width: 9px;
  height: 9px;
}

.mini-list {
  display: grid;
  gap: 0;
}

.mini-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
}

.mini-item:first-child { border-top: 0; }

.mini-item .label {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.mini-item .label strong {
  color: var(--text-soft);
  font-weight: 500;
}

.mini-item .value {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.profile-list {
  display: grid;
  gap: 7px;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.profile-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel-2);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-body {
  min-width: 0;
  flex: 1;
}

.profile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.profile-top strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-top span {
  flex-shrink: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.profile-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.profile-meta a {
  color: var(--lime);
}

.avatar {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
  background: var(--panel-2);
}

.mail-posture {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.posture {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.posture span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.posture strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
}

.posture.ok strong { color: var(--lime); }
.posture.warn strong { color: var(--amber); }
.posture.bad strong { color: var(--red); }

.raw {
  margin-top: 11px;
  border-top: 1px solid var(--line-soft);
}

.raw summary {
  padding-top: 9px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.raw summary:hover { color: var(--muted); }

.raw pre {
  max-height: 290px;
  overflow: auto;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #080c0f;
  color: #9fb0bb;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-note {
  padding: 8px 0 2px;
  color: var(--faint);
  font-size: 11px;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.result-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 10px;
}

.text-btn {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  cursor: pointer;
}

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

/* Content sections */

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 92px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-head h2,
.method-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.section-head > p:last-child,
.method-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.source-grid article {
  padding: 22px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.source-grid article:nth-child(3n) { border-right: 0; }
.source-grid article:nth-last-child(-n + 3) { border-bottom: 0; }

.source-index {
  display: block;
  margin-bottom: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.source-grid h3 {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}

.source-grid p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.source-grid code {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.method-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(32px, 7vw, 100px);
  align-items: start;
}

.method-list {
  display: grid;
}

.method-list > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line-soft);
}

.method-list > div:first-child { border-top: 0; }

.method-list > div > span {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
}

.method-list h3 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.method-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line-soft);
}

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

.footer-brand strong {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.footer-brand p {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 9.5px;
}

.footer-links {
  display: flex;
  gap: 17px;
  margin-left: auto;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-legal {
  max-width: 280px;
  margin: 0;
  color: #4f5f69;
  font-size: 9px;
  line-height: 1.5;
  text-align: right;
}

/* Modal */

.modal {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(3, 6, 8, 0.72);
  backdrop-filter: blur(6px);
}

.modal-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, var(--panel-2), var(--bg-soft));
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-head .eyebrow {
  margin-bottom: 5px;
  font-size: 8px;
}

.modal-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.field em {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  transition: 150ms ease;
}

.field input:focus {
  border-color: var(--lime-line);
  box-shadow: 0 0 0 3px rgba(199, 244, 100, 0.07);
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.5;
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  position: relative;
  flex-shrink: 0;
  width: 31px;
  height: 18px;
  margin-top: 1px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  transition: 150ms ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
  transition: 150ms ease;
}

.toggle input:checked + .toggle-track {
  border-color: var(--lime);
  background: var(--lime-soft);
}

.toggle input:checked + .toggle-track::after {
  left: 16px;
  background: var(--lime);
}

.toggle strong {
  display: block;
  color: var(--text-soft);
  font-size: 11.5px;
  font-weight: 500;
}

.toggle small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 9.5px;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 22px;
}

.modal-meta > div {
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.modal-meta span {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7.5px;
  text-transform: uppercase;
}

.modal-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Toast */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 320px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: rgba(255, 120, 120, 0.3);
  color: var(--red);
}

/* Utility */

[hidden] {
  display: none !important;
}

.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;
}

/* Responsive */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 64px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .console-shell {
    max-width: 760px;
  }

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

  .run-rail {
    position: static;
    order: 2;
  }

  .rail-list {
    display: flex;
    gap: 6px;
    max-height: none;
    overflow-x: auto;
    padding: 8px;
  }

  .rail-empty {
    padding: 14px;
  }

  .rail-item {
    flex: 0 0 210px;
  }

  .results-panel {
    order: 1;
  }

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

  .source-grid article:nth-child(3n) {
    border-right: 1px solid var(--line-soft);
  }

  .source-grid article:nth-child(2n) {
    border-right: 0;
  }

  .source-grid article:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line-soft);
  }

  .source-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 30px, var(--max));
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .site-header .icon-btn {
    margin-left: auto;
  }

  .hero,
  .workspace,
  .section,
  .site-footer {
    width: min(100% - 30px, var(--max));
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.4rem);
  }

  .console {
    padding: 14px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .run-btn {
    justify-content: center;
    padding: 12px 16px;
  }

  .console-hint {
    display: none;
  }

  .provider-track {
    animation-duration: 32s;
  }

  .workspace {
    padding-top: 26px;
    padding-bottom: 52px;
  }

  .result {
    padding: 15px;
  }

  .result-header {
    flex-direction: column;
    gap: 14px;
  }

  .result-actions {
    width: 100%;
  }

  .result-actions .btn {
    flex: 1;
  }

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

  .signal-list {
    grid-template-columns: 1fr;
  }

  .signal-item {
    border-right: 0;
  }

  .signal-item:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .signal-item:last-child {
    border-bottom: 0;
  }

  .signal-legend {
    display: none;
  }

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

  .empty-state {
    padding: 46px 18px 26px;
  }

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

  .empty-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .empty-grid > div:last-child {
    border-bottom: 0;
  }

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

  .source-grid article,
  .source-grid article:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .source-grid article:last-child {
    border-bottom: 0;
  }

  .method-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-links {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .footer-legal {
    margin-left: auto;
    text-align: left;
  }

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

@media (max-width: 460px) {
  .brand-text small {
    display: none;
  }

  .hero-notes span:nth-child(n + 3) {
    display: none;
  }

  .kv-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .mail-posture {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dynamic result elements */

.type-pill {
  appearance: none;
  cursor: pointer;
  font-family: var(--mono);
}

.type-pill:hover {
  border-color: var(--lime-line);
  color: var(--lime);
}

.card-source {
  text-decoration: none;
}

a.card-source:hover {
  color: var(--lime);
  text-decoration: underline;
}

.signal-copy small {
  display: block;
  margin-top: 3px;
  color: #52636e;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.rail-attention {
  color: var(--amber);
}

.record-group {
  padding: 8px 0;
  border-top: 1px solid var(--line-soft);
}

.record-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.record-type {
  margin-bottom: 5px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.tag.mono {
  font-family: var(--mono);
}

.host-block {
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}

.host-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.host-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.host-ip {
  color: var(--text);
  font-size: 12px;
}

.commit-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.commit {
  padding: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.commit-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 8.5px;
}

.commit-top strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commit-message {
  margin: 4px 0;
  color: var(--text-soft);
  font-size: 10.5px;
  line-height: 1.45;
}

.commit a {
  font-family: var(--mono);
  font-size: 8.5px;
}

.gravatar-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gravatar-body {
  min-width: 0;
  flex: 1;
}

.gravatar-name {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.profile-name {
  min-width: 0;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
}

.profile-name:hover {
  color: var(--lime);
}

.checked-row {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
}

.query-list {
  display: grid;
  margin: 5px 0 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}

.query-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.4fr) minmax(0, 1fr);
  gap: 10px;
  padding: 5px 8px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.014);
  font-size: 9px;
}

.query-row:first-child {
  border-top: 0;
}

.query-key {
  color: var(--cyan);
  overflow-wrap: anywhere;
}

.query-value {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card .raw pre {
  margin-bottom: 0;
}

@media (max-width: 460px) {
  .query-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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