@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  font-size: 13px;
  color: #333;
  line-height: 1.5;
  background: #fff;
}

a { color: #00c; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
a:visited { color: #00c; }

/* ── layout ── */

#wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px;
}

/* ── header ── */

#header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 0 10px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 8px;
}

#header-left { flex: 1; }

#header-right {
  flex-shrink: 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

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

#search-input {
  font-family: var(--font);
  font-size: 12px;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 3px 22px 3px 7px;
  width: 220px;
  outline: none;
  background: #fff;
}

#search-input:focus {
  border-color: #aaa;
}

#search-input::placeholder {
  color: #bbb;
}

#search-clear {
  position: absolute;
  right: 6px;
  font-size: 14px;
  color: #bbb;
  cursor: pointer;
  display: none;
  line-height: 1;
  user-select: none;
}

#search-clear:hover {
  color: #666;
}

#search-clear.visible {
  display: block;
}

#budget-filter {
  text-align: right;
  line-height: 1.8;
  width: 100%;
}

.b {
  display: inline;
  margin-left: 7px;
  color: #00c;
  font-size: 12px;
}

.b.active {
  font-weight: bold;
  color: #fff;
  background: #555;
  padding: 0 5px;
  border-radius: 2px;
  text-decoration: none;
}

.price-badge {
  display: inline-block;
  font-size: 10px;
  color: #777;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0px 5px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: normal;
}

.price-badge.enterprise {
  color: #999;
}

#header h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: inline;
}

#header h1 a {
  color: #1a1a2e;
  text-decoration: none;
}

.brand-mfg {
  color: inherit;
}

#header .sub1 {
  font-size: 13px;
  color: #555;
  font-weight: 500;
  margin-top: 2px;
}

#header .sub2 {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* ── filters ── */

#filters {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.filter-row {
  margin-bottom: 3px;
}

.flabel {
  color: #999;
  margin-right: 6px;
}

.f {
  margin-right: 10px;
  color: #00c;
  font-size: 13px;
}

.f.active {
  font-weight: bold;
  color: #fff;
  background: #333;
  padding: 0px 5px;
  border-radius: 2px;
  text-decoration: none;
}

/* ── main two-column layout ── */

#main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* ── sidebar ── */

#sidebar {
  width: 170px;
  flex-shrink: 0;
  padding-top: 2px;
}

.sidebar-head {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.sidebar-hint {
  font-size: 10px;
  color: #bbb;
  font-style: italic;
  margin-bottom: 8px;
}

.empty-state {
  padding: 16px 0;
  color: #999;
  font-size: 13px;
  line-height: 1.7;
}

.empty-state a {
  color: #00c;
}

#cat-list, #func-list {
  list-style: none;
}

#cat-list li, #func-list li {
  margin-bottom: 4px;
}

.cat {
  color: #00c;
  font-size: 13px;
  position: relative;
  padding-left: 17px;
  display: inline-block;
  cursor: pointer;
}

.cat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 1px solid #ccc;
  border-radius: 1px;
  background: #fff;
  box-sizing: border-box;
}

.cat.active {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.cat.active::before {
  background: #333;
  border-color: #333;
}

.cat.active::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  box-sizing: border-box;
}

/* ── function group headers (caret style, will get sub-items later) ── */

.func-hdr {
  font-size: 12px;
  color: #444;
  font-weight: normal;
  margin-top: 4px;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.func-hdr:hover {
  color: #00c;
}

.func-hdr.active {
  font-weight: bold;
  color: #0033bb;
  background: #e8eeff;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: -5px;
}

/* ── decision guide CTA ── */

#guide-cta {
  font-size: 12px;
  color: #555;
  padding: 8px 12px;
  background: #f5f8ff;
  border: 1px solid #dce6f7;
  border-radius: 3px;
  margin-bottom: 10px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease,
              padding 0.25s ease, margin 0.25s ease,
              border-width 0.25s ease;
  max-height: 80px;
}
#guide-cta.guide-cta-hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  pointer-events: none;
}
#guide-cta-dismiss {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #aaa;
  padding: 0 2px;
}
#guide-cta-dismiss:hover {
  color: #555;
}

#guide-cta strong {
  color: #333;
  font-weight: 600;
}

#guide-cta a {
  color: #0033bb;
  font-weight: 600;
}

/* ── active filter strip (Option A) ── */

#active-strip {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 0 8px;
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
  font-size: 11px;
}

.strip-label {
  color: #bbb;
  margin-right: 2px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 11px;
  color: #333;
  cursor: pointer;
}

.filter-chip:hover {
  background: #e4e4e4;
}

.chip-x {
  font-size: 11px;
  opacity: 0.45;
  margin-left: 1px;
}

.clear-all-link {
  font-size: 11px;
  color: #00c;
  margin-left: 3px;
}

/* ── collapsible group headers */
.cat-group-hdr {
  font-size: 12px;
  color: #444;
  font-weight: bold;
  margin-top: 9px;
  margin-bottom: 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cat-group-hdr:hover {
  color: #00c;
}

.cat-caret {
  font-size: 8px;
  color: #aaa;
  margin-right: 4px;
  display: inline-block;
  transition: transform 0.12s ease;
  vertical-align: middle;
  line-height: 1;
}

.cat-group-hdr.open .cat-caret {
  transform: rotate(90deg);
  color: #666;
}

/* sub-items — hidden by default */
.cat-sub {
  display: none;
  padding-left: 13px;
  margin-bottom: 3px;
  list-style: none;
}

.cat-sub.visible {
  display: list-item;
}

/* Option C — parent group highlights when a sub-item is active */
.cat-group-hdr.active-parent {
  background: #e8eeff;
  color: #0033bb;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: -5px;
}

/* ── listings ── */

#listings {
  flex: 1;
  min-width: 0;
}

#result-count {
  font-size: 11px;
  color: #999;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-hint {
  font-size: 11px;
  color: #5588bb;
  font-style: italic;
  opacity: 0.8;
  cursor: pointer;
}

.score-hint:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-color: #a8d4f5;
  text-underline-offset: 2px;
}

@keyframes score-outline-fade {
  0%   { box-shadow: 0 0 0 2px #ffcc00; }
  60%  { box-shadow: 0 0 0 2px #ffdd44; }
  100% { box-shadow: 0 0 0 2px transparent; }
}

.ai-score.score-highlighted,
.ai-score-mid.score-highlighted {
  animation: score-outline-fade 4s ease-out forwards;
}

.ai-score.score-cta::after,
.ai-score-mid.score-cta::after {
  content: " ← explore";
  font-size: 10px;
  color: #886600;
  font-style: italic;
  font-weight: normal;
}

/* ── AI score explore popover ─────────────────────────────── */
#score-popover {
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  padding: 8px 12px 9px;
  z-index: 1000;
  white-space: nowrap;
}
.sp-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}
.sp-opt {
  display: inline-block;
  margin-right: 10px;
  font-size: 12px;
  color: #00c;
  text-decoration: none;
}
.sp-opt:hover { text-decoration: underline; }
.sp-opt-featured {
  font-weight: normal;
  color: #00c;
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}
.sp-opt-featured:hover { text-decoration: underline; }
.sp-sublabel {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  margin-top: 2px;
}
.sp-acct {
  text-transform: none;
  font-style: italic;
  letter-spacing: 0;
}

.listing {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  transition: background 0.1s ease;
}

.listing:first-child {
  border-top: 1px solid #eee;
}

.listing:hover {
  background: #f7fafd;
}

.listing-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.listing-title a {
  color: #00c;
}

.listing-meta {
  font-size: 11px;
  color: #999;
  margin-bottom: 5px;
}

.listing-blurb {
  color: #555;
  margin-bottom: 6px;
  line-height: 1.55;
}

.connect-link {
  font-size: 12px;
  color: #007a00;
}

.connect-link:visited {
  color: #007a00;
}


/* ── editor's note ── */

.score-rationale {
  font-size: 12px;
  color: #4a5568;
  font-style: italic;
  margin-bottom: 5px;
  line-height: 1.55;
  padding-left: 8px;
  border-left: 2px solid #c8d8eb;
}

.rationale-label {
  font-weight: 600;
  font-style: normal;
  color: #4a6080;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
  margin-right: 5px;
}

.product-fit {
  font-size: 11px;
  color: #5a8a5a;
  font-style: italic;
  margin-bottom: 3px;
}

.general-fit {
  font-size: 11px;
  color: #aaa;
  font-style: italic;
  margin-bottom: 5px;
}

.editor-note {
  font-size: 12px;
  color: #555;
  font-style: italic;
  background: #fffef0;
  border-left: 3px solid #c8a200;
  padding: 5px 8px;
  margin-bottom: 6px;
  line-height: 1.55;
}

.editor-label {
  font-weight: bold;
  font-style: normal;
  color: #886600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

/* ── featured (paid subscriber) listings ── */

.listing.featured {
  border-left: 3px solid #007a00;
  padding-left: 10px;
  margin-left: -13px;
}

.featured-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: normal;
  color: #007a00;
  background: #f0f7e6;
  border: 1px solid #c3e6a8;
  padding: 0px 5px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-score {
  background: #f0f7e6;
  color: #3a7d0a;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.ai-score-mid {
  background: #fff8e6;
  color: #886600;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

/* ── skeleton loading ── */

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

.skel-row {
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.skel-row:first-child {
  border-top: 1px solid #eee;
}

.skel-bar {
  height: 11px;
  background: linear-gradient(90deg, #e8e8e8 25%, #f4f4f4 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1s infinite;
  border-radius: 2px;
  margin-bottom: 9px;
}

.skel-title  { width: 38%; height: 13px; }
.skel-meta   { width: 60%; height: 9px; }
.skel-blurb  { width: 92%; }
.skel-blurb2 { width: 72%; margin-bottom: 0; }

/* ── filter tooltips ── */

.f[data-tooltip],
.b[data-tooltip] { position: relative; }

.f[data-tooltip]::after,
.b[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.5;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 100;
  text-align: left;
}

.f[data-tooltip]:hover::after,
.b[data-tooltip]:hover::after { opacity: 1; }

/* ── footer ── */

#footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid #ccc;
  font-size: 12px;
  color: #666;
}

/* ── vendor page ── */

#vendor-page {
  max-width: 620px;
  padding-top: 16px;
}

#vendor-page h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

#vendor-page h3 {
  font-size: 13px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  color: #999;
}

.vblock {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

.vblock:last-child {
  border-bottom: none;
}

.vblock p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 6px;
}

.vblock p:last-child {
  margin-bottom: 0;
}

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

.vlist li {
  color: #444;
  line-height: 1.6;
  padding: 3px 0;
}

.vlist li::before {
  content: "→ ";
  color: #999;
}

.price-line {
  font-size: 16px;
  margin-bottom: 8px !important;
}

.cta-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #00c;
  color: #00c;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

.cta-btn:hover {
  background: #00c;
  color: #fff;
  text-decoration: none;
}

.vsmall {
  font-size: 11px;
  color: #999;
}

/* ── trust bar ──────────────────────────────────────────────── */

#trust-bar {
  font-size: 11px;
  color: #aaa;
  padding: 5px 0 7px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
  line-height: 1.7;
}
#trust-bar strong { color: #555; }
#trust-bar a { color: #5588bb; }

#trust-bar .trust-research-link {
  color: #aaa;
  text-decoration: none;
}
#trust-bar .trust-research-link strong {
  color: #555;
}
#trust-bar .trust-research-link:hover {
  color: #5588bb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#trust-bar .trust-research-link:hover strong {
  color: #5588bb;
}

/* ── trust bar: "148 vendors evaluated" hover popover ────────── */

.trust-eval-wrap {
  position: relative;
  display: inline-block;
  cursor: default;
  border-bottom: 1px dashed #bbb;
}
.trust-eval-popover {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 480px;
  background: #fff;
  border: 1px solid #c8d8eb;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  padding: 14px 16px 12px;
  z-index: 300;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  /* small upward arrow */
  pointer-events: auto;
}
.trust-eval-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-top: 1px solid #c8d8eb;
  border-left: 1px solid #c8d8eb;
  transform: rotate(45deg);
}
.trust-eval-popover.visible {
  display: block;
}
.tep-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4a6080;
  margin-bottom: 8px;
}
.tep-why {
  display: block;
  font-size: 11px;
  color: #555;
  background: #f5f8ff;
  border: 1px solid #dce6f5;
  border-left: 3px solid #7aaadd;
  border-radius: 3px;
  padding: 7px 9px;
  margin-bottom: 11px;
  line-height: 1.6;
}
.tep-why strong { color: #2255aa; font-weight: 600; }
.tep-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.tep-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px 5px;
  border-bottom: 1px solid #e0e8f0;
}
.tep-table th:nth-child(2) { text-align: right; }
.tep-table td {
  padding: 4px 6px;
  color: #444;
  border-bottom: 1px solid #f2f6fb;
  vertical-align: middle;
}
.tep-table td:nth-child(2) {
  text-align: right;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  width: 60px;
}
.tep-table td:nth-child(3) {
  color: #888;
  font-size: 11px;
}
.tep-table a {
  color: #2255aa;
  text-decoration: none;
}
.tep-table a:hover { text-decoration: underline; }
.tep-us td {
  background: #edf5ff;
  border-top: 2px solid #c8d8eb;
  border-bottom: 2px solid #c8d8eb;
}
.tep-us td:first-child {
  border-left: 3px solid #2255aa;
  padding-left: 5px;
}
.tep-us td strong { color: #2255aa; }
.tep-note {
  display: block;
  font-size: 11px;
  color: #777;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e8eef5;
  font-style: italic;
  line-height: 1.55;
}

/* ── best for line ──────────────────────────────────────────── */

.best-for {
  font-size: 11px;
  color: #666;
  margin-bottom: 4px;
}
.bestfor-more {
  color: #00c;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.best-for-label {
  font-weight: bold;
  font-style: normal;
  color: #444;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

/* ── listing footer (actions row) ───────────────────────────── */

.listing-footer {
  margin-top: 5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
}

/* ── dim bars toggle ─────────────────────────────────────────── */

.score-toggle {
  display: inline-block;
  font-size: 11px;
  color: #5588bb;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.score-toggle:hover { text-decoration: underline; color: #3366aa; }

.dim-bars {
  display: none;
  margin: 7px 0 4px;
  padding: 9px 12px 7px;
  background: #f8f9fb;
  border: 1px solid #e4eaf2;
  border-radius: 2px;
}
.dim-bars.open { display: block; }

.dim-row {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}
.dim-label {
  width: 138px;
  flex-shrink: 0;
  color: #666;
  font-size: 11px;
}
.dim-wt {
  color: #bbb;
  font-size: 10px;
}
.dim-track {
  flex: 1;
  height: 5px;
  background: #dde0e8;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 8px;
}
.dim-fill {
  height: 100%;
  border-radius: 3px;
}
.dim-val {
  font-size: 10px;
  color: #888;
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.dim-note {
  font-size: 10px;
  color: #999;
  margin: 0 0 6px 146px;
  line-height: 1.45;
  font-style: italic;
}
.dim-updated {
  font-size: 10px;
  color: #ccc;
  margin-top: 7px;
  text-align: right;
}

/* ── compare checkbox ───────────────────────────────────────── */

.compare-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #bbb;
  cursor: pointer;
  user-select: none;
}
.compare-check-wrap input[type=checkbox] {
  cursor: pointer;
  accent-color: #5588bb;
}
.compare-check-wrap:hover { color: #666; }
.compare-check-wrap.selected { color: #0033bb; }

/* ── compare floating bar ───────────────────────────────────── */

#compare-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 2px solid #5588bb;
  padding: 8px 24px;
  z-index: 500;
  align-items: center;
  gap: 10px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.09);
  font-size: 12px;
}
#compare-bar.visible { display: flex; }
.cbar-label { color: #999; font-size: 11px; flex-shrink: 0; }
.cbar-slots { display: flex; gap: 7px; flex: 1; flex-wrap: wrap; }
.cbar-slot {
  background: #eef2fb;
  border: 1px solid #c0cff0;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 11px;
  color: #0033bb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cbar-slot-x {
  color: #aaa;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  background: none;
  border: none;
  font-family: var(--font);
}
.cbar-slot-x:hover { color: #333; }
.cbar-hint { font-size: 10px; color: #bbb; flex-shrink: 0; }
.cbar-go {
  background: #0033bb;
  color: #fff;
  border: none;
  padding: 5px 14px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font);
  flex-shrink: 0;
}
.cbar-go:hover { background: #0022aa; }
.cbar-clear-btn {
  font-size: 11px;
  color: #bbb;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  font-family: var(--font);
}
.cbar-clear-btn:hover { color: #555; }

#cbar-search-wrap {
  position: relative;
  flex-shrink: 0;
}
#cbar-search-input {
  font-family: var(--font);
  font-size: 12px;
  border: 1px solid #c0cff0;
  border-radius: 2px;
  padding: 4px 8px;
  width: 150px;
  outline: none;
  color: #333;
  background: #f8faff;
}
#cbar-search-input:focus {
  border-color: #5588bb;
  background: #fff;
}
#cbar-search-input::placeholder { color: #bbb; }
#cbar-search-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.11);
  min-width: 260px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 600;
}
#cbar-search-dropdown.visible { display: block; }
.cbar-dd-item {
  padding: 6px 10px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}
.cbar-dd-item:last-child { border-bottom: none; }
.cbar-dd-item:hover { background: #eef2fb; }
.cbar-dd-item.already-added { color: #bbb; cursor: default; }
.cbar-dd-name { font-weight: bold; }
.cbar-dd-tag { color: #999; font-size: 11px; }

/* ── comparison modal ───────────────────────────────────────── */

#compare-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.38);
  z-index: 600;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 16px 50px;
  overflow-y: auto;
}
#compare-modal.visible { display: flex; }
.compare-inner {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}
.compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}
.compare-header-title {
  font-size: 13px;
  font-weight: bold;
  color: #333;
}
.compare-close {
  font-size: 22px;
  color: #bbb;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  font-family: var(--font);
}
.compare-close:hover { color: #333; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.compare-table th {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid #eee;
  font-size: 14px;
  font-weight: bold;
  color: #00c;
  vertical-align: bottom;
}
.compare-table th.cmp-row-label {
  font-size: 10px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: normal;
  width: 150px;
}
.compare-table td {
  padding: 7px 16px;
  border-bottom: 1px solid #f2f2f2;
  vertical-align: middle;
  color: #444;
}
.compare-table td.cmp-row-label {
  font-size: 10px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: normal;
  vertical-align: top;
  padding-top: 9px;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #fafafa; }
.cmp-bar-wrap {
  height: 5px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
  max-width: 140px;
}
.cmp-bar-fill { height: 100%; border-radius: 3px; }
.cmp-score {
  font-size: 22px;
  font-weight: bold;
}
.cmp-score.good { color: #3a7d0a; }
.cmp-score.mid  { color: #886600; }
.cmp-score.low  { color: #aa3300; }
.cmp-tag { font-size: 11px; color: #888; font-style: italic; margin-top: 2px; }
.compare-table tr.score-row td { background: #f9fbf5; }

/* ── intake quiz modal ──────────────────────────────────────── */

#quiz-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.32);
  z-index: 700;
  align-items: center;
  justify-content: center;
}
#quiz-modal.visible { display: flex; }
.quiz-inner {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  max-width: 460px;
  width: 92%;
  padding: 24px 26px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.quiz-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 3px;
}
.quiz-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}
.quiz-q {
  font-size: 11px;
  color: #555;
  margin-bottom: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.quiz-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.quiz-opt {
  padding: 4px 11px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  background: #fff;
  font-family: var(--font);
}
.quiz-opt:hover { background: #f5f5f5; border-color: #aaa; }
.quiz-opt.selected { background: #e8eeff; border-color: #5588bb; color: #0033bb; }
.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.quiz-go {
  background: #333;
  color: #fff;
  border: none;
  padding: 7px 20px;
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font);
}
.quiz-go:hover { background: #000; }
.quiz-skip {
  font-size: 11px;
  color: #bbb;
  text-decoration: none;
}
.quiz-skip:hover { color: #666; text-decoration: underline; }
