:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --primary: #111827;
  --link: #2563eb;
  --focus: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 14px rgba(16, 24, 40, 0.06);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;

  --motion-fast: 150ms;
  --motion-med: 200ms;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

a {
  color: var(--link);
}

a,
button,
input,
select,
textarea {
  transition: all var(--motion-fast) ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.page {
  min-height: 100vh;
  padding: var(--space-8) var(--space-4);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topnav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
  background: var(--bg);
}

.topnav-left,
.nav-left {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.topnav-links,
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topnav-link,
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.topnav-link:hover,
.nav-link:hover {
  color: var(--text);
}

.topnav-link.is-active,
.nav-link.is-active {
  color: var(--text);
  font-weight: 600;
}

.topnav-center,
.nav-center {
  justify-self: center;
}

.topnav-right,
.nav-right {
  justify-self: end;
  min-height: 1px;
}

.intel-nav-link,
.nav-intel {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  outline: none;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}

.intel-nav-link svg,
.nav-intel svg {
  width: 26px;
  height: 26px;
}

.intel-nav-link:hover,
.nav-intel:hover {
  transform: scale(1.05);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.intel-nav-link:focus-visible,
.nav-intel:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.intel-nav-link.is-active,
.nav-intel.is-active {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.intel-nav-link[data-tooltip]::after,
.nav-intel[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(15, 18, 25, 0.92);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}

.intel-nav-link:hover::after,
.intel-nav-link:focus-visible::after,
.nav-intel:hover::after,
.nav-intel:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

.page-header {
  margin-bottom: var(--space-5);
}

.page-header h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.stack {
  display: grid;
  gap: var(--space-4);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-4);
}

.muted {
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  padding: var(--space-1) var(--space-3);
}

.btn,
.btn-secondary,
.input,
.select {
  font: inherit;
  color: inherit;
}

.btn,
.btn-secondary {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #f9fafb;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.btn:hover,
.btn-secondary:hover {
  background: #f3f4f6;
}

.btn:disabled,
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.input,
.select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: var(--space-2) var(--space-3);
}

@media (max-width: 720px) {
  .topnav {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: var(--space-2);
  }

  .topnav-left,
  .nav-left {
    justify-self: start;
  }

  .topnav-center,
  .nav-center {
    justify-self: end;
  }

  .topnav-right,
  .nav-right {
    grid-column: 1 / -1;
    justify-self: center;
    gap: 14px;
  }
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-4) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

thead th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: var(--space-3);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
/* Verify layout with PLG rail */
.verify-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
  margin-top: 14px;
}

.verify-main {
  min-width: 0;
}

.plg-rail {
  position: sticky;
  top: 16px;
  align-self: start;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: #f9fafb;
  padding: 12px;
}

.plg-heading {
  margin: 0 0 8px 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.plg-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  opacity: 0.9;
}

.plg-list li {
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.plg-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.plg-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.plg-mobile {
  display: none;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #f9fafb;
  padding: 12px;
}

@media (max-width: 900px) {
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .plg-rail {
    display: none;
  }

  .plg-mobile {
    display: block;
  }
}

.chip.active {
  background: #eff6ff;
  border-color: #93c5fd;
}
