@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/inter-regular-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/inter-regular-500.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/inter-regular-600.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/inter-regular-700.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/inter-italic-400.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/inter-italic-500.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/inter-italic-600.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/inter-italic-700.ttf") format("truetype");
}
/* ── Tokens ── */
:root {
  --bg:        #0c0c18;
  --panel:     #18181b;
  --border:    #2e2e3a;
  --border-lo: #1e1e2e;
  --text:      #fafafa;
  --text-dim:  #d0d0d0;
  --muted:     #a9b1c5;
  --indigo:    #6366f1;
  --indigo-hi: #818cf8;
  --indigo-lo: rgba(99,102,241,0.12);
  --amber:     #f59e0b;
  --green:     #4ade80;
  --radius:    12px;
  --radius-sm: 8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Grid background (matches marketing site) ── */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 72px 72px;
}
.page-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, rgba(99,102,241,0.38) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 50% -2%, rgba(139,92,246,0.22) 0%, transparent 55%);
  animation: glow-breathe 7s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.75; }
  50%       { opacity: 1;    }
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
  padding: 20px 24px;
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-scrolled {
  background: rgba(12,12,24,0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.logo {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  display: flex;
  align-items: center;
}
.logo-bar  { color: var(--amber); }
.logo-text { color: var(--text); margin-left: 5px; }
.nav-contact-btn {
  font-size: 0.875rem;
  font-weight: 500;
  color: #c0c4d8;
  text-decoration: none;
  border: 1px solid #3f3f46;
  padding: 8px 16px;
  border-radius: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-contact-btn:hover {
  border-color: var(--indigo);
  color: var(--text);
}

/* ── Layout ── */
.layout {
  max-width: 1440px;
  margin: 90px auto 0;
  padding: 20px 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

/* ── Filter panel ── */
.filter-panel {
  background: rgba(18,18,27,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(8px);
  max-height: none;
  overflow: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.filter-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
h1 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
  line-height: 1.45;
}

/* Live badge — matches marketing site exactly */
.lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  background: rgba(13,13,22,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 9999px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ── Config warning ── */
.config-warning {
  background: rgba(120, 53, 15, 0.62);
  border: 1px solid rgba(245, 158, 11, 0.58);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.8rem;
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.hidden { display: none !important; }

.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 14px;
}

.mode-btn {
  border: 1px solid var(--border);
  background: rgba(12, 12, 20, 0.72);
  color: var(--text-dim);
  border-radius: var(--radius-sm);
  height: 40px;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.mode-btn-active {
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(67, 56, 202, 0.55);
}

.assistant-panel {
  border: 1px solid var(--border-lo);
  border-radius: var(--radius);
  background: rgba(8, 8, 12, 0.6);
  padding: 10px;
}

.ai-chat-log {
  max-height: 320px;
  min-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 2px;
}

.chat-msg {
  max-width: 92%;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.chat-msg-assistant {
  align-self: flex-start;
  background: rgba(67, 56, 202, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

.chat-msg-user {
  align-self: flex-end;
  background: rgba(39, 39, 52, 0.82);
  border: 1px solid #3a3a4c;
  color: var(--text);
}

.chat-msg-status {
  opacity: 0.95;
  font-style: italic;
}

.ai-chat-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.ai-chat-input {
  min-height: 82px;
  max-height: 220px;
}

.ai-send-btn {
  min-width: 96px;
  align-self: stretch;
}

.assistant-note {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--muted);
}

.ai-export {
  display: none !important;
}

.ai-export-controls {
  display: grid;
  grid-template-columns: auto 120px 1fr;
  gap: 8px;
  align-items: center;
}

.ai-export-controls label {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ai-export-controls input {
  padding: 7px 8px;
  font-size: 0.8rem;
}

.ai-export-result {
  margin-top: 10px;
}

.ai-export-help {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 0.79rem;
  line-height: 1.45;
}

/* ── Schema sections ── */
.section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-lo);
}
.section:first-child { margin-top: 8px; border-top: none; padding-top: 0; }
.section h3 {
  margin: 0 0 12px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.accordion-section {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
  border: 1px solid var(--border-lo);
  border-radius: var(--radius-sm);
  background: rgba(8,8,12,0.55);
  overflow: visible;
}
.accordion-summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  user-select: none;
  border-bottom: 1px solid transparent;
  background: rgba(12,12,20,0.65);
  position: relative;
  display: block;
}
.accordion-summary::-webkit-details-marker { display: none; }
.accordion-summary::marker { content: ""; }
.accordion-summary::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  transition: color 0.15s ease;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}
.accordion-section[open] .accordion-summary {
  border-bottom-color: var(--border-lo);
}
.accordion-section[open] .accordion-summary::after {
  content: "▴";
  color: var(--indigo-hi);
}
.accordion-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-size: 0.9rem;
}
.accordion-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.accordion-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
}
.accordion-subtitle {
  margin-top: 1px;
  font-size: 0.79rem;
  color: #bcc5d7;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.accordion-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(113, 113, 122, 0.16);
  border: 1px solid rgba(113, 113, 122, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.accordion-badge.has-selection {
  color: #e0e7ff;
  background: rgba(67, 56, 202, 0.52);
  border-color: rgba(99, 102, 241, 0.45);
}
.accordion-content {
  padding: 18px 18px 14px;
}

/* ── Fields ── */
.field {
  margin-bottom: 20px;
  padding: 12px 12px 11px;
  border: 1px solid rgba(71, 85, 105, 0.22);
  border-radius: 10px;
  background: rgba(7, 10, 20, 0.44);
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #f3f4f6;
  letter-spacing: 0.01em;
}

.field-help {
  margin: 10px 0 0;
  display: grid;
  gap: 5px;
  opacity: 0.82;
}

.field-help-what,
.field-help-best {
  font-size: 0.72rem;
  line-height: 1.42;
  color: #8b93a6;
}

.field-help-what strong,
.field-help-best strong {
  color: #a9b2c5;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  background: rgba(9,9,14,0.9);
  color: var(--text);
  border: 1px solid #2a2a36;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.825rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(99,102,241,0.7);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
input::placeholder,
textarea::placeholder { color: #98a1b5; }

textarea {
  min-height: 68px;
  resize: vertical;
  line-height: 1.5;
}

.line-list-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.line-list-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.line-list-row {
  display: flex;
  gap: 8px;
}
.line-list-row input[type="text"] {
  flex: 1;
}
.line-list-remove {
  width: 32px;
  border: 1px solid #3a2a2a;
  background: rgba(127, 29, 29, 0.18);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.line-list-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.line-list-add {
  align-self: flex-start;
  border: 1px solid rgba(99,102,241,0.45);
  background: rgba(67, 56, 202, 0.55);
  color: #f5f7ff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Multi-select */
select[multiple] {
  padding: 4px 0;
  background: rgba(9,9,14,0.9);
}
select[multiple] option {
  padding: 5px 10px;
  border-radius: 0;
  cursor: pointer;
}
select[multiple] option:checked {
  background: var(--indigo);
  color: #fff;
}

.search-select {
  position: relative;
}
.search-select-control {
  width: 100%;
  text-align: left;
  background: rgba(9,9,14,0.9);
  color: var(--text);
  border: 1px solid #2a2a36;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.825rem;
  font-family: inherit;
  cursor: pointer;
  min-height: 36px;
  display: flex;
  align-items: center;
  outline: none;
}
.search-select-placeholder {
  color: #98a1b5;
}
.search-select-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.search-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(67, 56, 202, 0.52);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #f5f7ff;
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.2;
}
.search-select-chip-label {
  white-space: nowrap;
}
.search-select-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.search-select-chip-remove:hover {
  background: rgba(127, 29, 29, 0.8);
}
.search-select.open .search-select-control {
  border-color: rgba(99,102,241,0.7);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.search-select-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  background: #0f0f1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}
.search-select-input {
  width: 100%;
  margin-bottom: 8px;
}
.search-select-list {
  max-height: 220px;
  overflow: auto;
}
.search-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
}
.search-select-item:hover {
  background: rgba(99,102,241,0.1);
  border-radius: 6px;
}
.search-select-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--indigo);
}

/* Toggle rows */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  margin-top: 6px;
}

.toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  display: inline-block;
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: #273244;
  border: 1px solid #4b5568;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.toggle-slider::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d4d4d8;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.toggle-input:checked + .toggle-slider {
  background: rgba(79, 70, 229, 0.75);
  border-color: rgba(165, 180, 252, 0.95);
}

.toggle-input:checked + .toggle-slider::after {
  transform: translateX(15px);
  background: #ffffff;
}

.toggle-text {
  font-size: 0.73rem;
  font-weight: 600;
  line-height: 1.4;
  color: #94a3b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 4px;
  min-width: 26px;
}

/* ── Action buttons ── */
.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  align-items: stretch;
}
.btn-primary {
  flex: 1 1 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--indigo);
  color: #fff;
  border: 1px solid #5153c8;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}
.filter-actions .btn-primary,
.filter-actions .btn-ghost {
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 16px !important;
  line-height: 1 !important;
  box-sizing: border-box;
}
.filter-actions .btn-primary svg {
  display: block;
}
.btn-primary:hover {
  background: #5153c8;
  box-shadow: 0 0 18px rgba(99,102,241,0.35);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.json-action-status {
  margin-top: 8px;
  min-height: 18px;
  font-size: 0.74rem;
  color: var(--muted);
}
.btn-ghost:hover {
  border-color: #4a4a5a;
  color: var(--text);
}

/* ── Actor JSON details ── */
.json-details {
  margin-top: 16px;
  border-top: 1px solid var(--border-lo);
  padding-top: 14px;
}
.json-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.json-help {
  margin: 8px 0 10px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}
.json-details summary {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  letter-spacing: 0.02em;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.json-details summary:hover { color: var(--text-dim); }
.json-details summary::before {
  content: '›';
  display: inline-block;
  transition: transform 0.15s;
  font-size: 1rem;
  line-height: 1;
}
.json-details[open] summary::before { transform: rotate(90deg); }
.jsonbox {
  margin-top: 10px;
  background: rgba(8,8,12,0.95);
  color: #a1a1aa;
  border: 1px solid #22222e;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  line-height: 1.6;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
#actor-json {
  user-select: none;
}

.feedback-box {
  margin: 0 20px 10px;
  border: 1px solid rgba(245, 158, 11, 0.55);
  background: rgba(120, 53, 15, 0.5);
  border-radius: var(--radius-sm);
  color: #fffbeb;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.error-box {
  margin-top: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(127, 29, 29, 0.22);
  border-radius: var(--radius-sm);
  color: #fecaca;
  padding: 10px 12px;
  font-size: 0.78rem;
  line-height: 1.45;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  padding: 16px;
}
.modal-close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.modal-close-x:hover {
  color: #fff;
  border-color: #4a4a5a;
}
.modal-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.modal-copy {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}
.modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}
.modal-input {
  width: 100%;
}
.modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-result {
  margin-top: 14px;
}
.modal-json {
  max-height: 320px;
}
.modal-textarea {
  width: 100%;
  min-height: 240px;
  background: rgba(8,8,12,0.95);
  color: #d4d4d8;
  border: 1px solid #22222e;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
  line-height: 1.55;
}

/* ── Results panel ── */
.results-panel {
  background: rgba(18,18,27,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
}
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border-lo);
  flex-shrink: 0;
}
.results-total-card {
  margin: 12px 20px 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(59, 130, 246, 0.08));
}
.results-total-value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.results-total-label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: #c7d2fe;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-lo);
  flex-shrink: 0;
}
.page-size-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-size-wrap label {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.page-size-wrap select {
  width: auto;
  min-width: 70px;
  padding: 6px 8px;
  font-size: 0.8rem;
}
.pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pager-controls .btn-ghost {
  padding: 6px 10px;
  font-size: 0.78rem;
}
.page-indicator {
  min-width: 90px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}
h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.result-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
  max-width: 55%;
  line-height: 1.4;
}
.result-meta.has-results {
  color: var(--indigo-hi);
  font-weight: 500;
}

/* ── Table ── */
.table-wrap {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f0f1a;
  text-align: left;
  padding: 9px 12px;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c2cadc;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border-lo);
}
thead th:last-child { border-right: none; }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: rgba(99,102,241,0.04); }
tbody td {
  border-bottom: 1px solid var(--border-lo);
  border-right: 1px solid var(--border-lo);
  padding: 9px 12px;
  vertical-align: top;
  color: var(--text-dim);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
tbody td:last-child { border-right: none; }

/* Masked value badges */
tbody td .masked-found {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #bbf7d0;
  background: rgba(20, 83, 45, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 4px;
  padding: 1px 6px;
}
tbody td .masked-notfound {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #d4d4d8;
  background: rgba(39,39,42,0.9);
  border: 1px solid #2a2a36;
  border-radius: 4px;
  padding: 1px 6px;
}

/* Empty / error state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border: none !important;
  white-space: normal !important;
  max-width: none !important;
  width: 100%;
  overflow: visible !important;
}

.empty-state-cell {
  border-right: none !important;
  padding: 0 !important;
  max-width: none !important;
  white-space: normal !important;
}

.status-found {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #86efac;
  background: rgba(20, 83, 45, 0.45);
  border: 1px solid rgba(34, 197, 94, 0.55);
  border-radius: 999px;
  padding: 2px 8px;
}

.status-missing {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.45);
  border: 1px solid rgba(248, 113, 113, 0.55);
  border-radius: 999px;
  padding: 2px 8px;
}

/* ── Footer — matches marketing site ── */
.footer {
  margin-top: 14px;
  padding: 32px 24px;
  background: #0a0a12;
  border-top: 1px solid #1e1e2e;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.footer-logo-wrap { margin-bottom: 12px; }
.footer-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-logo-text { color: #d0d0d0; margin-left: 5px; }
.footer-copy {
  margin: 0 0 2px;
  color: #71717a;
  font-size: 0.75rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.footer-links a {
  color: #71717a;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: #d0d0d0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .filter-panel {
    max-height: none;
  }
  .results-panel {
    min-height: 500px;
  }
}
@media (max-width: 600px) {
  .topbar { padding: 14px 16px; }
  .layout { padding: 0 12px; }
  .results-total-card { margin: 10px 12px 8px; }
  .feedback-box { margin: 0 12px 8px; }
  .results-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
  }
  .ai-export-controls {
    grid-template-columns: 1fr;
  }
  .footer { padding: 0 12px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
