/* ==========================================================================
   TagsMark — design system
   Dark, quiet, editorial. One signal colour, used sparingly.
   ========================================================================== */

:root {
  --bg: #070809;
  --bg-soft: #0a0c0e;
  --panel: #0d1013;
  --panel-2: #11151a;
  --panel-3: #161b21;
  --line: #1c2229;
  --line-strong: #2a323c;

  --text: #f2f5f7;
  --text-2: #c6cdd5;
  --muted: #8b949f;
  --dim: #737d88;

  --accent: #d9ff57;
  --accent-dim: #b6d63f;
  --accent-soft: rgba(217, 255, 87, 0.1);
  --accent-line: rgba(217, 255, 87, 0.26);

  --live: #6ff0ad;
  --live-soft: rgba(111, 240, 173, 0.09);
  --dead: #ff8080;
  --dead-soft: rgba(255, 128, 128, 0.09);
  --warn: #f2c85c;

  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1180px;
  --header-h: 72px;

  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 2px 0 rgba(255, 255, 255, 0.02) inset;
  --shadow-menu: 0 24px 60px -18px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -240px, rgba(217, 255, 87, 0.075), transparent 62%),
    radial-gradient(760px 480px at 92% -120px, rgba(96, 255, 186, 0.035), transparent 65%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.022;
  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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
  background: var(--accent);
  color: #0a0c02;
}

img,
svg {
  display: block;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #232a32;
  border-radius: 99px;
  border: 3px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: #333d48;
}

/* --------------------------------------------------------------------------
   primitives
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 28px;
}

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

.icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

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

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217, 255, 87, 0.45);
  animation: pulse 2.6s ease-out infinite;
  flex: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 255, 87, 0.35); }
  60%, 100% { box-shadow: 0 0 0 7px rgba(217, 255, 87, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

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

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

.btn.primary {
  height: 44px;
  padding: 0 20px;
  border-color: transparent;
  background: var(--accent);
  color: #0a0c02;
  font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(217, 255, 87, 0.55);
}

.btn.primary:hover {
  background: #e2ff75;
  border-color: transparent;
  box-shadow: 0 14px 34px -12px rgba(217, 255, 87, 0.65);
  transform: translateY(-1px);
}

.btn.primary .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
  transition: transform 0.2s ease;
}

.btn.primary:hover .icon {
  transform: translateX(2px);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn.ghost:hover {
  background: var(--panel-2);
  color: var(--text);
}

.btn.small {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}

.btn.accent-ghost {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
}

.btn.accent-ghost:hover {
  background: rgba(217, 255, 87, 0.16);
  border-color: rgba(217, 255, 87, 0.45);
  color: var(--accent);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

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

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-color: #3c4652;
  border-radius: 5px;
  background: #12161b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #0a0c02;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 9, 0.74);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

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

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

.brand-word {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text);
}

.brand-slash {
  color: var(--accent);
  margin-inline: 1px;
  font-weight: 400;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
  margin-right: auto;
}

.desktop-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 0.18s ease, background 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

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

.source-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(13, 16, 19, 0.7);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(111, 240, 173, 0.6);
}

.menu-btn {
  display: none;
}

.mobile-nav {
  display: none;
  padding: 8px 28px 20px;
  border-top: 1px solid var(--line);
  background: rgba(7, 8, 9, 0.96);
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
}

.mobile-nav a.is-active {
  color: var(--accent);
}

.mobile-note {
  display: block;
  margin-top: 16px;
  color: var(--dim);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */

.view {
  display: block;
}

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

.hero h1 {
  max-width: 920px;
  margin-top: 22px;
  font-size: clamp(42px, 6.1vw, 72px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.02em;
  padding-right: 0.03em;
}

.hero-sub {
  max-width: 570px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}

.reveal {
  animation: rise 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero h1.reveal { animation-delay: 0.05s; }
.hero-sub.reveal { animation-delay: 0.11s; }
.search-console.reveal { animation-delay: 0.17s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   search console
   -------------------------------------------------------------------------- */

.search-console {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent 32%),
    var(--panel);
  box-shadow: var(--shadow-lg);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080a0c;
}

.tab {
  position: relative;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

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

.tab.is-active {
  background: #1a2027;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.055) inset;
}

.tab.is-active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.kbd-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.kbd-hint span {
  margin-left: 3px;
}

.console-body {
  padding: 22px 22px 18px;
}

.console-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.console-label {
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.console-note {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.line-count {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

.query-input {
  display: block;
  width: 100%;
  min-height: 168px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080a0c;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  caret-color: var(--accent);
  resize: vertical;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.query-input::placeholder {
  color: #5d6771;
  opacity: 1;
}

.query-input:hover {
  border-color: #2a323c;
}

.query-input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: #090b0d;
  box-shadow: 0 0 0 3px rgba(217, 255, 87, 0.075);
}

.query-input.is-invalid {
  border-color: rgba(255, 128, 128, 0.5);
}

.console-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 128, 128, 0.2);
  border-radius: 8px;
  background: var(--dead-soft);
  color: #ffb1b1;
  font-size: 12.5px;
  line-height: 1.5;
}

.console-error .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.console-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.match-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080a0c;
  flex: none;
}

.match-toggle button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.match-toggle button:hover {
  color: var(--text-2);
}

.match-toggle button[aria-pressed="true"] {
  background: var(--panel-3);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.mode-hint {
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.4;
}

.search-btn {
  margin-left: auto;
  min-width: 128px;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.8px solid rgba(10, 12, 2, 0.25);
  border-top-color: #0a0c02;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.search-btn.is-loading .btn-spinner {
  display: inline-block;
}

.search-btn.is-loading .btn-label {
  opacity: 0.75;
}

.search-btn.is-loading .icon {
  display: none;
}

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

.examples {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.examples-label {
  margin-right: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chip {
  height: 27px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.chip:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   results
   -------------------------------------------------------------------------- */

.results {
  margin-top: 64px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.results-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.results-title h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.results-meta {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.results-meta strong {
  color: var(--muted);
  font-weight: 400;
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-search {
  position: relative;
  display: flex;
  align-items: center;
}

.inline-search .icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--dim);
  pointer-events: none;
}

.inline-search input {
  width: 220px;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12.5px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.inline-search input::placeholder {
  color: var(--dim);
}

.inline-search input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(217, 255, 87, 0.06);
}

.results-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.filter {
  position: relative;
}

.filter > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.filter > summary:hover {
  border-color: var(--line-strong);
  color: var(--text-2);
}

.filter > summary .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.18s ease;
}

.filter[open] > summary {
  border-color: var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
}

.filter[open] > summary .icon {
  transform: rotate(180deg);
}

.filter-value {
  color: var(--text-2);
  font-weight: 500;
}

.filter.is-active > summary {
  border-color: var(--accent-line);
  background: rgba(217, 255, 87, 0.055);
  color: var(--accent);
}

.filter.is-active .filter-value {
  color: var(--accent);
}

.filter-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: 216px;
  max-width: calc(100vw - 32px);
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0f1317;
  box-shadow: var(--shadow-menu);
  animation: menu-in 0.14s ease both;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.filter-option .filter-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
}

.filter-option[aria-checked="true"] {
  color: var(--text);
}

.filter-option[aria-checked="true"] .filter-check {
  opacity: 1;
}

.filter-count {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}

.toolbar-spacer {
  flex: 1 1 12px;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  margin-inline: 3px;
  background: var(--line);
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.table-scroll {
  max-height: min(70vh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
}

.results-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
}

.results-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #0b0e11;
  text-align: left;
  white-space: nowrap;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.16s ease;
}

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

.sort-btn.is-sorted {
  color: var(--text-2);
}

.sort-ind {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sort-btn.is-sorted .sort-ind {
  opacity: 1;
}

.sort-btn.is-asc .sort-ind {
  transform: rotate(180deg);
}

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

.results-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #171c22;
  vertical-align: middle;
}

.results-table tbody tr {
  transition: background 0.14s ease;
}

.results-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.col-serial { width: 138px; }
.col-status { width: 106px; }
.col-type { width: 118px; }
.col-filed { width: 138px; }
.col-registered { width: 148px; }
.col-action { width: 54px; }

.serial-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.serial-link {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.serial-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-line);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.copy-btn .icon {
  width: 12px;
  height: 12px;
}

.results-table tbody tr:hover .copy-btn,
.copy-btn:focus-visible {
  opacity: 1;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.mark-name {
  display: block;
  max-width: 420px;
  overflow: hidden;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.status .dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: currentColor;
}

.status-live {
  border-color: rgba(111, 240, 173, 0.17);
  background: var(--live-soft);
  color: var(--live);
}

.status-dead {
  border-color: rgba(255, 128, 128, 0.17);
  background: var(--dead-soft);
  color: var(--dead);
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border: 1px solid #242c35;
  border-radius: 5px;
  background: #131820;
  color: #aeb8c2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  line-height: 1;
}

.type-chip .icon {
  width: 12px;
  height: 12px;
  color: #77828e;
}

button.type-chip {
  cursor: zoom-in;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

button.type-chip:hover {
  border-color: var(--accent-line);
  background: rgba(217, 255, 87, 0.06);
  color: var(--accent);
}

button.type-chip:hover .icon {
  color: var(--accent);
}

.cell-date {
  color: #a9b2bc;
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.date-empty {
  color: #3f4852;
}

.row-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.row-link .icon {
  width: 14px;
  height: 14px;
}

.results-table tbody tr:hover .row-link,
.row-link:focus-visible {
  opacity: 1;
}

.row-link:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--accent);
}

.results-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #0b0e11;
}

.foot-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.foot-info strong {
  color: var(--muted);
  font-weight: 400;
}

.foot-cache {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.page-btn.is-current {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-btn .icon {
  width: 13px;
  height: 13px;
}

.page-prev .icon {
  transform: rotate(180deg);
}

.page-ellipsis {
  padding: 0 2px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10.5px;
}

.page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
}

.page-size select {
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

.page-size select:focus {
  outline: none;
  border-color: var(--accent-line);
}

/* empty / error / loading */

.empty-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 64px 24px;
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--dim);
}

.empty-icon .icon {
  width: 18px;
  height: 18px;
}

.empty-state h3,
.error-state h3 {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 500;
}

.empty-state p,
.error-state p {
  max-width: 380px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.6;
}

.empty-state .btn,
.error-state .btn {
  margin-top: 8px;
}

.error-state .empty-icon {
  border-color: rgba(255, 128, 128, 0.18);
  background: var(--dead-soft);
  color: var(--dead);
}

.skeleton-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.skeleton-head {
  height: 42px;
  border-bottom: 1px solid var(--line);
  background: #0b0e11;
}

.skeleton-row {
  height: 53px;
  border-bottom: 1px solid #171c22;
  background: linear-gradient(90deg, #0d1013 0%, #141a20 40%, #0d1013 80%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.skeleton-row:last-child {
  border-bottom: 0;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

/* --------------------------------------------------------------------------
   signals
   -------------------------------------------------------------------------- */

.signals {
  margin-top: 104px;
  padding-bottom: 24px;
}

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

.section-head h2 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 12.5px;
  white-space: nowrap;
}

.text-link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.text-link:hover .icon {
  transform: translateX(2px);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.signal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 50%),
    var(--panel);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.signal-card:hover {
  border-color: #313a45;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), transparent 50%),
    var(--panel-2);
  transform: translateY(-2px);
}

.signal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0c0f;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.signal-card:hover .signal-icon {
  border-color: var(--accent-line);
  color: var(--accent);
}

.signal-icon .icon {
  width: 16px;
  height: 16px;
}

.signal-kicker {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.signal-card h3 {
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.signal-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.signal-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 22px;
  color: var(--text-2);
  font-size: 11.5px;
}

.signal-link .icon {
  width: 12px;
  height: 12px;
  color: var(--dim);
  transition: transform 0.18s ease, color 0.18s ease;
}

.signal-card:hover .signal-link {
  color: var(--accent);
}

.signal-card:hover .signal-link .icon {
  color: var(--accent);
  transform: translate(1px, -1px);
}

/* --------------------------------------------------------------------------
   page heads (reports + help)
   -------------------------------------------------------------------------- */

.page-head {
  padding-top: 76px;
  padding-bottom: 44px;
}

.page-head h1 {
  margin-top: 20px;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-sub {
  max-width: 540px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   reports
   -------------------------------------------------------------------------- */

.report-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 44px;
}

.report-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.report-tab:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.report-tab.is-active {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(217, 255, 87, 0.05), transparent 70%),
    var(--panel);
}

.report-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090b0d;
  color: var(--muted);
  flex: none;
}

.report-tab.is-active .report-tab-icon {
  border-color: var(--accent-line);
  color: var(--accent);
}

.report-tab-icon .icon {
  width: 15px;
  height: 15px;
}

.report-tab-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.report-tab-text strong {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.report-tab-text small {
  color: var(--dim);
  font-size: 11px;
}

.report-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.report-head h2 {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.report-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.report-range {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.report-range .icon {
  width: 12px;
  height: 12px;
  color: var(--dim);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 70%),
    var(--panel);
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 7px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.stat-sub {
  margin-top: 3px;
  color: var(--dim);
  font-size: 10.5px;
}

.report-results {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   help
   -------------------------------------------------------------------------- */

.help-grid {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 68px;
  padding-bottom: 56px;
}

.help-toc {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-toc .eyebrow {
  margin-bottom: 12px;
  color: var(--dim);
}

.help-toc button {
  position: relative;
  padding: 7px 0 7px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  font-size: 12.5px;
  text-align: left;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.help-toc button:hover {
  color: var(--text-2);
}

.help-toc button.is-active {
  border-left-color: var(--accent);
  color: var(--text);
}

.help-body {
  max-width: 780px;
}

.help-section {
  padding: 0 0 44px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.help-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.help-index {
  color: #39424c;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.help-section h2 {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.help-section > p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.help-section strong {
  color: var(--text-2);
  font-weight: 500;
}

.help-section code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11.5px;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.help-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.help-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.help-card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.help-meta {
  color: var(--dim) !important;
  font-family: var(--mono);
  font-size: 9.5px !important;
  letter-spacing: 0.02em;
  line-height: 1.5 !important;
}

.mini-tag {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   SEO content
   -------------------------------------------------------------------------- */

.seo-section {
  margin-top: 88px;
}

.seo-prose {
  max-width: 760px;
}

.seo-prose p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.seo-prose strong {
  color: var(--text-2);
  font-weight: 500;
}

.seo-cards {
  margin-top: 26px;
}

.seo-steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  max-width: 760px;
  counter-reset: seo-step;
}

.seo-steps li {
  position: relative;
  padding: 0 0 0 46px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  counter-increment: seo-step;
}

.seo-steps li::before {
  content: counter(seo-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
}

.seo-steps strong {
  color: var(--text);
  font-weight: 500;
}

.seo-faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-top: 26px;
}

.seo-faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.seo-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.seo-faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}

.seo-faq details[open] summary::after {
  content: "−";
}

.seo-faq p {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.def-list {
  margin-top: 22px;
}

.def-list > div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.def-list dt {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-top: 2px;
}

.def-list dd {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.def-list .status {
  vertical-align: 1px;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px !important;
  padding: 13px 15px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: rgba(217, 255, 87, 0.045);
  color: #d7dfc3 !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

.callout .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--accent);
  flex: none;
}

.help-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.help-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.help-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3a434d;
}

.shortcut-grid {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.shortcut-grid > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.shortcut-grid > div > span:last-child {
  display: flex;
  align-items: center;
  gap: 4px;
}

.disclaimer {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--dim) !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
}

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.55);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 40px;
  padding-block: 40px;
  align-items: start;
}

.footer-brand p {
  margin-top: 7px;
  color: var(--dim);
  font-size: 11.5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 4px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links .icon {
  width: 11px;
  height: 11px;
}

.footer-fine {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #5c6670;
  font-size: 10.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   preview dialog
   -------------------------------------------------------------------------- */

.preview-dialog {
  width: min(520px, calc(100vw - 28px));
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}

.preview-dialog::backdrop {
  background: rgba(4, 5, 6, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.preview-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.95);
  animation: dialog-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.preview-head h3 {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 52vh;
  padding: 26px;
  background: #f3f3f0;
  overflow: hidden;
}

.preview-stage img {
  max-width: 100%;
  max-height: 46vh;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.preview-stage.is-ready img {
  opacity: 1;
}

.preview-loader {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.preview-stage.is-ready .preview-loader,
.preview-stage.has-error .preview-loader {
  display: none;
}

.preview-fallback {
  position: absolute;
  padding: 20px;
  color: #6a6a64;
  font-size: 12px;
  text-align: center;
}

.preview-stage.has-error img {
  display: none;
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   toasts
   -------------------------------------------------------------------------- */

.toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #11161b;
  box-shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.9);
  color: var(--text-2);
  font-size: 12.5px;
  pointer-events: auto;
  animation: toast-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.toast.is-leaving {
  animation: toast-out 0.2s ease both;
}

.toast .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(40px, 6.6vw, 58px); }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-card p { max-width: 520px; }
  .help-grid { grid-template-columns: 176px minmax(0, 1fr); gap: 40px; }
  .help-cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: block; animation: menu-in 0.16s ease both; }
  .header-right { margin-left: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: 1fr; gap: 28px; }
  .help-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .help-toc .eyebrow { width: 100%; }
  .help-toc button { border: 1px solid var(--line); border-radius: 99px; padding: 6px 11px; }
  .help-toc button.is-active { border-color: var(--accent-line); background: var(--accent-soft); }
}

@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .header-inner { height: 64px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-word { font-size: 12.5px; }
  .source-pill { height: 28px; font-size: 9px; padding: 0 9px; }

  .hero { padding-top: 48px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(36px, 9.6vw, 50px); line-height: 1; }
  .hero-sub { margin-top: 18px; font-size: 14.5px; }
  .hero-break { display: none; }

  .console-top { flex-wrap: wrap; }
  .kbd-hint { display: none; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 8px; font-size: 11.5px; }
  .console-body { padding: 16px; }
  .console-actions { flex-wrap: wrap; gap: 10px; }
  .mode-hint { order: 3; width: 100%; }
  .search-btn { margin-left: auto; }
  .query-input { min-height: 150px; font-size: 13px; }

  .results { margin-top: 44px; }
  .results-head { align-items: flex-start; }
  .results-tools { width: 100%; }
  .inline-search { width: 100%; }
  .inline-search input { width: 100%; }
  .results-toolbar { gap: 6px; }
  .filter > summary { height: 32px; font-size: 11.5px; padding: 0 9px; }
  .toolbar-spacer { display: none; }

  .table-shell { border-radius: 10px; background: transparent; border: 0; overflow: visible; }
  .table-scroll { max-height: none; overflow: visible; }
  .results-table { min-width: 0; display: block; }
  .results-table thead { display: none; }
  .results-table tbody { display: flex; flex-direction: column; gap: 8px; }
  .results-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "mark status"
      "serial type"
      "filed registered"
      "action action";
    gap: 10px 14px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
  }
  .results-table tbody tr:hover { background: var(--panel-2); }
  .results-table td { display: block; padding: 0; border: 0; }
  .results-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }
  .cell-mark { grid-area: mark; }
  .cell-mark::before { display: none; }
  .cell-serial { grid-area: serial; align-self: center; }
  .cell-status { grid-area: status; justify-self: end; align-self: start; }
  .cell-type { grid-area: type; justify-self: end; align-self: center; }
  .cell-filed { grid-area: filed; }
  .cell-registered { grid-area: registered; justify-self: end; text-align: right; }
  .cell-action { grid-area: action; margin-top: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
  .cell-status::before,
  .cell-type::before,
  .cell-action::before { display: none; }
  .mark-name { white-space: normal; font-size: 15px; max-width: none; }
  .copy-btn { opacity: 0.65; }
  .row-link {
    width: auto;
    height: 28px;
    gap: 6px;
    padding: 0;
    opacity: 1;
    color: var(--muted);
    font-size: 11.5px;
  }
  .row-link::after { content: "Open USPTO record"; }
  .row-link:hover { background: transparent; }
  .results-foot { border-top: 0; background: transparent; padding: 14px 2px 0; }
  .foot-info { width: 100%; justify-content: space-between; }
  .pagination { width: 100%; justify-content: space-between; }
  .page-size { display: none; }

  .skeleton-shell { border: 0; background: transparent; }
  .skeleton-row { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
  .skeleton-head { display: none; }

  .report-tabs { grid-template-columns: 1fr; gap: 6px; margin-bottom: 32px; }
  .report-tab { padding: 11px 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .report-head { margin-bottom: 16px; }
  .report-range { margin-bottom: 2px; }

  .help-section h2 { font-size: 23px; }
  .def-list > div { grid-template-columns: 1fr; gap: 4px; }
  .def-list dt { padding-top: 0; }

  .seo-section { margin-top: 64px; }
  .seo-steps li { padding-left: 40px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .preview-foot > span { display: none; }
}

@media (max-width: 520px) {
  .source-pill { display: none; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 44px); }
  .console-actions .match-toggle { order: 1; }
  .search-btn { order: 2; width: calc(50% - 5px); min-width: 0; }
  .mode-hint { order: 3; }
  .examples { gap: 6px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-head h2 { font-size: 23px; }
  .stat-card { padding: 13px 14px; }
  .stat-value { font-size: 22px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { justify-content: center; }
}

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