:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-muted: #5c6573;
  --border: #e2e6ec;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
  --viewer-bar: #1e293b;
  --viewer-bar-text: #f1f5f9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
}

.logo {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--accent);
}

.badge {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.main-content {
  padding: 2rem 1.25rem 3rem;
  overflow-x: hidden;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero {
  max-width: 720px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.subtitle {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

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

.search-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  flex: 1;
  min-width: 0;
  padding: 0.85rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-box input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-clear {
  position: absolute;
  right: 0.75rem;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.search-clear:hover {
  background: var(--border);
  color: var(--text);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.filter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-chip {
  cursor: pointer;
  user-select: none;
}

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

.chip-ui {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.chip-ui svg {
  width: 15px;
  height: 15px;
}

.filter-chip:hover .chip-ui {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-chip input:checked + .chip-ui {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-chip input:focus-visible + .chip-ui {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.btn {
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.6rem 1rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.company-header {
  margin-bottom: 1.5rem;
}

.company-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.company-hero-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.company-avatar {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  text-transform: uppercase;
}

.company-hero-main h1 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.hero-link:hover {
  border-color: var(--accent);
  background: #eff6ff;
}

.hero-link svg {
  width: 14px;
  height: 14px;
}

.company-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.domain-line {
  color: var(--text-muted);
  margin: 0.25rem 0;
}

.external-link {
  font-size: 0.9rem;
  color: var(--accent);
  word-break: break-all;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.card-heading {
  margin: 0 0 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.card h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.col-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.col-stack .card {
  margin-bottom: 0;
}

/* —— Contact section —— */
.contact-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-of-type {
  padding-top: 0;
}

.contact-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.contact-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
}

.contact-value {
  font-size: 0.94rem;
  min-width: 0;
}

.address-text {
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}

.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  transition: background 0.15s, border-color 0.15s;
}

a.chip:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--accent);
}

.chip-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.subsection {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px dashed var(--border);
}

.subsection-title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #15803d;
}

.card-carbon {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f5fdf8 0%, var(--surface) 100%);
}

.card-carbon .card-heading {
  color: #15803d;
  border-bottom-color: #bbf7d0;
}

.carbon-panel {
  padding: 0;
}

.carbon-summary {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: #fff;
  background: #94a3b8;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.social-icon svg {
  width: 19px;
  height: 19px;
}

.social-icon:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.social-linkedin { background: #0a66c2; }
.social-twitter { background: #000000; }
.social-facebook { background: #1877f2; }
.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-youtube { background: #ff0000; }

/* —— Company metrics —— */
.metric-block {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.metric-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.metric-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.metric-title svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.7;
  color: var(--accent);
}

.metric-highlight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}

.metric-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.metric-unit {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.data-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  align-items: start;
}

@media (max-width: 480px) {
  .data-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.data-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.data-value {
  word-break: break-word;
  min-width: 0;
}

.source-quote {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border-left: 3px solid #cbd5e1;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pill-green {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.field {
  margin-bottom: 1rem;
  min-width: 0;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.value {
  font-size: 0.95rem;
  word-break: break-word;
}

.null-value {
  color: #9ca3af;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-style: italic;
}

.field-inline {
  margin-top: 0.5rem;
}

.social-field-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-field-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}

.social-platform {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 5rem;
  text-transform: capitalize;
}

.social-field-list a {
  color: var(--accent);
  word-break: break-all;
}

.prose {
  margin: 0;
  color: var(--text);
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-list li {
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.tag {
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list a {
  color: var(--accent);
  text-decoration: none;
}

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

.small {
  font-size: 0.85rem;
}

/* Readable company metrics (inside Company data card) */
.info-block {
  margin-bottom: 1rem;
  min-width: 0;
}

.info-block:last-child {
  margin-bottom: 0;
}

.info-block-title {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.info-text {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.stat-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
}

.stat-card-value {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.stat-row {
  font-size: 0.88rem;
  margin-top: 0.35rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.stat-value {
  display: block;
  word-break: break-word;
}

.quote {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  border-left: 3px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.45;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.emission-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.emission-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(187, 247, 208, 0.6);
}

.emission-value {
  font-weight: 650;
  font-size: 1rem;
}

.emission-unit {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.emission-item:last-child {
  border-bottom: none;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.page-list {
  display: flex;
  flex-direction: column;
}

.page-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.page-row:last-child {
  border-bottom: none;
}

.page-meta {
  flex: 1;
  min-width: 0;
}

.page-label {
  font-weight: 500;
  display: block;
}

.page-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-url:hover {
  color: var(--accent);
}

/* —— HTML viewer panel —— */
.viewer-panel {
  padding: 0;
  overflow: hidden;
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.viewer-panel.is-open {
  animation: viewer-in 0.25s ease;
}

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

.viewer-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  background: var(--viewer-bar);
  color: var(--viewer-bar-text);
  min-width: 0;
}

.viewer-toolbar-left {
  flex: 1;
  min-width: 0;
}

.viewer-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.viewer-url {
  display: block;
  font-size: 0.78rem;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-toolbar-center {
  flex-shrink: 0;
}

.viewer-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
}

.viewer-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.viewer-tab:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.06);
}

.viewer-tab.active {
  background: #fff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.viewer-tab-icon {
  font-size: 0.85rem;
  opacity: 0.85;
}

.viewer-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}

.viewer-close:hover {
  background: #ef4444;
  transform: scale(1.05);
}

.viewer-close:active {
  transform: scale(0.96);
}

.viewer-body {
  background: var(--bg);
}

.viewer-body[hidden] {
  display: none !important;
}

.html-frame-wrap {
  background: #fff;
  min-height: 420px;
}

#html-frame {
  width: 100%;
  height: 65vh;
  min-height: 420px;
  max-height: 700px;
  border: none;
  display: block;
}

.source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.source-hint {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #475569;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-copy:hover {
  background: #334155;
  border-color: #64748b;
  color: #fff;
}

.btn-copy.is-success {
  background: #065f46;
  border-color: #10b981;
  color: #ecfdf5;
}

.btn-copy-icon {
  font-size: 0.9rem;
}

.html-source {
  margin: 0;
  max-height: 65vh;
  min-height: 360px;
  overflow: auto;
  background: #0f172a;
  padding: 1rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-all;
}

.html-source code {
  font-family: inherit;
}

.related-block {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.related-block:last-child {
  border-bottom: none;
}

.related-block h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.related-block a {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 640px) {
  .viewer-toolbar {
    flex-wrap: wrap;
  }

  .viewer-toolbar-center {
    order: 3;
    width: 100%;
  }

  .viewer-tabs {
    width: 100%;
  }

  .viewer-tab {
    flex: 1;
    justify-content: center;
  }
}

/* Leads table */
.leads-section {
  width: 100%;
  margin: 3rem auto 4rem;
}

.leads-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.leads-header h2 {
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
}

.leads-count {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.leads-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.leads-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
}

/* Stable, consistent column widths across browsers/OSes */
.leads-table col.col-company { width: 22%; }
.leads-table col.col-domain { width: 18%; }
.leads-table col.col-email { width: 23%; }
.leads-table col.col-phone { width: 15%; }
.leads-table col.col-address { width: 15%; }
.leads-table col.col-pages { width: 7%; }

/* Truncate long values cleanly instead of overflowing the column */
.leads-table tbody td .cell-clip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leads-table thead th {
  text-align: left;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  white-space: nowrap;
}

.leads-table th.num,
.leads-table td.num {
  text-align: right;
  padding-right: 2rem;
  font-variant-numeric: tabular-nums;
}

.leads-table tbody td {
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}

.leads-table tbody tr:last-child td {
  border-bottom: none;
}

.lead-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.lead-row:hover {
  background: #f7f9fc;
}

.lead-name a {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.lead-name a:hover {
  color: var(--accent);
}

.lead-domain {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.lead-row a[href^="mailto"],
.lead-row a[href^="tel"] {
  color: var(--accent);
  text-decoration: none;
}

.lead-row a[href^="mailto"]:hover,
.lead-row a[href^="tel"]:hover {
  text-decoration: underline;
}

.lead-address {
  color: var(--text-muted);
}

.leads-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem;
}

.leads-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.leads-page-info {
  color: var(--text-muted);
  font-size: 0.875rem;
  min-width: 9rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.leads-pagination .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .leads-table thead th,
  .leads-table tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
