/* ZEDM Software Comparator — Arctic Telemetry (Frameless Futuristic Light UI) */
:root {
  --zedm-primary: #0D62A7;
  --zedm-primary-deep: #1F4E78;
  --zedm-primary-hover: #0A4F87;
  --zedm-cyan: #0284C7;
  --zedm-cyan-glow: #38BDF8;
  --zedm-cyan-soft: rgba(2, 132, 199, 0.09);
  --zedm-tint: rgba(13, 98, 167, 0.08);

  --zedm-canvas: #F4F8FC;
  --zedm-surface: rgba(255, 255, 255, 0.84);
  --zedm-surface-solid: #FFFFFF;
  --zedm-surface-elevated: rgba(255, 255, 255, 0.94);
  --zedm-inset: #F1F6FC;
  --zedm-border: rgba(13, 98, 167, 0.15);
  --zedm-border-strong: rgba(2, 132, 199, 0.36);
  --zedm-dark: #0B1526;

  --zedm-emerald: #059669;
  --zedm-emerald-text: #065F46;
  --zedm-emerald-bg: #ECFDF5;
  --zedm-emerald-border: #A7F3D0;

  --zedm-amber-bg: #FFFBEB;
  --zedm-amber-border: #FDE68A;
  --zedm-amber-ink: #92400E;

  --zedm-rose-bg: #FFF1F2;
  --zedm-rose-border: #FECDD3;
  --zedm-rose-ink: #9F1239;

  --zedm-ink: #0B1526;
  --zedm-muted: #475569;
  --zedm-subtle: #64748B;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 180ms;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  background-color: var(--zedm-canvas);
  background-image:
    radial-gradient(ellipse 75% 420px at 50% -110px, rgba(13, 98, 167, 0.14), transparent 72%),
    radial-gradient(ellipse 45% 280px at 88% 120px, rgba(56, 189, 248, 0.12), transparent 72%);
  background-repeat: no-repeat;
  color: var(--zedm-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Custom slim scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 98, 167, 0.28) transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

.shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.is-embedded .shell {
  padding: 14px 12px 32px;
}

.card {
  background: var(--zedm-surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow:
    0 8px 28px rgba(15, 23, 42, 0.05),
    0 1px 3px rgba(13, 98, 167, 0.06);
}

.search-card {
  padding: 22px 24px;
  border-color: rgba(2, 132, 199, 0.24);
  box-shadow:
    0 12px 36px rgba(13, 98, 167, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.main-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--zedm-ink);
}

.top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.count-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--zedm-cyan-soft);
  border: 1px solid rgba(2, 132, 199, 0.24);
  color: var(--zedm-primary-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.badge-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--zedm-primary);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  background: var(--zedm-inset);
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--zedm-muted);
  min-height: 36px;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.lang-btn:hover {
  color: var(--zedm-ink);
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--zedm-primary-deep), var(--zedm-primary), var(--zedm-cyan));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(13, 98, 167, 0.28);
}

/* Search Bar */
.query-form {
  margin-bottom: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(13, 98, 167, 0.24);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all var(--duration) var(--ease);
}

.search-box:focus-within {
  border-color: var(--zedm-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 6px 20px rgba(13, 98, 167, 0.1);
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--zedm-cyan);
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--zedm-ink);
  outline: none;
}

.search-box input::placeholder {
  color: var(--zedm-subtle);
}

.icon-clear {
  border: 0;
  background: transparent;
  color: var(--zedm-muted);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all var(--duration) var(--ease);
}

.icon-clear:hover {
  background: var(--zedm-cyan-soft);
  color: var(--zedm-ink);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--zedm-primary-deep) 0%, var(--zedm-primary) 55%, var(--zedm-cyan) 100%);
  color: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.45);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(13, 98, 167, 0.25);
  transition: all var(--duration) var(--ease);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.34);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--zedm-ink);
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
  background: var(--zedm-tint);
  border-color: var(--zedm-cyan);
  color: var(--zedm-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--zedm-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-ghost:hover {
  background: var(--zedm-cyan-soft);
  color: var(--zedm-ink);
}

.btn-ghost-sm {
  background: transparent;
  color: var(--zedm-cyan);
  border: 1px solid transparent;
  border-radius: 6px;
  min-height: 32px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-ghost-sm:hover {
  background: var(--zedm-cyan-soft);
}

/* Fix 1: Declare .mobile-only AFTER .btn-secondary so mobile button never shows on desktop */
.mobile-only {
  display: none;
}

/* Quick Comparisons */
.starter-section {
  padding-top: 14px;
  border-top: 1px solid rgba(13, 98, 167, 0.1);
}

.starter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(13, 98, 167, 0.2);
  background: var(--zedm-inset);
  color: var(--zedm-primary-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.pill-btn:hover {
  background: linear-gradient(135deg, var(--zedm-primary), var(--zedm-cyan));
  border-color: var(--zedm-cyan);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.24);
}

/* 2-Column Workspace */
.workspace-layout {
  display: grid;
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Left Filter Sidebar (Fix 3: single unified scroll rail, no nested domain scrollbar) */
.filter-sidebar {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--zedm-border);
}

.sidebar-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--zedm-ink);
}

.sidebar-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group {
  border-bottom: 1px solid rgba(13, 98, 167, 0.1);
  padding: 10px 0;
}

.filter-group:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.filter-group-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zedm-primary-deep);
  padding: 4px 0;
  user-select: none;
}

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

.filter-group-summary::after {
  content: "+";
  font-size: 14px;
  font-weight: 700;
  color: var(--zedm-muted);
}

.filter-group[open] .filter-group-summary::after {
  content: "−";
}

.filter-group-body {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-sublabel {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zedm-muted);
  margin-top: 4px;
}

.modern-select {
  min-height: 40px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
  color: var(--zedm-ink);
  font-family: var(--font-sans);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}

.modern-select:hover,
.modern-select:focus {
  border-color: var(--zedm-cyan);
}

.modern-select option {
  background: #FFFFFF;
  color: #0B1526;
}

.modern-select.full-width {
  width: 100%;
}

/* Domain List in Sidebar (unified rail, no inner trap) */
.domain-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.domain-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--zedm-ink);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.domain-item:hover {
  background: var(--zedm-tint);
  color: var(--zedm-primary);
}

.domain-item.active {
  background: linear-gradient(90deg, rgba(13, 98, 167, 0.14), rgba(56, 189, 248, 0.14));
  border-color: rgba(2, 132, 199, 0.36);
  color: var(--zedm-primary-deep);
  font-weight: 600;
}

.domain-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-item-cnt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--zedm-cyan);
  font-weight: 600;
  flex-shrink: 0;
}

/* Checkboxes & Toggles */
.feature-check-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-check-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--zedm-ink);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease);
}

.check-row:hover {
  background: var(--zedm-inset);
  color: var(--zedm-primary);
}

.check-row-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.check-row input[type="checkbox"] {
  accent-color: var(--zedm-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.sidebar-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--zedm-border);
  background: #FFFFFF;
  color: var(--zedm-ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.toggle-chip:hover {
  border-color: var(--zedm-cyan);
  background: var(--zedm-inset);
}

.toggle-chip.full-width {
  width: 100%;
}

.toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #94A3B8;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.toggle-chip[aria-pressed="true"] {
  background: var(--zedm-emerald-bg);
  border-color: var(--zedm-emerald);
  color: var(--zedm-emerald-text);
}

.toggle-chip[aria-pressed="true"] .toggle-dot {
  background: var(--zedm-emerald);
  border-color: var(--zedm-emerald);
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--zedm-border);
  background: #FFFFFF;
  color: var(--zedm-ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.chip:hover {
  border-color: var(--zedm-cyan);
  background: var(--zedm-tint);
  color: var(--zedm-primary);
}

.chip.active {
  background: linear-gradient(135deg, var(--zedm-primary), var(--zedm-cyan));
  border-color: var(--zedm-cyan);
  color: #ffffff;
  font-weight: 700;
}

.chip-cnt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.82;
}

/* Active Filters Bar */
.active-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: var(--zedm-surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-md);
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--zedm-cyan-soft);
  border: 1px solid rgba(2, 132, 199, 0.26);
  color: var(--zedm-primary-deep);
  font-size: 12px;
  font-weight: 600;
}

.active-filter-chip button {
  border: 0;
  background: transparent;
  color: var(--zedm-primary);
  font-size: 15px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Status Banner */
.status-banner {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--zedm-border);
  background: var(--zedm-surface);
}

.status-banner.error {
  background: var(--zedm-rose-bg);
  border-color: var(--zedm-rose-border);
  color: var(--zedm-rose-ink);
}

.status-banner.loading {
  background: #EFF6FF;
  border-color: rgba(2, 132, 199, 0.28);
  color: var(--zedm-primary-deep);
  display: flex;
  align-items: center;
  gap: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(13, 98, 167, 0.2);
  border-top-color: var(--zedm-cyan);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Detailed 6-Tab Comparison Panel */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--zedm-border);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--zedm-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.compare-tools-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.compare-tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--zedm-border);
  background: var(--zedm-inset);
  color: var(--zedm-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.compare-tool-chip:hover {
  border-color: var(--zedm-cyan);
  background: var(--zedm-tint);
  color: var(--zedm-primary);
}

.chip-logo {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--zedm-border);
  padding: 2px;
}

.compare-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--zedm-border);
}

.compare-tab {
  border: 1px solid var(--zedm-border);
  background: var(--zedm-inset);
  color: var(--zedm-muted);
  border-radius: var(--radius-sm);
  min-height: 38px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.compare-tab:hover {
  border-color: var(--zedm-cyan);
  color: var(--zedm-primary);
}

.compare-tab.active {
  background: linear-gradient(135deg, var(--zedm-primary-deep), var(--zedm-primary), var(--zedm-cyan));
  border-color: var(--zedm-cyan);
  color: #ffffff;
  font-weight: 700;
}

.compare-tab-panel {
  min-width: 0;
}

/* Matrix Table inside Tabs 2-5 */
.matrix-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.matrix-ws-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.matrix-diff-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zedm-ink);
  cursor: pointer;
}

.matrix-diff-toggle input {
  accent-color: var(--zedm-primary);
  width: 15px;
  height: 15px;
}

.matrix-scroll {
  overflow-x: auto;
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.matrix-table th,
.matrix-table td {
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(13, 98, 167, 0.12);
  border-right: 1px solid rgba(13, 98, 167, 0.12);
}

.matrix-table th:last-child,
.matrix-table td:last-child {
  border-right: 0;
}

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

.matrix-table tbody tr:hover td {
  background: rgba(2, 132, 199, 0.03);
}

.matrix-table thead th {
  background: var(--zedm-primary-deep);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
}

.matrix-table th:first-child,
.matrix-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 205px;
  max-width: 240px;
  background: var(--zedm-inset);
  font-weight: 600;
  color: var(--zedm-ink);
  border-right: 2px solid var(--zedm-border);
}

.matrix-table thead th:first-child {
  background: var(--zedm-dark);
  color: #FFFFFF;
  z-index: 3;
}

.matrix-tool-th {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 180px;
}

.matrix-tool-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  flex-shrink: 0;
}

.matrix-tool-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  color: #CBD5E1;
}

.ws-section-row td {
  background: #EBF4FD !important;
  color: var(--zedm-primary-deep) !important;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
}

.cell-yes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--zedm-emerald-bg);
  color: var(--zedm-emerald-text);
  border: 1px solid var(--zedm-emerald-border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
}

.cell-yes a {
  color: var(--zedm-emerald-text);
  text-decoration: none;
  font-size: 11px;
}

.cell-yes a:hover {
  text-decoration: underline;
}

.cell-no {
  color: var(--zedm-subtle);
  font-family: var(--font-mono);
  font-weight: 600;
}

.cell-score-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.score-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 98, 167, 0.14);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--zedm-primary), var(--zedm-cyan), var(--zedm-emerald));
  border-radius: 999px;
}

.compare-pros {
  margin: 0;
  padding-left: 16px;
  color: var(--zedm-emerald-text);
  font-size: 12.5px;
}

.compare-cons {
  margin: 0;
  padding-left: 16px;
  color: var(--zedm-rose-ink);
  font-size: 12.5px;
}

.watchout-box {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--zedm-amber-bg);
  border: 1px solid var(--zedm-amber-border);
  color: var(--zedm-amber-ink);
  font-size: 12.5px;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.source-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 6px;
  background: var(--zedm-inset);
  border: 1px solid var(--zedm-border);
}

.source-item a {
  color: var(--zedm-primary);
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}

.source-item a:hover {
  text-decoration: underline;
}

.source-type-pill {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--zedm-cyan-soft);
  color: var(--zedm-primary-deep);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

/* Markdown Body (Exec Tab) */
.markdown-body {
  font-size: 14.5px;
  color: var(--zedm-ink);
  overflow-x: auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  font-family: var(--font-display);
  color: var(--zedm-primary-deep);
  margin: 1rem 0 0.45rem;
}

.markdown-body p {
  margin: 0.5rem 0;
}

.markdown-body ul {
  margin: 0.45rem 0;
  padding-left: 1.3rem;
}

.markdown-body strong {
  color: var(--zedm-ink);
}

.markdown-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 14px 0;
  font-size: 13.5px;
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
}

.markdown-body th,
.markdown-body td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(13, 98, 167, 0.12);
  border-right: 1px solid rgba(13, 98, 167, 0.12);
}

.markdown-body th:last-child,
.markdown-body td:last-child {
  border-right: 0;
}

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

.markdown-body th {
  background: var(--zedm-primary-deep);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}

.markdown-body tr:nth-child(even) td {
  background: var(--zedm-inset);
}

/* Catalog Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 14px;
}

.tool-card {
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: all var(--duration) var(--ease);
}

.tool-card:hover {
  border-color: var(--zedm-cyan);
  background: #FFFFFF;
  box-shadow:
    0 10px 26px rgba(13, 98, 167, 0.1),
    0 0 0 1px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

.tool-card.selected {
  border-color: var(--zedm-cyan);
  background: linear-gradient(180deg, rgba(235, 244, 253, 0.92), #FFFFFF);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.24), 0 8px 22px rgba(13, 98, 167, 0.12);
}

/* Fix 2: Full readable category eyebrow without aggressive ellipsis clipping */
.tool-card-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tool-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  width: 100%;
}

.tool-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--zedm-border);
  padding: 4px;
  flex-shrink: 0;
}

.tool-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--zedm-ink);
  line-height: 1.25;
}

.tool-vendor {
  font-size: 12px;
  color: var(--zedm-muted);
  margin-top: 2px;
}

.cat-badge {
  display: inline-block;
  background: var(--zedm-cyan-soft);
  color: var(--zedm-primary-deep);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.tool-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--zedm-muted);
  margin-top: 10px;
}

.tool-specs strong {
  color: var(--zedm-ink);
  font-weight: 600;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 98, 167, 0.1);
}

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

.qc-badge,
.oss-badge,
.sentiment-badge,
.pricing-badge,
.feat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.qc-badge {
  background: var(--zedm-emerald-bg);
  color: var(--zedm-emerald-text);
  border: 1px solid var(--zedm-emerald-border);
}

.oss-badge {
  background: var(--zedm-cyan-soft);
  color: var(--zedm-primary-deep);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.sentiment-badge {
  background: var(--zedm-amber-bg);
  color: var(--zedm-amber-ink);
  border: 1px solid var(--zedm-amber-border);
}

.pricing-badge {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.feat-badge {
  background: var(--zedm-inset);
  color: var(--zedm-muted);
  border: 1px solid var(--zedm-border);
}

.compare-toggle-btn {
  border: 1px solid rgba(13, 98, 167, 0.24);
  background: #FFFFFF;
  color: var(--zedm-primary-deep);
  border-radius: 7px;
  min-height: 32px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.compare-toggle-btn:hover {
  border-color: var(--zedm-cyan);
  background: var(--zedm-tint);
  color: var(--zedm-primary);
}

.compare-toggle-btn.active {
  background: linear-gradient(135deg, var(--zedm-primary-deep), var(--zedm-primary), var(--zedm-cyan));
  border-color: var(--zedm-cyan);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.26);
}

/* Sticky Compare Tray (High-contrast floating command dock) */
.compare-tray {
  position: sticky;
  bottom: 16px;
  z-index: 30;
  background: rgba(11, 21, 38, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: #F8FAFC;
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 16px 40px rgba(11, 21, 38, 0.35), 0 0 24px rgba(56, 189, 248, 0.16);
}

.tray-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tray-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.36);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.tray-pill-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #ffffff;
  object-fit: contain;
  padding: 1px;
}

.tray-pill button {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tray-pill button:hover {
  color: #FDA4AF;
}

.tray-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost-dark {
  background: transparent;
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.btn-ghost-dark:hover {
  color: #ffffff;
  border-color: #38BDF8;
}

/* Software Detail Slide-Over Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 21, 38, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: 100%;
  max-width: 680px;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--zedm-border-strong);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.16);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--zedm-border);
  background: var(--zedm-inset);
}

.drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.drawer-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--zedm-border);
  padding: 5px;
  flex-shrink: 0;
}

.drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zedm-ink);
  line-height: 1.2;
}

.drawer-subtitle {
  margin-top: 3px;
  font-size: 13px;
  color: var(--zedm-muted);
}

/* Fix 5: Properly centered close glyph with 44px hit target */
.drawer-close {
  border: 1px solid var(--zedm-border);
  background: #FFFFFF;
  color: var(--zedm-muted);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 22px;
  line-height: 1;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}

.drawer-close:hover {
  background: var(--zedm-tint);
  border-color: var(--zedm-cyan);
  color: var(--zedm-ink);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  color: var(--zedm-primary);
  font-weight: 600;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--zedm-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.drawer-footer .btn-secondary {
  min-height: 44px;
  text-decoration: none;
}

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

.detail-kv {
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #FFFFFF;
}

.detail-kv-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zedm-muted);
}

.detail-kv-val {
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zedm-ink);
}

.detail-section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--zedm-primary-deep);
}

.detail-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--zedm-ink);
  line-height: 1.6;
}

.intel-box {
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--zedm-inset);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watchout-callout {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--zedm-amber-bg);
  border: 1px solid var(--zedm-amber-border);
  color: var(--zedm-amber-ink);
  font-size: 13px;
}

.sentiment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.sentiment-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--zedm-amber-bg);
  color: var(--zedm-amber-ink);
  border: 1px solid var(--zedm-amber-border);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
}

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

.pros-card,
.cons-card {
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12.5px;
}

.pros-card {
  background: var(--zedm-emerald-bg);
  border: 1px solid var(--zedm-emerald-border);
  color: var(--zedm-emerald-text);
}

.cons-card {
  background: var(--zedm-rose-bg);
  border: 1px solid var(--zedm-rose-border);
  color: var(--zedm-rose-ink);
}

.pros-card ul,
.cons-card ul {
  margin: 6px 0 0;
  padding-left: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--zedm-border);
  color: var(--zedm-ink);
}

.detail-tag.primary {
  background: var(--zedm-cyan-soft);
  border-color: rgba(2, 132, 199, 0.28);
  color: var(--zedm-primary-deep);
  font-weight: 500;
}

.ws-group {
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--zedm-inset);
  margin-bottom: 8px;
}

.ws-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--zedm-primary);
  margin-bottom: 6px;
}

.alt-card {
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--zedm-inset);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.alt-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.alt-card-info {
  min-width: 0;
}

.alt-card-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--zedm-ink);
}

.alt-card-ctx {
  font-size: 12px;
  color: var(--zedm-muted);
  margin-top: 2px;
}

.alt-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.official-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.official-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--zedm-border);
  background: #FFFFFF;
  color: var(--zedm-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.official-link:hover {
  background: var(--zedm-tint);
  border-color: var(--zedm-cyan);
}

.load-more-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.empty-state {
  padding: 36px 16px;
  text-align: center;
}

.empty-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--zedm-ink);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 21, 38, 0.45);
  backdrop-filter: blur(4px);
}

@media (min-width: 981px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 980px) {
  .mobile-only {
    display: inline-flex;
  }
  .workspace-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-height: 100vh;
    z-index: 45;
    border-radius: 0;
    background: #FFFFFF;
    transform: translateX(-105%);
    transition: transform 220ms var(--ease);
    box-shadow: 12px 0 36px rgba(15, 23, 42, 0.18);
  }
  .filter-sidebar.open {
    transform: translateX(0);
  }
}

/* Fix 4: >= 44px WCAG touch targets on mobile */
@media (max-width: 680px) {
  .shell {
    padding: 14px 12px 36px;
  }
  .card {
    padding: 16px;
  }
  .search-box {
    flex-wrap: wrap;
    padding: 8px 10px;
  }
  .search-box .btn-primary {
    width: 100%;
  }
  .lang-btn,
  .pill-btn,
  .compare-toggle-btn,
  .toggle-chip,
  .chip,
  #mobile-filters-btn {
    min-height: 44px;
  }
  .pill-btn {
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
  }
  .detail-grid,
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}

/* Comparison Scorecards */
.compare-scorecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.scorecard {
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  background: var(--zedm-inset);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.scorecard-id {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.scorecard-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--zedm-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorecard-sub {
  font-size: 11.5px;
  color: var(--zedm-muted);
}

.scorecard-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--zedm-muted);
}

.scorecard-metrics strong {
  color: var(--zedm-ink);
}

.scorecard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid rgba(13, 98, 167, 0.12);
}

/* Consistent Sentiment Pills */
.sentiment-pill-vpos,
.sentiment-pill-pos,
.sentiment-pill-mixed,
.sentiment-pill-none,
.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.sentiment-pill-vpos {
  background: var(--zedm-emerald-bg);
  color: var(--zedm-emerald-text);
  border: 1px solid var(--zedm-emerald-border);
}

.sentiment-pill-pos {
  background: var(--zedm-cyan-soft);
  color: var(--zedm-primary-deep);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.sentiment-pill-mixed {
  background: var(--zedm-amber-bg);
  color: var(--zedm-amber-ink);
  border: 1px solid var(--zedm-amber-border);
}

.sentiment-pill-none {
  background: var(--zedm-inset);
  color: var(--zedm-subtle);
  border: 1px solid var(--zedm-border);
}

.proof-badge {
  background: #F0FDFA;
  color: #115E59;
  border: 1px solid #99F6E4;
}

/* Evidence Summary Bar & Inline Proof Pills */
.proof-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
}

.inline-proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--zedm-border);
}

.inline-proof-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--zedm-muted);
}

.inline-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--zedm-border);
  color: var(--zedm-primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
}

.inline-proof-pill:hover {
  background: var(--zedm-tint);
  border-color: var(--zedm-cyan);
}

.insufficient-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--zedm-inset);
  border: 1px solid var(--zedm-border);
  color: var(--zedm-muted);
  font-size: 12.5px;
}

.active-filter-summary {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--zedm-ink);
  padding-right: 8px;
  margin-right: 4px;
  border-right: 1px solid var(--zedm-border);
}

.matrix-tools-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.matrix-search {
  min-height: 36px;
  padding: 0 11px;
  background: #FFFFFF;
  border: 1px solid var(--zedm-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--zedm-ink);
  min-width: 210px;
}

.matrix-search::placeholder {
  color: var(--zedm-subtle);
}

.full-report-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--zedm-border);
}

.full-report-heading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--zedm-primary-deep);
}

.ws-section-counts {
  font-weight: 500;
  opacity: 0.85;
  margin-left: 8px;
}

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

@media print {
  body {
    background: #ffffff !important;
    color: #0F172A !important;
  }
  .search-card,
  .filter-sidebar,
  .catalog-card,
  .compare-tray,
  .active-filters-bar,
  .header-actions,
  .compare-tabs,
  .matrix-controls,
  .drawer-backdrop {
    display: none !important;
  }
  .workspace-layout {
    display: block !important;
  }
  .card {
    background: #ffffff !important;
    color: #0F172A !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .compare-tab-panel {
    display: block !important;
  }
}
